Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
660c671d
Commit
660c671d
authored
Apr 29, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugins: vpn/newwanip configure spot change
parent
bd29d862
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
14 deletions
+15
-14
dyndns.inc
src/etc/inc/plugins.inc.d/dyndns.inc
+1
-1
ipsec.inc
src/etc/inc/plugins.inc.d/ipsec.inc
+1
-1
ntpd.inc
src/etc/inc/plugins.inc.d/ntpd.inc
+1
-1
rfc2136.inc
src/etc/inc/plugins.inc.d/rfc2136.inc
+1
-1
rc.newwanip
src/etc/rc.newwanip
+2
-4
rc.newwanipv6
src/etc/rc.newwanipv6
+2
-4
interfaces.php
src/www/interfaces.php
+7
-2
No files found.
src/etc/inc/plugins.inc.d/dyndns.inc
View file @
660c671d
...
...
@@ -37,7 +37,7 @@ function dyndns_configure()
return
array
(
'bootup'
=>
array
(
'dyndns_configure_do'
),
'local'
=>
array
(
'dyndns_configure_do'
),
'
interface
'
=>
array
(
'dyndns_configure_do:2'
),
'
newwanip
'
=>
array
(
'dyndns_configure_do:2'
),
);
}
...
...
src/etc/inc/plugins.inc.d/ipsec.inc
View file @
660c671d
...
...
@@ -114,7 +114,7 @@ $p2_pfskeygroups = array(
function
ipsec_configure
()
{
return
array
(
'
interface
'
=>
array
(
'ipsec_configure_do:2'
),
'
vpn
'
=>
array
(
'ipsec_configure_do:2'
),
);
}
...
...
src/etc/inc/plugins.inc.d/ntpd.inc
View file @
660c671d
...
...
@@ -67,8 +67,8 @@ function ntpd_configure()
{
return
array
(
'bootup'
=>
array
(
'ntpd_configure_defer'
),
'interface'
=>
array
(
'ntpd_configure_defer'
),
'local'
=>
array
(
'ntpd_configure_start'
),
'newwanip'
=>
array
(
'ntpd_configure_defer'
),
);
}
...
...
src/etc/inc/plugins.inc.d/rfc2136.inc
View file @
660c671d
...
...
@@ -34,7 +34,7 @@ function rfc2136_configure()
return
array
(
'bootup'
=>
array
(
'rfc2136_configure_do'
),
'local'
=>
array
(
'rfc2136_configure_do'
),
'
interface
'
=>
array
(
'rfc2136_configure_do:2'
),
'
newwanip
'
=>
array
(
'rfc2136_configure_do:2'
),
);
}
...
...
src/etc/rc.newwanip
View file @
660c671d
...
...
@@ -186,10 +186,8 @@ if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interface
openvpn_resync_all
(
$interface
);
}
/* reload plugins */
plugins_configure
(
'interface'
,
false
,
array
(
$interface
));
/* reload graphing functions */
plugins_configure
(
'vpn'
,
false
,
array
(
$interface
));
plugins_configure
(
'newwanip'
,
false
,
array
(
$interface
));
rrd_configure
();
}
...
...
src/etc/rc.newwanipv6
View file @
660c671d
...
...
@@ -141,8 +141,6 @@ if (substr($interface_real, 0, 4) != 'ovpn') {
openvpn_resync_all
(
$interface
);
}
/* reload plugins */
plugins_configure
(
'interface'
,
false
,
array
(
$interface
));
/* reload graphing functions */
plugins_configure
(
'vpn'
,
false
,
array
(
$interface
));
plugins_configure
(
'newwanip'
,
false
,
array
(
$interface
));
rrd_configure
();
src/www/interfaces.php
View file @
660c671d
...
...
@@ -521,8 +521,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
}
/* restart plugins */
plugins_configure
(
'interface'
);
/*
* XXX possibly wrong to configure interfaces through newwanip
* when the interface is dynamic and this gets called again...
*/
plugins_configure
(
'newwanip'
);
/* sync filter configuration */
setup_gateways_monitor
();
filter_configure
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment