LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1431|回复: 1

vpn 的连接问题:如何保持vpn的连接?

[复制链接]
发表于 2007-9-18 23:54:37 | 显示全部楼层 |阅读模式
学校里的通过vpn访问外部网络

配置好了l2tpd,ppp,已经可以连接上,并访问外网了

目前的问题是vpn定期的会断开一次,

syslog里的提示信息如下:

control_xmit: Maximum retries exceeded for tunnel 51262.  Closing.

pppd[16907]: Terminating on signal 15
pppd[16907]: Modem hangup
pppd[16907]: Connect time 7895.4 minutes.
pppd[16907]: Sent 16718846 bytes, received 26334507 bytes.
pppd[16907]: Script /etc/ppp/ip-down started (pid 28807)
pppd[16907]: Connection terminated.
pppd[16907]: Waiting for 1 child processes...
pppd[16907]:   script /etc/ppp/ip-down, pid 28807
pppd[16907]: Script /etc/ppp/ip-down finished (pid 28807), status = 0x0
pppd[16907]: Exit.
l2tpd[2791]: call_close : Connection 31719 closed to 10.5.1.9, port 1701 (Timeout)
l2tpd[2791]: get_call: can't find call 3949 in tunnel 51262
l2tpd[2791]: control_xmit: Unable to deliver closing message for tunnel 51262. Destroying anyway.


好像是Maximum retries exceeded的影响。


关键我不希望vpn断开,希望它一直连着,因为利用它对外开了个web服务。

每回重连,获得的就是一个新的ip,然后就得跑去域名服务商的网站更新同域名绑定的ip,比较麻烦。


对l2tpd和ppp也是没有研究,只是根据前人的经验配置好了可以实现外部访问。


大家有过这方面经验的,帮帮忙

 楼主| 发表于 2007-9-19 18:34:08 | 显示全部楼层
今天又断开了,提示信息如下,比较类似,只是这个最大值的次数不一样了。

: control_xmit: Maximum retries exceeded for tunnel 11643.  Closing.
: Terminating on signal 15
: Modem hangup

: Connect time 595.1 minutes.
(默认一分钟check_control一次,所以是500多分钟,上面帖子里是check_control7000多次)

: Sent 1461360 bytes, received 303626 bytes.
: Script /etc/ppp/ip-down started (pid 29613)
: Connection terminated.
: Script /etc/ppp/ip-down finished (pid 29613), status = 0x0
: Exit.
: call_close : Connection 13269 closed to 10.5.1.9, port 1701 (Timeout)
: control_xmit: Unable to deliver closing message for tunnel 11643. Destroying anyway.
: get_call:can't find tunnel 11643



这个“Maximum retries exceeded”所谓的超出最大值,为什么每次连接它的值还不一样啊

??
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表