Browse Source

tags/v2.01a1
bbruns@gmail.com 7 years ago
parent
commit
4110f50003
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/iptables.inc

+ 1
- 1
lib/iptables.inc View File

@@ -363,7 +363,7 @@ function enable_nat {
[[ ${dstaddress} == "-" ]] && dstaddress=""
[[ ${srcaddress} == "-" ]] && srcaddress=""
${VER_IPTABLES} -A ${NAT} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${action}
${VER_IPTABLES} -A ${NAT} -t nat ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${action}
${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT
done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf"
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"


Loading…
Cancel
Save