README.md aktualisiert

This commit is contained in:
Tizian Maxime Weigt 2025-05-29 23:53:55 +00:00
parent 6866d54747
commit 5300f22b31

View File

@ -1,6 +1,6 @@
# TCP lengths and flags
| Flag Combination | Flags Set (Hex) | Purpose | IP+TCP Payload Size | Ethernet Frame Size (what XDP will see) | XDP Filtering Logic |
| Flag Combination | Flags Set (Hex) | Purpose | IP+TCP Payload Size | Ethernet Frame Size | XDP Filtering Logic |
|------------------|-----------------|---------|---------------------|---------------------|---------------------|
| SYN | 0x02 | Initiates connection | 4059 bytes | 6477 bytes | Rate limit SYN packets per source IP to prevent floods. Drop if rate exceeds threshold. SynProxy |
| SYN-ACK | 0x12 | Acknowledges SYN | 4059 bytes | 6477 bytes | Validate against recent SYN requests using eBPF maps. Drop if no matching SYN. |
@ -13,4 +13,18 @@
| SYN-FIN | 0x03 | Invalid combination | 40 bytes | 64 bytes | Drop immediately as invalid. |
| URG-ACK | 0x30 | Urgent data (rare) | 40 bytes | 64 bytes | Allow if rare, but monitor for anomalies. |
| ACK-PSH-URG | 0x38 | Data with urgent flag | 401500 bytes | 641518 bytes | Allow for specific use cases, but rate limit to prevent abuse. |
| SYN-RST | 0x06 | Invalid combination | 40 bytes | 64 bytes | Drop immediately as invalid. |
| SYN-RST | 0x06 | Invalid combination | 40 bytes | 64 bytes | Drop immediately as invalid. |
# TCP 3-Way Handshake
```sequenceDiagram
participant Client
participant Server
Client->>Server: SYN
Note right of Server: Server receives SYN
Server-->>Client: SYN-ACK
Note left of Client: Client receives SYN-ACK
Client->>Server: ACK
Note right of Server: Connection established
```