From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Matching by packet connection
Date: Fri, 16 Nov 2007 10:31:38 +0100 [thread overview]
Message-ID: <473D637A.3040708@plouf.fr.eu.org> (raw)
In-Reply-To: <d95317090711160041n20025e6fldce7387cef82a115@mail.gmail.com>
Hello,
Gilad Benjamini a écrit :
> 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
I think the 'conntrack' match is what you need.
-m conntrack --ctorigdst <mymachine> --ctstate ESTABLISHED
next prev parent reply other threads:[~2007-11-16 9:31 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 [this message]
2007-11-20 1:13 ` Philip Craig
-- 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=473D637A.3040708@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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