From 2a1c97b38dd041420e895fb2ef647b37952d6f18 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Sun, 14 May 2023 15:20:49 +0300 Subject: [PATCH] Add docs --- PPPOE_management.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PPPOE_management.md b/PPPOE_management.md index c49c17f..cb974b6 100644 --- a/PPPOE_management.md +++ b/PPPOE_management.md @@ -61,6 +61,14 @@ cpubalancerd --rebalance ### How PPPoE session is established +0. Preliminary: you can find out MAC of server using ifconfig INTERFACENAME, for example: +``` +~ # ifconfig bond0.2529 +bond0.2529 Link encap:Ethernet HWaddr 90:E2:BA:AE:XX:XX + inet addr: +``` +Where HWaddr is MAC of server. + 1. Client sends PADI packet to server, for example: ``` tcpdump -ni bond0.2529 -vvv -e pppoed @@ -88,8 +96,10 @@ Client sends PADR packet with Host-Uniq and AC-Cookie that he received in PADO p 21:35:47.143936 90:e2:ba:ae:XX:XX (oui Unknown) > 6c:3b:6b:81:XX:XX (oui Unknown), ethertype PPPoE D (0x8863), length 52: PPPoE PADS [ses 0x8a48] [AC-Name "united"] [Service-Name "pr"] [Host-Uniq 0x500FF5C517B8000005020600] ``` -5. PPPoE session is established, and client can send PPP packets to server. It is more complicated, so i will post whole handshake here of user "VeryGoodUsername": +5. PPPoE session is established, and client can send PPP packets to server. It is more complicated, so i will post whole handshake here of user "VeryGoodUsername".
+*Note: i removed pppoed filter, if you want to see LCP and PPP packets - you need to remove it.* ``` +tcpdump -ni bond0.2529 -vvv -e ether host 6c:3b:6b:81:XX:XX 21:42:26.848209 90:e2:ba:ae:XX:XX (oui Unknown) > 6c:3b:6b:81:xx:xx (oui Unknown), ethertype PPPoE S (0x8864), length 41: PPPoE [ses 0x1807] LCP (0xc021), length 21: LCP, Conf-Request (0x01), id 107, length 21 encoded length 19 (=Option(s) length 15) 0x0000: c021 016b 0013