Created
November 16, 2011 10:08
-
-
Save mushfiq/1369742 to your computer and use it in GitHub Desktop.
Squid minimum configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# WARNING - do not edit this template unless you know what you are doing | |
# ---------------------------------------------------------------------- | |
# the parent cache | |
# disk and memory cache settings | |
cache_dir ufs /usr/local/squid/var/cache 500 16 256 #set your cache path with size | |
maximum_object_size 4096 KB | |
# store coredumps in the first cache dir | |
coredump_dir /usr/local/squid/var/cache #change your cache location | |
# the hostname squid displays in error messages | |
visible_hostname localhost | |
# log & process ID file details | |
#change it according to your path | |
cache_access_log /usr/local/squid/var/logs/access.log | |
cache_log /usr/local/squid/var/logs/cache.log | |
#cache_store_log /Users/newscred/Library/Logs/squid/squid-store | |
pid_filename /usr/local/squid/var/run/squid.pid | |
# Squid listening port | |
http_port 3128 | |
# Access Control lists | |
acl localhost src 127.0.0.1/32 | |
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 | |
acl manager proto cache_object | |
acl SSL_ports port 443 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 21 # ftp | |
acl Safe_ports port 443 # https | |
acl Safe_ports port 70 # gopher | |
acl Safe_ports port 210 # wais | |
acl Safe_ports port 1025-65535 # unregistered ports | |
acl Safe_ports port 280 # http-mgmt | |
acl Safe_ports port 488 # gss-http | |
acl Safe_ports port 591 # filemaker | |
acl Safe_ports port 777 # multiling http | |
acl CONNECT method CONNECT | |
acl allowed src 192.168.1.1 #your IP will be here | |
acl godirect dstdomain google.com | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment