Browse Source

tags/v2.01a1
bbruns 7 years ago
parent
commit
e80ab69b82
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/iptables.inc

+ 1
- 0
lib/iptables.inc View File

@@ -410,6 +410,7 @@ function enable_forwarding {
${VER_IPTABLES} -A ${FwdFilter} ${protocol} ${srcinterface} ${srcaddress} ${srcport} ${syn} ${dstinterface} ${dstaddress} ${dstport} ${conntrack_state} -j ${action}
[[ ${bidirectional} == "yes" ]] && ${VER_IPTABLES} -A ${FwdFilter} ${protocol} ${revsrcinterface} ${revsrcaddress} ${revsrcport} ${syn} ${revdstinterface} ${revdstaddress} ${revdstport} ${conntrack_state} -j ${action}
done < "${FWCONFIGDIR}/ipv${IPVER}/forward.conf"
unset action srcinterface srcaddress dstinterface dstaddress bidirectional srcport dstport protocol syn
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"
fi
}


Loading…
Cancel
Save