Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Wayne" <wayne@fengshuifont.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] FTP Connection Tracking in a Bridge
Date: Wed, 20 Aug 2003 12:39:17 +0000	[thread overview]
Message-ID: <marc-lartc-106138365412484@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106136953432545@msgid-missing>

I have applied the patch to IPTABLES which allows me to use it on a bridge.
The iptables rules are working as I am using it for other things as well.
If you do not have the patch applied, you get an error message when trying
to run IPTABLES.

The one filter rule I am using is as follows:

tc filter add dev eth1 parent 1:2 protocol ip prio 1 handle 2 fw classid
1:2a

I have the browsing match into the IPTABLES as it is a simpler one to check
if it is working before I try the FTP connection tracking portion.

Thanks

Wayne


----- Original Message ----- 
From: "Stef Coene" <stef.coene@docum.org>
To: "Wayne" <wayne@fengshuifont.com>; <lartc@mailman.ds9a.nl>
Sent: Wednesday, August 20, 2003 2:26 PM
Subject: Re: [LARTC] FTP Connection Tracking in a Bridge


> On Wednesday 20 August 2003 10:48, Wayne wrote:
> > Hello,
> >
> > I have a box running as a bridge and am trying to track the passive FTP
> > sessions by marking them with iptables (CONNMARK option installed) and
then
> > trying to pick up the mark using tc filter fwmark. This is not working.
> >
> > I have checked the marking of the packets and this is working fine
because
> > I can see the marks when I cat /proc/net/ip_conntrack.
> >
> > Having setup my queues and using the following command:
> >
> > tc filter add dev eth1 parent 1:2 protocol ip prio 1 handle 2 fw classid
> > 1:2a
> >
> > I do not get any traffic going in to this queue. I am running kernel
> > 2.4.21.
> >
> > My question is whether the packet that I have marked is actually every
> > getting to the tc filter. As I am running a bridge, does the packet get
> > marked in iptables PREROUTING, and then go straight to the FORWARD rule
and
> > then out.
> >
> > What is the sequence in which iptables processes the packet and then the
tc
> > filter processes the packet.
> >
> > Many thanks
> Just wondering, can you really use iptables on a bridge?  I thought you
have
> to use ebtables : http://www.docum.org/stef.coene/qos/faq/cache/41.html
>
> Stef
>
> -- 
>
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net
>
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-08-20 12:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20  8:48 [LARTC] FTP Connection Tracking in a Bridge Wayne
2003-08-20  9:02 ` Eric Leblond
2003-08-20  9:56 ` S Mohan
2003-08-20 10:06 ` Wayne
2003-08-20 12:24 ` Stef Coene
2003-08-20 12:26 ` Stef Coene
2003-08-20 12:38 ` Eric Leblond
2003-08-20 12:39 ` Wayne [this message]
2003-08-20 13:26 ` S Mohan
2003-08-20 15:17 ` Stef Coene
2003-08-21  7:28 ` Wayne
2003-08-22 19:12 ` Bart De Schuymer

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=marc-lartc-106138365412484@msgid-missing \
    --to=wayne@fengshuifont.com \
    --cc=lartc@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