Linux Firewall Generator (nftables, iptables)
A firewall configurator for a Linux server. Pick a backend (nftables or iptables), set the allowed services and enable the protections you need, and the tool will assemble a complete configuration: default drop policy, connection-state tracking, SSH with rate limiting, scan protection and logging. Everything is computed in your browser, nothing is sent. This is a tool for administrators, so read the rule descriptions and test before deploying. Related: Linux server administration.
Allowed services
SSH is configured separately below (with rate limiting). Here put the rest, e.g. 80, 443.
Default policy and state
Default-deny: block everything that is not explicitly allowed. The foundation of a secure firewall.
Stateful filtering: responses to established connections pass automatically, and invalid packets are dropped.
Essential for services that communicate locally. Without it, some applications will stop working.
The server can initiate connections (updates, DNS). Disable only for a very restrictive policy.
SSH
Limits the rate of new connections to the SSH port, making dictionary attacks harder.
ICMP (ping)
Permits ICMP echo for IPv4 and IPv6. Helpful for diagnostics.
Extra protection
Blocks packets with an invalid flag combination, used in port scans (e.g. NULL, XMAS).
Limits the number of new TCP connections per second, mitigating SYN flooding.
Logging
Adds a log rule before dropping. Entries go to the system log (dmesg/journald).


