- 论坛徽章:
- 0
|
配置内容acl部分
原帖由 我家老婆最美丽 于 2006-12-11 11:56 发表
贴配置中的acl和http_access部分内容
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 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl jianshegongsi src 192.168.13.0/24 172.16.0.250/255.255.255.0
acl opentime time 8:00-11:00
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
http_access allow jianshegongsi opentime
#http_access deny !opentime
#
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all |
|