Build a VPN under Cent OS and set up a vpn for centos
1. Make sure that PPP and TUN are enabled for the machine
cat /dev/ppp
cat /dev/net/tun
If the output is in the afternoon, it indicates that the request passes. Otherwise, contact the supplier.
Ii. one-click installation script
wget http://www.laozuo.org/download/scripts/openvz_centos_vpn.sh
chmod a+x openvz_centos_vpn.sh<span style="white-space:pre"> </span>
sh openvz_centos_vpn.sh
The execution result is:
1. Install the VPN Service
2. VPN service repair
3. Add a user
3. Select install VPN service
The final output result is:
The last line is the dialing user name and password.
4. Add a new user
The default password is hard to remember and can be executed
<Span style = "white-space: pre"> </span> sh openvz_centos_vpn.sh
<Span style = "white-space: pre"> </span> select 3. Add the password as prompted.