From baec2b007fa963f9c047ef08b16abc92c571c407 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 21 Nov 2013 21:18:00 +0000 Subject: Properly create zones for the CP with the new command arguments and properly invoke ipfw for applying rules and other configuration options. --- usr/local/www/status.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr/local/www/status.php') diff --git a/usr/local/www/status.php b/usr/local/www/status.php index a4906cf..4459207 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -138,10 +138,12 @@ defCmdT("top | head -n5", "/usr/bin/top | /usr/bin/head -n5"); defCmdT("sysctl hw.physmem","/sbin/sysctl hw.physmem"); -if (isset($config['captiveportal']) && is_array($config['captiveportal'])) - foreach ($config['captiveportal'] as $cpZone => $cpdata) +if (isset($config['captiveportal']) && is_array($config['captiveportal'])) { + foreach ($config['captiveportal'] as $cpZone => $cpdata) { if (isset($cpdata['enable'])) - defCmdT("ipfw -x {$cpZone} show", "/sbin/ipfw -x {$cpZone} show"); + defCmdT("ipfw -x {$cpdata['zoneid']} show", "/sbin/ipfw -x {$cpdata['zoneid']} show"); + } +} defCmdT("pfctl -sn", "/sbin/pfctl -sn"); defCmdT("pfctl -sr", "/sbin/pfctl -sr"); -- cgit v1.1