iptables

All posts tagged iptables

Useful IPtables commands

Link

Link

 

iptables -A INPUT -s IP ADDRESS -j LOG –log-prefix “iptables:  ”

iptables -A INPUT -s IP ADDRESS -j DROP

iptables -i eth1 -A INPUT -s 10.0.0.0/8 -j LOG –log-prefix “iptables:”

/sbin/iptables -I INPUT -s {IP-HERE} -j DROP
/sbin/iptables -I INPUT -s 1.2.3.4 -j DROP

How Do I Delete Blocked IP Address?
iptables -L INPUT -n –line-numbers
iptables -D INPUT 3

Continue Reading