mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-09 00:42:34 -04:00
net/*: adapt interface register to latest changes
Also new instantly registers and removes legacy VPN interfaces like it should have.
This commit is contained in:
parent
2256e0b2b4
commit
ab24e03919
7 changed files with 9 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= l2tp
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= LT2P server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
|||
unset($l2tpcfg['radius']['radiusissueips']);
|
||||
}
|
||||
|
||||
plugins_interfaces(false);
|
||||
write_config();
|
||||
if_l2tp_configure_do();
|
||||
header("Location: vpn_l2tp.php");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= pppoe
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= PPPoE server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("filter.inc");
|
||||
require_once("plugins.inc");
|
||||
require_once("plugins.inc.d/if_pppoe.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
|
|
@ -67,12 +68,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
killbypid("/var/run/pppoe{$a_pppoes[$_POST['id']]['pppoeid']}-vpn.pid");
|
||||
mwexecf('/bin/rm -r %s', "/var/etc/pppoe{$a_pppoes[$_POST['id']]['pppoeid']}");
|
||||
unset($a_pppoes[$_POST['id']]);
|
||||
plugins_interfaces(false);
|
||||
write_config();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
include("head.inc");
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("interfaces.inc");
|
||||
require_once("plugins.inc");
|
||||
|
||||
function vpn_pppoe_get_id()
|
||||
{
|
||||
|
|
@ -216,6 +217,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
|||
$a_pppoes[$id] = $pppoecfg;
|
||||
}
|
||||
|
||||
plugins_interfaces(false);
|
||||
write_config();
|
||||
mark_subsystem_dirty('vpnpppoe');
|
||||
file_put_contents('/tmp/.vpn_pppoe.apply', serialize($toapplylist));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= pptp
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_DEPENDS= clog mpd5
|
||||
PLUGIN_COMMENT= PPTP server based on MPD5
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
|||
unset($pptpcfg['radius']['radiusissueips']);
|
||||
}
|
||||
|
||||
plugins_interfaces(false);
|
||||
write_config();
|
||||
$savemsg = get_std_save_message();
|
||||
if_pptp_configure_do();
|
||||
|
|
|
|||
Loading…
Reference in a new issue