Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
- 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 allow manager localhost
- http_access deny manager
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access allow localhost
- icp_access deny all
- htcp_access deny all
- hierarchy_stoplist cgi-bin ?
- access_log /var/log/squid3/access.log squid
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern (cgi-bin|\?) 0 0% 0
- refresh_pattern . 0 20% 4320
- ################### My Setting #########################
- ## Listening port number ##
- http_port 3128 transparent
- ## Visible hostname ##
- visible_hostname hureeict.edu.mn
- ## Time Settings ##
- acl biz_hours time MTWHF 9:00-24:00
- ## Unlimited Access Users ##
- #acl BIGBOSS src 192.168.15.19
- #http_access allow BIGBOSS
- ## BLOCK MAC ##
- #acl mac_block arp 09:00:2b:23:45:67
- ## BLOCK HTTPS ##
- acl https_block dstdomain .google.com .google.mn
- http_access deny CONNECT https_block biz_hours
- #http_reply_access deny https_block biz_hours
- ## BLOCK Websites/Download/Ports ##
- acl website_block dstdom_regex -i facebook.com
- acl download_block urlpath_regex -i jason_torrent
- acl ports_block port 6969 6881-6899
- http_access deny website_block biz_hours
- http_access deny download_block biz_hours
- http_access deny ports_block biz_hours
- ## Block Flash Videos ##
- #acl flash rep_mime_type video/x-flv
- #http_reply_access deny flash
- ## OPEN Subnets ##
- acl lan_15 src 192.168.15.0/24 192.168.16.0/24
- acl localnet src 127.0.0.1/255.255.255.255
- http_access allow lan_15
- http_access allow localnet
- # http_access allow lan_15 biz_hours
- # http_access deny all
- # http_access deny !Safe_ports
- ## Delay Pools - 100kb/s ##
- #delay_pools 1
- #delay_class 1 1
- #delay_parameters 1 84000/84000
- #delay_access 1 allow lan_15 biz_hours
- #delay_access 1 allow lan_15
- #delay_access 1 deny lan_15 !biz_hours
- #delay_access 1 deny lan_15 all
- ## Cache 20GB ##
- cache_dir ufs /var/spool/squid 20000 16 256
- ## Limit maximum download file size ##
- reply_body_max_size 999 MB
- ################# END #####################
Advertisement
Add Comment
Please, Sign In to add comment