Revision 3b68d29c
Added by Ermal LUÇI about 11 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
367 | 367 |
/* Release allocated pipes for this zone */ |
368 | 368 |
captiveportal_free_dnrules(); |
369 | 369 |
|
370 |
mwexec("/usr/local/sbin/ipfw zone {$cpzoneid} destory", true);
|
|
370 |
mwexec("/sbin/ipfw zone {$cpzoneid} destory", true); |
|
371 | 371 |
|
372 | 372 |
if (empty($config['captiveportal'])) |
373 | 373 |
mwexec("/sbin/sysctl net.link.ether.ipfw=0"); |
... | ... | |
464 | 464 |
return; |
465 | 465 |
|
466 | 466 |
captiveportal_load_modules(); |
467 |
mwexec("/usr/local/sbin/ipfw zone {$cpzoneid} create", true);
|
|
467 |
mwexec("/sbin/ipfw zone {$cpzoneid} create", true); |
|
468 | 468 |
|
469 | 469 |
$cpips = array(); |
470 | 470 |
$ifaces = get_configured_interface_list(); |
... | ... | |
481 | 481 |
if (!empty($carpif)) { |
482 | 482 |
$carpsif = explode(" ", $carpif); |
483 | 483 |
foreach ($carpsif as $cpcarp) { |
484 |
mwexec("/usr/local/sbin/ipfw zone {$cpzoneid} madd {$cpcarp}", true);
|
|
484 |
mwexec("/sbin/ipfw zone {$cpzoneid} madd {$cpcarp}", true); |
|
485 | 485 |
$carpip = find_interface_ip($cpcarp); |
486 | 486 |
if (is_ipaddr($carpip)) |
487 | 487 |
$cpips[] = $carpip; |
... | ... | |
489 | 489 |
} |
490 | 490 |
$cpips[] = $cpipm; |
491 | 491 |
} |
492 |
mwexec("/usr/local/sbin/ipfw zone {$cpzoneid} madd {$tmpif}", true);
|
|
492 |
mwexec("/sbin/ipfw zone {$cpzoneid} madd {$tmpif}", true); |
|
493 | 493 |
} |
494 | 494 |
} |
495 | 495 |
if (count($cpips) > 0) { |
Also available in: Unified diff
Somehow these got changed to /usr/local/sbin/ipfw instead of /sbin/ipfw