No Description

Benj Dag f035775047 restart all services at the end of install 7 years ago
README.md 39abb55350 corrected readme 7 years ago
bash.bashrc 9c143247e1 7 years ago
caddy.service 2d7b0030e1 changed stuffs 7 years ago
config.json ca2c6fc7a1 7 years ago
getconfig.sh 85c1c5568c changed links to github 7 years ago
globe.txt 2639cc3c51 fixed dhcp 7 years ago
haproxy.cfg 2d7b0030e1 changed stuffs 7 years ago
hpi.txt 7c63e56d7d 7 years ago
index.html c5736a86a4 7 years ago
injector.txt f035775047 restart all services at the end of install 7 years ago
ip6tables-vpn.sh 2d7b0030e1 changed stuffs 7 years ago
iptables-vpn.sh e2c7e3d7f7 some changes 7 years ago
newuser.sh 7c2c7f6612 7 years ago
openvpn.sh 7c2c7f6612 7 years ago
setup.sh f035775047 restart all services at the end of install 7 years ago
sony-domains.txt f0c25d5632 7 years ago
sprunge.sh 0413006944 7 years ago
squid.conf 2d7b0030e1 changed stuffs 7 years ago
squid3.conf 980ca1acb4 fixed a bunch of stuff 7 years ago
tap_soft.interface e2c7e3d7f7 some changes 7 years ago
tmux.conf e01c2ebb08 7 years ago
tnt.txt 2639cc3c51 fixed dhcp 7 years ago
udp.txt 7c63e56d7d 7 years ago
update-settings.sh ca2c6fc7a1 7 years ago
wordlist.txt 0413006944 7 years ago

README.md

Readme

A shell script to install VPN using SoftEther on Ubuntu VPS like DigitalOcean now requires Ubuntu 16.04 or Debian Jessie or higher

Some parts adapted to Google Cloud Engine VMs

Execution

  • Execution for installation and setup
wget -O - bit.ly/se-vpnsetup | sudo bash

This script fetches the SoftEtherVPN Server Source Code from github After SE-VPN is built, it setups the SE-VPN server.

The following are done:

  • adds a VirtualHub named VPN
  • adds a user to the hub VPN with the username vpn and password vpn
  • Creates a tap device called soft for local bridging
  • And bridges it to the hub VPN.
  • The tap device is initialized with ip address of 192.168.199.1/24

DNSMasq is installed to provide DNS and DHCP to the VPN Clients

IP tables are configured to provide DDOS protection and port redirection:

  • TCP ports: 5242,4244,9200,9201,21,137,8484,82 to-port 995
  • to allow SE-VPN clients to connect to the TCP ports
  • and to allow OpenVPN clients to connect to both TCP and UDP ports

Haproxy is installed to share port 80,443,8080 to squid, ssh and SE-VPN

Lastly: It outputs a URL with the Sample OpenVPN config which can be modified to connect to various ports.