LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2011, 04:21 PM   #1
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Squid delay pools


I searched this forum and many others to understand delay pools but unfortunately couldn't.

I want to configure squid delay pool for the following scenario:

Internet Connection Speed: 7Mbps

3 Types of clients

Type 1: unlimited access to bandwidth

Type 2: 1.5 Mbps
Type 3: 512 Kbps


unlimited access ip address 192.168.4.1,2,5,10
1.5 mbps ip addresses 192.168.4.3,4,6-9,11
512 mbps ip addresses 192.168.4.12-14

Any help regarding creating acl for these ip's and delay pools for above speed would be appreciated.

Thanks in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-04-2011, 05:29 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I came across these:

http://wiki.squid-cache.org/Features/DelayPools
http://www.howtoforge.com/squid-dela...dth-management

Hope that helps get you in the right direction.

Cheers,

Josh
 
Old 03-05-2011, 02:50 AM   #3
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226

Original Poster
Blog Entries: 3

Rep: Reputation: 38
Unhappy still problems

As I requested before.. I have been through all manuals but unable to get the core idea of configuration. I need a configuration for the above situation.. please

waiting to see if anyone could help...

Thanks
 
Old 03-05-2011, 10:06 AM   #4
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226

Original Poster
Blog Entries: 3

Rep: Reputation: 38
no body?? am waiting.. and stilling figuring out how to write some rules to make my proxy server live..
 
Old 03-06-2011, 12:05 PM   #5
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226

Original Poster
Blog Entries: 3

Rep: Reputation: 38
I finally managed to make it work...
########################################### define networks
acl all src 0.0.0.0/0.0.0.0
acl unlimited src "/etc/squid/unlimited.txt"
acl our_1mbps src "/etc/squid/our_1mbps.txt"
acl our_512kbps src "/etc/squid/our_512kbps.txt"
acl our_256kbps src "/etc/squid/our_256kbps.txt"


########################################### give access

http_access allow unlimited
http_access allow our_1mbps
http_access allow our_512kbps
http_access allow our_256kbps
http_access deny all


############################################ define delay pools

delay_pools 4
delay_class 1 2
delay_access 1 allow unlimited
delay_access 1 deny all
delay_parameters 1 -1/-1 -1/-1


delay_class 2 2
delay_access 2 allow our_1mbps
delay_access 2 deny all
delay_parameters 2 -1/-1 131072/131072

delay_class 3 2
delay_access 3 allow our_512kbps
delay_access 3 deny all
delay_parameters 3 -1/-1 65536/65536

delay_class 4 2
delay_access 4 allow our_256kbps
delay_access 4 deny all
delay_parameters 4 -1/-1 32785/32786


################################################# create network range file as defined above
Code:
cd /etc/squid
create files

Code:
touch unlimited.txt our_1mbps.txt our_512kbps.txt our_256kbps.txt

############################ put ip addresses of clients in appropriate file



thanks..
 
2 members found this post helpful.
Old 03-06-2011, 01:32 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Glad to see you got it to work! I was busy over the weekend, so that's why I wasn't really on LQ much. Mark your thread as solved if you can, thanks!

Cheers,

Josh
 
Old 08-15-2016, 11:25 PM   #7
shailendra.yadav
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Thumbs up thanks

sir
this configuration is very helpful to me
i was search this one for a month. finally i got it

thanks a lot

shailendra yadav
 
Old 08-16-2016, 02:44 AM   #8
shailendra.yadav
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Question want user base config

Sir you gave config is ip wise . i have ncsa auth. in my server centos 7.0

Please help me for the same
i want user based not ip based.
how can i do that
 
  


Reply



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
squid delay pools qwertyjjj Linux - Server 0 11-09-2010 07:50 AM
Squid with Delay Pools. nishith Linux - Server 2 01-02-2010 03:11 PM
Squid delay pools suhas! Linux - Server 1 12-01-2007 12:49 PM
Squid delay pools Bilal84 Linux - Security 1 04-27-2005 08:38 AM
Squid Delay pools Bilal84 Linux - Networking 1 04-26-2005 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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