summaryrefslogtreecommitdiffstats
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:56 +0100
commitc9f04cd0558c8f95b4eb0030e37e4d382381d0c0 (patch)
tree437e7bcd442adbcba260e90979c22f88541ab1c8
parent64ed3e60f518949adc1cc54b4ea77c618afc130c (diff)
downloadpfsense-c9f04cd0558c8f95b4eb0030e37e4d382381d0c0.zip
pfsense-c9f04cd0558c8f95b4eb0030e37e4d382381d0c0.tar.gz
properly apply the passthrough entries when apply is hitr.
-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