www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Hashspeed

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Request a new feature
View previous topic :: View next topic  
Author Message
AtroposX



Joined: 26 Nov 2008
Posts: 155
Location: USA

PostPosted: Wed Dec 29, 2010 5:48 pm    Post subject: Hashspeed Reply with quote

Was wondering if it'd be possible to add support for hashspeed?

It is based on hashlimit for rate-limiting for pps. With hashlimit you can state a subnet with a maximum of 1,000 pps, with a hashmode of dstip or srcip, so each ip gets its own 1,000 pps, with just one iptables staement.

With hashspeed, it is basically the same, but with bps. So each ip in a subnet can get its own speed, in just one iptables statement.

Say a 192.168.1.0/24 hashspeed and mode of dstip of 2048k, would mean each ip in that subnet gets its own 2meg download speed, rather than making 254 individual classifiers and 254 separate classes in the class-manager, cluttering up the web-gui severely.

Hashspeed does not have an official homepage or appears to be really documented all that well, but i was looking for an alternative to adding individual classes/classifiers for each ip, and ease of use. The only download site I've found is at:

http://en.pudn.com/downloads187/sourcecode/unix_linux/detail878696_en.html

And some (Chinese) examples are at:

http://www.hecong.net/archives/36.html

It think this would be a very valuable asset, especially when combined with ipset.
Back to top
View user's profile Send private message
AtroposX



Joined: 26 Nov 2008
Posts: 155
Location: USA

PostPosted: Wed Dec 29, 2010 6:04 pm    Post subject: Reply with quote

Here is another link with more info regarding hashspeed: (Google Translated to English)

http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://www.chinaunix.net/jh/4/918056.html&ei=tHYbTZ_lNIq2sAPM1NTEAg&sa=X&oi=translate&ct=result&resnum=5&sqi=2&ved=0CEsQ7gEwBA&prev=/search%3Fq%3Dhashspeed%2Biptables%26hl%3Den%26client%3Dfirefox-a%26hs%3DkPg%26rls%3Dorg.mozilla:en-US:official%26prmd%3Divns
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Request a new feature All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group