Explanation: Deterministic Verdict Oracle
NSE's verdict oracle determines packet pass/drop outcomes deterministically from kernel nftables trace events.
How the Oracle Works
- Rule Tracing Enablement: NSE automatically prepends
_TRACE_INIT_RULESETto setmeta nftrace set 1on incoming traffic. - Readiness Probe (
wait_ready()):TraceHarvesterwaits for anasyncio.Eventreadiness signal confirmingnft monitor traceis active. - Sequential Packet Injection: Packets in a test request are injected sequentially.
- Kernel Event Matching:
nft monitor traceoutput is parsed into structuredTraceEventobjects. - Verdict Extraction: Verdicts (
ACCEPT,DROP,REJECT) are extracted directly from user ruleset matches and chain policy decisions without synthetic padding.