This commit is contained in:
Denys Fedoryshchenko
2023-05-14 15:20:49 +03:00
parent 503772d0ef
commit 2a1c97b38d

View File

@@ -61,6 +61,14 @@ cpubalancerd --rebalance
### How PPPoE session is established ### 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: 1. Client sends PADI packet to server, for example:
``` ```
tcpdump -ni bond0.2529 -vvv -e pppoed 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] 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".<br>
*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 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) encoded length 19 (=Option(s) length 15)
0x0000: c021 016b 0013 0x0000: c021 016b 0013