Updating port forwarding code
parent
4b7a383be0
commit
1353b04c82
|
@ -502,7 +502,7 @@ if [ "$PORTFW" ] && [ "$NAT" ]; then
|
||||||
if [ "$SRCIP" ]; then
|
if [ "$SRCIP" ]; then
|
||||||
SRCIP="-s ${SRCIP}"
|
SRCIP="-s ${SRCIP}"
|
||||||
fi
|
fi
|
||||||
//PORTADD=( ${i//:/ } )
|
#PORTADD=( ${i//:/ } )
|
||||||
$IPTABLES -A PREROUTING -t nat ${DSTIF} -p ${DSTPROTO} ${SRCIP} \
|
$IPTABLES -A PREROUTING -t nat ${DSTIF} -p ${DSTPROTO} ${SRCIP} \
|
||||||
--dport ${DSTPORT} -d ${DSTIP} -j DNAT --to \
|
--dport ${DSTPORT} -d ${DSTIP} -j DNAT --to \
|
||||||
${DSTINTIP}:${DSTINTPORT}
|
${DSTINTIP}:${DSTINTPORT}
|
||||||
|
|
Loading…
Reference in New Issue