阅读内容

Linux操作系统上vpn服务端和客户端的配置

[日期:2007-04-06] 来源:Linux公社  作者:Linux



1.) Other
Which configuration would you like to use?:1 ;只有这一个,选1
Tunnel Name: test ;给连接起名字test
Server IP: 10.0.0.227 ;vpn服务器的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.d/ config file
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(icon_cool.gif command.
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 - 10.0.0.227 - pptp - PPTP
Added tunnel test
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) List PPTP Tunnels
5.) Add a NEW PPTP Tunnel
6.) Delete a PPTP Tunnel
7.) Configure resolv.conf
8.) Select a default tunnel
9.) Quit
?:9
退出后再进入程序
# ./pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 1 ;选1,开始
1.) test
Start a tunnel to which server?: test ;在选择要连接的名称
注意:pptp-command这个脚本有个bug,开始连接后不能正常结束程序,并且在连接建立后给出个错误的路由。
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.227 * 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
注意1.不能创建隧道,根据提示去掉pptp-command里面的-T的参数,等建立隧道完成后再恢复。
注意2.vpn连接后首先删除那个ppp0那个路由,然后使用route add -net 218.30.85.0/24 dev ppp0添加到具体网络的路由。
注意3.pptp-linux-1.0.3-1.tar.gz 要update到1.2,然后安装,vpnserver修改地址后,直接在vpn客户端上修改隧道配置文件/etc/ppp/peers/* 中得地址即可。配置文件路径可以在启动文件中查找到。
上一页123  GO
【内容导航】
第1页:Linux操作系统上vpn服务端和客户端的配置 第2页:Linux操作系统上vpn服务端和客户端的配置
第3页:Linux操作系统上vpn服务端和客户端的配置



相关资讯       Linux  vpn 
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google