ตัวอย่างการตั้งค่า Squid แบบง่าย ๆ ดูที่การตั้งค่าก็พอ ใน ENDIAN อาจไม่เหมือนกันเท่าไหร่
shutdown_lifetime 5 seconds
icp_port 0
http_port IP_ENDIAN:Port_ENDIAN
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
cache_effective_user squid
cache_effective_group squid
umask 022
pid_filename /var/run/squid.pid
cache_mem 512 MB
cache_dir aufs /var/log/cache 51200 16 256
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
log_mime_hdrs off
forwarded_for off
via off
acl within_timeframe time MTWHFAS 00:00-24:00
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 1-65535 # unregistered ports
acl Safe_ports port 1-65535 # unregistered ports
acl CONNECT method CONNECT
#Access to squid:
#local machine, no restriction
http_access allow localhost
#Deny not web services
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#Set custom configured ACLs
http_access deny for_disabled_users
http_access allow IPCop_networks for_inetusers !concurrent within_timeframe
http_access deny all
#Strip HTTP Header
header_access X-Forwarded-For deny all
header_access Via deny all
httpd_suppress_version_string on
maximum_object_size 5120 KB
minimum_object_size 0 KB
request_body_max_size 0 KB
reply_body_max_size 0 allow all
cache_mgr Email เรา