Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo yum update
sudo yum -y install pptp
sudo modprobe nf_conntrack_pptp
sudo modprobe ppp_mppe


STEP 2. Run sudo vi /etc/ppp/chap-secrets to edit the chap-secret file as shown below:

...

Note that you should put space or tab between elements listed above.


STEP 3. Run vi /etc/ppp/peers/myvpn and enter the following information. You can create your own name whatever instead of myvpn.

Code Block
pty "pptp usca.pointtoserver.com -nolaunchpppd"
name your VPNusernameyourVPNusername
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam yourVPNName


STEP 4. Run vi /etc/ppp/options.pptp to be sure there is no # sign before these lines.

Code Block
lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mppe-128


STEP 5. Run vi /etc/ppp/ip-up.local and add the following line. By doing so, it will set the default to ppp0.

Code Block
/sbin/route add default ppp0


https://support.purevpn.com/command-line-setup-in-linux-centos

...