feat(xdp): IPv6 parity — blacklist6_map, v6 bans, v6 prefix stats
- C: lpm_key6 + blacklist6_map (LPM_TRIE, 20-byte key); native IPv6 no longer returns XDP_PASS before filtering: same L4/port gates, then blacklist6, UDP drop-policy, TCP flag checks and /64 prefix stats. - Rust: blacklist6_key/blacklist6_update; ban_cidr handles V4 and V6; gateway xdp_ban uses ban_cidr (/32 or /128); dead ban_ip removed. - tests/xdp_ban_v6.rs (key layout) and scripts/xdp_ipv6_smoke.sh (real kernel: pass -> ban drops -> unban passes). - TODO: record done items and two findings (userspace ban expiry clock mismatch; short-L4 bypass of blacklist).
This commit is contained in:
parent
cacd01c657
commit
59d5a088b2
11 changed files with 309 additions and 36 deletions
|
|
@ -19,6 +19,8 @@ mod filter;
|
|||
#[cfg(feature = "xdp")]
|
||||
pub use filter::XdpFilter;
|
||||
#[cfg(feature = "xdp")]
|
||||
pub use filter::blacklist6_key;
|
||||
#[cfg(feature = "xdp")]
|
||||
pub use filter::events::{
|
||||
AutoBanConfig, BanAction, XDP_EVENT_LEN, XdpEvent, XdpEventKind, auto_ban_decision, parse_xdp_event,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue