Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] shaping packets in PREROUTING - is it legal?
@ 2003-01-31 15:55 Abraham van der Merwe
  0 siblings, 0 replies; only message in thread
From: Abraham van der Merwe @ 2003-01-31 15:55 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]

Hi!

I've got a box which redirects http traffic to another box (proxy). I'd like
to do some traffic shaping on this box as well (including traffic destined
for the proxy). In order to do that I need to intercept packets in the
mangle table in PREROUTING, shape it and then it will be redirected when it
gets to the nat table in PREROUTING (or not, if it is not http).

So now I have


         | eth0 (incoming)
    .---------.
    | QoS box |
    `---------'
         | eth1 (outgoing)

and I have

iptables -t mangle -N qos
iptables -t mangle -A PREROUTING -j qos
iptables -t nat -A PREROUTING -i eth1 -s .... -p tcp --dport 80 -j DNAT --to ...

and then a couple of rules in the qos table which sets skb->priority so that
tc can delay the packets (I'm using HTB)

Problem is that if I do this, the box stops routing traffic until I remove
the qos filters _and_ the tc queuing discplines.

Any ideas what is happening here, why it doesn't work and what I should do
different?

--

Regards
 Abraham

Time is fluid ... like a river with currents, eddies, backwash.
		-- Spock, "The City on the Edge of Forever", stardate 3134.0

___________________________________________________
 Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
 P.O. Box 3472, Matieland, Stellenbosch, 7602
 Cell: +27 82 565 4451 Http: http://www.frogfoot.net/
 Email: abz@frogfoot.net


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-31 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-31 15:55 [LARTC] shaping packets in PREROUTING - is it legal? Abraham van der Merwe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox