How phaedonv/netban works
netban is a manual Linux IPv4 subnet-ban tool. The principal workflow takes a network and optional duration or permanent flag, then installs a temporary or permanent ban in nftables; permanent bans are also recorded for restoration. Other documented operations list bans and drop counters, unban networks, restore permanent entries, and purge runtime bans. The README documents behavior but no source excerpts were provided, so the graph uses only documented relationships and does not infer internal call structure.
Main entry points: netban netban command
Components 10
Ban commands
- netban command
netban - Subnet normalization
netban - Ban actions
netban - List and counters
netban - Unban and purge
netban
Firewall state
- nftables rules
- Kernel ban sets
Persistence and restore
- Permanent list
- systemd service
Other components
- Operator
Connections 14
- Operator → netban command: runs command
README.md - netban command → Subnet normalization: masks host bits
README.md - netban command → Ban actions: dispatches ban
README.md - Ban actions → nftables rules: installs rules
README.md - nftables rules → Kernel ban sets: maintains sets
README.md - Ban actions → Permanent list: records permanent
README.md - Operator → List and counters: requests status
README.md - List and counters → Kernel ban sets: shows bans and drops
README.md - List and counters → Permanent list: shows saved bans
README.md - Operator → Unban and purge: requests removal
README.md - Unban and purge → nftables rules: removes runtime rules
README.md - systemd service → netban command: runs restore
README.md - netban command → Permanent list: reads for restore
README.md - netban command → nftables rules: reloads permanent bans
README.md