「L2TP」- 数据包分析(xl2tpd)

  CREATED BY JENKINSBOT

使用tcpdump抓包:tcpdump -n -i any port 1701

Mar 12 23:10:42 laptop xl2tpd[15317]: ====== xl2tpd statistics ========
Mar 12 23:10:42 laptop xl2tpd[15317]:  Scheduler entries:
Mar 12 23:10:42 laptop xl2tpd[15317]: 1: HELLO to 15604
Mar 12 23:10:42 laptop xl2tpd[15317]: Total Events scheduled: 1
Mar 12 23:10:42 laptop xl2tpd[15317]: Number of tunnels open: 1
Mar 12 23:10:42 laptop xl2tpd[15317]: Tunnel k4nz, ID = 21524 (local), 15604 (remote) to 115.159.122.157:1701, control_seq_num = 14, control_rec_seq_num = 12, cLr = 14, call count = 1 ref=0/refhim=0
Mar 12 23:10:42 laptop xl2tpd[15317]: Call k4nz # 1, ID = 52226 (local), 21072 (remote), serno = 1, data_seq_num = 0, data_rec_seq_num = 0, pLr = -1, tx = 0 bytes (0), rx= 0 bytes (0)
Mar 12 23:10:42 laptop xl2tpd[15317]: ==========Config File===========
Mar 12 23:10:42 laptop xl2tpd[15317]: LAC entry lychuxing, LNS is/are:
Mar 12 23:10:42 laptop xl2tpd[15317]:  60.205.179.242
Mar 12 23:10:42 laptop xl2tpd[15317]: LAC entry k4nz, LNS is/are:
Mar 12 23:10:42 laptop xl2tpd[15317]:  k4nz.com
Mar 12 23:10:42 laptop xl2tpd[15317]: LAC entry dfwsgroup, LNS is/are:
Mar 12 23:10:42 laptop xl2tpd[15317]:  202.101.161.211
Mar 12 23:10:42 laptop xl2tpd[15317]: ================================
Mar 12 23:11:19 laptop xl2tpd[15317]: network_thread: recv packet from 115.159.122.157, size = 20, tunnel = 21524, call = 0 ref=0 refhim=0
Mar 12 23:11:19 laptop xl2tpd[15317]: message_type_avp: message type 6 (Hello)
Mar 12 23:11:19 laptop xl2tpd[15317]: control_finish: message type is Hello(6).  Tunnel is 15604, call is 0.
Mar 12 23:11:19 laptop xl2tpd[15317]: network_thread: recv packet from 115.159.122.157, size = 12, tunnel = 21524, call = 0 ref=0 refhim=0
Mar 12 23:11:20 laptop xl2tpd[15317]: network_thread: select timeout with max retries: 5 for tunnel: 21524

参考文献

Wikipedia/Layer 2 Tunneling Protocol