fix: universal default protected port range (was Minecraft 25565-25570)
Verified on real kernel 5.15.0-186 (VDS, netns+veth, generic XDP): - verifier accepts program, all maps created (BTF ok) - legit TCP passes end-to-end; conntrack entry cleaned on close - stats counters increment correctly; prefix_stats /24 key populated - LPM blacklist ban blocks traffic with retransmit drops
This commit is contained in:
parent
aa787a558c
commit
8b35ac693c
1 changed files with 5 additions and 2 deletions
|
|
@ -6,8 +6,11 @@
|
|||
// after loader writes to .rodata section
|
||||
|
||||
// ── Port range ──
|
||||
static volatile const __u16 G_START_PORT = 25565;
|
||||
static volatile const __u16 G_END_PORT = 25570;
|
||||
// Protected port range: packets to ports OUTSIDE this range bypass the
|
||||
// filter (XDP_PASS before any counting/filtering). Default protects all
|
||||
// TCP/UDP ports; narrow it via loader patching for dedicated-edge setups.
|
||||
static volatile const __u16 G_START_PORT = 1;
|
||||
static volatile const __u16 G_END_PORT = 65535;
|
||||
|
||||
// ── SYN throttle ──
|
||||
static volatile const __u32 G_SYN_HIT_COUNT = 10; // max SYNs / window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue