validating application names or IP addresses variables

This commit is contained in:
2022-09-12 13:00:57 +00:00
parent a326c2646b
commit ae1c4d255d

View File

@@ -322,10 +322,13 @@ else
if [ "$TARGET_PORT" != "" ]; then
IPTABLES_OPTIONS=$IPTABLES_OPTIONS" --dport $TARGET_PORT";
fi
if [[ "$SOURCE_IP" != "" && "$TARGET_IP" != "" ]]; then
debug "$IPTABLES -I $CHAIN -p $PROTOCOL $IPTABLES_OPTIONS -m comment --comment "$COMMENT" -j ACCEPT"
$IPTABLES -I $CHAIN -p $PROTOCOL $IPTABLES_OPTIONS -m comment --comment "$COMMENT" -j ACCEPT
fi
#############################
fi