summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-08-14 10:06:09 +0000
committerErmal Luçi <eri@pfsense.org>2009-08-14 10:06:09 +0000
commit74194bf7bb8c8c5783c7a48dfc5f81d4ba5feca7 (patch)
tree2103a6404a975ae4e16975f744a102b0759fcb81 /usr
parent5fbeb2790d26067a9fc915431fb4ad7fddf84cab (diff)
downloadpfsense-74194bf7bb8c8c5783c7a48dfc5f81d4ba5feca7.zip
pfsense-74194bf7bb8c8c5783c7a48dfc5f81d4ba5feca7.tar.gz
Catch up with allowed ip using ipfw tables. This makes allowed ips be configured without reloading the whole other ones.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_captiveportal_ip_edit.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php
index 0810077..1ae6f36 100755
--- a/usr/local/www/services_captiveportal_ip_edit.php
+++ b/usr/local/www/services_captiveportal_ip_edit.php
@@ -103,7 +103,12 @@ if ($_POST) {
write_config();
- mark_subsystem_dirty('allowedips');
+ if (isset($config['captiveportal']['enable'])) {
+ if ($ip['dir'] == "from")
+ mwexec("/sbin/ipfw table 1 add " . $ip['ip']);
+ else
+ mwexec("/sbin/ipfw table 2 add " . $ip['ip']);
+ }
header("Location: services_captiveportal_ip.php");
exit;
OpenPOWER on IntegriCloud