aboutsummaryrefslogtreecommitdiffstats
path: root/config/clamav.inc
diff options
context:
space:
mode:
authorCharlie <root@testfbsd8.localdomain>2009-07-08 14:45:06 +0000
committerCharlie <root@testfbsd8.localdomain>2009-07-08 14:45:29 +0000
commitcc47995dd0b4f7a44c36a94d6f4feabddc418e12 (patch)
treed54a022f4a72f025e16d50b6ab708b47e7fbecfe /config/clamav.inc
parentdae4090094c2d03a8659d8a1c2e69763f06139bb (diff)
downloadpfsense-packages-cc47995dd0b4f7a44c36a94d6f4feabddc418e12.tar.gz
pfsense-packages-cc47995dd0b4f7a44c36a94d6f4feabddc418e12.tar.bz2
pfsense-packages-cc47995dd0b4f7a44c36a94d6f4feabddc418e12.zip
Add needed code to packages to confirm to 2.0 rules for adding firewall rules. NOTE: other packages might need intervention but for now this is the neccessary minimum to remove dependency on pkg-utils.inc on filter.inc
Diffstat (limited to 'config/clamav.inc')
-rw-r--r--config/clamav.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/clamav.inc b/config/clamav.inc
index 2e83888c..3aaaf71d 100644
--- a/config/clamav.inc
+++ b/config/clamav.inc
@@ -235,6 +235,7 @@ function clamav_generate_rules($type) {
$rules .= "rdr on $iface proto tcp to port pop3 -> 127.0.0.1 port 8110\n";
break;
case 'filter':
+ case 'rule':
foreach ($ifaces as $iface)
$rules .= "pass quick on $iface proto tcp to port pop3 flags S/SA keep state\n";
break;
@@ -252,7 +253,7 @@ function clamav_generate_rules($type) {
$rules .= "rdr on $iface proto tcp to ($iface) port smtp -> 127.0.0.1 port 10025\n";
}
- else {
+ else if ($type == 'filer' || $type == 'rule') {
foreach ($ifaces as $iface)
$rules .= "pass quick on $iface proto tcp to ($iface) port smtp flags S/SA keep state\n";
}