iptables block everybody, but me

Sometimes this is very useful, if you want restore system stability.

iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT ! -s my_ip_address -j DROP

Leave a Reply

Your email address will not be published. Required fields are marked *