Browse Source

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

+ 1
- 1
lib/iptables.inc View File

@@ -387,7 +387,7 @@ function enable_forwarding {
[[ ${dstaddress} != "-" ]] && dstaddress="-d ${dstaddress}"
[[ ${srcinterface} != "-" ]] && srcinterface="-i ${srcinterface}"
[[ ${dstinterface} != "-" ]] && dstinterface="-o ${dstinterface}"
([[ ${syn} == "syn" ]] && [[ ${protocol} == "udp" ]] && [[ -z ${conntrack_state} ]]) && conntrack_udp_new=",NEW" && syn="-"
([[ ${syn} == "syn" ]] && [[ ${protocol} == "udp" ]] && [[ ! -z ${conntrack_state} ]]) && conntrack_udp_new=",NEW" && syn="-"
[[ ${syn} == "syn" ]] && syn="--syn"
[[ ${syn} == "notsyn" ]] && syn="! --syn"
[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"


Loading…
Cancel
Save