Revision 508e5229
Added by Ermal Luçi almost 16 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
57 | 57 |
if (isset($config['captiveportal']['enable'])) { |
58 | 58 |
$cpips = array(); |
59 | 59 |
$ifaces = get_configured_interface_list(); |
60 |
foreach ($ifaces as $kiface => $kiface2) { |
|
61 |
$tmpif = get_real_interface($kiface); |
|
62 |
mwexec("/sbin/ifconfig {$tmpif} -ipfwfilter"); |
|
63 |
} |
|
60 | 64 |
$cpinterfaces = explode(",", $config['captiveportal']['interface']); |
61 | 65 |
$firsttime = 0; |
62 | 66 |
foreach ($cpinterfaces as $cpifgrp) { |
... | ... | |
64 | 68 |
continue; |
65 | 69 |
$tmpif = get_real_interface($cpifgrp); |
66 | 70 |
if (!empty($tmpif)) { |
67 |
mwexec("/sbin/ifconfig {$tmpif} -ipfwfilter"); |
|
68 | 71 |
if ($firsttime > 0) |
69 | 72 |
$cpinterface .= " or "; |
70 | 73 |
$cpinterface .= "via {$tmpif}"; |
Also available in: Unified diff
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.