Squid
Caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: The official website could not be fetched this time, so the following content is based on publicly confirmed information about Squid.
Introduction
Squid is a long-established, widely used open-source caching proxy server, released under the GNU GPL license and written mainly in C++. It supports protocols such as HTTP, HTTPS and FTP, and caches frequently requested content for reuse, which reduces bandwidth consumption and shortens response times. It is used by internet service providers, businesses, schools and all kinds of websites.
Key Features
- Forward caching proxy: Proxies internet access for users on a local network and caches content, reducing pressure on outbound bandwidth.
- Reverse proxy (web accelerator): Placed in front of web servers to cache and distribute content, reducing the load on the origin server.
- Access control: Uses flexible ACL rules to control access by source address, destination domain, time, user authentication and other conditions.
- User authentication: Can integrate with a variety of external authentication methods to manage access permissions per user.
- Transparent proxy: Works with a firewall or router to intercept traffic, so clients need no configuration at all.
- HTTPS handling: Can forward HTTPS through CONNECT tunnels, and can also inspect TLS traffic as configured (SSL Bump).
- Content adaptation: Supports ICAP and eCAP interfaces, allowing integration with external services such as virus scanning and content filtering.
- Cache hierarchies and cooperation: Supports protocols such as ICP, HTCP and CARP, so multiple cache servers can form hierarchies or clusters.
- Detailed logging: Access logs can be used for traffic analysis, auditing and troubleshooting.
Target Users and Use Cases
- Network administrators at businesses and schools, for internet usage management, content filtering and bandwidth optimization.
- Internet service providers, for large-scale caching to save outbound traffic.
- Website operators, who use it as a reverse proxy or acceleration layer.
- Developers and testers, for setting up controlled proxy environments.
Core Strengths
- A mature and stable project with an active community and abundant documentation.
- Extremely flexible configuration that can meet complex access control and caching policy requirements.
- Completely open source and free, so you can deploy and customize it yourself.
Installation and Deployment
Squid is included in the official software repositories of most Linux distributions and BSD systems, for example:
# Debian / Ubuntu
sudo apt install squid
# RHEL / Rocky / Fedora
sudo dnf install squid
After installation, edit /etc/squid/squid.conf to set the listening port (3128 by default), ACL rules and cache directory, then restart the service. You can also download the source code from the official website and compile it yourself.
Technical Requirements
- Runs mainly on Unix-like systems such as Linux and BSD; a Windows version is also available.
- Disk cache performance is noticeably affected by disk I/O and memory size, so large-scale deployments need careful storage and memory planning.
Things to Note
- The configuration file has many options, so there is a learning curve and you need to be familiar with ACL syntax.
- To inspect HTTPS content, you must deploy a self-signed CA certificate on clients, and you should be mindful of privacy and compliance issues.
Discover more
Privoxy
Non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.
Tinyproxy
Light-weight HTTP/HTTPS proxy daemon.
iodine
IPv4 over DNS tunnel solution, enabling you to start up a socks5 proxy listener.
0 A.D.
Cross-platform real-time strategy game of ancient warfare.
0 A.D.
Cross-platform real-time strategy game of ancient warfare.
Asterisk
Easy to use but advanced IP PBX system, VoIP gateway and conference server.