cache_peer jp.kiyor.me parent 45678 45678 no-query
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl myrule src all
acl ads dstdom_regex “/etc/squid/ad_block.txt”
acl custom_ads url_regex “/etc/squid/custom_ad.txt”
acl no_local dstdomain .jp
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
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
http_access deny ads
http_access deny custom_ads
http_access allow myrule
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
http_port 45678 transparent
icp_port 45678
never_direct allow no_local
cache_peer_domain jp.kiyor.me .jp .funshion.com .baidu.com
cache_mem 2048 MB
maximum_object_size_in_memory 2 MB
memory_replacement_policy lru
cache_replacement_policy lru
cache_dir ufs /var/spool/squid 50000 16 256
minimum_object_size 0 KB
maximum_object_size 10 GB
cache_swap_low 90
cache_swap_high 95
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid
refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp)$ 260000 90% 260009 ignore-reload
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv|hlv|mpg|wma|ogg|wmv|asx|asf)$ 260000 90% 260009 ignore-reload
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff|pdf|uxx)$ 260000 90% 260009 ignore-reload
refresh_pattern -i \.index.(html|htm)$ 1440 90% 40320
refresh_pattern -i \.(html|htm|css|js|xml|json)$ 1440 90% 40320
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
range_offset_limit -1
via off
vary_ignore_expire on
client_lifetime 1 day
shutdown_lifetime 30 seconds
cache_mgr i@moe.ai
client_persistent_connections off
server_persistent_connections on
log_icp_queries off
tcp_recv_bufsize 32 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
forwarded_for on
reload_into_ims on

3 Responses to “Share my squid.conf”

  1. Do you have the server address for K’sMecraft? I tried mc.moe.ai, it doesn’t work…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>