RHN Proxy Server 2.1: Installation Guide
Previous Next

Appendix A. Sample Squid Configuration File

At a very MINIMUM, /etc/squid/squid.conf should contain the following configuration options. Refer to the Squid documentation at http://www.squid-cache.org for further configuration.

http_port 8080
cache_mem 400 MB
maximum_object_size 30000 KB
cache_dir ufs /var/spool/squid 1000 16 256
refresh_pattern         .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 443         # https
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
miss_access allow all

Tip Tip
 

A sample Squid configuration file is also installed in the /usr/share/doc/rhn-proxy-<version>/ directory.

Previous Home Next
Command Line Options   Sample RHN Proxy Server Configuration File