Check if IP is blocked in iptables

in Development


To see if iptables has a REJECT rule for a given IP address, list all the rules making sure to disable hostname resolution, and grepping the desired IP address:

iptables -L -v -n | grep "243.252."

The above will return matches for 243.252..

#debian #iptables #linux