1 2 3 4 5 6 7 8
#!/bin/bash $IPTABLES -N c1 || exit 0 $IPTABLES -N c2 || exit 0 $IPTABLES -E c1 c2 || exit 1 echo "E: Renamed with existing chain" >&2 exit 0