summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-12 09:30:46 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-12 09:30:46 +0100
commit330591f5f58913cf1f93107c00fe50706e529099 (patch)
treea75464a9d170846de398f0789acd0d80edf4a376 /usr/local/www/services_captiveportal_mac.php
parent384deecb5cfec1302dd99f3b81ca8c4f184cd93e (diff)
downloadpfsense-330591f5f58913cf1f93107c00fe50706e529099.zip
pfsense-330591f5f58913cf1f93107c00fe50706e529099.tar.gz
properly apply the passthrough entries when apply is hitr.
Diffstat (limited to 'usr/local/www/services_captiveportal_mac.php')
-rw-r--r--usr/local/www/services_captiveportal_mac.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php
index c0e73e5..c23a30f 100644
--- a/usr/local/www/services_captiveportal_mac.php
+++ b/usr/local/www/services_captiveportal_mac.php
@@ -72,9 +72,12 @@ if ($_POST) {
$retval = 0;
$rules = captiveportal_passthrumac_configure();
+ @file_put_contents("{$['tmp_path']}/passthrumac_gui", $rules);
+ mwexec("/sbin/ipfw -x {$cpzoneid} "{$['tmp_path']}/passthrumac_gui");
$savemsg = get_std_save_message($retval);
if ($retval == 0)
clear_subsystem_dirty('passthrumac');
+ @unlink("{$['tmp_path']}/passthrumac_gui");
}
if ($_POST['postafterlogin']) {
OpenPOWER on IntegriCloud