Dell TrueMobile 2300 路由设置 VPN
(2008-09-28 13:35)
分类: 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、进入内网:)

