1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limiting bandwidth based on site?

Discussion in 'Tomato Firmware' started by Coldblackice, Jul 29, 2013.

  1. Coldblackice

    Coldblackice Reformed Router Member

    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.

    Any ideas?

    (Using Shibby's Tomato v110)

Share This Page