Sunday, May 29, 2011

iptables , remove all DROP rules

iptables -L -n | grep DROP  | awk '{print "iptables -D INPUT -s ",$4,"-j DROP"}' | sh

# There may be a way to flush all rules without specifying all ip addresses
# ie delete all DROP rules from the input chain.

Followers

About Me

Torrance, CA, United States