Linux Traffic Control of internet downlink with router as a client

view story

http://superuser.com – 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 pa (HowTos)