summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2013-01-05 17:01:09 +0100
committersmos <seth.mos@dds.nl>2013-01-05 17:02:36 +0100
commit8f833c7c0adae8abe480dc36731d721da845f6b9 (patch)
treef9582df195456442d20d733bb8efad3d093d4688
parent96568521876f2abc0a767e5101564e84e92f2aa4 (diff)
downloadpfsense-8f833c7c0adae8abe480dc36731d721da845f6b9.zip
pfsense-8f833c7c0adae8abe480dc36731d721da845f6b9.tar.gz
Make sure the dhcp6c client always launches with the correct real interface argument.
Make sure we do a filter_configure_sync() here as otherwise the existing firewall rules (during boot) would block the dhcp6c client.
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 32be93e..c7fb340 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3307,7 +3307,7 @@ function interface_dhcpv6_configure($interface = "wan") {
}
$dhcp6cscript = "#!/bin/sh\n";
$dhcp6cscript .= "# This shell script launches /etc/rc.newwanipv6 with a interface argument.\n";
- $dhcp6cscript .= "/etc/rc.newwanipv6 $interface \n";
+ $dhcp6cscript .= "/etc/rc.newwanipv6 $wanif \n";
fwrite($fds, $dhcp6cscript);
fclose($fds);
@@ -3319,9 +3319,9 @@ function interface_dhcpv6_configure($interface = "wan") {
log_error("Accept router advertisements on interface {$wanif} ");
mwexec("/sbin/ifconfig {$wanif} inet6 accept_rtadv");
- /* run a filter configure so that the filter rules allow traffic before we launch the client */
- filter_configure();
- sleep(3);
+ /* run a filter configure sync so that the filter rules allow traffic before we launch the client */
+ /* there reallyt is no good way around this i'm 'fraid */
+ filter_configure_sync();
/* fire up dhcp6c for IPv6 first, this backgrounds immediately */
mwexec("/usr/local/sbin/dhcp6c -d -c {$g['varetc_path']}/dhcp6c_{$interface}.conf {$wanif}");
OpenPOWER on IntegriCloud