1
0
Fork 0
bbruns 2014-04-06 18:45:49 +00:00
Ursprung ac5b93188c
Commit ebd37bd763
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

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