help with iptables

Dave Cramer davec-zxk95TxsVYDyHADnj0MGvQC/G2K4zDHf at public.gmane.org
Fri Jan 19 15:56:03 UTC 2007


Heres what I want to do

I have a new mail spam filter machine I want to test before I change  
the mx records


this machine I will call A receives mail and forwards it to B

currently B is the MX

So what I'd like to do is  using iptables :

route port 25 traffic currently going to B --> A except when it comes  
from A

I tried

iptables -t nat -A PREROUTING -p tcp -m tcp -s ! A --dport 25 -j DNAT  
--to-destination A

but this didn't work

suggestions ?

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20070119/918d153a/attachment.html>


More information about the Legacy mailing list