linux_wiki:squid_proxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:squid_proxy [2015/10/07 23:22]
billdozor created
linux_wiki:squid_proxy [2019/05/25 23:50]
Line 1: Line 1:
-====== Squid Proxy ====== 
- 
-**General Information** 
- 
-Squid is "a 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." 
- 
-Official Site: http://www.squid-cache.org/ 
- 
-**Checklist** 
-  * Distro: Enterprise Linux 6.x 
- 
----- 
- 
-====== Install Squid ====== 
- 
-Squid is available in CentOS base repos. 
-<code bash> 
-yum install squid 
-</code> 
- 
-  * Main Config: /etc/squid/squid.conf 
-  * Log file: /var/log/squid/access.log 
- 
----- 
- 
-====== Configure ====== 
- 
-Config: /etc/squid/squid.conf 
- 
-Modify "localnet" acl lines to only the networks you want talking to Squid 
-<code bash> 
-acl localnet src 10.1.2.0/24 # my network 
-</code> 
- 
-Delete/Add to the "Safe_Ports" acl to only accept certain types of traffic 
-<code bash> 
-acl SSL_ports port 443 
-acl Safe_ports port 80 
-acl Safe_ports port 443 
-</code> 
- 
-Change Squid listening port (if needed) 
-<code bash> 
-# Default Squid listen port 3128 
-http_port 3128 
-</code> 
- 
-Uncomment the "cache_dir" line to create a space on disk to cache files 
-<code bash> 
-cache_dir ufs /var/spool/squid 512 16 256 
-</code> 
-  * The "512" means use 512 MB of space for cached content. This can be increased for busier proxies. (default is 100MB) 
- 
----- 
- 
-====== Run Squid ====== 
- 
-Start squid 
-<code bash> 
-service squid start 
-</code> 
- 
-Enable on boot 
-<code bash> 
-chkconfig squid on 
-</code> 
- 
-View Access Log for proxy TCP Hits and Misses 
-<code bash> 
-tail -f /var/log/squid/access.log 
-</code> 
- 
----- 
  
  • linux_wiki/squid_proxy.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)