Revision: 2854
http://ipcop.svn.sourceforge.net/ipcop/?rev=2854&view=rev
Author: owes
Date: 2009-05-14 11:03:24 +0000 (Thu, 14 May 2009)
Log Message:
-----------
When creating pinholes:
limit display of source networks to match source interfaces
change default destination interface
Modified Paths:
--------------
ipcop/trunk/html/cgi-bin/fwrules.cgi
Modified: ipcop/trunk/html/cgi-bin/fwrules.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/fwrules.cgi 2009-05-13 20:00:47 UTC (rev
2853)
+++ ipcop/trunk/html/cgi-bin/fwrules.cgi 2009-05-14 11:03:24 UTC (rev
2854)
@@ -2258,6 +2258,10 @@
END
foreach my $network (sort keys %defaultNetworks) {
next if ($defaultNetworks{$network}{'LOCATION'} eq "IPCOP");
+ next if ( ($cgiparams{'RULETYPE'} eq 'DMZHOLES')
+ && (($defaultNetworks{$network}{'COLOR'} ne "ANY_COLOR")
+ && ($defaultNetworks{$network}{'COLOR'} ne "BLUE_COLOR")
+ && ($defaultNetworks{$network}{'COLOR'} ne
"ORANGE_COLOR")));
print "<option value='$network'";
print " selected='selected'" if ($cgiparams{'DEFAULT_SRC_ADR'} eq
$network);
print ">$network</option>";
@@ -2564,6 +2568,8 @@
}
elsif ($cgiparams{'RULETYPE'} eq 'DMZHOLES') {
$ruletype_text = $Lang::tr{'pinholes'};
+ # Change default destination interface to green
+ $cgiparams{'DEFAULT_DST_NET'} = 'Green' if
($cgiparams{'DEFAULT_DST_NET'} eq 'Red');
}
elsif ($cgiparams{'RULETYPE'} eq 'PORTFW') {
$destination_text = $Lang::tr{'pfw internal destination'};
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn