Revision 1fd46d44
Added by Ermal LUÇI about 11 years ago
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 | 69 |
$pconfig['logbogons'] = !isset($config['syslog']['nologbogons']); |
69 | 70 |
$pconfig['logprivatenets'] = !isset($config['syslog']['nologprivatenets']); |
70 | 71 |
$pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']); |
... | ... | |
138 | 139 |
$config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false; |
139 | 140 |
$config['syslog']['enable'] = $_POST['enable'] ? true : false; |
140 | 141 |
$oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']); |
142 |
$oldnologdefaultpass = isset($config['syslog']['nologdefaultpass']); |
|
141 | 143 |
$oldnologbogons = isset($config['syslog']['nologbogons']); |
142 | 144 |
$oldnologprivatenets = isset($config['syslog']['nologprivatenets']); |
143 | 145 |
$oldnologlighttpd = isset($config['syslog']['nologlighttpd']); |
144 | 146 |
$config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; |
147 |
$config['syslog']['nologdefaultpass'] = $_POST['logdefaultpass'] ? false : true; |
|
145 | 148 |
$config['syslog']['nologbogons'] = $_POST['logbogons'] ? false : true; |
146 | 149 |
$config['syslog']['nologprivatenets'] = $_POST['logprivatenets'] ? false : true; |
147 | 150 |
$config['syslog']['nologlighttpd'] = $_POST['loglighttpd'] ? false : true; |
... | ... | |
161 | 164 |
$retval = 0; |
162 | 165 |
$retval = system_syslogd_start(); |
163 | 166 |
if (($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock'])) |
167 |
|| ($oldnologdefaultpass !== isset($config['syslog']['nologdefaultpass'])) |
|
164 | 168 |
|| ($oldnologbogons !== isset($config['syslog']['nologbogons'])) |
165 | 169 |
|| ($oldnologprivatenets !== isset($config['syslog']['nologprivatenets']))) |
166 | 170 |
$retval |= filter_configure(); |
... | ... | |
307 | 311 |
<td valign="top" class="vtable">Log Firewall Default Blocks</td> |
308 | 312 |
<td class="vtable"> |
309 | 313 |
<input name="logdefaultblock" type="checkbox" id="logdefaultblock" value="yes" <?php if ($pconfig['logdefaultblock']) echo "checked=\"checked\""; ?> /> |
310 |
<strong><?=gettext("Log packets matched from the default rules put in the ruleset");?></strong><br /> |
|
314 |
<strong><?=gettext("Log packets matched from the default block rules put in the ruleset");?></strong><br />
|
|
311 | 315 |
<?=gettext("Hint: packets that are blocked by the implicit default block rule will not be logged if you uncheck this option. Per-rule logging options are still respected.");?> |
312 | 316 |
<br /> |
317 |
<input name="logdefaultpass" type="checkbox" id="logdefaultpass" value="yes" <?php if ($pconfig['logdefaultpass']) echo "checked=\"checked\""; ?> /> |
|
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.");?> |
|
320 |
<br /> |
|
313 | 321 |
<input name="logbogons" type="checkbox" id="logbogons" value="yes" <?php if ($pconfig['logbogons']) echo "checked=\"checked\""; ?> /> |
314 | 322 |
<strong><?=gettext("Log packets blocked by 'Block Bogon Networks' rules");?></strong><br /> |
315 | 323 |
<br /> |
Also available in: Unified diff
Split the setting of logging pass and block into 2 separate settings. Maybe this can be extended to control even the user rules?