bbruns@gmail.com 2014-03-29 18:02:46 +00:00
parent 43576ec3f9
commit e83dd7713d
1 changed files with 2 additions and 2 deletions

View File

@ -105,10 +105,10 @@ function setup_iptables_chains {
${VER_IPTABLES} -A FORWARD -j ${FwdFilter}
if [ -x ${FWCONFIGDIR}/ipv${IPVER}/custom/nat.sh ]; then . ${FWCONFIGDIR}/ipv${IPVER}/custom/nat.sh; fi
${display} GREEN "Setting up NAT"
${VER_IPTABLES} -A POSTROUTING -j ${NAT}
${VER_IPTABLES} -A POSTROUTING -t nat -j ${NAT}
if [ -x ${FWCONFIGDIR}/ipv${IPVER}/custom/portfw.sh ]; then . ${FWCONFIGDIR}/ipv${IPVER}/custom/portfw.sh; fi
${display} GREEN "Setting up PortForward"
${VER_IPTABLES} -A PREROUTING -j ${PortForward}
${VER_IPTABLES} -A PREROUTING -t nat -j ${PortForward}
if [ -x ${FWCONFIGDIR}/ipv${IPVER}/custom/postrun.sh ]; then . ${FWCONFIGDIR}/ipv${IPVER}/custom/postrun.sh; fi
${display} GREEN "Setting up InPostRules"
${VER_IPTABLES} -A INPUT -j ${InPostRules}