wget --no-check-certificate https://raw.githubusercontent.com/teddysun/across/master/l2tp.sh
chmod +x l2tp.sh //Change to executable right restriction
./l2tp.sh //Execute installation script
Please enter IP-Range: //config l2tp subnet
(Default Range: 192.168.18):
Please enter PSK: //config PSK
(Default PSK: teddysun.com):
Please enter Username:
(Default Username: teddysun): //config default username
Please enter teddysun's password:
(Default Password: 3hV8T4Bwb4):
###############################################################
# L2TP VPN Auto Installer #
# System Supported: CentOS 6+ / Debian 7+ / Ubuntu 12+ #
# Intro: https://teddysun.com/448.html #
# Author: Teddysun #
###############################################################
If there is no [FAILED] above, you can connect to your L2TP
VPN Server with the default Username/Password is below:
Server IP: 45.136.15.xxx
PSK : teddysun.com
Username : teddysun
Password : 3hV8T4Bwb4
If you want to modify user settings, please use below command(s):
l2tp -a (Add a user)
l2tp -d (Delete a user)
l2tp -l (List all users)
l2tp -m (Modify a user password)
Welcome to visit our website: https://teddysun.com/448.html
//Export iptables config
sudo sh -c "iptables-save > /etc/network/iptables.up.rules"
//Cofig ipatables
sudo vi /etc/network/iptables.up.rules
// Config NAT Outside IP
-A POSTROUTING -s 192.168.18.0/24 -j SNAT --to-source ethernet-interface-ip
//Applly
sudo iptables-apply