Created
November 16, 2011 11:35
-
-
Save kalabiyau/1369883 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
redirect_program /usr/bin/squidGuard | |
redirect_children 5 | |
#redirector_bypass on | |
acl direct url_regex .*hypercity.info|http://192.168.5.* | |
cache deny direct | |
always_direct allow direct | |
acl all src all | |
acl manager proto cache_object | |
acl localhost src 127.0.0.1/32 | |
acl to_localhost dst 127.0.0.0/8 | |
acl localnet src 192.168.2.0/24 # RFC1918 possible internal network | |
acl localnet src 192.168.5.0/24 | |
acl localnet src 192.168.1.0/24 | |
acl SSL_ports port 443 563 | |
acl Safe_ports port 8080 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 21 # ftp | |
acl Safe_ports port 443 # https | |
acl CONNECT method CONNECT | |
extension_methods FORM REPORT MERGE MKACTIVITY CHECKOUT PROPFIND | |
http_access allow manager localhost | |
http_access deny manager | |
http_access deny !Safe_ports | |
http_access deny CONNECT !SSL_ports | |
http_access allow localnet | |
http_access allow localhost | |
http_access deny all | |
#icp_access allow localnet | |
#icp_access deny all | |
icp_port 0 | |
htcp_access allow localnet | |
htcp_access deny all | |
http_port 192.168.2.22:3128 transparent | |
http_port 192.168.2.22:3129 | |
http_port 192.168.5.1:3128 transparent | |
http_port 192.168.5.1:3129 | |
hierarchy_stoplist cgi-bin ? | |
cache_mem 256 MB | |
cache_dir ufs /var/cache/squid 2000 16 256 | |
access_log /var/log/squid/access.log squid | |
#cache_log /dev/null | |
#cache_store_log none | |
#cache_swap_log /dev/null. | |
logfile_rotate 30 | |
pid_filename /var/run/squid.pid | |
refresh_pattern ^ftp: 1440 20% 10080 | |
refresh_pattern ^gopher: 1440 0% 1440 | |
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | |
refresh_pattern . 0 20% 4320 | |
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9] | |
upgrade_http0.9 deny shoutcast | |
acl apache rep_header Server ^Apache | |
#acl white /etc/squid/white.list. | |
#redirector_access white deny. | |
broken_vary_encoding allow apache | |
cache_effective_user proxy | |
#delay_pools 1. | |
#delay_class 1 2. | |
##delay_access 1 allow all. | |
#delay_access 1 deny all. | |
#delay_parameters 1 2048000/2048000 512000/512000. | |
forwarded_for off | |
error_directory /usr/share/squid/errors/Russian-1251 | |
coredump_dir /var/cache/squid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment