mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
parent
19ee38b4c9
commit
f5d7fe7c5b
@ -337,6 +337,14 @@ function system_syslogd_start() {
|
||||
printf("Error: cannot open syslog.conf in system_syslogd_start().\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (isset($syslogcfg['logall'])) {
|
||||
$syslogconf .= <<<EOD
|
||||
*.* @{$syslogcfg['remoteserver']}
|
||||
|
||||
EOD;
|
||||
}
|
||||
|
||||
$syslogconf .= "!ntpdate,!ntpd\n";
|
||||
if (!isset($syslogcfg['disablelocallogging'])) {
|
||||
$syslogconf .= <<<EOD
|
||||
@ -433,12 +441,6 @@ security.* @{$syslogcfg['remoteserver']}
|
||||
auth.info;authpriv.info;daemon.info @{$syslogcfg['remoteserver']}
|
||||
*.emerg @{$syslogcfg['remoteserver']}
|
||||
|
||||
EOD;
|
||||
}
|
||||
if (isset($syslogcfg['logall'])) {
|
||||
$syslogconf .= <<<EOD
|
||||
*.* @{$syslogcfg['remoteserver']}
|
||||
|
||||
EOD;
|
||||
}
|
||||
fwrite($fd, $syslogconf);
|
||||
@ -1280,4 +1282,4 @@ function system_enable_arp_wrong_if() {
|
||||
mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_movements=1");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user