作者
在網上看到一位大蝦的關於redhat
(pptp客戶端)
解壓縮
# cd /opt
# tar zxvf ppp
# cd /opt/ppp
# sh unpack
# cd ppp
#
# make
# mv /usr/sbin/pppd /usr/sbin/pppd
# cp pppd /usr/sbin/pppd ;將新的pppd放入系統路徑
解壓縮
# cd /opt
# tar zxvf pptp
# cd /opt/pptp
# cp options
# mkdir /etc/pptp
# tar zxvf pptp
# cd pptp
# make
# cp pptp /usr/sbin
# cp pptp
# cd /opt/pptp
#
What task would you like to do?:
選
?:
Add a NEW CHAP secret
NOTE: Any backslashes (\) must be doubled (\\)
Local Name:
This is the
NOTE: If the server is a Windows NT machine
should be your Windows NT username including domain
For example:
domain\\username
Local Name:pptp ;這裡填上pptp的登錄用戶名稱
Remote Name:
This is the
In most cases
set if you have multiple CHAP secrets with the same local name
and different passwords
Remote Name [PPTP]: ;用默認的PPTP就行
Password:
This is the password or CHAP secret for the account specified
password will not be echoed
Password: ;在這裡敲入密碼
回到主選單
Adding secret pptp PPTP *****
?: ;此時建立一個新的PPTP Tunnel
Add a NEW PPTP Tunnel
Which configuration would you like to use?:
Tunnel Name: test ;給連接起名字test
Server IP:
What route(s) would you like to add when the tunnel comes up?
This is usually a route to your internal network behind the PPTP server
You can use TUNNEL_DEV and DEF_GW as in /etc/pptp
TUNNEL_DEV is replaced by the device of the tunnel interface
DEF_GW is replaced by the existing default gateway
The syntax to use is the same as the route(
Enter a blank line to stop
route: TUNNEL_DEV ;用提示的輸入
route: ;一個就夠了
Local Name and Remote Name should match a configured CHAP secret
Local Name is probably your NT domain\username
NOTE: Any backslashes (\) must be doubled (\\)
Local Name: pptp
Remote Name [PPTP]:
Adding test
Added tunnel test
?:
退出後再進入程序
#
What task would you like to do?:
Start a tunnel to which server?: test ;在選擇要連接的名稱
注意
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default
解決方法為
先刪除錯誤那個錯誤的路由
# route del
然後
# route add
From:http://tw.wingwit.com/Article/program/Oracle/201311/18931.html