Recent notes

Related tags

  debian

about 1 month ago
See what rules are already configured
iptables -L
Edit iptables
/etc/iptables.test.rules
Activate these new rules
iptables-restore < /etc/iptables.test.rules
Check the diff 
iptables -L
Save the new rules to the master iptables file
iptables-save > /etc/iptables.up.rules

#debian #iptables


Syntax to block an IP address under Linux

iptables -A INPUT -s IP-ADDRESS -j DROP