0

How do you get the thing to stfu?

(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.
#
Richard Barraclough
  • 405
  • 1
  • 5
  • 22

0 Answers0