Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to shape my internet downlink bandwidth in a bit peculiar way. My linux box at home acts as a router and a torrent client (and other downloads), making my router a router and client inside my network.

I've been fiddling around with TC and am able to easily shape traffic on egress traffic to my network, but because my router is a client more inside my network I can't apply rules inside the same interface root qdisc.

I know that I'm able to shape ingress traffic of my internet interface using IFB, but IFB isn't aware of ingress packets final destination because IFB gets them before passing them to netfilter.

I even gave IMQ a try without success because shaping has to be applied on prerouting.

I made a little graphic of my shaping requirement, I hope it's understandable.

share|improve this question

migrated from Sep 19 '13 at 4:55

This question came from our site for system and network administrators.

Ingress QoS isn't going to materially help you with anything, because by the time the packets have reached your QoS device (router), they have already consumed bandwidth. – Falcon Momot Sep 19 '13 at 4:11
That's true, but if you intentionally queue ingress packets, outgoing ACK packets will start to slow down too freeing up ingress bandwidth after some time. – Larcho Sep 19 '13 at 4:20
That works OK for TCP connections, but as I understand it bittorrent has the option to use UDP. – Falcon Momot Sep 19 '13 at 4:24
I did not know that. I use newsgroups too, so it should shape that. – Larcho Sep 19 '13 at 4:36
Likely. Managing the egress is usually a better option though, as if you try to manage ingress without really having control of it, you're basically trying to manage ingress by managing egress by degrading ingress (one excess layer of indirection). – Falcon Momot Sep 19 '13 at 4:38

You must log in to answer this question.

Browse other questions tagged .