26 Jan 2015
简介:ACL元素是Squid的访问控制的基础,access control list,用来对各种资源进行访问控制
语法:acl name type value1 value2 ...
常用type:
src 客户源ipdst 原始服务器ipmyip squid服务器有多个ip时指定squid服务使用的ipdstdomain 和dst的不同,dst会将域名转义成ip储存,而dstdomain会保存域名srcdomain 会对每个客户ip进行反向dns查询port 原始服务器端口号,或者端口号范围80-80000myport squid服务的端口号,可指定多个method http方法,可指定多个,GET POST PUTproto URI访问协议,http https ftp cache_object等time 根据时间控制访问,00:00-04:00ident ident ACL匹配被ident协议返回的用户名proxy_auth http代理验证其他type:
src_asdst_assnmp_communitymaxconnarpsrcdom_regexdstdom_regexurl_regexurlpath_regexbrowserreq_mime_typerep_mime_typeident_regexproxy_auth_regex