master
parent
dac8ba9f59
commit
8f13bf44f4
|
@ -387,7 +387,8 @@ 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" ]] && [[ ! -z ${conntrack_state} ]]) && conntrack_udp_new=",NEW"
|
||||
([[ ${syn} == "syn" ]] && [[ ${protocol} == "udp" ]]) && syn="-"
|
||||
[[ ${syn} == "syn" ]] && syn="--syn"
|
||||
[[ ${syn} == "notsyn" ]] && syn="! --syn"
|
||||
[[ ${dstport} != "-" ]] && dstport="--dport ${dstport}"
|
||||
|
|
Loading…
Reference in New Issue