Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: Gilad Benjamini <gilad.benjamini@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Matching by packet connection
Date: Tue, 20 Nov 2007 11:13:22 +1000	[thread overview]
Message-ID: <474234B2.203@snapgear.com> (raw)
In-Reply-To: <d95317090711160041n20025e6fldce7387cef82a115@mail.gmail.com>

Gilad Benjamini wrote:
> Is there a way to match a packet against a connection's direction ?
> 
> e.g. apply this rule
> iptables -A chain --destination mymachine -m state --state ESTABLISHED
> -j another_chain
> only to packets belonging to CONNECTIONS with destination mymachine
> 
> conntrack definitely knows has this information.

Yes it does, but I don't think anyone has written a match to access it.
Can you give an example of what action another_chain does that you
only want to do for one direction?  Maybe there is another way to solve
your problem.


  parent reply	other threads:[~2007-11-20  1:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16  8:41 Matching by packet connection Gilad Benjamini
2007-11-16  9:31 ` Pascal Hambourg
2007-11-20  1:13 ` Philip Craig [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-16 20:24 Gilad Benjamini
2007-11-16 21:18 ` Pascal Hambourg

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=474234B2.203@snapgear.com \
    --to=philipc@snapgear.com \
    --cc=gilad.benjamini@gmail.com \
    --cc=netfilter@vger.kernel.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