diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-13 11:53:27 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-13 11:53:27 +0000 |
commit | 508e522935e626937ef9e40d898e5ea29bcb8945 (patch) | |
tree | fbd87472fa03af8b6abde2373b1d01b4cc2ae639 | |
parent | f211aa5906c3571c99fd934813ca9b0982400ee1 (diff) | |
download | pfsense-508e522935e626937ef9e40d898e5ea29bcb8945.zip pfsense-508e522935e626937ef9e40d898e5ea29bcb8945.tar.gz |
Before configuring CP make sure that all interfaces are not set for filtering with ipfw. Otherwise some wrong misconfigurations might happen when changing the interface on an active CP config.
-rw-r--r-- | etc/inc/captiveportal.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index e0f05b7..685a1a6 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -57,6 +57,10 @@ function captiveportal_configure() { if (isset($config['captiveportal']['enable'])) { $cpips = array(); $ifaces = get_configured_interface_list(); + foreach ($ifaces as $kiface => $kiface2) { + $tmpif = get_real_interface($kiface); + mwexec("/sbin/ifconfig {$tmpif} -ipfwfilter"); + } $cpinterfaces = explode(",", $config['captiveportal']['interface']); $firsttime = 0; foreach ($cpinterfaces as $cpifgrp) { @@ -64,7 +68,6 @@ function captiveportal_configure() { continue; $tmpif = get_real_interface($cpifgrp); if (!empty($tmpif)) { - mwexec("/sbin/ifconfig {$tmpif} -ipfwfilter"); if ($firsttime > 0) $cpinterface .= " or "; $cpinterface .= "via {$tmpif}"; |