All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Beverley <andy@andybev.com>
To: "Mamadou Touré" <e2ia.ci@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: making QoS for FTP traffic using tc HTB
Date: Tue, 27 Jul 2010 07:31:05 +0100	[thread overview]
Message-ID: <1280212265.1462.65.camel@andybev> (raw)
In-Reply-To: <AANLkTiltEFL_FDC2Ah1RedeQTDHji94UbAGUyn39lT1e@mail.gmail.com>

> I've some problem with making Qos.
> All my pass through a linux box which is in Bridge mode.
> I'd to implement a QoS to allocate 25Kbit of bandwith to the FTP
> traffic. So I've made these commands:

<snip>

> tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  src
> 192.168.2.88/32  match ip dport  20  0xffff flowid  1:8170
> tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  dst
> 192.168.2.88/32    0xff match ip dport  21  0xffff flowid  1:8170
> --------------------------------------------------------------------
> The filter tc filter add dev  eth1.....
> Is never match for the FTP downstream.

FTP is quite a complex protocol that jumps around port numbers
(especially passive FTP - see http://slacksite.com/other/ftp.html). I've
not looked at your rules close enough to see whether that is the
problem, but I would recommend using the iptables FTP connection
tracking module with iptables to track the connection, then MARK it, and
then use the mark in the filter.

Andy



  reply	other threads:[~2010-07-27  6:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 23:17 making QoS for FTP traffic using tc HTB Mamadou Touré
2010-07-27  6:31 ` Andrew Beverley [this message]
2010-07-27  7:09   ` Jan Engelhardt

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=1280212265.1462.65.camel@andybev \
    --to=andy@andybev.com \
    --cc=e2ia.ci@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 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.