diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-21 23:16:01 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-21 23:16:01 +0200 |
commit | 839ee78fc2c31b2140bed0cdc56e0d284ce809a2 (patch) | |
tree | a38a01ea68940c8ce3d3163c389356a62c7362c1 /etc | |
parent | 69bd3cc0f7f88ba92eb57c99220ee69e3c714c25 (diff) | |
download | pfsense-839ee78fc2c31b2140bed0cdc56e0d284ce809a2.zip pfsense-839ee78fc2c31b2140bed0cdc56e0d284ce809a2.tar.gz |
Further fine tune the gif tunnel default route commands.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index aa39ab4..d9d5317 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -102,20 +102,22 @@ file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip); /* reconfigure static routes (kernel may have deleted them) */ system_routing_configure($interface); +/* reconfigure our gateway monitor */ +setup_gateways_monitor(); + /* Check Gif tunnels */ -foreach($config['gifs'] as $gif) { +foreach($config['gifs']['gif'] as $gif) { if($gif['if'] == $interface) { - foreach($config['interfaces'] as $ifparent => $ifname) { + foreach($config['interfaces'] as $ifname => $ifparent) { + // echo "interface $ifparent, ifname $ifname, gif {$gif['gifif']}\n"; if(($ifparent['if'] == $gif['gifif']) && (isset($ifparent['enable']))) { + // echo "Running routing configure for $ifname\n"; system_routing_configure($ifname); } } } } -/* reconfigure our gateway monitor */ -setup_gateways_monitor(); - /* signal filter reload */ filter_configure(); |