🦑
Networking & Server

Squid Proxy

Caching forward and reverse proxy server

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Squid caches web content and can act as a forward or reverse proxy.

📁

Config files for Squid Proxy

Where to create or edit the main configuration — paths below match the setup steps.

  • /etc/squid/squid.conf

    Location: Squid proxy server

    ACLs, cache, and forward rules

📥

Step 01

Install Squid Proxy

(01)Install Squid Proxy

Linux
1sudo apt-get install -y squid
2sudo systemctl enable squid && sudo systemctl start squid
⚙️

Step 02

Configure Squid Proxy

(01)Configure Squid Proxy

Linux
1sudo nano /etc/squid/squid.conf
2# Set http_port 3128
3sudo systemctl restart squid

Step 03

Verify

(01)Verify installation

Linux
1curl -x http://localhost:3128 http://example.com