#!/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