Port 3128 is the default Squid HTTP proxy port. Squid provides caching, access control, and content filtering for outbound web traffic. Open proxies on port 3128 are abused for anonymization and spam – always configure authentication and ACLs. Squid also supports HTTPS interception (SSL bump) for TLS traffic inspection.
Port Number
3128
Protocol
TCP
Service
Squid HTTP Proxy
Range
IANA Registered (1024–49151)
Test proxy connectivity (shows the proxy's external IP)
curl -x http://proxy:3128 http://ifconfig.meSquid cache statistics (hit rate, memory usage)
squidclient -h localhost -p 3128 mgr:utilizationAudit Squid access control rules
grep -v '^#' /etc/squid/squid.conf | grep -v '^$' | grep 'http_access'Watch blocked requests in real-time
tail -f /var/log/squid/access.log | grep DENIEDexport http_proxy=http://proxy:3128
curl -x http://proxy:3128 http://example.com
squidclient -h proxy -p 3128 mgr:infoSquid was created in 1996 as a fork of the CERN httpd caching proxy, funded by the NSF (National Science Foundation) to reduce internet bandwidth usage. Port 3128 became the conventional default (not IANA-registered). Squid dominated web caching through the dial-up and early broadband era. Today it's used for: corporate web filtering, SSL inspection, content caching at ISPs, and as a forward proxy for containerized applications needing controlled internet access.
How do I prevent my Squid from becoming an open proxy?
In squid.conf: (1) Define allowed networks: acl localnet src 10.0.0.0/8 192.168.0.0/16. (2) Allow only those: http_access allow localnet, http_access deny all (deny MUST be last). (3) Bind to internal interface only: http_port 10.0.0.1:3128. (4) Test from external IP: curl -x http://your-ip:3128 http://example.com should get 403. (5) Monitor: check access.log for unexpected source IPs.
Squid vs nginx reverse proxy vs Varnish?
Squid: forward proxy (clients → internet), web filtering, SSL bump inspection, bandwidth management. Best for: corporate egress control. nginx: reverse proxy (internet → your servers), load balancing, TLS termination, static content serving. Best for: application delivery. Varnish: HTTP accelerator (caching layer in front of app servers), VCL configuration language. Best for: high-traffic website caching. They serve different architectural positions.