This tutorial applies to OpenvVPS, XenVPS, or KVMVPS. 1. run the following command: cat/dev/net/tun must return cat:/dev/net/tun: Filedescriptorinbadstate. run: cat/dev/ppp must return:
This tutorial applies to Openv VPS, Xen VPS, or kvm vps.
1. run the following command:
Cat/dev/net/tun
The returned value must be:
Cat:/dev/net/tun: File descriptor in bad state
Run:
Cat/dev/ppp
The returned value must be:
Cat:/dev/ppp: No such device or address
If these two results are not returned, contact the VPS customer service to activate the ppp and tun permissions.
II. download the one-key installation package for vpn (dedicated for CentOS6)
Wget http://www.hi-vps.com/shell/vpn_centos6.sh
Chmod a + x vpn_centos6.sh
3. run the one-click installation package
Bash vpn_centos6.sh
There are three options:
1. install the VPN service
2. VPN repair
3. add a VPN user
Enter 1 and press enter to start installing the VPN service.
4. add a VPN user
Bash vpn_centos6.sh
Select 3, enter the user name and password, OK
5. VPN service repair
If a VPN dialing error occurs, try to fix the VPN and restart the VPS.
Bash vpn_centos6.sh
Select 2, and then reboot
The above is