validating application names or IP addresses variables
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user