Go Back   Wireless and Wifi Forums > Communities > NZ Wireless
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2003, 10:33 AM
Administrator
 
Join Date: Aug 2005
Location: New Zealand
Posts: 670
Default Help: Linux rate limiting

Hey,

Currently i have a linux box as my router. My flatmates use a lot of the bandwidth, mainly upstream as they sit on dc++ and other p2p applications 24/7, which is starting to piss me off

Does someone know a way of limiting p2p uploads/downloads, or limiting certain ips in linux?

I thought that putting a thread in here may help other ppl with the same problems (ie if a wifi user was using all their bandwidth for p2p)

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-12-2003, 12:01 PM
Senior Member
 
Join Date: Jan 1970
Location: Auckland
Posts: 211
Send a message via MSN to shadowX
Default

Noodles,

One way would/could be to use star-os as the gateway/auth system then your flatmates could be ratelimited dowe to 1kb/s I did this for kickes just to see if it works and it works well. You ratelimit depending on the users login.

There are other altenatives but this is a "Boxed Solution" and works.

This will work both for Wireless and Wired clients.
Reply With Quote
  #3 (permalink)  
Old 10-12-2003, 12:36 PM
Administrator
 
Join Date: Aug 2005
Location: New Zealand
Posts: 670
Default

only problem is i'd like to keep my router as a linux box :P

i'm just difficult like that
Reply With Quote
  #4 (permalink)  
Old 10-13-2003, 10:42 AM
Junior Member
 
Join Date: Jan 1970
Location: Auckland
Posts: 5
Send a message via ICQ to puddpunk Send a message via AIM to puddpunk Send a message via MSN to puddpunk
Default

Hey Noodles, These are a couple of sites that I've found that may help you out:
[list]

This is a great site which I use for anything to do with linux routing (has a great zebra intro as well). Has some really good tips on using tc (traffic control, in the iproute2 package) and a few other random goodies.

[*]http://www.sonicspike.net/software/ (right at the bottom of page)

This is about limiting on a DSL connection. I havn't tried it myself. Basically, the author created it because wondershaper (coming up next) employs a flawed way of shaping traffic and this software doesnt require kernel patches. Looks interesting though...

[*]http://lartc.org/wondershaper/

This is a very generic script that basically puts all bulk traffic (i.e. not TCP ACK's, pings, web traffic) into a bulk class, and lets priority traffic (e.g. ACK's, pings and web traffic) traverse the queue and get better responsiveness, even with large downloads. Requires some calibrating. Doesn't quite work for me, For some reason I get _bad_ bandwidth starvation

[*]http://webs.sinectis.com.ar/lesanti/shaperd/

ShaperD, a daemon that runs in userspace and manages bandwidth shaping. Can do it for masqueraded hosts (NAT) but AFAIK requires another kernel patch (may be included in your distros kernel though). Haven't tested this one either, but looks pretty good.[list]

Hope that helps dude,
Cheers,
Chris.
Reply With Quote
  #5 (permalink)  
Old 10-13-2003, 10:03 PM
Junior Member
 
Join Date: Jan 1970
Location: Manurewa, Auckland
Posts: 28
Send a message via ICQ to worzeel
Default

Use OpenBSD ....

OpenBSD 3.3 has Altq built into pf...

http://www.openbsd.org/faq/pf/queueing.html

...


as I have said many a time... OpenBSD is the neat!
Reply With Quote
  #6 (permalink)  
Old 10-13-2003, 10:18 PM
Junior Member
 
Join Date: Jan 1970
Location: Auckland
Posts: 5
Send a message via ICQ to puddpunk Send a message via AIM to puddpunk Send a message via MSN to puddpunk
Default

Quote:
as I have said many a time... OpenBSD is dying!
:P

Quote:
only problem is i'd like to keep my router as a linux box :P
Well that solves that.

j/k, I've actually been wanting to try a BSD but tech that I use on my linux router (e.g. PPTP, funky net drivers (odd net cards) and a few other things) may not be supported under BSD, and I've never had the motovation to take the plunge and have a look.

Linux has priority scheduling built in, based on the TOS header in the packet, it is able to route like that, but many network aware programs (especially windows ones) do not set this bit rendering it useless.

Cheers,
Chris.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WONT RUN LINUX wireless networking MontyW alt.internet.wireless 9 04-18-2007 06:52 PM
Reading files from linux when you use linux (No partition but 2nd HDD) just_me alt.comp.hardware 2 02-19-2007 09:58 PM
Error Loading OS after Linux install Matt alt.comp.hardware 3 08-23-2006 02:22 AM
Security fears over MS October patches... Imhotep alt.computer.security 31 10-23-2005 01:58 AM
More tech fails to exorcise security risks Imhotep alt.computer.security 7 09-15-2005 06:45 AM


All times are GMT. The time now is 06:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45