summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-06 15:25:03 +0000
committerErmal <eri@pfsense.org>2010-12-06 15:25:03 +0000
commited62880b045f02ef6fd2dee3f6699b269661d23a (patch)
treeb9b914a075831eef2f3e1fdd2f5e90fa14c33ee9 /etc/rc.newwanip
parentc9e1341817f1e4a6518e89e97a14aa17d17b7690 (diff)
downloadpfsense-ed62880b045f02ef6fd2dee3f6699b269661d23a.zip
pfsense-ed62880b045f02ef6fd2dee3f6699b269661d23a.tar.gz
Correct code to reconfigure an interface for groups/gre/gif tunnels to take into account that an interface might be part of many instances of this. Also reconfigure interface groups for every newwanip trigger on interfaces to make sure dynamic interfaces retain their membership on groups.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 347ccd0..e2213fa 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -71,6 +71,10 @@ $oldip = "0.0.0.0";
if (file_exists("{$g['vardb_path']}/{$interface}_cacheip"))
$oldip = file_get_contents("{$g['vardb_path']}/{$interface}_cacheip");
+$grouptmp = link_interface_to_group($interface);
+if (!empty($grouptmp))
+ array_walk($grouptmp, 'interface_group_add_member');
+
/* regenerate resolv.conf if DNS overrides are allowed */
system_resolvconf_generate(true);
OpenPOWER on IntegriCloud