From: Christian Schmidt Date: Mon, 6 Sep 2010 06:46:59 +0000 (+0200) Subject: Remove SIP und SMAC if SNET is set to all, this avoids some false rules. X-Git-Tag: v2.9-beta1~99^2~1 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=7e5a976c9de73e5af2a29ec6bfae5d084f511fcd;ds=sidebyside Remove SIP und SMAC if SNET is set to all, this avoids some false rules. --- 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 <