Révision 7a47edcc
Ajouté par Ermal il y a presque 10 ans
etc/inc/interfaces.inc | ||
---|---|---|
3415 | 3415 |
$tmpstfiface = pfSense_interface_create("stf"); |
3416 | 3416 |
pfSense_interface_rename($tmpstfiface, $stfiface); |
3417 | 3417 |
pfSense_interface_flags($stfiface, IFF_LINK2); |
3418 |
if ($wancfg['prefix-6rd-v4plen'] > 0) |
|
3419 |
$rd6prefixlen += intval($wancfg['prefix-6rd-v4plen']); |
|
3420 |
else |
|
3421 |
$rd6prefixlen += 32; |
|
3418 | 3422 |
mwexec("/sbin/ifconfig {$stfiface} inet6 {$rd6prefix}/{$rd6prefixlen}"); |
3419 | 3423 |
mwexec("/sbin/ifconfig {$stfiface} stfv4br " . escapeshellarg($wancfg['gateway-6rd'])); |
3420 | 3424 |
if ($wancfg['prefix-6rd-v4plen'] > 0 && $wancfg['prefix-6rd-v4plen'] < 32) |
Formats disponibles : Unified diff
Include the v4 prefix on the v6 netmask to make routing more sane and alos tracking interface configurations work!