# -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # SquidNT 2.5 STABLE12-NT Delay Pools # # Powerd By MR.Siam@CaFe # # SquidNT Config By MR.Jasda2003 @ siamcafe # # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # NETWORK OPTIONS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # http_port 8080 # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # #cache_peer 192.168.0.1 parent 8080 0 no-query #cache_peer 192.168.0.6 parent 8080 0 no-query hierarchy_stoplist cgi-bin ? .pl .cgi .php .php3 .php4 .shtml acl QUERY urlpath_regex cgi-bin \? .pl .cgi .php .php3 .php4 .shtml no_cache deny QUERY # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # OPTIONS WHICH AFFECT THE CACHE SIZE # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # #cache_mem xxx MB cache_mem 256 MB cache_swap_low 90 cache_swap_high 95 maximum_object_size 4096 KB minimum_object_size 0 KB maximum_object_size_in_memory 8 KB # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # LOGFILE PATHNAMES AND CACHE DIRECTORIES # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # cache_dir ufs C:/squid/var/cache/cache1 512 24 256 cache_dir ufs C:/squid/var/cache/cache2 512 24 256 emulate_httpd_log on cache_access_log none cache_log none cache_store_log none mime_table c:/squid/etc/mime.conf referer_log c:/data_squid/logs/http.log cache_access_log c:/data_squid/logs/access.log #cache_log c:/squid/var/logs/cache.log #cache_store_log c:/squid/var/logs/store.log pid_filename none # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # OPTIONS FOR EXTERNAL SUPPORT PROGRAMS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # auth_param basic program C:/squid/libexec/ncsa_auth.exe C:/data_squid/passwd/passwd #auth_param basic program C:/squid/passwd/htpasswd.exe C:/squid/passwd/passwd auth_param basic children 3 auth_param basic realm rtc Proxy Server [Proxy ^^^___please enter your username & password thank you tel 107 to ITC ***___^^^ ] auth_param basic credentialsttl 2 hours auth_param basic casesensitive off authenticate_ttl 2 hour acl password proxy_auth REQUIRED http_access allow password # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # OPTIONS FOR TUNING THE CACHE # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # refresh_pattern -i .(class|pdf|rtf|doc|wp|wp5|ps|prn)$ 1440 90% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern -i .(mov|avi|mpg|wav|au|mid|mp3)$ 1440 100% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern -i .(zip|gz|arj|lha|lzh|rar|tgz|tar|Z)$ 1440 80% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern -i .(jpg|gif|jpeg|png|css|js)$ 1440 19000% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern -i .(bmp|tif|tiff|xbm)$ 1440 17000% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern -i .(png|swf)$ 1440 18000% 1440 override-lastmod override-expire reload-into-ims ignore-reload refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # ACCESS CONTROLS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # ####################################################################################################################### #acl password proxy_auth REQUIRED ####################################################################################################################### acl ADS dstdom_regex -i "C:'squid\share\info\info.txt" acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 #สำนักงาน acl localnet src 192.168.1.0/255.255.255.128 #ห้องนายทองด้วง acl localnet src 192.168.2.0/255.255.255.192 #คอมธุรกิจ acl localnet src 192.168.3.0/255.255.255.192 #ช่างกล acl localnet src 192.168.4.0/255.255.255.192 #ห้องสมุด acl localnet src 192.168.15.0/255.255.255.192 acl localnet src 192.168.16.0/255.255.255.128 #อิเล็กทรอนิกส์ acl localnet src 192.168.5.0/255.255.255.128 #สถาปัตย์ acl localnet src 192.168.6.0/255.255.255.224 #งานสื่อการเรียนการสอน acl localnet src 192.168.7.0/255.255.255.128 #เทคโน acl localnet src 192.168.8.0/255.255.255.192 #ศูนย์เรียนรู้ acl localnet src 192.168.9.0/255.255.255.224 #com 312 acl localnet src 192.168.11.0/255.255.255.128 #wiless acl localnet src 192.168.10.0/255.255.255.0 acl SSL_ports port 443 563 acl Safe_ports port 21 70 80 210 280 443 563 488 591 777 1025-65535 acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports ####################################################################################################################### #################################### acl daytime time [day-abbrevs] [h1:m1-h2:m2] ######################################## #################################### S-Sunday 08:00-17:00 ######################################## #################################### M-Monday ######################################## #################################### T-Tuesday ######################################## #################################### W-Wednesday ######################################## #################################### H-Thursday ######################################## #################################### F-Friday ######################################## #################################### A-Saturday ######################################## ####################################################################################################################### #acl daytime time M-Monday 08:00-17:00 ####################################################################################################################### #acl download urlpath_regex -i "C:/squid/block/block_file_download.conf" #acl bandwidfile urlpath_regex -i "C:/squid/etc/file_bandwid.conf" #acl domains dstdomain "C:/squid/block/block_domains.conf" #acl full_download src "C:/data_squid/etc/ip_full_download.conf" acl words url_regex "C:/data_squid/block/block_words.conf" #acl blocktime src 'C:/squid/block/block_ip_time.conf' acl sites url_regex "C:/data_squid/block/block_sites.conf" #acl blockclient src "C:/squid/block/block_ip.conf" #acl urlip dst "C:/squid/block/block_url_ip.conf" #http_access deny download all !full_download ####################################################################################################################### #http_access deny daytime blocktime ####################################################################################################################### #http_access deny blockclient #http_access deny domains #http_access deny words #http_access deny urlip #http_access deny sites http_access allow localhost ####################################################################################################################### #http_access allow password ####################################################################################################################### http_access allow localnet http_access deny all # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # ADMINISTRATIVE PARAMETERS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # cache_mgr Administrator cache_effective_user squid cache_effective_group squid visible_hostname Proxy_@_rtc.ac.th # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # MISCELLANEOUS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # reload_into_ims on # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # DELAY POOL PARAMETERS # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # #delay_pools 2 #delay_class 1 2 #delay_class 2 2 #delay_access 1 allow bandwidfile localnet #delay_access 1 deny all #delay_access 2 allow localnet #delay_access 2 deny all #delay_parameters 1 -1/-1 10000/10000 #delay_parameters 2 200000/200000 25000/25000 ie_refresh on # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- # # Copyright 2006 Siamcafe@net co.ltd All Rights Reserved # -------------------------------------------------------------------------------------------------------------------------------------------------------------------- #