Giter Site home page Giter Site logo

tienquanutc / expressvpn-proxy-adapter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doganm95/ovpn-to-proxy-adapter

0.0 0.0 0.0 11 KB

Creates http proxy servers from expressvpn (.ovpn) files, each running in a docker container. Automated for batch creation.

License: MIT License

Shell 100.00%

expressvpn-proxy-adapter's Introduction

Description

Creates proxy servers from .ovpn files, which can be downloaded from expressvpn.com under manual. Each ovpn file runs in a seperate docker container. The ovpn to proxy conversion is provided by haugene/docker-transmission-openvpn.

Features

  • Deletes transmission-ovpn containers which have status=created and are non functional
  • Iterates over ports until a free one is found to bind a proxy container to
  • Configurable docker run --restart behaviour

Setup

  • Copy spawn.sh from this repo to destination machine (linux)
  • If many proxies need to be created at once, also copy ovpn_list
    • Delete unneeded lines (proxies), remaining lines will be created
  • Keep username and password handy expressvpn.com
  • Install docker if not done already

Usage

The .ovpn file to use is not provided as file, only as name. The Transmission-service then fetches the corresponding file and handles the rest. A full list is provided in the ovpn_list file. Last modified date is last updated date. ovpn_list file needs to be in the same directory as this script for batch.

  • Script parameters

    • vpn_location: the desired line chosen from the ovpn_list
    • port: the port on which the proxy should serve
    • starting_port: first port on which proxy creation should be tried on. If occupied, iterates until free port found
    • vpn_username: the expressvpn username which you kept handy (see setup above)
    • vpn_password: the corresponding password
    • container_restart: docker argument, quick usage in documentation
  • Single proxy creation

sudo ./spawn.sh <vpn_location> <vpn_provider> <port> <vpn_username> <vpn_password> <container_restart>

Example:

sudo ./spawn.sh my_expressvpn_hong_kong_-_2_udp EXPRESSVPN 8900 abc123 def456 always

would create a proxy server, which connects to "Hong Kong - 2" and be available on port 8900.

  • Multi proxy creation (batch)

sudo ./spawn.sh list vpn_provider port vpn_username vpn_password container_restart

Example:
If ovpn_list file contained

  my_expressvpn_japan_-_tokyo_udp
  my_expressvpn_ukraine_udp
  my_expressvpn_usa_-_new_york_-_2_udp

Then the command

sudo ./spawn.sh list EXPRESSVPN 8900 abc123 def456 always

would create 3 proxy servers, one for each location. First (Japan) would listen on port 8900, Second (Ukraine) on port 8901, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.