Linux Netfilter discussions
 help / color / mirror / Atom feed
* howto only allow outgoing mail from certain hosts
@ 2002-10-01 14:08 Heupink, Mourik Jan C.
  2002-10-01 15:38 ` Boryan Yotov
  0 siblings, 1 reply; 3+ messages in thread
From: Heupink, Mourik Jan C. @ 2002-10-01 14:08 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

Hello all.

The subject says it all, really. I want to (of course) allow OUTGOING mail
from our domain, from only two designated servers. So, drop outgoing mail
from any other host.

I can't seem to produce the iptables command to get this to work... (using
forward chain, because using transp. bridging firewall...)

I guess this: iptables -A FORWARD -s x.x.x.0/24 -p tcp --dport 25 -REJECT
would drop all outgoing mail, right? (i guess the way to select outgoing
mail traffic would be to use --dport..?)

Now i have to find a way to make an exclusion in that rule. something like
-s x.x.x.0/24 EXCEPT x.x.x.y

Could anyone shed some light onto this..?

Thanks very much in advance,
Yours,
Mourik Jan



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <0EB90DD25728C04CBD401CDCD72D2A655A8E@homer.no.laasby.com>]

end of thread, other threads:[~2002-10-01 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01 14:08 howto only allow outgoing mail from certain hosts Heupink, Mourik Jan C.
2002-10-01 15:38 ` Boryan Yotov
     [not found] <0EB90DD25728C04CBD401CDCD72D2A655A8E@homer.no.laasby.com>
2002-10-01 19:20 ` mourik jan c heupink

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