0

How do you get the thing to be quieter?

In my firewall sh script, I want to test whether or not a chain already exists -- to either create it or flush it.

# iptables -L THISISNOTACHAIN 2>&1 >/dev/null; echo $?
iptables: No chain/target/match by that name.
#
Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

0 Answers0