Hi - I have a linux (ubuntu) router that I have setup and running without problem. Over the last week I have been looking into ways to limit bandwidth to any given machine to for example 100kbps - using a couple of tutorials and a bit of trial and error I have that working with TC. The one thing I have not been able to figure out as of yet that I would like to do - have a list of excluded mac addresses that are not subject to these limits - in a perfect world it would just be a text file with one per line or something like that but I would be fine with having to write rules to exclude those mac addresses in tc - any thoughts on a good way to do this?
If you have set up your TC, you have created a list of qdiscs (que disciplines). Now create a class which has a ceiling and rate which is equal or larger than whatever limits your bandwidth. Next create IPTABLES rule which mark the MAC addresses excluded from traffic shaping with the proper mark for this class.
BTW, you can play with lowering the rate while keeping the ceiling high to change priority in the network adapters which should allowed access to full bandwidth.
|All times are GMT -5. The time now is 02:11 AM.|