Here's how to limit connections using squid.
For the command that is in use is "maxconn". For example, we want to limit connections for download, we assume we already have acl for download.
For the command that is in use is "maxconn". For example, we want to limit connections for download, we assume we already have acl for download.
acl download urlpath_regex-i "/etc/squid/download"After that we create an acl to limit connections.
acl limit-dl maxconn 8to activated acl limit connection:
http_access deny download limit-dlFor acl limit connections, will work out perfectly when in place before the acl http_access allow. for example:
acl limit-dl maxconn 8
http_access deny download limit-dl
http_access allow client