aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 01:14:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 01:14:13 +0000
commitb50f6ace80a931d3ab1c038a3a6c74fd626378f5 (patch)
tree5e9cd84a4e3219d8ff037a62f0bd1faf62d1aad1 /packages
parent6a14b7ee4c222ae1bfe8e3cdd7db078fa41ed941 (diff)
downloadpfsense-packages-b50f6ace80a931d3ab1c038a3a6c74fd626378f5.tar.gz
pfsense-packages-b50f6ace80a931d3ab1c038a3a6c74fd626378f5.tar.bz2
pfsense-packages-b50f6ace80a931d3ab1c038a3a6c74fd626378f5.zip
Populate blacklist table as well
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd_db.php1
-rw-r--r--packages/spamd_db_ext.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index f779acbc..3189f0f5 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -77,6 +77,7 @@ if($_GET['action'] or $_POST['action']) {
exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t");
exec("/usr/local/sbin/spamdb -a {$srcip} -t");
mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt");
+ mwexec("/sbin/pfctl -q -t blacklist -T add -f /var/db/blacklist.txt");
}
/* signal a reload for real time effect. */
mwexec("killall -HUP spamlogd");
diff --git a/packages/spamd_db_ext.php b/packages/spamd_db_ext.php
index d931e580..0873df7c 100644
--- a/packages/spamd_db_ext.php
+++ b/packages/spamd_db_ext.php
@@ -173,6 +173,7 @@ function add_to_blacklist($srcip) {
fwrite($fd, "{$srcip}\n");
fclose($fd);
mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt");
+ mwexec("/sbin/pfctl -q -t blacklist -T add -f /var/db/blacklist.txt");
config_unlock();
}
@@ -186,6 +187,7 @@ function delete_from_blacklist($srcip) {
}
fclose($fd);
mwexec("/sbin/pfctl -q -t spamd -T add -f /var/db/blacklist.txt");
+ mwexec("/sbin/pfctl -q -t blacklist -T add -f /var/db/blacklist.txt");
config_unlock();
}