HTTP :ACL

时间段内不能用http协议

acl LAN src 192.168.1.0/24
acl WORK time MTWHF 18:00-20:00
acl PRO proto http
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow  LAN WORK !PRO


# And finally deny all other access to this proxy
http_access allow localhost
http_access deny  all

 

不能访问百度

acl LAN src 192.168.1.0/24
acl WORK time MTWHF 18:00-20:00
acl DOMAIN dstdomain  .baidu.com
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow  LAN WORK !DOMAIN

不能下载.iso文件
acl LAN src 192.168.1.0/24
acl WORK time MTWHF 18:00-20:00
acl URL  url_regex -i ^.*tp://.*\.iso$
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow  LAN WORK !URL


不能访问百度:
acl LAN src 192.168.1.0/24
acl WORK time MTWHF 18:00-20:00
acl URL  url_regex -i ^http://www.baidu.com
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow  LAN WORK !URL