if Router Subnet 192.222.222.0
wget https://git.io/vpnsetup-centos -O vpnsetup.sh && sudo sh vpnsetup.sh
nano /etc/ipsec.conf
virtual-private=%v4:10.0.0.0/8,%v4:192.222.222.0/16,%v4:172.16.0.0/12,%v4:!192.222.222.0/24,%v4:!192.222.222.0/24
rightaddresspool=192.222.222.10-192.222.222.20
nano /etc/xl2tpd/xl2tpd.conf
ip range = 192.222.222.10-192.222.222.20
local ip = 192.222.222.2
iptables -t nat -A POSTROUTING -s 192.222.222.0/24 -o eth0 -j MASQUERADE
ip6tables-save
=============
Router Port forward 1701,500,4500 to vpn server
Comment feed