master
parent
76297541d8
commit
2816e15893
|
@ -380,7 +380,7 @@ function enable_forwarding {
|
|||
[[ ${srcport} != "-" ]] && srcport="--sport ${srcport}"
|
||||
([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]] && [[ ${srcport} != "" ]]) && revsrcport="--dport ${srcport}"
|
||||
([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]] && [[ ${dstport} != "" ]]) && revdstport="--sport ${dstport}"
|
||||
([[ ${protocol} != "-" ]] && [[ ${protocol} != ""]]) && protocol="-p ${protocol}"
|
||||
([[ ${protocol} != "-" ]] && [[ ${protocol} != "" ]]) && protocol="-p ${protocol}"
|
||||
|
||||
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${action} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${bidirectional} ${src-port} ${dst-port} ${protocol} ${syn}"
|
||||
|
||||
|
@ -389,8 +389,8 @@ function enable_forwarding {
|
|||
[[ ${dstinterface} == "-" ]] && dstinterface=""
|
||||
[[ ${dstaddress} == "-" ]] && dstaddress=""
|
||||
[[ ${srcaddress} == "-" ]] && srcaddress=""
|
||||
([[ ${dstport} == "-" ]] && [[ ${dstport} != ""]]) && dstport=""
|
||||
([[ ${srcport} == "-" ]] && [[ ${srcport} != ""]]) && srcport=""
|
||||
([[ ${dstport} == "-" ]] && [[ ${dstport} != "" ]]) && dstport=""
|
||||
([[ ${srcport} == "-" ]] && [[ ${srcport} != "" ]]) && srcport=""
|
||||
[[ ${syn} == "-" ]] && syn=""
|
||||
[[ ${bidirectional} == "-" ]] && bidirectional="no"
|
||||
|
||||
|
|
Loading…
Reference in New Issue