master
parent
ac5b93188c
commit
ebd37bd763
|
@ -540,7 +540,7 @@ function enable_portfw {
|
||||||
# Do some creative work with variables to make building the iptables rules fairly painless
|
# Do some creative work with variables to make building the iptables rules fairly painless
|
||||||
[[ ${service} != "-" ]] && service="--dport ${service}"
|
[[ ${service} != "-" ]] && service="--dport ${service}"
|
||||||
[[ ${protocol} != "-" ]] && protocol="-p ${protocol}"
|
[[ ${protocol} != "-" ]] && protocol="-p ${protocol}"
|
||||||
[[ ${intip} != "-" ]] && intdest="--to ${intip}:${intport}"
|
[[ ${intip} != "-" ]] && intdest="--to-destination ${intip}:${intport}"
|
||||||
([[ ${interface} != "-" ]] && [[ ${interface} != "" ]]) && interface="-i ${interface}"
|
([[ ${interface} != "-" ]] && [[ ${interface} != "" ]]) && interface="-i ${interface}"
|
||||||
([[ ${address} != "-" ]] && [[ ${address} != "" ]]) && address="-d ${address}"
|
([[ ${address} != "-" ]] && [[ ${address} != "" ]]) && address="-d ${address}"
|
||||||
([[ ${srcaddress} != "-" ]] && [[ ${srcaddress} != "" ]]) && srcaddress="-s ${srcaddress}"
|
([[ ${srcaddress} != "-" ]] && [[ ${srcaddress} != "" ]]) && srcaddress="-s ${srcaddress}"
|
||||||
|
|
Loading…
Reference in New Issue