One-click VPN installation on CentOS 6.5

This tutorial is applicable 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 the above does not return either of these two results, please contact VPS support to enable PPP and TUN permissions.

2. Download the VPN (CentOS 6 specific) one-click installation package.

wget http://www.hi-vps.com/shell/vpn_centos6.sh chmod a+x vpn_centos6.sh

III. Run the one-click installation package

bash vpn_centos6.sh

There will be three options:

1. Install VPN service
2. Repair VPN
3. Add VPN users

First, type 1 and press Enter. The VPS will then begin installing the VPN service.

IV. Adding VPN Users

bash vpn_centos6.sh

Select option 3, then enter your username and password, OK.

V. Repair VPN service

If a VPN connection error occurs, try repairing the VPN and then restarting the VPS.

bash vpn_centos6.sh

Select option 2, then reboot.

Add/replace random username or password:

Edit "/etc/ppp/chap-secrets" and replace the red text as follows:

Username: pptpd Password: *

Simply restart.

This siteOriginal articleAll follow "Attribution-NonCommercial-ShareAlike 4.0 License (CC BY-NC-SA 4.0)Please retain the following annotations when sharing or adapting:

Original author:Jake Tao,source:One-click VPN installation on CentOS 6.5

233
0 0 233

Further Reading

Post a reply

Log inYou can only comment after that.
Share this page
Back to top