summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-05-21 22:41:01 +0200
committerSeth Mos <seth.mos@dds.nl>2011-05-21 22:41:01 +0200
commit3be49c5fc342fb426846c1311c46b2a993b49e82 (patch)
tree0ce9cfe2d3817dec9143b76fbcf781338050d31e /etc/rc.newwanip
parent100c7be0ed9f0b20330b59f5498b1c142a748366 (diff)
downloadpfsense-3be49c5fc342fb426846c1311c46b2a993b49e82.zip
pfsense-3be49c5fc342fb426846c1311c46b2a993b49e82.tar.gz
Run system_routing_configure() for all the gif interfaces when the parent interfaces renews.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 0395099..aa39ab4 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -102,6 +102,17 @@ file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);
/* reconfigure static routes (kernel may have deleted them) */
system_routing_configure($interface);
+/* Check Gif tunnels */
+foreach($config['gifs'] as $gif) {
+ if($gif['if'] == $interface) {
+ foreach($config['interfaces'] as $ifparent => $ifname) {
+ if(($ifparent['if'] == $gif['gifif']) && (isset($ifparent['enable']))) {
+ system_routing_configure($ifname);
+ }
+ }
+ }
+}
+
/* reconfigure our gateway monitor */
setup_gateways_monitor();
OpenPOWER on IntegriCloud