damotiansheng 2015-10-09 04:47 采纳率: 0%
浏览 7059
已结题

xl2tpd客户端连接vpn服务端,客户端能够ping通服务器,ppp节点消失又重新出现?

  1. xl2tpd客户端连接xl2tpd服务端,能连接上,客户端总能够ping通vpn server的ip,但好像总是断线,ppp节点消失一会又重新出现,又消失一会又重新出现,断断续续,且大部分处于ppp节点消失状态,网上说可能是由于无法访问vpn server的ip,但我这里总能够访问,哪位好心人如果知道,请帮助我,非常谢谢****

我的xl2tpd版本: xl2tpd version: xl2tpd-1.3.6
ipsec版本:
ipsec --version
Linux Openswan U2.6.41/K3.16.0-30-generic (netkey)
See `ipsec --copyright' for copyright information

发现客户端有时能够ping通www.baidu.com, 只有在有ppp节点时才能ping通,但是ppp节点又会马上消失,消失一会,又会重新出现,导致ping www.baidu.com出现:
ping: sendmsg: Network is unreachable

ping: sendmsg: Network is unreachable

64 bytes from 180.97.33.108: icmp_seq=8 ttl=53 time=27.1 ms

64 bytes from 180.97.33.108: icmp_seq=9 ttl=53 time=28.9 ms

ping: sendmsg: Network is unreachable

xl2tpd客户端的重要日志截取如下:
xl2tpd[19900]: Maximum retries exceeded for tunnel 407. Closing.

xl2tpd[19900]: Connection 8180 closed to 172.16.58.156, port 1701 (Timeout)

rep pxl2tpd[19900]: Calling on tunnel 407

xl2tpd[19900]: Connection established to 172.16.58.156, 1701. Local: 49178, Remote: 10621 (ref=0/0).
xl2tpd[19900]: Calling on tunnel 49178

xl2tpd[19900]: Call established with 172.16.58.156, Local: 10180, Remote: 475, Serial: 5 (ref=0/0)

xl2tpd[19900]: Maximum retries exceeded for tunnel 49178. C.
xl2tpd[19900]: Connection 10621 closed to 172.16.58.156, port 1701 (Timeout)

xl2tpd[19900]: Calling on tunnel 49178

xl2tpd[19900]: Unable to deliver closing message for tunnel 49178. Destroyin.
xl2tpd[19900]: Connection established to 172.16.58.156, 1701. Local: 1714, Remote: 37563 (ref=0/0).
xl2tpd[19900]: Calling on tunnel 1714

xl2tpd[19900]: Call established with 172.16.58.156, Local: 32155, Remote: 7405, Serial: 7 (ref=0/0)

xl2tpd[19900]: Maximum retries exceeded for tunnel 1714. Closing.

xl2tpd[19900]: Connection 37563 closed to 172.16.58.156, port 1701 (Timeout)

xl2tpd[19900]: Calling on tunnel 1714

xl2tpd[19900]: Unable to deliver closing message for tunnel 1714. Destroying.
xl2tpd[19900]: Maximum retries exceeded for tunnel 45677. Closing.

xl2tpd[19900]: Connection 54518 closed to 172.16.58.156, port 1701 (Timeout)

xl2tpd[19900]: Unable to deliver closing message for tunnel 45677. Destroying anyway.

xl2tpd[19900]: Maximum retries exceeded for tunnel 54466. Closing.

xl2tpd[19900]: Connection 7278 closed to 172.16.58.156, port 1701 (Timeout)

xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466

(ref=0/0)xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466

(ref=0/0)xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466

服务器xl2tpd日志如下:
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: Connection established to 172.16.58.154, 1701. Local: 18126, Remote: 32355 (ref=0/0). LNS session is 'default'
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Warning: Peer did not specify transmit speed
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: start_pppd: I'm running:
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/usr/sbin/pppd"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "passive"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "nodetach"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "172.16.58.156:172.16.58.19"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "refuse-pap"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "auth"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "require-chap"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "debug"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "file"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/etc/ppp/options.xl2tpd"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/dev/pts/32"
Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: Call established with 172.16.58.154, Local: 7015, Remote: 40202, Serial: 1
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: pppd 2.4.5 started by root, uid 0
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: using channel 846
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: Using interface ppp4
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: Connect: ppp4 <--> /dev/pts/32
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfReq id=0x1 ]
Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp4, iface: ppp4)
Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp4, iface: ppp4): no ifupdown configuration found.
Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: /sys/devices/virtual/net/ppp4: couldn't determine device driver; ignoring...
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ConfReq id=0x1 ]
Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfAck id=0x1 ]
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one.
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4)
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4)
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4)
Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one.
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4)
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4)
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4)
Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one.
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4)
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4)
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4)
Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfReq id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ConfAck id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP EchoReq id=0x0 magic=0xd33f6b86]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CHAP Challenge id=0x89 , name = "l2tpd"]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP EchoRep id=0x0 magic=0xcc4ce9e6]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [CHAP Response id=0x89 , name = "user1"]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CHAP Success id=0x89 "Access granted"]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CCP ConfReq id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfReq id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfReq id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfNak id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfAck id=0x1 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfReq id=0x2 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfAck id=0x2 ]
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: found interface eth0 for proxy arp
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: local IP address 172.16.58.156
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: remote IP address 172.16.58.19
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-up started (pid 29320)
Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-up finished (pid 29320), status = 0x0
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one.
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4)
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4)
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4)
Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet!
Oct 9 10:45:41 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Connection closed to 172.16.58.154, port 1701 (Timeout), Local: 18126, Remote: 32355
Oct 9 10:45:41 xxx-HP-Pro-3340-MT xl2tpd[16024]: Terminating pppd: sending TERM signal to pid 29290
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Hangup (SIGHUP)
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Terminating on signal 15
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Modem hangup
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Connect time 0.1 minutes.
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Sent 0 bytes, received 120 bytes.
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-down started (pid 29337)
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Connection terminated.
Oct 9 10:45:41 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp4, iface: ppp4)
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-down finished (pid 29337), status = 0x0
Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Exit.
Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0)
Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?