Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Paul Fontenot" <paul@pitbull-racing.com>
To: "Net Filter (E-mail)" <netfilter@lists.netfilter.org>
Subject: Groups in iptables
Date: Sat, 29 Nov 2003 10:28:45 -0700	[thread overview]
Message-ID: <000301c3b69e$3e4122d0$6400a8c0@pfontenot> (raw)

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



             reply	other threads:[~2003-11-29 17:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-29 17:28 Paul Fontenot [this message]
2003-11-29 19:06 ` Groups in iptables 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000301c3b69e$3e4122d0$6400a8c0@pfontenot' \
    --to=paul@pitbull-racing.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox