Révision aa7ec418
Ajouté par Ermal il y a presque 10 ans
etc/inc/filter.inc | ||
---|---|---|
2625 | 2625 |
$log = array(); |
2626 | 2626 |
if(!isset($config['syslog']['nologdefaultblock'])) |
2627 | 2627 |
$log['block'] = "log"; |
2628 |
if(!isset($config['syslog']['nologdefaultpass']))
|
|
2628 |
if(isset($config['syslog']['nologdefaultpass'])) |
|
2629 | 2629 |
$log['pass'] = "log"; |
2630 | 2630 |
|
2631 | 2631 |
$saved_tracker = $tracker; |
usr/local/www/diag_logs_settings.php | ||
---|---|---|
65 | 65 |
$pconfig['system'] = isset($config['syslog']['system']); |
66 | 66 |
$pconfig['enable'] = isset($config['syslog']['enable']); |
67 | 67 |
$pconfig['logdefaultblock'] = !isset($config['syslog']['nologdefaultblock']); |
68 |
$pconfig['logdefaultpass'] = !isset($config['syslog']['nologdefaultpass']);
|
|
68 |
$pconfig['logdefaultpass'] = isset($config['syslog']['nologdefaultpass']); |
|
69 | 69 |
$pconfig['logbogons'] = !isset($config['syslog']['nologbogons']); |
70 | 70 |
$pconfig['logprivatenets'] = !isset($config['syslog']['nologprivatenets']); |
71 | 71 |
$pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']); |
... | ... | |
144 | 144 |
$oldnologprivatenets = isset($config['syslog']['nologprivatenets']); |
145 | 145 |
$oldnologlighttpd = isset($config['syslog']['nologlighttpd']); |
146 | 146 |
$config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; |
147 |
$config['syslog']['nologdefaultpass'] = $_POST['logdefaultpass'] ? false : true;
|
|
147 |
$config['syslog']['nologdefaultpass'] = $_POST['logdefaultpass'] ? true : false;
|
|
148 | 148 |
$config['syslog']['nologbogons'] = $_POST['logbogons'] ? false : true; |
149 | 149 |
$config['syslog']['nologprivatenets'] = $_POST['logprivatenets'] ? false : true; |
150 | 150 |
$config['syslog']['nologlighttpd'] = $_POST['loglighttpd'] ? false : true; |
... | ... | |
316 | 316 |
<br /> |
317 | 317 |
<input name="logdefaultpass" type="checkbox" id="logdefaultpass" value="yes" <?php if ($pconfig['logdefaultpass']) echo "checked=\"checked\""; ?> /> |
318 | 318 |
<strong><?=gettext("Log packets matched from the default pass rules put in the ruleset");?></strong><br /> |
319 |
<?=gettext("Hint: packets that are allowed by the implicit default pass rule will not be logged if you uncheck this option. Per-rule logging options are still respected.");?>
|
|
319 |
<?=gettext("Hint: packets that are allowed by the implicit default pass rule will be logged if you check this option. Per-rule logging options are still respected.");?>
|
|
320 | 320 |
<br /> |
321 | 321 |
<input name="logbogons" type="checkbox" id="logbogons" value="yes" <?php if ($pconfig['logbogons']) echo "checked=\"checked\""; ?> /> |
322 | 322 |
<strong><?=gettext("Log packets blocked by 'Block Bogon Networks' rules");?></strong><br /> |
Formats disponibles : Unified diff
Make logging of pass rules opt-in rather than opt-out