aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_rules.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-28 01:58:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-28 01:58:49 +0000
commit750184de6d281fa897079de83f2ff657c81cead6 (patch)
tree529807abd0c114148fcc2d879581ce51618b8ac0 /packages/spamd_rules.php
parent3ea4cf2cf53c525d6194a482ac13aef9d30cb981 (diff)
downloadpfsense-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.php7
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);