squid ACL configed but still all can access by squid proxy from client

Issues related to applications and software problems and general support
Post Reply
Huang Haiqing
Posts: 9
Joined: 2022/11/25 05:21:24

squid ACL configed but still all can access by squid proxy from client

Post by Huang Haiqing » 2023/04/17 07:35:24

Hello, here I setup a squid service on centos 8 stream,and the major part is to deny all non-localhost to access by squid. But I verifed from any testing OS with this one as proxy, still can download anything. Anyone know about how to set acl to let squid work really?

INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#acl hhq src 172.16.24.8/23
#acl blacklist dstdomain .apple.com

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
http_access allow localnet
http_access allow localhost

And finally deny all other access to this proxy
#http_access deny blacklist
#http_access allow hhq
http_access deny all

Squid normally listens to port 3128
http_port 3128

Huang Haiqing
Posts: 9
Joined: 2022/11/25 05:21:24

Re: squid ACL configed but still all can access by squid proxy from client

Post by Huang Haiqing » 2023/04/17 07:38:53

Actually this doesn’t work also on other OS type. So I think that’s a squid general configuration issue. I’m a new user about squid. Is it possible someone post a workable example squid.conf, that can realize ACL access by a specific IP segment or by a white list of websites?

Post Reply