Revision 150fa547
Added by Scott Ullrich over 19 years ago
etc/inc/filter.inc | ||
---|---|---|
543 | 543 |
$natrules .= "#SSH Lockout Table\n"; |
544 | 544 |
$natrules .= "table <sshlockout> persist\n\n"; |
545 | 545 |
|
546 |
$natrules .= "\n# spam table \n"; |
|
547 |
$natrules .= "table <spamd> persist\n\n"; |
|
546 |
/* is SPAMD insalled? */ |
|
547 |
if (is_package_installed("spamd") == 1) { |
|
548 |
$natrules .= "\n# spam table \n"; |
|
549 |
$natrules .= "table <spamd> persist\n"; |
|
550 |
$natrules .= "table <spamd-white> persist\n"; |
|
551 |
$natrules .= "rdr pass on {$wanif} proto tcp from <spamd> to port smtp -> 127.0.0.1 port spamd\n"; |
|
552 |
$natrules .= "rdr pass on {$wanif} proto tcp from !<spamd-white> to port smtp -> 127.0.0.1 port spamd\n"; |
|
553 |
} |
|
548 | 554 |
|
549 | 555 |
/* load balancer anchor */ |
550 | 556 |
$natrules .= "\n# Load balancing anchor - slbd updates\n"; |
Also available in: Unified diff
Update spamd related rules