diff options
author | Ermal <eri@pfsense.org> | 2014-05-29 20:07:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-05-29 20:07:25 +0000 |
commit | 7a47edcc26221cadbf2d9d27fe553d6820e0b10f (patch) | |
tree | e6e14dda05f616306718436684c989ee100f0ead /etc | |
parent | ae73fcb1702b7b20ff127a32dac2b5d873288fbd (diff) | |
download | pfsense-7a47edcc26221cadbf2d9d27fe553d6820e0b10f.zip pfsense-7a47edcc26221cadbf2d9d27fe553d6820e0b10f.tar.gz |
Include the v4 prefix on the v6 netmask to make routing more sane and alos tracking interface configurations work!
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 13308e0..db5bf74 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3415,6 +3415,10 @@ function interface_6rd_configure($interface = "wan", $wancfg) { $tmpstfiface = pfSense_interface_create("stf"); pfSense_interface_rename($tmpstfiface, $stfiface); pfSense_interface_flags($stfiface, IFF_LINK2); + if ($wancfg['prefix-6rd-v4plen'] > 0) + $rd6prefixlen += intval($wancfg['prefix-6rd-v4plen']); + else + $rd6prefixlen += 32; mwexec("/sbin/ifconfig {$stfiface} inet6 {$rd6prefix}/{$rd6prefixlen}"); mwexec("/sbin/ifconfig {$stfiface} stfv4br " . escapeshellarg($wancfg['gateway-6rd'])); if ($wancfg['prefix-6rd-v4plen'] > 0 && $wancfg['prefix-6rd-v4plen'] < 32) |