Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] upload vs download
Date: Tue, 19 Aug 2003 19:25:27 +0000	[thread overview]
Message-ID: <marc-lartc-106132120823854@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106132056323231@msgid-missing>

On Tuesday 19 August 2003 21:13, Vlad Mihai wrote:
> I have a tc script which splits the bandwidth in 8 leaf classes based on
> IP filtering.
> The script looks like this:
>
> tc filter add dev $LAN_IFACE protocol ip parent 1:0 prio 1 u32 match ip
> dst 192.168.0.121 flowid 1:11
>
>
> The separation works excellent for downloads, but for uploads, it is
> ignored...
> Can you tell me how to deal with it?
Yes.  For uploads, the packets are natted.  So the src address is rewritten.  
You can get around this if you mark the packets with iptables when they enter 
the box (so you have the real src address) and use that mark with the fw 
filter.

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/

      reply	other threads:[~2003-08-19 19:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-19 19:13 [LARTC] upload vs download Vlad Mihai
2003-08-19 19:25 ` Stef Coene [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=marc-lartc-106132120823854@msgid-missing \
    --to=stef.coene@docum.org \
    --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