Partitioning Bandwidth Using Mac OS X?
dasboy has this query: "I was wondering if anyone knew of away to partition bandwidth amongst a group of computers running Mac OS X? I have a [few Macintosh machines] at home all on the same LAN and all on the same Internet connection. One of these machines is used by my daughter when she's home from school. The biggest problems happen when she begins downloading large files (I'll let you guess what she downloads <grin!>). I was wondering if there are any cool BSDish ways of constricting the amount of bandwidth her computer uses?"
I'll let you guess what she downloads
I'll leave it up to everyone else with perverted minds to guess what _I_ thought of when I first read that.
I feel like a bad person now.
This statement is false.
It was porn huh?
Tea and kung-fu. Life is good. Rising Phoenix
Woah... his Daughter is a total porno freak! YEAAAAAAH!
Mingisback
The biggest problems happen when she begins downloading large files (I'll let you guess what she downloads
:)
4 posts so far, 3 implying she downloads porn. You did ask for it you know
QoS on the router would be the best bet in my uninformed opinion. Other then that a download manager that throttles her bandwidth
I haven't tried it yet (1.5Mbps is plenty for all those on my home LAN), but you might want to give Throttled a shot. Certainly not the easiest to use (no GUI), but it is open source and cross platform (Linux/BSD/OS X). Basically it runs a server process that you enables bandwidth throttling in your kernel's firewall. The configuration file is simple enough to understand and is quite flexible. You can change also settings while it is running by sending it signals using the not-so-aptly-named 'kill' command in the terminal.
Karma: Incomprehensible (Mostly affected by posting at +5, reading at -1, and metamoderating everything unfair.)
Ralf
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
-Bertrand Russel
QoS (Quality of Service) settings on your router might be the easiest method. I've never used it, but I know my LinkSys allows you to set priorities (High, Low) for either a specific LAN port, or a particular protocol. Assuming you know what program she is using, say LimeWire, you can also set a specific port (23, etc) to a low priority. I'd be interested to see what effect this has.
Like puzzle games? Warehouse51 for iOS
The simplest way to limit the amoutn of bandwidth she is using would be to throttle it using ipfw, the BSD firewall, you can use it either drop random packets by percentage in order to limit the bw she consumes as well as several other methods.
_______
Death wish, n.:
The only wish that always comes true, whether or not one wishes it t
Doing this should limit the connection to 300Kbit/s. If you want the connection faster or slower you simply need to change the 300Kbit/s number. 56Kbit/s should be approximately the speed of a 56K modem. The last number probably should be scaled appropriately to the first number, that is if you cut the first number in half then cut the second in half.
To learn more about pipes and dummynet, read the manpages for ipfw with the following command in the terminal:
Sapere aude!
**sigh**
This is the 4th young girl I've heard about this week succumb to the evils of Richard Simmons videos. Which is her favorite? The "Disco Blast Off", or the "Best of Latin Buns Burning"?
Or is it....no....it couldn't be...."Getting Dirty with the 80s"? Oh, the humanity!
She isn't studying that Ellen Feiss ad so she can win the 2003 North American Ellen Feiss Look-a-like bleep bleep bleep bleep Contest? You know the one where after the first round, like, half the contestants lose... which is kinda... a bummer...
At least the girls (if there are any) in the contest are shaven... Unlike In Soviet Russia....
is something I've used under OpenBSD for bandwidth throttling. Don't know if it compiles on OS X.
Big Daddy, Johnny, Burp, Aunt Zelda, Scott, Slurp, Big Momma
You have so many machines and she is downloading such large files that you actually need QoS on your home lan?? Wow.
Why not fork?
...have you tried talking to her about it? :)
Well, that's what my Dad would have done.
"If I am such a genius, how come that I am drunk and lost in the desert with a bullet in my ass?" --Otto (Malcom ITM)
Is there an option in the program to limit how much available bandwith it uses?
I assume you mean illegal MP3s. If you encourage your children to steal music and software, please be sure it's a conscious decision. Liability issues aside, you send a very clear message to your kid when you teach them that it's okay to pick and choose which laws they obey.
I have a similar requirement, in that I would like to throttle a connection on a per-server basis (on OpenBSD most likely). i.e. I would like to allow 192.168.1.2 100kb/s and 192.168.1.3 50kb/s. Is this possible? How would it be done?
- j
He said the problem is large file downloads -- i.e., downstream bandwidth. Throttling will limit upstream bandwidth, but there isn't much you can do locally about the amount of data hitting you from external sites...
Since I'm not too familiar with OS-X I don't know if this will work, but this is probably close enough to what you are looking for. LINUX Advanced Routing HOW-TO It would be interesting (to me at least) to know if the same tools apply on OS-X.
. . . is not bandwidth throttling, but rather packet prioritization. It will be unnecessarily restrictive (and not ideal for you either) to give her, e.g., 300 kbps at all times. It would be much better to give yourself all the bandwidth you want at any given moment, and give her whatever's left over. That way she could use the full bandwidth most of the time, but not interfere with your work at all in the rare moments when you need a lot of bandwidth. Unfortunately, this kind of prioritization between traffic from different hosts would have to happen in the router, so it's probably not available on your home network.
This is a ridiculous over-simplification of a complex problem that philosophers throughout the ages have wrestled with.
Probably the most well known in the West is Socrates' reply to the Crito where he determined (to summarise) that even if a law is bad, one cannot simply choose to disobey it if one believes that the State in general is good. If one believes the law is so intolerable it cannot be obeyed, one should either try his/her best to change it; leave the state; organise _public_ civil disobedience to further one's cause. Disobeying a law without doing so publicly will not further one's cause, it is simply an undermining of the state which (at least in Socrates' view) is hurting a State one otherwise "loves".
I don't know about anyone else, and maybe this has been posted one to many times to be funny and I've never seen it before, but that was one of the most fucking hillarious trolls I've seen in a while.
MODs let this one go, its a funny troll.
When she is inteferring noticably with your bandwith simply launch a DOS attack on her computer from another machine. If you can do this through a switch on the same sub net as hers, it should prevent here form doing anything... problem solved. oh yeah switch it off when you are done.
Assuming she's running OS X.
Create a superuser account for yerself on her machine.
Whenever she's doing illegal things... SSH into her machine and kill the process.
again.
and again.
and again.
she'll presume the program is so buggy she'll never use it again.
the RIAA and you win.
yah! technology.
Enough about bandwidth restricting, is there any way to do bandwidth reserving, such as making sure a server on the network always gets at least a certain amount of bandwidth?
I emailed the person in charge of maintaining the IPFirewall implementation in Darwin pub source and he said he would look into including dummynet support, but after that I never heard back:(
m
What I tried to get around the lack of any easy solution was to setup a transparent proxy on the server with Squid, and then use Squid's own bandwidth limiting functions (delay pools-which can allow you to set groups of people based on IP's and subnets). I was doing this at the time with a 56k connection, and it actually worked to the point where my game pings would not cross over 500...lol. I don't recommend it for anything less than DSL, but the difference is noticeable...also, it can be hard to figure out at first, but it is definitely do-able...all this assumes however, that you have a dedicated Mac OS X box running as a gateway router.
http://www.squid-cache.org/
http://squid.visolve.com/squid24s1/delaypool.ht
You could also can have a cron job run on the server during the times you are most likely going to be on, to alter your ipfw config and deny all traffic on the ports your daughter is using to do what she does....but you probably want something more difficult;D
--"It's Bradford Company, slash your last name, dot your first name"