centos6.8下pptp客户端的安装配置

原文:

https://blog.csdn.net/zhang11321132/article/details/20612473

yum -y install ppp pptp pptp-setup

pptpsetup命令用法及说明:

pptpsetup --create <TUNNEL> --server <ip address/hostname> [--domain <DOMAIN NAME>] --u sername <USERNAME> [--password <PASSWORD>] [--encrypt] [--start]


pptpsetup –delete <TUNNEL> 删除一个节点 

pptpsetup --create vpn连接名称 --server VPN服务器IP --username VPN用户名 --password VPN密码

vi /etc/ppp/peers/vpn连接名称

# written by pptpsetup
pty "pptp VPN服务器IP --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name VPN用户名
remotename vpn连接名称
ipparam vpn连接名称

persist #当连接丢失时让pppd再次拨号
require-mppe-128
refuse-pap
refuse-chap
refuse-eap
refuse-mschap

密码修改

/etc/ppp/chap-secrets

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

拨号

pon vpn连接名称

通过pon/poff <tunnel> 来启停VPN连接

查看是否连上

ifconfig

ppp0      Link encap:Point-to-Point Protocol  
             inet addr:172.17.196.10  P-t-P:172.17.196.7  Mask:255.255.255.255
             UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
             RX packets:102271 errors:0 dropped:0 overruns:0 frame:0
             TX packets:61330 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:3 
             RX bytes:133137807 (126.9 MiB)  TX bytes:3351984 (3.1 MiB)

路由走ppp0

route add -net 172.17.196.0 netmask 255.255.255.0 dev ppp0
---------------------
作者:沉睡的小五
来源:CSDN
原文:https://blog.csdn.net/zhang11321132/article/details/20612473
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自www.cnblogs.com/itfat/p/10214208.html
今日推荐