fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Maximum number of connections - squid

This is a discussion on Maximum number of connections - squid ; I have a Squid proxy server that controls all internet traffic for my network. I need a way to limit user downloads in my networks. I banned some famous ports (e.g. torrent) but some downloads are possible by HTTP port. ...


Fix Unix > Tools > squid > Maximum number of connections

Reply
 
LinkBack Tools
  #1  
Old 10-27-2009, 08:09 AM
Junior Member
 
Join Date: Oct 2009
Posts: 1
Red face Maximum number of connections

I have a Squid proxy server that controls all internet traffic for my network. I need a way to limit user downloads in my networks. I banned some famous ports (e.g. torrent) but some downloads are possible by HTTP port. Obviously I cannot ban port 80!

A simple solution is limiting maxmimum number of the simultaneous connections for each IP (e.g. 3 connections). It's possible in Squid with this config:

acl ACCOUNTSDEPT 192.168.5.0/24
acl limitusercon maxconn 3
http_access deny ACCOUNTSDEPT limitusercon

But this solution has really bad impact in web browsing, because any smart browser get different parts of a website by several connections simultaneously to speedup web browsing. But if we have a maximum number of connections, the browsers will fail to get some parts and the website will be shown partially and some parts/images/frames will not be shown.

So, can we limit maximum number of persist connections? I think this policy will works: "Specify Maximum number of connections that is alive for 10 seconds" while "Number of simultaneous connections for every IP is unlimited"

But how can we implement this policy when Squid? With which config?
Reply With Quote
Reply

Tags
maximum connections, traffic-shaping

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of disk. unix Storage 4 10-08-2007 12:40 PM
Maximum number of X clients unix Xwindows 5 10-04-2007 06:56 AM
Maximum number of concurrent connections unix Windows NT 1 10-01-2007 10:23 PM
Maximum number of fields in OS unix Mozilla 1 02-08-2007 09:14 AM
BE 8.5-Is there a maximum number of catalogs? unix Veritas Backup Exec 3 01-17-2001 06:45 PM


All times are GMT. The time now is 08:21 AM.