From d003cffe573eb68ca3a82de35605e75f84023636 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 6 Sep 2010 08:46:59 +0200 Subject: [PATCH] Remove SIP und SMAC if SNET is set to all, this avoids some false rules. --- html/cgi-bin/outgoingfw.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/html/cgi-bin/outgoingfw.cgi b/html/cgi-bin/outgoingfw.cgi index 07fcb39cbb..27a8927e6c 100644 --- a/html/cgi-bin/outgoingfw.cgi +++ b/html/cgi-bin/outgoingfw.cgi @@ -310,6 +310,11 @@ if ($outfwsettings{'ACTION'} eq $Lang::tr{'delete'}) if ($outfwsettings{'ACTION'} eq $Lang::tr{'add'}) { if ( $outfwsettings{'VALID'} eq 'yes' ) { + + if ( $outfwsettings{'SNET'} eq "all" ) { + $outfwsettings{'SIP'} =""; + $outfwsettings{'SMAC'}=""; + } open( FILE, ">> $configfile" ) or die "Unable to write $configfile"; print FILE <