-n was added

This commit is contained in:
2023-06-05 13:09:32 +00:00
parent 92f34fb9e2
commit e0fc5e22b2

View File

@@ -420,7 +420,7 @@ else
############################
# Host firewall settings ###
if $IPTABLES -w --list $CHAIN |grep ESTABLISHED |grep RELATED|grep ACCEPT ; then
if $IPTABLES -w -n --list $CHAIN |grep ESTABLISHED |grep RELATED|grep ACCEPT ; then
echo "nothing to do";
else
$IPTABLES -w -I $CHAIN -m state --state established,related -j ACCEPT;