diff options
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 6c7a27b..093730d 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -356,7 +356,7 @@ function system_syslogd_start() { $separatelogfacilities = $separatelogfacilities + $pkgfacilities; $facilitylist = implode(',', $pkgfacilities); mwexec("fifolog_create -s 10240 {$g['varlog_path']}/{$package['logging']['logfilename']}"); - $syslogconf .= "!{$facilitylist}\n*.*\t\t\t\t\t\t|/usr/sbin/fifolog_writer {$g['varlog_path']}/{$package['logging']['logfilename']}\n"; + $syslogconf .= "!{$facilitylist}\n*.*\t\t\t\t\t\t |/usr/sbin/fifolog_writer {$g['varlog_path']}/{$package['logging']['logfilename']}\n"; } } } @@ -369,49 +369,49 @@ function system_syslogd_start() { } $syslogconf .= "!ntpdate,!ntpd\n"; if (!isset($syslogcfg['disablelocallogging'])) - $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/ntpd.log\n"; + $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/ntpd.log\n"; $syslogconf .= "!racoon\n"; if (!isset($syslogcfg['disablelocallogging'])) - $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/ipsec.log\n"; + $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/ipsec.log\n"; if (isset($syslogcfg['vpn'])) - $syslogconf .= "*.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "*.* @{$syslogcfg['remoteserver']}\n"; $syslogconf .= "!openvpn\n"; if (!isset($syslogcfg['disablelocallogging'])) - $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/openvpn.log\n"; + $syslogconf .= "*.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/openvpn.log\n"; if (isset($syslogcfg['vpn'])) - $syslogconf .= "*.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "*.* @{$syslogcfg['remoteserver']}\n"; $syslogconf .= "!-{$facilitylist}\n"; if (!isset($syslogcfg['disablelocallogging'])) $syslogconf .= <<<EOD -local0.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/filter.log -local3.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/vpn.log -local4.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/portalauth.log -local7.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/dhcpd.log -*.notice;kern.debug;lpr.info;mail.crit; |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log -news.err;local0.none;local3.none;local4.none; |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log -local7.none |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log -security.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log -auth.info;authpriv.info;daemon.info |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log -local1.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/relayd.log -auth.info;authpriv.info |exec /usr/local/sbin/sshlockout_pf -*.emerg * +local0.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/filter.log +local3.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/vpn.log +local4.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/portalauth.log +local7.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/dhcpd.log +*.notice;kern.debug;lpr.info;mail.crit; |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log +news.err;local0.none;local3.none;local4.none; |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log +local7.none |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log +security.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log +auth.info;authpriv.info;daemon.info |/usr/sbin/fifolog_writer {$g['varlog_path']}/system.log +local1.* |/usr/sbin/fifolog_writer {$g['varlog_path']}/relayd.log +auth.info;authpriv.info |exec /usr/local/sbin/sshlockout_pf +*.emerg * EOD; if (isset($syslogcfg['filter'])) - $syslogconf .= "local0.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "local0.* @{$syslogcfg['remoteserver']}\n"; if (isset($syslogcfg['vpn'])) - $syslogconf .= "local3.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "local3.* @{$syslogcfg['remoteserver']}\n"; if (isset($syslogcfg['portalauth'])) - $syslogconf .= "local4.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "local4.* @{$syslogcfg['remoteserver']}\n"; if (isset($syslogcfg['dhcp'])) - $syslogconf .= "local7.* @{$syslogcfg['remoteserver']}\n"; + $syslogconf .= "local7.* @{$syslogcfg['remoteserver']}\n"; if (isset($syslogcfg['system'])) $syslogconf .= <<<EOD -*.notice;kern.debug;lpr.info;mail.crit; @{$syslogcfg['remoteserver']} -news.err;local0.none;local3.none;local7.none @{$syslogcfg['remoteserver']} -security.* @{$syslogcfg['remoteserver']} -auth.info;authpriv.info;daemon.info @{$syslogcfg['remoteserver']} -*.emerg @{$syslogcfg['remoteserver']} +*.notice;kern.debug;lpr.info;mail.crit; @{$syslogcfg['remoteserver']} +news.err;local0.none;local3.none;local7.none @{$syslogcfg['remoteserver']} +security.* @{$syslogcfg['remoteserver']} +auth.info;authpriv.info;daemon.info @{$syslogcfg['remoteserver']} +*.emerg @{$syslogcfg['remoteserver']} EOD; fwrite($fd, $syslogconf); |