Step 1 β Preset
Pick a safe starting point. You can still add more ports.
Step 2 β Quick Settings
Step 3 β Generate
Use a console you wonβt lose (provider serial/KVM). Save on Debian/Ubuntu: apt install iptables-persistent && netfilter-persistent save
Plain-English Summary
- Default-deny inbound β nobody gets in unless you say so.
- Loopback + sanity β required system traffic is allowed; invalid stuff is dropped.
- Keep good flows β approved connections continue to work.
- Open what you need β web (80/443), VPN (1194/udp), SSH, plus extras.
- Optional shields β throttle SSH brute-force, rate-limit ping, log blocked packets (lightly).