From: Alexander Marx Date: Thu, 28 Feb 2013 05:05:32 +0000 (+0100) Subject: Forward Firewall: added an option to firewall-options to show all dropdowns on rulecr... X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=d998784149c62299aa7c417b7a7919c3d9abdcf7 Forward Firewall: added an option to firewall-options to show all dropdowns on rulecreation site. --- diff --git a/html/cgi-bin/forwardfw.cgi b/html/cgi-bin/forwardfw.cgi index b93557d83..f48c2401b 100755 --- a/html/cgi-bin/forwardfw.cgi +++ b/html/cgi-bin/forwardfw.cgi @@ -1026,7 +1026,7 @@ print< - "; #custom networks - if (! -z $confignet){ - print""; } #custom hosts - if (! -z $confighost){ - print""; } #custom groups - if (! -z $configgrp){ - print"
$Lang::tr{'fwhost stdnet'}
$Lang::tr{'fwhost stdnet'}
$Lang::tr{'fwhost cust net'}
$Lang::tr{'fwhost cust net'}
$Lang::tr{'fwhost cust addr'}
$Lang::tr{'fwhost cust addr'}
$Lang::tr{'fwhost cust grp'}
$Lang::tr{'fwhost cust grp'}
"; # CCD networks - if( ! -z $configccdnet){ - print""; } #OVPN CCD Hosts foreach my $key (sort { uc($ccdhost{$a}[0]) cmp uc($ccdhost{$b}[0]) } keys %ccdhost){ - if ($ccdhost{$key}[33] ne ''){ - print"" ; + } if ($show eq '1'){$show='';print"";} #OVPN N2N foreach my $key (sort { uc($ccdhost{$a}[0]) cmp uc($ccdhost{$b}[0]) } keys %ccdhost){ if ($ccdhost{$key}[3] eq 'net'){ - print"" ; + } if ($show eq '1'){$show='';print"";} #IPsec netze foreach my $key (sort { uc($ipsecconf{$a}[1]) cmp uc($ipsecconf{$b}[1]) } keys %ipsecconf) { - if ($ipsecconf{$key}[3] eq 'net'){ - print""; + } if ($show eq '1'){$show='';print"";} print"
$Lang::tr{'fwhost ccdnet'}$Lang::tr{'fwhost ccdnet'}
$Lang::tr{'fwhost ccdhost'}
$Lang::tr{'fwhost ccdhost'}
$Lang::tr{'fwhost ccdhost'}
$Lang::tr{'fwhost ccdhost'}
$Lang::tr{'fwhost ovpn_n2n'}:
$Lang::tr{'fwhost ovpn_n2n'}
$Lang::tr{'fwhost ipsec net'}
$Lang::tr{'fwhost ipsec net'}
$Lang::tr{'fwhost ipsec net'}
"; diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi index 90c3a32a0..898ee286f 100644 --- a/html/cgi-bin/optionsfw.cgi +++ b/html/cgi-bin/optionsfw.cgi @@ -38,6 +38,7 @@ $settings{'DROPWIRELESSFORWARD'} = 'on'; $settings{'SHOWCOLORS'} = 'off'; $settings{'SHOWREMARK'} = 'on'; $settings{'SHOWTABLES'} = 'on'; +$settings{'SHOWDROPDOWN'} = 'off'; my $errormessage = ''; my $warnmessage = ''; @@ -103,12 +104,11 @@ $checked{'SHOWREMARK'}{$settings{'SHOWREMARK'}} = "checked='checked'"; $checked{'SHOWTABLES'}{'off'} = ''; $checked{'SHOWTABLES'}{'on'} = ''; $checked{'SHOWTABLES'}{$settings{'SHOWTABLES'}} = "checked='checked'"; -$checked{'FWPOLICY'}{'DROP'} = ''; -$checked{'FWPOLICY'}{'REJECT'} = ''; -$checked{'FWPOLICY'}{$settings{'FWPOLICY'}} = "checked='checked'"; -$checked{'FWPOLICY1'}{'DROP'} = ''; -$checked{'FWPOLICY1'}{'REJECT'} = ''; -$checked{'FWPOLICY1'}{$settings{'FWPOLICY1'}} = "checked='checked'"; +$checked{'SHOWDROPDOWN'}{'off'} = ''; +$checked{'SHOWDROPDOWN'}{'on'} = ''; +$checked{'SHOWDROPDOWN'}{$settings{'SHOWDROPDOWN'}} = "checked='checked'"; +$selected{'FWPOLICY'}{$settings{'FWPOLICY'}}= 'selected'; +$selected{'FWPOLICY1'}{$settings{'FWPOLICY1'}}= 'selected'; &Header::openbox('100%', 'center', $Lang::tr{'options fw'}); @@ -148,18 +148,23 @@ print <$Lang::tr{'fw settings color'}on / off $Lang::tr{'fw settings remark'}on / - off + off $Lang::tr{'fw settings ruletable'}on / off - +$Lang::tr{'fw settings dropdown'}on / + off +
- - - + +
$Lang::tr{'fw default drop'}
$Lang::tr{'drop action'}DROP / - REJECT
$Lang::tr{'drop action1'}DROP / - REJECT
$Lang::tr{'drop action'} +
$Lang::tr{'drop action1'} +

diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index d97739e8a..c28c2b2ed 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1051,6 +1051,7 @@ 'fw settings color' => 'Farben in Regeltabelle anzeigen', 'fw settings remark' => 'Anmerkungen in Regeltabelle anzeigen', 'fw settings ruletable' => 'Leere Regeltabellen anzeigen', +'fw settings dropdown' => 'Alle Netzwerke auf Regelerstellungsseite anzeigen', 'fw logging' => 'Firewall-Logging', 'gateway' => 'Gateway', 'gateway ip' => 'Gateway-IP', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 99976d12a..e15167ba8 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1076,6 +1076,7 @@ 'fw settings color' => 'Show colors in ruletable', 'fw settings remark' => 'Show remarks in ruletable', 'fw settings ruletable' => 'Show empty ruletables', +'fw settings dropdown' => 'Show all networks on rulecreation site', 'fw logging' => 'Firewall logging', 'g.dtm' => 'TO BE REMOVED', 'g.lite' => 'TO BE REMOVED', diff --git a/lfs/configroot b/lfs/configroot index 1a4edb026..77cb67659 100644 --- a/lfs/configroot +++ b/lfs/configroot @@ -123,6 +123,7 @@ $(TARGET) : echo "SHOWREMARK=on" >> $(CONFIG_ROOT)/optionsfw/settings echo "SHOWCOLORS=off" >> $(CONFIG_ROOT)/optionsfw/settings echo "SHOWTABLES=on" >> $(CONFIG_ROOT)/optionsfw/settings + echo "SHOWDROPDOWN=off >> $(CONFIG_ROOT)/optionsfw/settings echo "POLICY=MODE2" >> $(CONFIG_ROOT)/forward/settings echo "POLICY1=MODE2" >> $(CONFIG_ROOT)/forward/settings