发博文
dorainm's blog

http://blog.chinaunix.net/space.php?uid=20396006

<table width="100%"> <tr><td> <script type="text/javascript"><!-- google_ad_client = "pub-9869018759147556"; //468x60,11/21/07,dorainm.cublog.cn google_ad_slot = "4165281795"; google_ad_width =    
个人资料
  • 博客访问:780532
  • 博文数量:197
  • 博客积分:10010
  • 博客等级:上将
  • 注册时间:2007-06-15 17:05:15
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
分类: GNU/life


首先称赞一个,这款路由非常好用,贼喜欢。

今天看了下Dell TrueMobile 2300 路由的介绍,http://supportapj.dell.com/support/systemsinfo/document.aspx?c=ap&l=en&~file=/network/p57205/sc/help/features.htm

Dell TrueMobile 2300是否支持虚拟私人网络(VPN)?

支持,Dell TrueMobile 2300支持PPTP, IPSec, L2TP VPN穿过功能。


想着,内网里面这么多 server(当然,好多是 vmware出来的,比如一整套的 squid+ dns+ apaches+ IISs),平时在外网,一直是 ssh某台 sshd服务器,到内网后,然后再 ssh其它服务器来管理,rdesktop也只能在路由设置一个转发。如果 VPN获得一个内网 IP,就很方便开发、维护了,嘻~


于是乎,在路由设置的 WEB页面,在主菜单里面的“Services”,选择子菜单“PPTP”,进行 VPN设置。

PPTP Server是设置本地的 VPN服务器,可以供外网来访问。而 PPTP Client是把本地路由当作一个 VPN客户端,访问别人的内网,然后这边网络里面的所有计算机,都变成了对方内网的终端了(感叹下Dell TrueMobile 2300)

当然,这里我们要设置 PPTP Server,选择 enable按钮,激活。便出来了 PPTP Server的配置选项。我们查看帮助先:

PPTP

PPTP Server Configuration
Server IP

Defines the Local IP of the PPTP Server. This should be almost the Local LAN IP.

Client IP(s)

Must be a space separated list of IPs or a range of definition which will be used as pool for client ip assignment.

Note


May be a list of IP addresses (for example 192.168.0.2,192.168.0.3), a range (for example 192.168.0.1-254 or 192.168.0-255.2) or some combination (for example 192.168.0.2,192.168.0.5-8).
CHAP-Secrets

Must be a list of secrets in standard linux CHAP secrets format.

Note


myuser * mypassword *
Check all values and click Save Settings to save your settings. Click Cancel Changes to cancel your unsaved changes.


嘻嘻,就这么简单。

在 Server IP里面,输入这台路由的内网地址;
然后在 Client IPs里面,设置 VPN将要分配的内网地址,不同的 IP端,单个IP地址怎么书写,帮助里面写得很明白了;
在 CHAP-Secrets里面,安照 linux CHAP认证格式,书写帐户密码,比如 user * pswd *,那么 VPN就拥有一个密码为 pswd的 user帐户了。

设置完毕,点“Save”保存设置,点“Apple Settings”应用,不需要重启路由,namp路由,看到 1723端口已经开放了,然后用外网IP,进行 VPN联结,成功分配到一个内网 IP、进入内网:)

亲,您还没有登录,请[登录][注册]后再进行评论