bbruns 2014-04-12 19:10:47 +00:00
родитель 76297541d8
Коммит 2816e15893
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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"