#iptables
3 one-liners with this tag.
All one-liners tagged iptables
Back up iptables rules to a file
#iptables-save > /root/iptables-$(date +%F-%H%M).rules
Block a single IP address immediately with iptables
#iptables -I INPUT -s 203.0.113.25 -j DROP
Restore iptables rules from a backup
#iptables-restore --test < /root/iptables-2026-10-09-1200.rules && iptables-restore < /root/iptables-2026-10-09-1200.rules