centos pptp client 配置

安装服务

# yum install ppp pptp pptp-setup
# pptpsetup --create vpn名称 --server ip地址 --username test --password test

启动服务

pppd call vpn名称 updetach

出现问题

Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
CHAP authentication succeeded
LCP terminated by peer (MPPE required but peer refused)
Modem hangup

解决办法,添加安全

# vim /etc/ppp/peers/vpn名称

文件尾部,加上以下内容

require-mppe-128

重新启动服务

检查是否正常启动
ifconfig #会多出一个ppp0的网络连接。

当前还是不能通过vpn访问的,因为当前所有的网络连接都通过默认网络连接,因此要增加一个route

#route add -net 0.0.0.0 dev ppp0

vpn工具:https://vpnso.com/main.php,用着还不错,一年100元,一个月80G

引用:
http://www.tuicool.com/articles/z2UZni
http://ju.outofmemory.cn/entry/80155

posted @ 2016-03-07 21:27  逸新  阅读(759)  评论(0编辑  收藏  举报