* [LARTC] upload vs download
@ 2003-08-19 19:13 Vlad Mihai
2003-08-19 19:25 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Vlad Mihai @ 2003-08-19 19:13 UTC (permalink / raw)
To: lartc
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?
Thanks in advance,
Vlad Mihai
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] upload vs download
2003-08-19 19:13 [LARTC] upload vs download Vlad Mihai
@ 2003-08-19 19:25 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-08-19 19:25 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-19 19:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 19:13 [LARTC] upload vs download Vlad Mihai
2003-08-19 19:25 ` Stef Coene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox