html> 未命名 一般畫面

Proxy Server 的建議設定內容

在 /etc/squid/squid.conf 的內容如下:

cache_mem 260 MB
maximum_object_size 8192 KB
cache_dir ufs /home1/squid/cache 8192 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
reference_age 2 months

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 SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl mitcampus src 210.240.232.0/255.255.255.0
acl denylibip dst "/etc/squid/denylibip"
acl denylibdm dstdomain "/etc/squid/denylibdm"

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny denylibdm
http_access deny denylibip
http_access allow localhost
http_access allow mitcampus
http_access deny all

icp_access deny denylibdm
icp_access deny denylibip
icp_access allow mitcampus
icp_access deny all