1.安装包
yum -y install ppp pptp
2.配置文件
vi /etc/ppp/chap-secrets
——————————————
# Secrets for authentication using CHAP
# client server secret IP addresses
username pptpd "password" *
——————————————
vi /etc/ppp/peers/my***
——————————————
# written by pptpsetup
pty "pptp 202.105.139.114 --nolaunchpppd"
lock
#noauth
nobsdcomp
nodeflate
name username
remotename pptpd
ipparam pptpd
require-mppe-128
refuse-pap
refuse-chap
refuse-eap
refuse-mschap
——————————————
3.复制命令
cp /usr/share/doc/ppp-2.4.5/scripts/pon /usr/sbin/
cp /usr/share/doc/ppp-2.4.5/scripts/poff /usr/sbin/
chmod +x /usr/sbin/pon /usr/sbin/poff
4.拨***
pon my***
5)ifconfig 看ppp0
6.断开***
poff my***
转载于:https://blog.51cto.com/shfelix/1357979