[squid-users] limit bandwidth

Vacheslav m_zouhairy at skno.by
Mon Aug 31 08:24:55 UTC 2020


Peace,

been suffering for many hours so i'd rather ask for aid..

i'm trying to limit the flow mainly for the most maximize people


acl slower      src 10.46.0.74 10.46.0.107
acl localnet src 0.0.0.1-0.255.255.255    # RFC 1122 "this" network (LAN)
acl localnet src 10.46.0.0/24        #  local private network (LAN)


acl SSL_ports port 443
acl Safe_ports port 80        # http
acl Safe_ports port 8080    # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl CONNECT method CONNECT
acl blockfiles urlpath_regex -i "/etc/squid/blocks.files.acl"

#
# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
visible_hostname proxy.k

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
error_directory /usr/share/squid/errors/en
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed


delay_pools 1
delay_class 1 3
delay_access 1 allow slower !localnet
delay_access 1 deny all
delay_parameters 1 12800/12800 -1/-1 6400/12800


http_access allow localnet
http_access allow localhost

i tried doing the delay class 1 1

but bandwidth is full

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20200831/9ef2d442/attachment.htm>


More information about the squid-users mailing list