Re: [squid-users] limiting connections

2012-05-29 Thread Carlos Manuel Trepeu Pupo
Here I make this post alive because a make a few changes. Here you have, if anyone need it: #!/bin/bash while read line; do shortLine=`echo $line | awk -F "/" '{print $NF}'` #echo $shortLine >> /home/carlos/guarda & -> This is for debugging result=`squidclient -h 127.0.0.1 m

Re: [squid-users] limiting connections

2012-04-05 Thread H
Carlos Manuel Trepeu Pupo wrote: > On Thu, Apr 5, 2012 at 10:32 AM, H wrote: >> Carlos Manuel Trepeu Pupo wrote: > what is your purpose? solve bandwidth problems? Connection rate? > Congestion? I believe that limiting to *one* download is not your real > intention, because the browser

Re: [squid-users] limiting connections

2012-04-05 Thread Carlos Manuel Trepeu Pupo
On Thu, Apr 5, 2012 at 10:32 AM, H wrote: > Carlos Manuel Trepeu Pupo wrote: >>> > what is your purpose? solve bandwidth problems? Connection rate? >>> > Congestion? I believe that limiting to *one* download is not your real >>> > intention, because the browser could still open hundreds of regular

Re: [squid-users] limiting connections

2012-04-05 Thread H
Carlos Manuel Trepeu Pupo wrote: >> > what is your purpose? solve bandwidth problems? Connection rate? >> > Congestion? I believe that limiting to *one* download is not your real >> > intention, because the browser could still open hundreds of regular >> > pages and your download limit is nuked and

Re: [squid-users] limiting connections

2012-04-05 Thread Carlos Manuel Trepeu Pupo
On Thu, Apr 5, 2012 at 7:01 AM, H wrote: > Carlos Manuel Trepeu Pupo wrote: >> On Tue, Apr 3, 2012 at 6:35 PM, H wrote: >>> Eliezer Croitoru wrote: On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: > On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries > wrote: >> On 03.04.2012 02:2

Re: [squid-users] limiting connections

2012-04-05 Thread H
Carlos Manuel Trepeu Pupo wrote: > On Tue, Apr 3, 2012 at 6:35 PM, H wrote: >> Eliezer Croitoru wrote: >>> On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries wrote: > On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: >> >>

Re: [squid-users] limiting connections

2012-04-04 Thread Carlos Manuel Trepeu Pupo
On Tue, Apr 3, 2012 at 6:35 PM, H wrote: > Eliezer Croitoru wrote: >> On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: >>> On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries >>> wrote: On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: > > Thanks a looot !! That's what I'm

Re: [squid-users] limiting connections

2012-04-03 Thread H
Eliezer Croitoru wrote: > On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: >> On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries >> wrote: >>> On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: Thanks a looot !! That's what I'm missing, everything work fine now. So this s

Re: [squid-users] limiting connections

2012-04-03 Thread Carlos Manuel Trepeu Pupo
On Tue, Apr 3, 2012 at 4:36 PM, Eliezer Croitoru wrote: > On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: >> >> On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries >>  wrote: >>> >>> On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: Thanks a looot !! That's what I'm miss

Re: [squid-users] limiting connections

2012-04-03 Thread Eliezer Croitoru
On 03/04/2012 18:30, Carlos Manuel Trepeu Pupo wrote: On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries wrote: On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: Thanks a looot !! That's what I'm missing, everything work fine now. So this script can use it cause it's already works. No

Re: [squid-users] limiting connections

2012-04-03 Thread Carlos Manuel Trepeu Pupo
On Mon, Apr 2, 2012 at 6:43 PM, Amos Jeffries wrote: > On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: >> >> Thanks a looot !! That's what I'm missing, everything work >> fine now. So this script can use it cause it's already works. >> >> Now, I need to know if there is any way to co

Re: [squid-users] limiting connections

2012-04-02 Thread Amos Jeffries
On 03.04.2012 02:21, Carlos Manuel Trepeu Pupo wrote: Thanks a looot !! That's what I'm missing, everything work fine now. So this script can use it cause it's already works. Now, I need to know if there is any way to consult the active request in squid that work faster that squidclient

Re: [squid-users] limiting connections

2012-04-02 Thread Carlos Manuel Trepeu Pupo
Thanks a looot !! That's what I'm missing, everything work fine now. So this script can use it cause it's already works. Now, I need to know if there is any way to consult the active request in squid that work faster that squidclient On Sat, Mar 31, 2012 at 9:58 PM, Amos Jeffries wr

