Linux VPS VPN setup (L2TP VPN one click installation package)
Summary:The previous tutorial on setting up a VPN for Linux VPS was PPTP. Below is a VPN installation tutorial for L2TP protocol collected from the internet.L…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
The previous tutorial on setting up a VPN for Linux VPS was PPTP. Below is a VPN installation tutorial for L2TP protocol collected from the internet.
L2TP, like PPTP, uses the PPP protocol to encapsulate data. The script used in this article is for network collection, and I am absolutely incapable of doing similar work! Additionally, the script was tested on a $1.58 cloud VPS purchased from PupaVPS and found to be successful.
CentOS/Fedora installation steps:
wget http://www.u9l.net/down/centos/l2tp.sh
chmod +x l2tp.sh
./l2tp.sh
Ubuntu/Debian installation steps:
wget http://www.u9l.net/down/ubuntu/l2tp.sh
chmod +x l2tp.sh
./l2tp.sh
Note that during the installation process, the first step is to input the IP segment of L2TP (default is 10.099) and PSK. If you want the IP segment to be 10.00, please fill in. PSK is a key shared with the L2TP client, so remember to enter it here.
After entering the IP range and PSK, the program will display the current IP (IPV4) of your VPS, the local IP of L2TP, the IP range assigned to the client, and the PSK you have set. Please confirm that there are no errors, press any key, and the program will start automatic configuration.
The program configuration time is slightly longer than PPTP, and it still displays IP, default connection user, password, and other information in the end.
To set up VPN connection, please go to: Windows XP | Windows 7/8 | Android | iPhone/iPad
Also, it should be noted that L2TP requires a key. Point connection ->Properties, set encryption method and pre shared key (which is the PSK we previously set)
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

