Git Product home page Git Product logo

dockervpn's Introduction

DockerVPN

IPsec VPN automated installation on AWS and GCP (tested on Ubuntu 16.04) based on https://github.com/hwdsl2/docker-ipsec-vpn-server

###VM instance### Launch AWS or GCP Ubuntu 16.04 instance(testing on Ubuntu 16.04 only) and allow udp: 500 and 4500 inbound

  1. AWS: NETWORK & SECURITY ->choose your Security Group for the instance, add rule for allowing udp:500,4500 from 0.0.0.0/0(or the IP range you allow to login, this for VPN connection propose)

  2. GCP: click Network -> Firewall rules-> add firewall rule-> allow udp:500,4500 from 0.0.0.0/0

###Install docker VPN ### ssh into VM instance and install Docker first(If you have Docker installed, skip this)

	sudo curl -fsSL https://get.docker.com/ | sh

Copy the scrpit into your PATH and cd into it, update your VPN_IPSEC_PSK,VPN_USER and VPN_PASSWORD in the run.sh(rows 13-15) then start the script

	sudo chmod +x run.sh
	sudo ./run.sh

###VPN Logs and others### VPN login details

	sudo docker logs ipsec-vpn-server

Check server status

	sudo docker exec -it ipsec-vpn-server ipsec status

###VPN Client### Get your computer or device to use the VPN. Please refer to:

Configure IPsec/L2TP VPN Clients

Important notes

This script is for VPN Automated deployment propose, the docker VPN project please refer to https://github.com/hwdsl2/docker-ipsec-vpn-server

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.