Linux Netfilter discussions
 help / color / mirror / Atom feed
* question about the order of the rules of iptables
@ 2005-09-08 12:01 Will Kuhn
  2005-09-08 12:23 ` John A. Sullivan III
  0 siblings, 1 reply; 5+ messages in thread
From: Will Kuhn @ 2005-09-08 12:01 UTC (permalink / raw)
  To: netfilter


Will the order of the following two rules make any
difference in the outcome ? I personally feel that it
should not. Can anyone confirm ?

My intention is to have the incoming mails first
checked by the local anti-spam process listening at
port 1025 before being forwarded to the local mail
server. 10.1.1.100 is a private ip address of the
local mail server.

Local Mail server ----- [eth0] LinuxBOX [eth1] ----
internet

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport
25 -j DNAT --to 10.1.1.100

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport
25 -j REDIRECT --to-port 1025

-Will

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-08 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 12:01 question about the order of the rules of iptables Will Kuhn
2005-09-08 12:23 ` John A. Sullivan III
2005-09-08 17:09   ` Will Kuhn
2005-09-08 17:59     ` Rob Sterenborg
2005-09-08 18:07     ` John A. Sullivan III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox