Commit 6f1b900c authored by Franco Fichtner's avatar Franco Fichtner

plugins: syslog plugging for openvpn/ipsec

parent d0c8782e
......@@ -26,6 +26,18 @@
POSSIBILITY OF SUCH DAMAGE.
*/
function if_ipsec_syslog()
{
$logfacilities = array();
$logfacilities['ipsec'] = array(
'facility' => array('charon'),
'remote' => 'vpn',
);
return $logfacilities;
}
function if_ipsec_services()
{
global $config;
......
......@@ -26,6 +26,18 @@
POSSIBILITY OF SUCH DAMAGE.
*/
function if_openvpn_syslog()
{
$logfacilities = array();
$logfacilities['openvpn'] = array(
'facility' => array('openvpn'),
'remote' => 'vpn',
);
return $logfacilities;
}
function if_openvpn_services()
{
global $config;
......
......@@ -824,9 +824,7 @@ function system_syslogd_start()
$syslogconfs['dhcpd'] = array('facility' => array('dhcpd', 'dhcrelay', 'dhclient', 'dhcp6c'), 'local' => "{$g['dhcpd_chroot_path']}/var/run/log", 'remote' => 'dhcp');
$syslogconfs['filter'] = array('facility' => array('filterlog'), 'remote' => 'filter');
$syslogconfs['gateways'] = array('facility' => array('apinger'), 'remote' => 'apinger');
$syslogconfs['ipsec'] = array('facility' => array('charon'));
$syslogconfs['ntpd'] = array('facility' => array('ntp', 'ntpd', 'ntpdate'));
$syslogconfs['openvpn'] = array('facility' => array('openvpn'), 'remote' => 'vpn');
$syslogconfs['portalauth'] = array('facility' => array('captiveportal'), 'remote' => 'portalauth');
$syslogconfs['ppps'] = array('facility' => array('ppp'));
$syslogconfs['relayd'] = array('facility' => array('relayd'), 'remote' => 'relayd');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment