diff --git a/firewall/firewall-add b/firewall/firewall-add index 3148585..17e17bd 100755 --- a/firewall/firewall-add +++ b/firewall/firewall-add @@ -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