Only install `divert natd' rule for predefined firewall types,
not when ${firewall_type} is set to a filename, as we know nothing about user's script specifics. Reported by: Bernhard Valenti <bernhard.valenti@gmx.net>
This commit is contained in:
parent
b9b68e50dc
commit
890fc9495b
@ -76,9 +76,7 @@ ${fwcmd} -f flush
|
||||
# different place to not interfere with address-checking rules.
|
||||
#
|
||||
case ${firewall_type} in
|
||||
[Ss][Ii][Mm][Pp][Ll][Ee])
|
||||
;;
|
||||
*)
|
||||
[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
|
||||
case ${natd_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -n "${natd_interface}" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user