Bandwidth priority when to/from a certain host.
Posted on 2007-03-28
I think my problem is relatively simple. I tried using different scripts I found on the net for this but I couldn't get anything to work. The best I got was limiting the entire interface traffic (no good).
My external device: eth0
Internal device: eth1
Instead of limiting traffic, I want to reserve it. I can't use cbq, or any of the fancy modules like layer 7, or CONNMARK. I need to do this using basically only "iptables" for marking packets and "tc" for shaping.
I want to make sure ANY kind of traffic for a certain external host (say, 18.104.22.168) has priority over other traffic. ANY and ALL traffic on ANY ports and protocols to OR from the 22.214.171.124 should be allowed ALL the bandwidth it needs. That's it. I think I just need 2 classes right? One for the High priority IP 126.96.36.199, and one for the remaining Internet traffic. I wanna keep it simple.