Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-27-2013, 04:27 PM   #1
LQ Newbie
Registered: Dec 2005
Location: Troy, Il
Distribution: Slackware 10.2
Posts: 3

Rep: Reputation: 0
Bandwidth throttling

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?
Old 03-27-2013, 07:30 PM   #2
Senior Member
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,728

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
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.



iptables, router, tc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
throttling bandwidth with tc yawe_frek Linux - Server 0 09-12-2007 12:16 PM
bandwidth throttling?? large_satchell Linux - Networking 10 09-22-2006 02:54 AM
Bandwidth throttling joeljkp Linux - Networking 4 07-28-2005 01:59 PM
bandwidth throttling greenmeanie Debian 1 07-10-2005 10:06 PM
Bandwidth Throttling chasingmytail Slackware 6 06-30-2004 11:38 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration