aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_blocked.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-01-12 00:25:54 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-01-12 00:25:54 -0500
commitc3b3ace436cfc9f0cc0ea7e5909c58582b7ed658 (patch)
tree123a04e6d47eb099d570682c142e6f93922a3e2e /config/snort/snort_blocked.php
parentba3edc934faf8887fd5ea9e785392d84f2cd288c (diff)
downloadpfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.tar.gz
pfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.tar.bz2
pfsense-packages-c3b3ace436cfc9f0cc0ea7e5909c58582b7ed658.zip
Ensure conf_mount_rw() and conf_mount_ro() are used where needed.
Diffstat (limited to 'config/snort/snort_blocked.php')
-rw-r--r--config/snort/snort_blocked.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php
index 8d106a90..95109660 100644
--- a/config/snort/snort_blocked.php
+++ b/config/snort/snort_blocked.php
@@ -63,6 +63,7 @@ if ($_POST['remove']) {
/* TODO: build a file with block ip and disc */
if ($_POST['download'])
{
+ conf_mount_rw();
$blocked_ips_array_save = "";
exec('/sbin/pfctl -t snort2c -T show', $blocked_ips_array_save);
/* build the list */
@@ -104,6 +105,8 @@ if ($_POST['download'])
$savemsg = gettext("An error occurred while creating archive");
} else
$savemsg = gettext("No content on snort block list");
+
+ conf_mount_ro();
}
if ($_POST['save'])