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的路由或者目標(biāo)網(wǎng)絡(luò)的路由. # route add -net 192.168.2.0 netmask 255.255.255.0 dev ppp0 ppp0是pptp連接的名字, 如果不確定 可以使用ifconfig命令查看 |
|
|