From 0641ee0458ddabaf079e2086ef36425126395bad Mon Sep 17 00:00:00 2001 From: gyurix Date: Mon, 28 Feb 2022 05:43:14 +0000 Subject: [PATCH] Preparing iptables for /24 subnet if the ip variables have zero value at the last octet. --- firewall/firewall-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/firewall-add b/firewall/firewall-add index 743b4f1..6ee9844 100755 --- a/firewall/firewall-add +++ b/firewall/firewall-add @@ -180,7 +180,7 @@ else fi debug "$IPTABLES -I $CHAIN -p $PROTOCOL -s $SOURCE_IP --sport $SOURCE_PORT -d $TARGET_IP --dport $TARGET_PORT -m comment --comment "$COMMENT" -j ACCEPT" - $IPTABLES -I $CHAIN -p $PROTOCOL -s $SOURCE_IP --sport $SOURCE_PORT -d $TARGET_IP --dport $TARGET_PORT -m comment --comment "$COMMENT" -j ACCEPT + $IPTABLES -I $CHAIN -p $PROTOCOL -s $SOURCE_IP -d $TARGET_IP --dport $TARGET_PORT -m comment --comment "$COMMENT" -j ACCEPT ############################# fi