Re: [squid-users] limiting connections

2012-03-31 Thread Amos Jeffries
On 1/04/2012 7:58 a.m., Carlos Manuel Trepeu Pupo wrote: On Sat, Mar 31, 2012 at 4:18 AM, Amos Jeffries wrote: On 31/03/2012 3:07 a.m., Carlos Manuel Trepeu Pupo wrote: Now I have the following question: The possible error to return are 'OK' or 'ERR', if I assume like Boolean answer, "OK"->TR

Re: [squid-users] limiting connections

2012-03-31 Thread Carlos Manuel Trepeu Pupo
On Sat, Mar 31, 2012 at 4:18 AM, Amos Jeffries wrote: > On 31/03/2012 3:07 a.m., Carlos Manuel Trepeu Pupo wrote: >> >> >> Now I have the following question: >> The possible error to return are 'OK' or 'ERR', if I assume like >> Boolean answer, "OK"->TRUE&  "ERR"->FALSE. Is this right ? > > > Equi

Re: [squid-users] limiting connections

2012-03-31 Thread Amos Jeffries
On 31/03/2012 3:07 a.m., Carlos Manuel Trepeu Pupo wrote: Now I have the following question: The possible error to return are 'OK' or 'ERR', if I assume like Boolean answer, "OK"->TRUE& "ERR"->FALSE. Is this right ? Equivalent, yes. Specifically it means success / failure or match / non-matc

Re: [squid-users] limiting connections

2012-03-30 Thread Carlos Manuel Trepeu Pupo
On Thu, Mar 29, 2012 at 4:03 PM, Eliezer Croitoru wrote: > On 29/03/2012 21:05, Carlos Manuel Trepeu Pupo wrote: >> >> On Tue, Mar 27, 2012 at 1:23 PM, Eliezer Croitoru >>  wrote: >>> >>> On 27/03/2012 17:27, Carlos Manuel Trepeu Pupo wrote: On Mon, Mar 26, 2012 at 5:45 PM, Amos Jef

Re: [squid-users] limiting connections

2012-03-29 Thread Carlos Manuel Trepeu Pupo
On Thu, Mar 29, 2012 at 4:03 PM, Eliezer Croitoru wrote: > On 29/03/2012 21:05, Carlos Manuel Trepeu Pupo wrote: >> >> On Tue, Mar 27, 2012 at 1:23 PM, Eliezer Croitoru >>  wrote: >>> >>> On 27/03/2012 17:27, Carlos Manuel Trepeu Pupo wrote: On Mon, Mar 26, 2012 at 5:45 PM, Amos Jef

Re: [squid-users] limiting connections

2012-03-29 Thread Carlos Manuel Trepeu Pupo
On Thu, Mar 29, 2012 at 4:03 PM, Eliezer Croitoru wrote: > On 29/03/2012 21:05, Carlos Manuel Trepeu Pupo wrote: >> >> On Tue, Mar 27, 2012 at 1:23 PM, Eliezer Croitoru >>  wrote: >>> >>> On 27/03/2012 17:27, Carlos Manuel Trepeu Pupo wrote: On Mon, Mar 26, 2012 at 5:45 PM, Amos Jef

Fwd: [squid-users] limiting connections

2012-03-29 Thread Carlos Manuel Trepeu Pupo
On Tue, Mar 27, 2012 at 1:23 PM, Eliezer Croitoru wrote: > On 27/03/2012 17:27, Carlos Manuel Trepeu Pupo wrote: >> >> On Mon, Mar 26, 2012 at 5:45 PM, Amos Jeffries >>  wrote: >>> >>> On 27.03.2012 10:13, Carlos Manuel Trepeu Pupo wrote: On Sat, Mar 24, 2012 at 6:31 PM, Amos Jeffri

Re: [squid-users] limiting connections

2012-03-27 Thread Eliezer Croitoru
On 27/03/2012 17:27, Carlos Manuel Trepeu Pupo wrote: On Mon, Mar 26, 2012 at 5:45 PM, Amos Jeffries wrote: On 27.03.2012 10:13, Carlos Manuel Trepeu Pupo wrote: On Sat, Mar 24, 2012 at 6:31 PM, Amos Jeffries wrote: On 25/03/2012 7:23 a.m., Carlos Manuel Trepeu Pupo wrote: On Thu, Mar 22,

