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.