Linux Netfilter discussions
 help / color / mirror / Atom feed
* Groups in iptables
@ 2003-11-29 17:28 Paul Fontenot
  2003-11-29 19:06 ` Leonardo Rodrigues Magalhães
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Fontenot @ 2003-11-29 17:28 UTC (permalink / raw)
  To: Net Filter (E-mail)

I would imagine the answer to this is yes, but I haven't found anything on
the subject. If you wanted to limit outbound traffic for a certain port to
certain group of servers is that possible?

For example, can I create a group:

MAILSERVERS = 192.168.0.25, 192.168.0.26, 192.168.0.27

and use that in a ruleset:
-A INSIDE_ACCESS_OUT -s $MAILSERVERS -p tcp -m tcp --dport 25 --tcp-flags
SYN,RST,ACK SYN -j ACCEPT

and then drop the rest:
-A INSIDE_ACCESS_OUT -p tcp -m tcp --dport 25 -j DROP



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Groups in iptables
@ 2003-11-29 17:18 Paul Fontenot
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Fontenot @ 2003-11-29 17:18 UTC (permalink / raw)
  To: netfilter

I would imagine the answer to this is yes, but I haven't found anything on
the subject. If you wanted to limit outbound traffic for a certain port to
certain group of servers is that possible?

For example, can I create a group:

MAILSERVERS = 192.168.0.25, 192.168.0.26, 192.168.0.27

and use that in a ruleset:
-A INSIDE_ACCESS_OUT -s $MAILSERVERS -p tcp -m tcp --dport 25 --tcp-flags
SYN,RST,ACK SYN -j ACCEPT

and then drop the rest:
-A INSIDE_ACCESS_OUT -p tcp -m tcp --dport 25 -j DROP



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

end of thread, other threads:[~2003-11-29 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-29 17:28 Groups in iptables Paul Fontenot
2003-11-29 19:06 ` Leonardo Rodrigues Magalhães
2003-11-29 22:24   ` Chris Brenton
  -- strict thread matches above, loose matches on Subject: below --
2003-11-29 17:18 Paul Fontenot

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