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:
Ruslan Ermilov 2000-08-30 13:14:32 +00:00
parent b9b68e50dc
commit 890fc9495b

View File

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