Port 3128: Squid proxy

Port 3128 (TCP) is used by Squid proxy. Default port of the Squid caching proxy (unofficial use).

3128Port
TCPProtocol
ndl-aasIANA service name
WebCategory

Port range

3128 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Web ports are meant to be public, but keep the server patched, serve HTTPS, and do not expose admin panels on the same port without authentication.

Open port 3128 in a firewall

ufw         sudo ufw allow 3128/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=3128/tcp
Windows     New-NetFirewallRule -DisplayName "Squid proxy 3128" -Direction Inbound -Protocol TCP -LocalPort 3128 -Action Allow

Check if port 3128 is open

nc -vz example.com 3128
Test-NetConnection example.com -Port 3128   # PowerShell
sudo ss -tulpn | grep ':3128 '   # what is listening locally (Linux)

Other web ports

Frequently asked questions

What is port 3128 used for?
Squid proxy. Default port of the Squid caching proxy (unofficial use).
Is port 3128 TCP or UDP?
TCP.