create_set "${set_name}6" hash:net family inet6
# create or re-init chains
-if ! $IPTABLES -L "${chain}" >/dev/null
+if ! $IPTABLES -L "${chain}" >/dev/null 2>&1
then
echo "initializing chain '${chain}'"
$IPTABLES -N "${chain}" || $IPTABLES -F "${chain}"
$IPTABLES -v -L "${chain}"
fi
-if ! $IP6TABLES -L "${chain}" >/dev/null
+if ! $IP6TABLES -L "${chain}" >/dev/null 2>&1
then
echo "initializing chain '${chain}' ipv6"
$IP6TABLES -N "${chain}" || $IP6TABLES -F "${chain}"