NetworkManager-pptp
从: http://pptpclient.sourceforge.net/
下载rpm包 :pptp-1.7.2-3.fc10.i386.rpm
或从yum安装。路径:http://poptop.sourceforge.net/yum/stable/
安装完成后,创建: /etc/ppp/options.pptp:
lock
noauth
nobsdcomp
nodeflate
创建: /etc/ppp/peers/vpn2
remotename vpn2
linkname vpn2
ipparam vpn2
pty "pptp 211.10x.xxx.xxx --nolaunchpppd "
name cfpwork
usepeerdns
require-mppe
noauth
file /etc/ppp/options.pptp
添加帐号: /etc/ppp/chap-secrets
cfpwork vpn2 password *
如何拨号:
/usr/share/doc/ppp-2.4.4/scripts/pon vpn2
如何关闭连接:
/usr/share/doc/ppp-2.4.4/scripts/poff vpn2
连接成功之后需修改route
ip route replace 211.103.xxx.xxx(vpn server) via 61.51.102.1(原网关) dev ppp0(原连接) src 61.51.56.2(原IP)
ip route replace default dev 'ppp1'(vpn连接)