Skip to content

Instantly share code, notes, and snippets.

@cjac
Created June 4, 2018 21:02
Show Gist options
  • Save cjac/24eb6eaa27266687175c5f50a915462b to your computer and use it in GitHub Desktop.
Save cjac/24eb6eaa27266687175c5f50a915462b to your computer and use it in GitHub Desktop.
root@build0:~# xl2tpd -D
xl2tpd[27623]: setsockopt recvref[30]: Protocol not available
xl2tpd[27623]: Using l2tp kernel support.
xl2tpd[27623]: xl2tpd version xl2tpd-1.3.8 started on build0 PID:27623
xl2tpd[27623]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[27623]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[27623]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[27623]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
xl2tpd[27623]: Listening on IP address 0.0.0.0, port 1701
^Cxl2tpd[27623]: network_thread: select returned error 4 (Interrupted system call)
xl2tpd[27623]: death_handler: Fatal signal 2 received
root@build0:~# xl2tpd -D
xl2tpd[27625]: setsockopt recvref[30]: Protocol not available
xl2tpd[27625]: Using l2tp kernel support.
xl2tpd[27625]: xl2tpd version xl2tpd-1.3.8 started on build0 PID:27625
xl2tpd[27625]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[27625]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[27625]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[27625]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
xl2tpd[27625]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[27625]: get_call: allocating new tunnel for host 207.224.225.34, port 1701.
xl2tpd[27625]: Connecting to host 207.224.225.34, port 1701
xl2tpd[27625]: control_finish: message type is (null)(0). Tunnel is 0, call is 0.
packet dump:
HEX: { C8 02 00 67 00 00 00 00 00 00 00 00 80 08 00 00 00 00 00 01 80 08 00 00 00 02 01 00 80 0A 00 00 00 03 00 00 00 03 80 0A 00 00 00 04 00 00 00 00 00 08 00 00 00 06 06 90 80 0C 00 00 00 07 62 75 69 6C 64 30 00 13 00 00 00 08 78 65 6C 65 72 61 6E 63 65 2E 63 6F 6D 80 08 00 00 00 09 B0 15 80 08 00 00 00 0A 00 04 }
ASCII: { g build0 xelerance.com }
xl2tpd[27625]: control_finish: sending SCCRQ
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 85, tunnel = 45077, call = 0 ref=0 refhim=0
packet dump:
HEX: { 02 C8 55 00 15 B0 00 00 00 00 01 00 80 08 00 00 00 00 00 02 80 08 00 00 00 02 01 00 80 0A 00 00 00 03 00 00 00 03 80 1F 00 00 00 07 63 61 73 70 65 72 2E 73 68 69 66 74 62 6F 61 72 64 69 6E 63 2E 63 6F 6D 00 80 08 00 00 00 09 01 D8 80 08 00 00 00 0A 00 04 }
ASCII: { U casper.shiftboardinc.com }
xl2tpd[27625]: message_type_avp: message type 2 (Start-Control-Connection-Reply)
xl2tpd[27625]: protocol_version_avp: peer is using version 1, revision 0.
xl2tpd[27625]: framing_caps_avp: supported peer frames: async sync
xl2tpd[27625]: hostname_avp: peer reports hostname 'casper.shiftboardinc.com'
xl2tpd[27625]: assigned_tunnel_avp: using peer's tunnel 472
xl2tpd[27625]: receive_window_size_avp: peer wants RWS of 4. Will use flow control.
xl2tpd[27625]: control_finish: message type is Start-Control-Connection-Reply(2). Tunnel is 472, call is 0.
packet dump:
HEX: { C8 02 00 14 01 D8 00 00 00 01 00 01 80 08 00 00 00 00 00 03 }
ASCII: { }
xl2tpd[27625]: control_finish: sending SCCCN
xl2tpd[27625]: Connection established to 207.224.225.34, 1701. Local: 45077, Remote: 472 (ref=0/0).
xl2tpd[27625]: Calling on tunnel 45077
xl2tpd[27625]: control_finish: message type is (null)(0). Tunnel is 472, call is 0.
packet dump:
HEX: { C8 02 00 30 01 D8 00 00 00 02 00 01 80 08 00 00 00 00 00 0A 80 08 00 00 00 0E 24 C6 80 0A 00 00 00 0F 00 00 00 01 80 0A 00 00 00 12 00 00 00 00 }
ASCII: { 0 $ }
xl2tpd[27625]: control_finish: sending ICRQ
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 28, tunnel = 45077, call = 9414 ref=0 refhim=0
packet dump:
HEX: { 02 C8 1C 00 15 B0 C6 24 01 00 03 00 80 08 00 00 00 00 00 0B 80 08 00 00 00 0E 4D 6B }
ASCII: { $ Mk}
xl2tpd[27625]: message_type_avp: message type 11 (Incoming-Call-Reply)
xl2tpd[27625]: assigned_call_avp: using peer's call 19819
xl2tpd[27625]: control_finish: message type is Incoming-Call-Reply(11). Tunnel is 472, call is 19819.
packet dump:
HEX: { C8 02 00 32 01 D8 4D 6B 00 03 00 02 80 08 00 00 00 00 00 0C 80 0A 00 00 00 18 00 00 00 00 80 0A 00 00 00 13 00 00 00 01 00 0A 00 00 00 26 00 00 00 00 }
ASCII: { 2 Mk & }
xl2tpd[27625]: control_finish: Sending ICCN
xl2tpd[27625]: Call established with 207.224.225.34, Local: 9414, Remote: 19819, Serial: 1 (ref=0/0)
xl2tpd[27625]: start_pppd: I'm running:
xl2tpd[27625]: "/usr/sbin/pppd"
xl2tpd[27625]: "plugin"
xl2tpd[27625]: "pppol2tp.so"
xl2tpd[27625]: "pppol2tp"
xl2tpd[27625]: "7"
xl2tpd[27625]: "passive"
xl2tpd[27625]: "nodetach"
xl2tpd[27625]: ":"
xl2tpd[27625]: "debug"
xl2tpd[27625]: "file"
xl2tpd[27625]: "/etc/ppp/options.l2tpd.client"
xl2tpd[27625]: network_thread: select returned error 4 (Interrupted system call)
xl2tpd[27625]: child_handler : pppd terminated for call 19819 by signal 11
packet dump:
HEX: { C8 02 00 26 01 D8 4D 6B 00 04 00 02 80 08 00 00 00 00 00 0E 80 0A 00 00 00 01 00 01 00 00 80 08 00 00 00 0E 24 C6 }
ASCII: { & Mk $ }
xl2tpd[27625]: call_close: Call 9414 to 207.224.225.34 disconnected
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 37, tunnel = 45077, call = 9414 ref=0 refhim=0
packet dump:
HEX: { 02 40 25 00 15 B0 C6 24 FF 03 C0 21 01 01 00 19 02 06 00 00 00 00 03 05 C2 23 81 05 06 40 A5 68 9D 07 02 08 02 }
ASCII: { @% $ ! # @ h }
xl2tpd[27625]: write_packet: tty is not open yet.
xl2tpd[27625]: network_thread: bad packet
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 42, tunnel = 45077, call = 9414 ref=0 refhim=0
packet dump:
HEX: { 02 C8 2A 00 15 B0 C6 24 02 00 05 00 80 08 00 00 00 00 00 0E 80 08 00 00 00 0E 4D 6B 80 0E 00 00 00 01 03 00 24 C6 00 01 00 0A }
ASCII: { * $ Mk $ }
xl2tpd[27625]: message_type_avp: message type 14 (Call-Disconnect-Notify)
xl2tpd[27625]: assigned_call_avp: using peer's call 19819
xl2tpd[27625]: result_code_avp: result code endianness fix for buggy Apple client. network=768, le=3
xl2tpd[27625]: result_code_avp: peer closing for reason 3 (Control channel already exists), error = 9414 ()
xl2tpd[27625]: control_finish: message type is Call-Disconnect-Notify(14). Tunnel is 472, call is 19819.
xl2tpd[27625]: control_finish: Connection closed to 207.224.225.34, serial 1 ()
xl2tpd[27625]: Terminating pppd: sending TERM signal to pid 27626
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 42, tunnel = 45077, call = 0 ref=0 refhim=0
packet dump:
HEX: { 02 C8 2A 00 15 B0 00 00 03 00 05 00 80 08 00 00 00 00 00 04 80 08 00 00 00 09 01 D8 80 0E 00 00 00 01 01 00 24 C6 00 01 00 0A }
ASCII: { * $ }
xl2tpd[27625]: message_type_avp: message type 4 (Stop-Control-Connection-Notification)
xl2tpd[27625]: assigned_tunnel_avp: using peer's tunnel 472
xl2tpd[27625]: result_code_avp: result code endianness fix for buggy Apple client. network=256, le=1
xl2tpd[27625]: result_code_avp: peer closing for reason 1 (General request to clear control connection), error = 9414 ()
xl2tpd[27625]: control_finish: message type is Stop-Control-Connection-Notification(4). Tunnel is 472, call is 0.
xl2tpd[27625]: control_finish: Connection closed to 207.224.225.34, port 1701 (), Local: 45077, Remote: 472
xl2tpd[27625]: build_fdset: closing down tunnel 45077
xl2tpd[27625]: network_thread: select returned error 9 (Bad file descriptor)
xl2tpd[27625]: network_thread: select timeout
xl2tpd[27625]: get_call: allocating new tunnel for host 207.224.225.34, port 1701.
xl2tpd[27625]: Connecting to host 207.224.225.34, port 1701
xl2tpd[27625]: control_finish: message type is (null)(0). Tunnel is 0, call is 0.
packet dump:
HEX: { C8 02 00 67 00 00 00 00 00 00 00 00 80 08 00 00 00 00 00 01 80 08 00 00 00 02 01 00 80 0A 00 00 00 03 00 00 00 03 80 0A 00 00 00 04 00 00 00 00 00 08 00 00 00 06 06 90 80 0C 00 00 00 07 62 75 69 6C 64 30 00 13 00 00 00 08 78 65 6C 65 72 61 6E 63 65 2E 63 6F 6D 80 08 00 00 00 09 20 45 80 08 00 00 00 0A 00 04 }
ASCII: { g build0 xelerance.com E }
xl2tpd[27625]: control_finish: sending SCCRQ
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 85, tunnel = 8261, call = 0 ref=0 refhim=0
packet dump:
HEX: { 02 C8 55 00 45 20 00 00 00 00 01 00 80 08 00 00 00 00 00 02 80 08 00 00 00 02 01 00 80 0A 00 00 00 03 00 00 00 03 80 1F 00 00 00 07 63 61 73 70 65 72 2E 73 68 69 66 74 62 6F 61 72 64 69 6E 63 2E 63 6F 6D 00 80 08 00 00 00 09 01 D9 80 08 00 00 00 0A 00 04 }
ASCII: { U E casper.shiftboardinc.com }
xl2tpd[27625]: message_type_avp: message type 2 (Start-Control-Connection-Reply)
xl2tpd[27625]: protocol_version_avp: peer is using version 1, revision 0.
xl2tpd[27625]: framing_caps_avp: supported peer frames: async sync
xl2tpd[27625]: hostname_avp: peer reports hostname 'casper.shiftboardinc.com'
xl2tpd[27625]: assigned_tunnel_avp: using peer's tunnel 473
xl2tpd[27625]: receive_window_size_avp: peer wants RWS of 4. Will use flow control.
xl2tpd[27625]: control_finish: message type is Start-Control-Connection-Reply(2). Tunnel is 473, call is 0.
packet dump:
HEX: { C8 02 00 14 01 D9 00 00 00 01 00 01 80 08 00 00 00 00 00 03 }
ASCII: { }
xl2tpd[27625]: control_finish: sending SCCCN
xl2tpd[27625]: Connection established to 207.224.225.34, 1701. Local: 8261, Remote: 473 (ref=0/0).
xl2tpd[27625]: Calling on tunnel 8261
xl2tpd[27625]: control_finish: message type is (null)(0). Tunnel is 473, call is 0.
packet dump:
HEX: { C8 02 00 30 01 D9 00 00 00 02 00 01 80 08 00 00 00 00 00 0A 80 08 00 00 00 0E 13 F1 80 0A 00 00 00 0F 00 00 00 02 80 0A 00 00 00 12 00 00 00 00 }
ASCII: { 0 }
xl2tpd[27625]: control_finish: sending ICRQ
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 28, tunnel = 8261, call = 5105 ref=0 refhim=0
packet dump:
HEX: { 02 C8 1C 00 45 20 F1 13 01 00 03 00 80 08 00 00 00 00 00 0B 80 08 00 00 00 0E 4D 70 }
ASCII: { E Mp}
xl2tpd[27625]: message_type_avp: message type 11 (Incoming-Call-Reply)
xl2tpd[27625]: assigned_call_avp: using peer's call 19824
xl2tpd[27625]: control_finish: message type is Incoming-Call-Reply(11). Tunnel is 473, call is 19824.
packet dump:
HEX: { C8 02 00 32 01 D9 4D 70 00 03 00 02 80 08 00 00 00 00 00 0C 80 0A 00 00 00 18 00 00 00 00 80 0A 00 00 00 13 00 00 00 01 00 0A 00 00 00 26 00 00 00 00 }
ASCII: { 2 Mp & }
xl2tpd[27625]: control_finish: Sending ICCN
xl2tpd[27625]: Call established with 207.224.225.34, Local: 5105, Remote: 19824, Serial: 2 (ref=0/0)
xl2tpd[27625]: start_pppd: I'm running:
xl2tpd[27625]: "/usr/sbin/pppd"
xl2tpd[27625]: "plugin"
xl2tpd[27625]: "pppol2tp.so"
xl2tpd[27625]: "pppol2tp"
xl2tpd[27625]: "7"
xl2tpd[27625]: "passive"
xl2tpd[27625]: "nodetach"
xl2tpd[27625]: ":"
xl2tpd[27625]: "debug"
xl2tpd[27625]: "file"
xl2tpd[27625]: "/etc/ppp/options.l2tpd.client"
xl2tpd[27625]: network_thread: select returned error 4 (Interrupted system call)
xl2tpd[27625]: child_handler : pppd terminated for call 19824 by signal 11
packet dump:
HEX: { C8 02 00 26 01 D9 4D 70 00 04 00 02 80 08 00 00 00 00 00 0E 80 0A 00 00 00 01 00 01 00 00 80 08 00 00 00 0E 13 F1 }
ASCII: { & Mp }
xl2tpd[27625]: call_close: Call 5105 to 207.224.225.34 disconnected
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 37, tunnel = 8261, call = 5105 ref=0 refhim=0
packet dump:
HEX: { 02 40 25 00 45 20 F1 13 FF 03 C0 21 01 01 00 19 02 06 00 00 00 00 03 05 C2 23 81 05 06 06 B9 29 00 07 02 08 02 }
ASCII: { @% E ! # ) }
xl2tpd[27625]: write_packet: tty is not open yet.
xl2tpd[27625]: network_thread: bad packet
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 42, tunnel = 8261, call = 5105 ref=0 refhim=0
packet dump:
HEX: { 02 C8 2A 00 45 20 F1 13 02 00 05 00 80 08 00 00 00 00 00 0E 80 08 00 00 00 0E 4D 70 80 0E 00 00 00 01 03 00 13 F1 00 01 00 0A }
ASCII: { * E Mp }
xl2tpd[27625]: message_type_avp: message type 14 (Call-Disconnect-Notify)
xl2tpd[27625]: assigned_call_avp: using peer's call 19824
xl2tpd[27625]: result_code_avp: result code endianness fix for buggy Apple client. network=768, le=3
xl2tpd[27625]: result_code_avp: peer closing for reason 3 (Control channel already exists), error = 5105 ()
xl2tpd[27625]: control_finish: message type is Call-Disconnect-Notify(14). Tunnel is 473, call is 19824.
xl2tpd[27625]: control_finish: Connection closed to 207.224.225.34, serial 2 ()
xl2tpd[27625]: Terminating pppd: sending TERM signal to pid 27627
xl2tpd[27625]: network_thread: recv packet from 207.224.225.34, size = 42, tunnel = 8261, call = 0 ref=0 refhim=0
packet dump:
HEX: { 02 C8 2A 00 45 20 00 00 03 00 05 00 80 08 00 00 00 00 00 04 80 08 00 00 00 09 01 D9 80 0E 00 00 00 01 01 00 13 F1 00 01 00 0A }
ASCII: { * E }
xl2tpd[27625]: message_type_avp: message type 4 (Stop-Control-Connection-Notification)
xl2tpd[27625]: assigned_tunnel_avp: using peer's tunnel 473
xl2tpd[27625]: result_code_avp: result code endianness fix for buggy Apple client. network=256, le=1
xl2tpd[27625]: result_code_avp: peer closing for reason 1 (General request to clear control connection), error = 5105 ()
xl2tpd[27625]: control_finish: message type is Stop-Control-Connection-Notification(4). Tunnel is 473, call is 0.
xl2tpd[27625]: control_finish: Connection closed to 207.224.225.34, port 1701 (), Local: 8261, Remote: 473
xl2tpd[27625]: build_fdset: closing down tunnel 8261
xl2tpd[27625]: network_thread: select returned error 9 (Bad file descriptor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment