summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-05-26 10:25:32 +0200
committerSeth Mos <seth.mos@dds.nl>2011-05-26 10:25:32 +0200
commit3c5e10fc0237efe1ca45ce7e5f358152012a68a3 (patch)
treeebfa0ecd0155e76a0983144e103da7b7e5ae552f /etc
parent668ce1f9e7413c242a7a7e8ba033c8058ebff03e (diff)
downloadpfsense-3c5e10fc0237efe1ca45ce7e5f358152012a68a3.zip
pfsense-3c5e10fc0237efe1ca45ce7e5f358152012a68a3.tar.gz
Add debugging notes so that we can easily fix this when IPv6 support is added to the pfSense module.
Remove the Accept router advertisement from all interfaces unless we enable them
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e3cfaff..d50c89a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2578,9 +2578,11 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
if (!$g['booting'] && !substr($realif, 0, 4) == "ovpn") {
- /* remove all IPv4 addresses */
+ /* remove all IPv4 and IPv6 addresses */
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0);
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -alias", true) == 0);
+ /* Disable Accepting router advertisements unless specifically requested */
+ while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -accept_rtadv") == 0);
switch ($wancfg['ipaddr']) {
case 'pppoe':
@@ -2741,6 +2743,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
default:
if ($wancfg['ipaddrv6'] <> "" && $wancfg['subnetv6'] <> "") {
pfSense_interface_setaddress($realif, "{$wancfg['ipaddrv6']}/{$wancfg['subnetv6']}");
+ // FIXME: Add IPv6 Support to the pfSense module
mwexec("/sbin/ifconfig {$realif} inet6 {$wancfg['ipaddrv6']} prefixlen {$wancfg['subnetv6']} ");
}
break;
@@ -3563,6 +3566,7 @@ function find_interface_ipv6($interface, $flush = false)
/* Setup IP cache */
if (!isset($interface_ipv6_arr_cache[$interface]) or $flush) {
$ifinfo = pfSense_get_interface_addresses($interface);
+ // FIXME: Add IPv6 support to the pfSense module
exec("/sbin/ifconfig {$interface} inet6", $output);
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
@@ -3614,6 +3618,7 @@ function find_interface_subnetv6($interface, $flush = false)
if (!isset($interface_snv6_arr_cache[$interface]) or $flush) {
$ifinfo = pfSense_get_interface_addresses($interface);
+ // FIXME: Add IPv6 support to the pfSense module
exec("/sbin/ifconfig {$interface} inet6", $output);
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
OpenPOWER on IntegriCloud