Updating port forwarding code

master
bbruns 2010-12-18 19:21:15 +00:00
parent 4b7a383be0
commit 1353b04c82
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ if [ "$PORTFW" ] && [ "$NAT" ]; then
if [ "$SRCIP" ]; then
SRCIP="-s ${SRCIP}"
fi
//PORTADD=( ${i//:/ } )
#PORTADD=( ${i//:/ } )
$IPTABLES -A PREROUTING -t nat ${DSTIF} -p ${DSTPROTO} ${SRCIP} \
--dport ${DSTPORT} -d ${DSTIP} -j DNAT --to \
${DSTINTIP}:${DSTINTPORT}