Forward Firewall: New Firewall-option "show remark in ruletable"
authorAlexander Marx <amarx@ipfire.org>
Fri, 22 Feb 2013 10:27:30 +0000 (11:27 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:08:24 +0000 (14:08 +0200)
html/cgi-bin/forwardfw.cgi
html/cgi-bin/optionsfw.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

index 2343c41ff854a4124428dad00d05938566d9270c..3776542523dc6f5a5bb29dde8b3529ea4f2cd374 100755 (executable)
@@ -1900,7 +1900,7 @@ sub viewtablenew
                        }
                        print"<tr bgcolor='$color' >";
                        print<<END;
-                       <td align='right' width='15'>$key</td>
+                       <td align='right' width='15'><b>$key</b></td>
 END
                        if ($$hash{$key}[0] eq 'ACCEPT'){
                                $ruletype='A';
@@ -2038,8 +2038,10 @@ END
                                print"<td width='25'><input type='image' img src='/images/down.gif' style='visibility:hidden;'></td></tr>";
                        }
                        #REMARK
-                       print"<tr bgcolor='$color'><td colspan='13' style='border-bottom: 1px solid black'>";
-                       print"<b>$Lang::tr{'remark'}:</b>&nbsp$$hash{$key}[16]</td></tr>";
+                       if ($optionsfw{'SHOWREMARK'} eq 'on'){
+                               print"<tr bgcolor='$color'><td colspan='13' style='border-bottom: 1px solid black'>";
+                               print"<b>$Lang::tr{'remark'}:</b>&nbsp$$hash{$key}[16]</td></tr>";
+                       }
                }
                print"</table>";
                &Header::closebox();
index 39bd4195d815cec2d4cea62a024cc6c2b6e68a24..ab34230819b3d8d6b663c9bcc07c6d1f9d5010d7 100644 (file)
@@ -36,6 +36,7 @@ $settings{'DROPPORTSCAN'} = 'on';
 $settings{'DROPWIRELESSINPUT'} = 'on';
 $settings{'DROPWIRELESSFORWARD'} = 'on';
 $settings{'SHOWCOLORS'} = 'off';
+$settings{'SHOWREMARK'} = 'on';
 
 my $errormessage = '';
 my $warnmessage = '';
@@ -95,6 +96,9 @@ $checked{'DROPSAMBA'}{$settings{'DROPSAMBA'}} = "checked='checked'";
 $checked{'SHOWCOLORS'}{'off'} = '';
 $checked{'SHOWCOLORS'}{'on'} = '';
 $checked{'SHOWCOLORS'}{$settings{'SHOWCOLORS'}} = "checked='checked'";
+$checked{'SHOWREMARK'}{'off'} = '';
+$checked{'SHOWREMARK'}{'on'} = '';
+$checked{'SHOWREMARK'}{$settings{'SHOWREMARK'}} = "checked='checked'";
 $selected{'FWPOLICY'}{$settings{'FWPOLICY'}}= 'selected';
 $selected{'FWPOLICY1'}{$settings{'FWPOLICY1'}}= 'selected';
 
@@ -135,6 +139,8 @@ print <<END
 <tr bgcolor='$color{'color20'}'><td colspan='2' align='left'><b>$Lang::tr{'fw settings'}</b></td></tr>
 <tr><td align='left' width='60%'>$Lang::tr{'fw settings color'}</td><td align='left'>on <input type='radio' name='SHOWCOLORS' value='on' $checked{'SHOWCOLORS'}{'on'} />/
                                                                                                                                                                                <input type='radio' name='SHOWCOLORS' value='off' $checked{'SHOWCOLORS'}{'off'} /> off</td></tr>
+<tr><td align='left' width='60%'>$Lang::tr{'fw settings remark'}</td><td align='left'>on <input type='radio' name='SHOWREMARK' value='on' $checked{'SHOWREMARK'}{'on'} />/
+                                                                                                                                                                               <input type='radio' name='SHOWREMARK' value='off' $checked{'SHOWREMARK'}{'off'} /> off</td></tr>                                                                                                                                                                                
 </table>                                                                                                                                                                               
 <br />
 <table width='95%' cellspacing='0'>
index 95e62d6aa0df4ab6e796132cc249091025b97c9c..1700cef19012effe3fba7f9f9430292bbb729cb4 100644 (file)
 'fw default drop' => 'Firewall Policy',
 'fw settings' => 'Firewall Einstellungen',
 'fw settings color' => 'Farben in Regeltabelle anzeigen',
+'fw settings remark' => 'Anmerkungen in Regeltabelle anzeigen',
 'fw logging' => 'Firewall Logging',
 'gateway' => 'Gateway',
 'gateway ip' => 'Gateway-IP',
 'network traffic graphs others' => 'Netzwerk (sonstige)',
 'network updated' => 'Benutzerdefiniertes Netzwerk aktualisiert',
 'networks settings' => 'Firewall - Netzwerkeinstellungen',
-'new optionsfw later' => 'Ihre Modifikation(en) wird (werden) beim nächsten Neustart aktiv werden',
+'new optionsfw later' => 'Einige Einstellungen werden erst nach einem Neustart aktiv',
 'new optionsfw must boot' => 'Sie müssen Ihren IPFire neu starten',
 'newer' => 'Neuer',
 'next' => 'Nächster',
index cdf76a7a82bf25caea0e292e902295f0b2db34c9..ceb726e80117bb6db73a6fdf1753b767dc974350 100644 (file)
 'fw default drop' => 'Firewall policy',
 'fw settings' => 'Firewall settings',
 'fw settings color' => 'Show colors in ruletable',
+'fw settings remark' => 'Show remarks in ruletable',
 'fw logging' => 'Firewall logging',
 'g.dtm' => 'TO BE REMOVED',
 'g.lite' => 'TO BE REMOVED',
 'network traffic graphs others' => 'Network (others)',
 'network updated' => 'Custom Network updated',
 'networks settings' => 'Firewall - Network settings',
-'new optionsfw later' => 'Your modification(s) will be active on next restart',
+'new optionsfw later' => 'Some options need a reboot to take effect',
 'new optionsfw must boot' => 'You must reboot your IPFire',
 'newer' => 'Newer',
 'next' => 'next',