All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Sven Wandersleb <nibbler@saeuferleber.de>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: bidirectional ip_conntrack_irc
Date: Tue, 03 Jan 2006 13:00:26 +0100	[thread overview]
Message-ID: <43BA675A.70101@trash.net> (raw)
In-Reply-To: <4dc54d760512300911o5c386f4n76c07d078d5142f8@mail.gmail.com>

Sven Wandersleb wrote:
> Hi List,
> 
> is there any Plans to get ip_conntrack_irc working in both directions?
> Its sad to have connections called NEW, if in fact they are RELATED.

What do you mean by "both directions"?

> I need it, as i want to catch DCC downloads to mark/route them to a
> broader link than the default one.

Two possibilities:

- mark master conntrack, related connections will inheirit the mark
iptables -t mangle -A POSTROUTING -p tcp --dport 6667 -j CONNMARK 
--set-mark 0x1

- mark related connections registered by the irc helper
iptables -t mangle -A PREROUTING -m state --state RELATED -m helper 
--helper "irc" -j CONNMARK --set-mark 0x1

In both cases you need to set the packet mark from the connection
mark and use that in your routing rules.

  reply	other threads:[~2006-01-03 12:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-30 17:11 bidirectional ip_conntrack_irc Sven Wandersleb
2006-01-03 12:00 ` Patrick McHardy [this message]
2006-01-11  1:07   ` Sven Wandersleb
2006-01-12  4:11     ` Patrick McHardy

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=43BA675A.70101@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=nibbler@saeuferleber.de \
    /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.