Re: [squid-users] limiting connections

2012-03-27 Thread Carlos Manuel Trepeu Pupo
On Mon, Mar 26, 2012 at 5:45 PM, Amos Jeffries wrote: > On 27.03.2012 10:13, Carlos Manuel Trepeu Pupo wrote: >> >> On Sat, Mar 24, 2012 at 6:31 PM, Amos Jeffries >> wrote: >>> >>> On 25/03/2012 7:23 a.m., Carlos Manuel Trepeu Pupo wrote: >>> On Thu, Mar 22, 2012 at 10:00 PM, Amos Jeffries w

Re: [squid-users] limiting connections

2012-03-26 Thread Eliezer Croitoru
On 26/03/2012 23:13, Carlos Manuel Trepeu Pupo wrote: #!/bin/bash result=`squidclient -h 192.168.19.19 mgr:active_requests | grep -c "$1"` if [ $result -eq 0 ] then echo 'OK' else echo 'ERR' fi the code should be something like that: #!/bin/bash while read line; do result=`squidclient

Re: [squid-users] limiting connections

2012-03-26 Thread Amos Jeffries
On 27.03.2012 10:13, Carlos Manuel Trepeu Pupo wrote: On Sat, Mar 24, 2012 at 6:31 PM, Amos Jeffries wrote: On 25/03/2012 7:23 a.m., Carlos Manuel Trepeu Pupo wrote: On Thu, Mar 22, 2012 at 10:00 PM, Amos Jeffries wrote: On 23/03/2012 5:42 a.m., Carlos Manuel Trepeu Pupo wrote: I need to

Re: [squid-users] limiting connections

2012-03-26 Thread Carlos Manuel Trepeu Pupo
On Sat, Mar 24, 2012 at 6:31 PM, Amos Jeffries wrote: > On 25/03/2012 7:23 a.m., Carlos Manuel Trepeu Pupo wrote: > >> On Thu, Mar 22, 2012 at 10:00 PM, Amos Jeffries wrote: >>> >>> On 23/03/2012 5:42 a.m., Carlos Manuel Trepeu Pupo wrote: I need to block each user to make just one conne

Re: [squid-users] limiting connections

2012-03-24 Thread Amos Jeffries
On 25/03/2012 7:23 a.m., Carlos Manuel Trepeu Pupo wrote: On Thu, Mar 22, 2012 at 10:00 PM, Amos Jeffries wrote: On 23/03/2012 5:42 a.m., Carlos Manuel Trepeu Pupo wrote: I need to block each user to make just one connection to download specific extension files, but I dont know how to tell that

Re: [squid-users] limiting connections

2012-03-24 Thread Carlos Manuel Trepeu Pupo
On Thu, Mar 22, 2012 at 10:00 PM, Amos Jeffries wrote: > On 23/03/2012 5:42 a.m., Carlos Manuel Trepeu Pupo wrote: >> >> I need to block each user to make just one connection to download >> specific extension files, but I dont know how to tell that can make >> just one connection to each file and

Re: [squid-users] limiting connections

2012-03-22 Thread Amos Jeffries
On 23/03/2012 5:42 a.m., Carlos Manuel Trepeu Pupo wrote: I need to block each user to make just one connection to download specific extension files, but I dont know how to tell that can make just one connection to each file and not just one connection to every file with this extension. i.e: www

[squid-users] limiting connections

2012-03-22 Thread Carlos Manuel Trepeu Pupo
I need to block each user to make just one connection to download specific extension files, but I dont know how to tell that can make just one connection to each file and not just one connection to every file with this extension. i.e: www.google.com #All connection that required www.any.domain.com

Re: [squid-users] Limiting connections per user - not per IP

2010-03-21 Thread Amos Jeffries
David Parks wrote: I expect a lot of users from the same IP (NAT), is there a way to limit concurrent connections by authenticated user rather than just by IP (acl maxconn appears to do it only by IP)? Thx, David Not directly. You can hack something up with a combo of max_user_ip and maxconn.

[squid-users] Limiting connections per user - not per IP

2010-03-21 Thread David Parks
I expect a lot of users from the same IP (NAT), is there a way to limit concurrent connections by authenticated user rather than just by IP (acl maxconn appears to do it only by IP)? Thx, David