Fixes for multiport
parent
24cfc7c9a2
commit
d8e40e38f5
|
@ -273,7 +273,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}"
|
echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}"
|
||||||
${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT"
|
${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT
|
||||||
unset PORTS
|
unset PORTS
|
||||||
PORTS_COUNT_CURR=$y
|
PORTS_COUNT_CURR=$y
|
||||||
done
|
done
|
||||||
|
@ -576,7 +576,7 @@ if [ $IPV6 ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}"
|
echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}"
|
||||||
${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT"
|
$IPTABLES -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT
|
||||||
unset PORTS
|
unset PORTS
|
||||||
PORTS_COUNT_CURR=$y
|
PORTS_COUNT_CURR=$y
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue