Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-28 Thread Alex Rousskov
On 08/28/2015 11:06 AM, Jorgeley Junior wrote:
> I think the directive: client_request_buffer_max_size do a limit to
> upload, but it will stop the request, is that it?

In general, it is not possible to limit _bandwidth_ usage by limiting
buffer sizes. With enough processing speed, one can [theoretically]
consume all available bandwidth using a 1-byte buffer!

However, if you just want to "slow down" all uploading connections, then
decreasing client_request_buffer_max_size is better than nothing. It
will not stop requests; it will just not let them _buffer_ more than
configured at any given time.


HTH,

Alex.


> 2015-08-28 14:00 GMT-03:00 Alex Rousskov:
> 
> On 08/24/2015 01:20 AM, Amos Jeffries wrote:
> 
> > On 24/08/2015 1:03 p.m., Brandon Elliott wrote:
> >> I need a solution that
> >> doesn't involve using a second authentication just to limit upload
> >> bandwidth per user.
> 
> 
> > client_delay_pools was added to meet this need.
> 
> 
> client_delay_pools limit Squid-to-client download bandwidth, not
> client-to-Squid upload bandwidth.
> 
> 
> Alex.
> 
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> 
> http://lists.squid-cache.org/listinfo/squid-users
> 
> 
> 
> 
> -- 
> *_
> _*
> *_
> _*

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-28 Thread Jorgeley Junior
I think the directive: client_request_buffer_max_size do a limit to upload,
but it will stop the request, is that it?

2015-08-28 14:00 GMT-03:00 Alex Rousskov :

> On 08/24/2015 01:20 AM, Amos Jeffries wrote:
>
> > On 24/08/2015 1:03 p.m., Brandon Elliott wrote:
> >> I need a solution that
> >> doesn't involve using a second authentication just to limit upload
> >> bandwidth per user.
>
>
> > client_delay_pools was added to meet this need.
>
>
> client_delay_pools limit Squid-to-client download bandwidth, not
> client-to-Squid upload bandwidth.
>
>
> Alex.
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>



--
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-28 Thread Alex Rousskov
On 08/24/2015 01:20 AM, Amos Jeffries wrote:

> On 24/08/2015 1:03 p.m., Brandon Elliott wrote:
>> I need a solution that
>> doesn't involve using a second authentication just to limit upload
>> bandwidth per user.


> client_delay_pools was added to meet this need. 


client_delay_pools limit Squid-to-client download bandwidth, not
client-to-Squid upload bandwidth.


Alex.

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-24 Thread Amos Jeffries
On 24/08/2015 1:03 p.m., Brandon Elliott wrote:
> Hi Nicolaas,
> 
> I read the article you pointed to, but it isn't applicable. I need to be
> able to limit upload bandwidth PER USER just like squid does for download
> bandwidth, per user.
> 
> QUOTE >> I don’t really know if squid supports this or not, but I can’t
> imagine why it would need to, with traffic control built into the linux
> kernel in a number of ways.
> 
> Somebody saw fit to put download bandwidth limiting into squid, so it makes
> sense to support upload bandwidth limiting as well.

Squid is *very* old software. Some of its features were literally part
of the founding days of the Internet.

Delay Pools is one that predates all modern QoS functionality. And is
quite limited in ways like the one you are hitting. If you can use the
system QoS do so, it is far more efficient.

> 
> I am already using ncsa_auth to manage squid users. I need a solution that
> doesn't involve using a second authentication just to limit upload
> bandwidth per user.
> 
> Any ideas?


client_delay_pools was added to meet this need. But be aware there is a
crash in there somewhere that has not been resolved.


Alternatively, Squid does have integration with the system QoS. The note
ACL type allows these to be set based on auth helper provided kv-pair
details; eg. user=Fred vs user=Bob.

You setup the system with all the QoS funtionality and Squid informs the
kernel what TOS/MASK classification to apply on the connection packets.
 
 

With client side there will always be inaccuracy on that auth based flow
control because the transaction is already underway by the time auth
gets invoked.

Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-23 Thread Brandon Elliott
Hi Nicolaas,

I read the article you pointed to, but it isn't applicable. I need to be
able to limit upload bandwidth PER USER just like squid does for download
bandwidth, per user.

QUOTE >> I don’t really know if squid supports this or not, but I can’t
imagine why it would need to, with traffic control built into the linux
kernel in a number of ways.

Somebody saw fit to put download bandwidth limiting into squid, so it makes
sense to support upload bandwidth limiting as well.

I am already using ncsa_auth to manage squid users. I need a solution that
doesn't involve using a second authentication just to limit upload
bandwidth per user.

Any ideas?

On Sun, Aug 23, 2015 at 5:35 PM, Nicolaas Hyatt 
wrote:

> I don’t really know if squid supports this or not, but I can’t imagine why
> it would need to, with traffic control built into the linux kernel in a
> number of ways. For example the Linux Advanced Routing & Traffic Control
> (Chapter 9) (http://www.lartc.org/howto/lartc.qdisc.html) can easily help
> you acieve what you are wanting.
>
>
>
>
>
> *From:* squid-users [mailto:squid-users-boun...@lists.squid-cache.org] *On
> Behalf Of *Brandon Elliott
> *Sent:* Sunday, August 23, 2015 4:27 PM
> *To:* squid-users@lists.squid-cache.org
> *Subject:* [squid-users] How to limit upload bandwidth in squid proxy?
>
>
>
> Hello all,
>
> I ran into another issue which I could not find any answers for online. In
> testing the proxies, I found that bandwidth limiting was properly limited
> for download using delay pools but upload bandwidth was allowed unlimited
> access. So a single user could potentially use up all the bandwidth with a
> large, fast upload.
>
> How can I prevent this?
>
> Thanks,
>
> Brandon
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
>


-- 
*Brandon Elliott*
CEO
-

Office:  888.763.6797
http://www.neosys.net
2774 N Cobb Pkwy NW #244
Suite 109
Kennesaw, GA 30152
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] How to limit upload bandwidth in squid proxy?

2015-08-23 Thread Nicolaas Hyatt
I don’t really know if squid supports this or not, but I can’t imagine why it 
would need to, with traffic control built into the linux kernel in a number of 
ways. For example the Linux Advanced Routing & Traffic Control (Chapter 9) 
(http://www.lartc.org/howto/lartc.qdisc.html) can easily help you acieve what 
you are wanting.

 

 

From: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] On Behalf 
Of Brandon Elliott
Sent: Sunday, August 23, 2015 4:27 PM
To: squid-users@lists.squid-cache.org
Subject: [squid-users] How to limit upload bandwidth in squid proxy?

 

Hello all,

I ran into another issue which I could not find any answers for online. In 
testing the proxies, I found that bandwidth limiting was properly limited for 
download using delay pools but upload bandwidth was allowed unlimited access. 
So a single user could potentially use up all the bandwidth with a large, fast 
upload.

How can I prevent this?

Thanks,

Brandon

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] How to limit upload bandwidth in squid proxy?

2015-08-23 Thread Brandon Elliott
Hello all,

I ran into another issue which I could not find any answers for online. In
testing the proxies, I found that bandwidth limiting was properly limited
for download using delay pools but upload bandwidth was allowed unlimited
access. So a single user could potentially use up all the bandwidth with a
large, fast upload.

How can I prevent this?

Thanks,

Brandon
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users