1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| 1.yum -y install ppp pptp 2.vim /etc/ppp/chap-secrets
vpn帐号 vpnIP vpn密码 *
3.vim /etc/ppp/peers/phpcurl pty 'pptp vpnIP --nolaunchpppd' name vpn帐号 remotename vpnIP require-mppe-128 file /etc/ppp/options.pptp ipparam phpcurl
4.vim /etc/ppp/options.pptp
lock noauth refuse-pap refuse-eap refuse-chap nobsdcomp nodeflate require-mppe-128
5.pppd call phpcurl 6.route del default dev eth0 7.route add default dev ppp0
|