summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-04-01 09:50:14 +0200
committersmos <seth.mos@dds.nl>2012-04-01 09:50:14 +0200
commit69b54cbe6ea9d96a89732b325abf57a5721e165b (patch)
tree7d107495e82cbca9fcc08bd0b806a4112b6706bd /etc
parenta11a839d6e132bef65a03a2520fe389b5199f9b9 (diff)
downloadpfsense-69b54cbe6ea9d96a89732b325abf57a5721e165b.zip
pfsense-69b54cbe6ea9d96a89732b325abf57a5721e165b.tar.gz
Add logic that (re)configures the dependent interface that has interface tracking setup for a tunneled IPv6 protocol.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index c50b5d3..12a6732 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -136,6 +136,19 @@ if(is_array($config['gifs']['gif'])){
}
}
+/* check tunneled IPv6 interface tracking */
+switch($config['interfaces'][$interface]['type6']) {
+ case "6to4":
+ case "6rd":
+ foreach($config['interfaces'] as $iftrackname => $iftrack) {
+ if($iftrack['track6-interface'] == $interface) {
+ log_error("interface {%iftrackname} depends on {$interface}, configuring");
+ interface_track6_configure($iftrackname);
+ }
+ }
+ break;
+}
+
/* reconfigure our gateway monitor */
setup_gateways_monitor();
OpenPOWER on IntegriCloud