diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-28 01:58:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-28 01:58:49 +0000 |
commit | 750184de6d281fa897079de83f2ff657c81cead6 (patch) | |
tree | 529807abd0c114148fcc2d879581ce51618b8ac0 /packages/spamd_rules.php | |
parent | 3ea4cf2cf53c525d6194a482ac13aef9d30cb981 (diff) | |
download | pfsense-packages-750184de6d281fa897079de83f2ff657c81cead6.tar.gz pfsense-packages-750184de6d281fa897079de83f2ff657c81cead6.tar.bz2 pfsense-packages-750184de6d281fa897079de83f2ff657c81cead6.zip |
Configure bridges first
Diffstat (limited to 'packages/spamd_rules.php')
-rw-r--r-- | packages/spamd_rules.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/spamd_rules.php b/packages/spamd_rules.php index 4d2b2de6..27ac850a 100644 --- a/packages/spamd_rules.php +++ b/packages/spamd_rules.php @@ -26,8 +26,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - +$wanif = get_real_wan_interface(); $anchor = "natearly"; -$rule = "rdr pass inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port 8025"; +$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"; $label = "spamd"; -add_rule_to_anchor($anchor, $rule, $label);
\ No newline at end of file +add_rule_to_anchor($anchor, $rule, $label); |