All pastes #117819 Raw Edit

dono

public text v1 · immutable
·published 2006-08-06 02:34 UTC
rendered paste body
http_port 3128
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 20 MB
maximum_object_size 256 KB
minimum_object_size 4 KB
acl all src 0.0.0.0/0.0.0.0
acl user src 192.168.0.0/255.255.0.0
acl internet src 192.168.0.1-192.168.0.253
acl porno url_regex -i "/usr/local/squid/etc/porno.txt"
http_access deny internet porno
http_access allow internet
http_access deny all

acl LAN src 192.168.0.1
acl extensions urlpath_regex -i ftp \.bmp$ \.tgz$ \.rm$ \.gz$ \.rpm$ \.iso$ \.swf$ \.3gp$ \.tar$ \.mpg$ \.mpeg$
acl extensions urlpath_regex -i \.wma$ \.mp$ \.asf$ \.dll$ \.mov$ \.wma$ \.wmv$ \.pps$ \.tar.gz$ \.doc$ \.pdf$
acl extensions urlpath_regex -i \.mp3$ \.bz$ \.xml$ \.js$ \.qt$ \.cgi$ windows \.3gp$ movie media radio \.avi$ \.ash$
acl extensions urlpath_regex -i \.rar$ \.exe$ \.rar$ \.jpg$ \.gif$
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow LAN
delay_access 1 deny all
delay_class 2 2
delay_access 2 allow user extensions
delay_access 2 deny all
delay_parameters 2 4000/15000 2000/2000

acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 12321
acl Safe_ports port 1025-65535 # unregistered ports

acl CONNECT method CONNECT

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.0.0/24
http_access allow our_networks
http_access deny all
http_reply_access allow all
icp_access allow all

visible_hostname ngetopserver
cache_effective_user squid
cache_effective_group squid
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
cache_dir ufs /usr/local/squid/var/cache 512 16 256
cache_store_log none
refresh_pattern ^ftp:   1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .       0       20%     4320
cache_access_log /usr/local/squid/var/logs/access.log
cache_log /usr/local/squid/var/logs/cache.log
logfile_rotate 1
cache_mgr NgeTop@Net

refresh_pattern ^ftp: 40320 95% 241920 override-lastmod reload-into-ims
refresh_pattern . 180 95% 40320 override-lastmod reload-into-ims
memory_pools off
icp_hit_stale on
query_icmp on
reload_into_ims on
request_header_max_size 20 KB
request_body_max_size 0 MB