summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-20 18:32:59 +0000
committerErmal <eri@pfsense.org>2010-04-20 18:32:59 +0000
commit1dbe445acc2b74c4a610e397c0c15031d99666e5 (patch)
treedc3b2f6fd668a6180fb8a009c9200e92cf6423c2 /usr/local/www/services_captiveportal_mac.php
parent0d388969180882e133f0ec062b8da7cb9d969896 (diff)
downloadpfsense-1dbe445acc2b74c4a610e397c0c15031d99666e5.zip
pfsense-1dbe445acc2b74c4a610e397c0c15031d99666e5.tar.gz
Use tables of ipfw for passthrough mac entries. This makes it scale way better than previously. Fix multiple entries on adding mac through entries automatically after login for the same user. The changes allow even pass through mac to be controlled from the Status->Captiveportal. Use serialize/unserialize on some files that keep temporary information to speed up calculations. Really allow mac passthrough to follow radius rules or time out rules when present.
Diffstat (limited to 'usr/local/www/services_captiveportal_mac.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php
index ca900bf..b689a81 100755
--- a/usr/local/www/services_captiveportal_mac.php
+++ b/usr/local/www/services_captiveportal_mac.php
@@ -59,8 +59,8 @@ if ($_POST) {
$retval = 0;
$rules = captiveportal_passthrumac_configure();
- file_put_contents("{$g['tmp_path']}/passthru.mac", $rules);
- mwexec("/sbin/ipfw {$g['tmp_path']}/passthru.mac");
+ //file_put_contents("{$g['tmp_path']}/passthru.mac", $rules);
+ //mwexec("/sbin/ipfw {$g['tmp_path']}/passthru.mac");
$savemsg = get_std_save_message($retval);
if ($retval == 0)
@@ -80,7 +80,7 @@ if ($_GET['act'] == "del") {
unset($a_passthrumacs[$_GET['id']]);
write_config();
header("Location: services_captiveportal_mac.php");
- //mark_subsystem_dirty('passthrumac');
+ mark_subsystem_dirty('passthrumac');
exit;
}
}
OpenPOWER on IntegriCloud