「xl2tpd」- network thread select timeout @20210215

在xl2tpd的日志中,有这么个错误:

	Mar 11 18:07:25 laptop xl2tpd[24486]: network_thread: select timeout with max retries: 32 for tunnel: 64115

错误的意思就是“在最大32次重试之后,隧道64115的选择超时”(已经非常直译了……)。

其中max retries: 32这个是配置文件中指定的,可不太可能是错误的原因。

让我们先了解以下L2TP的流程:「Layer 2 Tunneling Protocol

抓包命令:

################################################################################
# 在LNS中执行的抓包命令
################################################################################
tcpdump -r xl2tpd.lns.pcap -n -i any -X -vvv 'port 1701'

################################################################################
# 在LAC中执行的抓包命令
################################################################################
xl2tpd-control disconnect k4nz

tcpdump -w xl2tpd.lac.pcap -n -i any -X -vvv 'port 1701'

xl2tpd-control connect k4nz

tcpdump -r xl2tpd.lac.pcap -n -i any -X -vvv 'port 1701'

参考文献

[SOLVED]Connecting to L2TP/IPSec VPN problem: pppd seems not starting
xl2tp + strongswan ipsec — xl2tp timeout


posted @ 2021-02-15 18:24  研究林纳斯写的  阅读(211)  评论(0编辑  收藏  举报