From e0fc5e22b284fcc2171c5140e055a64446f96dbc Mon Sep 17 00:00:00 2001 From: Linux User Date: Mon, 5 Jun 2023 13:09:32 +0000 Subject: [PATCH] -n was added --- firewall/firewall-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/firewall-add b/firewall/firewall-add index 6216256..6b68416 100755 --- a/firewall/firewall-add +++ b/firewall/firewall-add @@ -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;