Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Port and setup
- http_port 80 vhost allow-direct
- cache_peer MYIP parent 81 0 no-query originserver login=PASS name=httpd
- visible_hostname MYHOST
- cache_mgr MYMGR
- # CGI
- hierarchy_stoplist cgi-bin ?
- acl QUERY urlpath_regex cgi-bin \?
- no_cache deny QUERY
- # Cache
- cache_mem 32 MB
- cache_swap_low 90
- cache_swap_high 95
- maximum_object_size 1024 KB
- cache_dir ufs /var/cache/squid 64 16 256
- cache_effective_user squid
- cache_effective_group squid
- # Logging
- cache_access_log none
- cache_log /var/log/squid/cache.log
- cache_store_log none
- logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
- access_log /var/log/squid/access_log combined
- logfile_rotate 0
- # ACLs
- acl CONNECT method CONNECT
- acl toMyself dst MYIP 127.0.0.0/8 172.18.0.1 172.18.1.1 172.18.2.1
- acl httpPorts port 80
- acl cPorts port 10000-10020
- acl toRest dst 0.0.0.0/0.0.0.0
- acl all src 0.0.0.0/0.0.0.0
- cache_peer_access httpd deny CONNECT toMyself cPorts
- always_direct allow CONNECT toMyself cPorts
- never_direct allow toMyself httpPorts
- #Permissions
- http_access allow toMyself httpPorts
- http_access allow CONNECT toMyself cPorts
- http_access deny toRest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement