All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Peter Lenci <peterlenci@yahoo.ca>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Iptables Match on Direction (IP_CT_IS_REPLY)
Date: Sat, 05 Mar 2005 00:27:08 +0100	[thread overview]
Message-ID: <4228EECC.5000504@trash.net> (raw)
In-Reply-To: <20050304093542.23600.qmail@web90010.mail.scd.yahoo.com>

Peter Lenci wrote:
> I studied conntrack but didn't find a way to read the direction
> of the packet. In fact I was thinking about writing a patch for that
> module to add an option "--direction original|reply|both".
> 
> How exactly would you determine the direction with conntrack?

CTINFO2DIR(ctinfo) of ctinfo returned by ip_conntrack_get gives you the
direction. If you want to make a patch for ipt_conntrack it should be
similar to Rusty's recent patch "Add bitops to ipt_MARK without breaking
compatbility".

Regards
Patrick

      reply	other threads:[~2005-03-04 23:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 12:43 Iptables Match on Direction (IP_CT_IS_REPLY) Peter Lenci
2005-02-27 20:37 ` Filip Sneppe
2005-03-04  9:35   ` Peter Lenci
2005-03-04 23:27     ` Patrick McHardy [this message]

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=4228EECC.5000504@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=peterlenci@yahoo.ca \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.