配置连接参数
o
server标签依次填上本地连接名,服务器名或IP,域(可选),用户名和密码。
o
Routing 标签用来设置路由信息。可用"xxx.xxx.xxx.xxx/xx"的形式增加新的路由。我增加了一条到192.168.3.0/24的路由,以访问该网段。routing style选All to Tunnel,可改变本机的缺省路由,使本机的所有的网络流量都通过该通道。
o
DNS 标签用来设置建立pptp连接后如何进行名称解析。不启用自动配置,将使用手工输入的DNS服务器代替/etc/resolv.conf里的名称服务器进行名称解析。启用自动配置,将会用拔号自动获得的DNS服务器替代/etc/resolv.conf里的DNS服务器,两种方式/etc/resolv文件都会被pptpconfig自动备份。连接断开后,pptpconfig会自动恢复旧有/etc/resovl.conf文件。
o
Encryption标签用于设置加密信息。
o
Miscellaneous标签可配置一些调试信息和连接状态。
pptpconfig 是GTK+程序,需在X window环境下才能运行。但有时我们会在字符终端模式下启用SSH连接,以进行远程维护。这时我们要用到pon、poff程序。pon用于VPN拔号,poff用于断开VPN连接。要正常使用这两个程序,前提是要按上面的配置方法成功配置了一个VPN连接。假设我们已建立了一个名为remote的 VPN连接,则可用以下命令连接VPN服务器。
debian:~# pon remote # 建立一个VPN连接
debian:~# plog # 查看VPN连接状态信息
#如要访问另一网段192.168.3.0,需为这个VPN通道添加一条到192.168.3.0网段的路由信息
debian:~# route add -net 192.168.3.0 netmask 255.255.255.0 dev ppp1
debian:~# poff remote # 断开VPN连接
remote这个VPN连接的信息主要存放在两个文件中,分别是/etc/ppp/chap-secrets和/etc/ppp/peers/remote。如果没有pptpconfig这个图形化配置工具,我们也可参考这两个文件的配置格式,手工配置。
*
/etc/ppp/chap-secrets文件示例:
# +++ pptpconfig added for tunnel remote
username remote password *
# --- pptpconfig added for tunnel remote
*
/etc/ppp/peers/remote文件示例:
# tunnel remote, written by pptpconfig $Revision: 1.2 $
# name of tunnel, used to select lines in secrets files
remotename remote
# name of tunnel, used to name /var/run pid file
linkname remote
# name of tunnel, passed to ip-up scripts
ipparam remote
# data stream for pppd to use
pty "pptp 211.111.60.18 --nolaunchpppd "
# domain and username, used to select lines in secrets files
name username
persist
# do not require the server to authenticate to our client
noauth
# end of tunnel file
使用时需用真实的username和password代替配置文件中这两项内容。
查看 http://www.qqread.com/wireless/d713113081.html相关专题
- 托管服务市场:企业规模越小服务需求越大 (158次浏览)
- 同方服务器让你的网吧更红火 (139次浏览)
- 谁是英雄?Web服务器应用方案横测 (55次浏览)
- 中小企业服务器托管发展迅速 (32次浏览)
- 戴尔服务器 四核与双核主流之战导购 (29次浏览)
- NEC容错服务器电力行业SIS系统解决方案 (23次浏览)
- 浪潮双机湘西乡镇财税网络解决方案 (20次浏览)
- 主机托管机房选择评点 (16次浏览)
- 主机托管 谁的服务最强 (13次浏览)
- 融通天网宽带综合服务器系统技术方案 (11次浏览)



