Giter VIP home page Giter VIP logo

vpn's Introduction

vpn-launchpad

Simple scripts for launching Amazon VPS with L2TP and Shadowsocks VPN running out of box

Why vpn-launchpad?

With vpn-launchpad, you can:

  • Create VPN server on demand with the rate as low as $0.0058 per hour (t2.nano instance locate in Ohio) ATM.
  • Destory the server after using to avoid trail leaking as well as unnecessary cost.

Prerequisites

A Linux system (Ubuntu, Debian RHEL/CentOS etc.) or MacOSX system with ssh, nc and awsclii (Amazon Command line Interface) installed is necessary for running vpn-launchpad

Simple instructions for awscli installation on Ubuntu/Debian Linux
$ sudo apt-get update
$ sudo apt-get install python-pip
$ pip install awscli --upgrade --user
$ echo 'export PATH=$PATH:~/.local/bin' >>.bashrc 
$ export PATH=$PATH:~/.local/bin
$ aws --version
aws-cli/1.11.161 Python/2.7.13 Linux/4.12.1-kirkwood-tld-1 botocore/1.7.19
Simple instructions for awscli installation on MacOSX10
$ curl -O https://www.python.org/ftp/python/3.6.3/python-3.6.3-macosx10.6.pkg
$ sudo installer -pkg python-3.6.3-macosx10.6.pkg -target /
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ python3 get-pip.py
$ pip3 install --user awscli
Following this link to config credential for awscli

http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

AWS free-tier user

If you are AWS free-tier user (First 12 month after your AWS account registeraion). You can run the scripts out off the box after filling ~/.aws/credential with your credential. Follow this guider please for more details: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

Non-free tier AWS user

Please modify the "INSTYPE" field in vlp-build from "t2.micro" into "t2.nano" to half your hourly rate.

How to create VPN server:

$ ./vlp-build [OPTIONAL-STACK-NAME]

How to query existing server status:

$ ./vlp-query [OPTIONAL-STACK-NAME]

How to remove the existing VPN server instance and the resources associated:

$ ./vlp-purge [OPTIONAL-STACK-NAME]

How to connect to the newly created VPN server from MacOSX/Windows/Android/iOS via L2TP:

https://www.softether.org/4-docs/2-howto/9.L2TPIPsec_Setup_Guide_for_SoftEther_VPN_Server

How to connect to the newly created VPN server from Linux/MacOSX/Windows/Android/iOS via ShadowSocks:

https://shadowsocks.org/en/download/clients.html

What's the default username, password and pre-shared secret of L2TP VPN? How can I modify the settings?

  • Modify USERS and PSK configurations in docker-sevpn/sevpn.env please
  • Run vlp-purge to destroy existing VPN server instance if any
  • Run vlp-build to create a new VPN server with updated login credential.

Here's what docker-sevpn/sevpn.env looks like

$ cat docker-sevpn/sevpn.env
PSK=YOUR-SHARED-SECRET
USERS=user0:pass0;user1:pass1;
SPW=SRV-MGT-PASS
HPW=HUB-MGT-PASS

Please refer softethervpn project for more details. All credits to Tomohisa Kusano: https://github.com/siomiz/SoftEtherVPN

What's the default port, password and encryption method of ShadowSocks VPN? How can I modify the settings?

  • Modify the fields in docker-shadowsocks-libev/shadowsocks-libev.sh accordingly.
  • Run vlp-purge to destroy existing VPN server instance if any.
  • Run vlp-build to create a new VPN server with updated login credential.

Here's the sample configuration in shadowsocks-libev.sh

$ head -n7 shadowsocks-libev.sh|grep =
SSPASS="YOUR-SHADOWSOCKS-PASS"
SSTCPPORT="8388"
SSUDPPORT="8388"
SSMETHOD="aes-256-cfb"

vpn's People

Contributors

skiao-fastly avatar cyberhack255 avatar samuelhbne avatar huangs-temando avatar

Stargazers

Yan B. avatar

Watchers

 avatar

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.