LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-27-2013, 03:27 PM   #1
calebthegeek
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, 06:30 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,166

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

jlinkels
 
  


Reply

Tags
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 11:16 AM
bandwidth throttling?? large_satchell Linux - Networking 10 09-22-2006 01:54 AM
Bandwidth throttling joeljkp Linux - Networking 4 07-28-2005 12:59 PM
bandwidth throttling greenmeanie Debian 1 07-10-2005 09:06 PM
Bandwidth Throttling chasingmytail Slackware 6 06-30-2004 10:38 AM


All times are GMT -5. The time now is 12:38 PM.

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