Git Product home page Git Product logo

shadowovpn's Introduction

ShadowOVPN

ShadowOVPN bridges shadowsocks and OpenVPN based on Docker.

Getting Started

These instructions are for deploying ShadowOVPN on your own compute instance.

Prerequisites

You need Docker running on your compute instance or install it using following command.

curl -sSL https://get.docker.com/ | sh

Installing

Make sure requests module of python is installed and firstly grab an ovpn configuration file from vpngate.net using following command. The argument for vpngate.py is two letter country code for available countries.

python first_vpngate.py jp

Make sure ovpn file is successfully generated and then secondly start ovpnsocks Docker instance.

bash second_start_ovpnsocks.sh

And then thirdly start pproxy Docker instance using your own shadowsocks configuration.

docker run -d --network="host" \
--name=pproxy leenwu/pproxy \
pproxy -l ss://chacha20:abc@:8080 -r socks5://localhost:1081

Now you can connect OpenVPN server with your designated ovpn file with shadowsocks clients.

Swithing servers

Explain how to switch servers when you want or previous server is down.

Extracting new server from vpngate

Choose new ovpn location.

python first_vpngate.py kr

And restart ovpnsocks Docker instance

Docker restarts ovpnsocks instance.

docker restart ovpnsocks

Built With

Authors

License

This project is licensed under the MIT License.

shadowovpn's People

Contributors

limitfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shadowovpn's Issues

run second_start_ovpnsocks failed

[root@ ShadowOVPN]# docker run -d \

--rm \
--device=/dev/net/tun \
--name=ovpnsocks \
--cap-add=NET_ADMIN \
--publish 127.0.0.1:1081:1080 \
--volume "$(pwd)/ovpn/:/etc/openvpn/:ro" \
leenwu/ovpnsocks

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

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.