48 notes

Related tags


over 1 year ago
See what rules are already configured
iptables -L
Edit iptables
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