LinuxQuestions.org
Visit Jeremy's Blog.
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 02-01-2007, 08:49 AM   #1
andybrr
Member
 
Registered: Mar 2006
Posts: 54

Rep: Reputation: 15
Help with Squid Bandwidth


Hi all,

I need some help with Squid Bandwidth. I am trying to set bandwidth controlling with squid but I have some questions to experts like:

I have a link of 1024K and I want to allow no more than 1K for only "some" user when he will do the any download but the user "free" has no restriction to download.how can do this?

I have these rules

acl download url_regex -i "/usr/local/etc/download.txt"
acl free 192.168.1.2
acl some 192.168.1.3

http_access deny some download
http_access allow some

http_access allow free

######################
# delay_pools config
######################

delay_pools 1

delay_class 1 2
delay_parameters 1 -1/-1 100/100
delay_access 1 allow download

#
http_access deny all

Another question: When I set this acl and I try to do any search within www.google.com with any words that it is inside the download file, it will act as 1K also?

I hope if anyone can help me.

Anderson
 
Old 02-03-2007, 11:48 PM   #2
Sertys
Member
 
Registered: Oct 2006
Posts: 42

Rep: Reputation: 15
Well, first of all - delay pools are fuckin' lame! It's a classless bucket- looking discipline based on FIFO which is undisputable to use nowadays. It's very slow already. So just use some real kernel level discipline like HTB(preferably plus ESFQ qdiscs). By using delay pools, u only shape HTTP traffic, so anybody can fill-up your connection with a single azureus....

For just your second question - if u've got some url regexes like /\.mpg$|\.avi$|.exe$|\.mp3$/ , then any google search will not match , even if containing 'foo.exe', because it shall be url-encoded by your browser.
 
  


Reply


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
how to limit bandwidth by squid saurabh parli Linux - Newbie 1 12-16-2006 11:28 AM
Bandwidth limiting using squid or others ALInux Linux - Networking 1 07-03-2006 12:40 PM
Can i allocate bandwidth through Squid ??? winxandlinx Linux - Networking 3 06-23-2006 01:05 AM
Squid Bandwidth Limit acompw Linux - Software 2 09-12-2004 12:57 PM
Bandwidth Allocation in Squid bally Linux - General 1 02-25-2004 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration