mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update spamd related rules
This commit is contained in:
parent
1ba8fa216b
commit
150fa547f3
@ -543,8 +543,14 @@ function filter_nat_rules_generate() {
|
||||
$natrules .= "#SSH Lockout Table\n";
|
||||
$natrules .= "table <sshlockout> persist\n\n";
|
||||
|
||||
$natrules .= "\n# spam table \n";
|
||||
$natrules .= "table <spamd> persist\n\n";
|
||||
/* is SPAMD insalled? */
|
||||
if (is_package_installed("spamd") == 1) {
|
||||
$natrules .= "\n# spam table \n";
|
||||
$natrules .= "table <spamd> persist\n";
|
||||
$natrules .= "table <spamd-white> persist\n";
|
||||
$natrules .= "rdr pass on {$wanif} proto tcp from <spamd> to port smtp -> 127.0.0.1 port spamd\n";
|
||||
$natrules .= "rdr pass on {$wanif} proto tcp from !<spamd-white> to port smtp -> 127.0.0.1 port spamd\n";
|
||||
}
|
||||
|
||||
/* load balancer anchor */
|
||||
$natrules .= "\n# Load balancing anchor - slbd updates\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user