On a home network, would it possible to limit bandwidth based on site? Like letting all web traffic flow unrestricted, but setting a rate/ceiling cap for any traffic to/from Youtube (or vice versa — restricting all traffic, but with exception sites that are unrestricted, like Youtube)?
I'd guess that this might be feasible through some iptables sorcery, but I'm a bit rusty on my iptable magic. On the other hand, I know that bandwidth limiting is a "tricky" art, as you can't limit it on the ISP's side — the router dropping packets is still the equivalent of full-speed/bandwidth being used (from the ISP's perspective).
One possibility I've contemplated is through DNS — for example, when Youtube.com is requested by an IP address through DNS, that request gets forwarded/redirected internally (on the home network) through another IP address, like a proxy, and that IP address has an all-inclusive bandwidth-limited restriction — but it only gets traffic flowed through it when the router redirects, like for an exception of Youtube.
(Using Shibby's Tomato v110)