centos 5.2 配置pptp客户端linux 2009-12-24 19:15:10 阅读33 评论0 字号:大中小 1. 下载源码包 # wget http://nchc.dl./sourceforge/pptpclient/pptp-1.7.2.tar.gz 2. 编译 # make 3. 安装 # make install 4. 配置 # pptpsetup --create tunnelname --server xxx.xxx.xxx.xxx --username somebody --password sercet 5. 连接 # pppd call tunnelname 6. 断开 # killall pppd 注意事项: 在处理路由的时候采用client to lan方式,需要增加对方lan的路由或者目标网络的路由. # route add -net 192.168.2.0 netmask 255.255.255.0 dev ppp0 ppp0是pptp连接的名字, 如果不确定 可以使用ifconfig命令查看 |
|