mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net: plugin proper remote log settings
This commit is contained in:
parent
b7c64ce1da
commit
e0a11f707b
4 changed files with 25 additions and 4 deletions
|
|
@ -35,7 +35,13 @@
|
|||
function haproxy_syslog()
|
||||
{
|
||||
$syslogconf = array();
|
||||
$syslogconf['haproxy'] = array("facility" => array('haproxy'), "local" => "/var/run/haproxy/var/run/log");
|
||||
|
||||
$syslogconf['haproxy'] = array(
|
||||
'local' => '/var/run/haproxy/var/run/log',
|
||||
'facility' => array('haproxy'),
|
||||
'remote' => 'relayd',
|
||||
);
|
||||
|
||||
return $syslogconf;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,12 @@ function if_l2tp_services()
|
|||
function if_l2tp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['l2tps'] = array('facility' => array('l2tps'));
|
||||
|
||||
$logfacilities['l2tps'] = array(
|
||||
'facility' => array('l2tps'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,12 @@ function if_pppoe_services()
|
|||
function if_pppoe_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['poes'] = array('facility' => array('poes'));
|
||||
|
||||
$logfacilities['poes'] = array(
|
||||
'facility' => array('poes'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,12 @@ function if_pptp_services()
|
|||
function if_pptp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['pptps'] = array('facility' => array('pptps'));
|
||||
|
||||
$logfacilities['pptps'] = array(
|
||||
'facility' => array('pptps'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue