mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net: adapt legacy vpns according to syslog/plugins changes
This commit is contained in:
parent
c1096904e7
commit
df43b7678c
9 changed files with 12 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
|||
PLUGIN_NAME= l2tp
|
||||
PLUGIN_PRIVATE= yes
|
||||
PLUGIN_VERSION= 0.2
|
||||
PLUGIN_DEPENDS= mpd5
|
||||
PLUGIN_VERSION= 0.3
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= LT2P server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
|
|
|
|||
|
|
@ -63,9 +63,7 @@ function if_l2tp_services()
|
|||
function if_l2tp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
|
||||
$logfacilities['l2tps'] = array('facility' => array('l2tps'), 'remote' => null);
|
||||
|
||||
$logfacilities['l2tps'] = array('facility' => array('l2tps'));
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ if (empty($config['syslog']['nentries'])) {
|
|||
}
|
||||
|
||||
if ($_POST['clear']) {
|
||||
clear_clog($logfile);
|
||||
system_clear_clog($logfile);
|
||||
}
|
||||
|
||||
function dump_clog_vpn($file, $tail, $type)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
PLUGIN_NAME= pppoe
|
||||
PLUGIN_PRIVATE= yes
|
||||
PLUGIN_VERSION= 0.2
|
||||
PLUGIN_DEPENDS= mpd5
|
||||
PLUGIN_VERSION= 0.3
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= PPPoE server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
|
|
|
|||
|
|
@ -70,9 +70,7 @@ function if_pppoe_services()
|
|||
function if_pppoe_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
|
||||
$logfacilities['poes'] = array('facility' => array('poes'), 'remote' => null);
|
||||
|
||||
$logfacilities['poes'] = array('facility' => array('poes'));
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ if (empty($config['syslog']['nentries'])) {
|
|||
}
|
||||
|
||||
if ($_POST['clear']) {
|
||||
clear_clog($logfile);
|
||||
system_clear_clog($logfile);
|
||||
}
|
||||
|
||||
function dump_clog_vpn($file, $tail, $type)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
PLUGIN_NAME= pptp
|
||||
PLUGIN_PRIVATE= yes
|
||||
PLUGIN_VERSION= 0.2
|
||||
PLUGIN_DEPENDS= mpd5
|
||||
PLUGIN_VERSION= 0.3
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= PPTP server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
|
|
|
|||
|
|
@ -63,9 +63,7 @@ function if_pptp_services()
|
|||
function if_pptp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
|
||||
$logfacilities['pptps'] = array('facility' => array('pptps'), 'remote' => null);
|
||||
|
||||
$logfacilities['pptps'] = array('facility' => array('pptps'));
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ if (empty($config['syslog']['nentries'])) {
|
|||
}
|
||||
|
||||
if ($_POST['clear']) {
|
||||
clear_clog($logfile);
|
||||
system_clear_clog($logfile);
|
||||
}
|
||||
|
||||
function dump_clog_vpn($file, $tail, $type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue