Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

http://cl.ly/image/3j1a2R1m3i3e

share|improve this question

migrated from serverfault.com Sep 19 '13 at 4:55

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

1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.