tern -i \.rar$ 0 50% 10080
refresh_pattern -i \.zip$ 0 50% 10080
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 10080
# 定义广域网ip范围:
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
http_access allow manager localhost
http_access deny manager
acl to_localhost dst 127.0.0.0/8
# 允许删除缓存:
acl AdminBoxes src 127.0.0.1
acl Purge method PURGE
http_access allow AdminBoxes Purge
http_access deny Purge
# 下列站点不作缓存:
acl doc.guandang.net dstdomain doc.guandang.net
no_cache deny doc.guandang.net
acl doc.guandang.net dstdomain doc.guandang.net
no_cache deny doc.guandang.net
# 定义安全端口:
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
# 单个ip最多连接数:
acl ip_connect_max maxconn 100
http_access deny ip_connect_max
# 禁用 msn :
acl the_msn rep_mime_type x-msn-messenger
http_access deny the_msn
###### 访问限制 #####
#
## 添加不受访问限制ip:
#acl allow_ip src 192.168.0.4
## 定义受限域名列表(仅对域名有效):
#acl deny_site dstdomain "/test/squid2.6.6/etc/deny_site.conf"
## 允许不受限制ip访问受限域名列表
#http_access allow allow_ip deny_site
## 禁止其它ip访问受限域名列表
#http_access deny deny_site
## 定义受限url列表(支持符合正则表达式的任何url):
#acl deny_url url_regex "/test/squid2.6.6/etc/deny_url.conf"
## 允许不受限制ip访问受限url列表
#http_access allow allow_ip deny_url
## 禁止其它ip访问受限url列表
#http_access deny deny_url
#
##### 访问限制 end ####
# 允许访问已定义安全端口,拒绝访问非安全端口:
http_access allow Safe_ports
http_access deny !Safe_ports
# 仅允许加密请求到安全端口443:
http_access deny CONNECT !SSL_ports
# 允许已定义客户地址,拒绝非定义客户地址:
acl visitors src 192.168.0.0/255.255.0.0
http_access allow visitors
http_access deny !visitors
http_reply_access allow visitors
http_reply_access deny !visitors
icp_access allow visitors
icp_access deny !visitors
miss_access allow visitors
miss_access deny !visitors
##################
# 可顺便做反向代理
##################
#
# 反向代理begin
#
cache_peer 192.168.0.10 parent 81 0 no-query originserver name=apache2.2.4
cache_peer_domain apache2.2.4 192.168.0.10
cache_peer 192.168.0.10 parent 81 0 no-que
RHEL5下Squid+IPtables实... 3页 1下载券 喜欢此文档的还喜欢 iptables+squid...为了让局域网所有用户能够 通过 squid 的代理服务访问外部网页,需要设置访问控制...
盈高-网络准入控制解决方案_计算机硬件及网络_IT/计算机_专业资料。网络准入控制解决方案 ASM6000 入网规范管理系统,是盈高科技自主知识产权的新一代集 成化终端安全...
Linux 核心虚拟技术 – 容器篇 3-1 第三章 : Linux Container 虚拟网络管理 3.1 内定虚拟网络 (lxcbr0, iptables, dnsmasq) 对于虚拟(云端)系统平台来说,网络...
网络控制器_计算机硬件及网络_IT/计算机_专业资料。网络控制器详解ZoneDirector 1000 ? Enterprise-Class Smart Wireless LAN Controller r The First “IT Lite” ...
iptables端口报文控制应用实例_计算机硬件及网络_IT/计算机_专业资料。iptables端口...(192.168.62.111)使用该代理的权限目标:不使用squid代理上网,而是使用NAT的...
wifi继电器控制使用说明20140216_信息与通信_工程科技_专业资料。wifi继电器控制使用说明,WiFi继电器控制方式,网络连接方法说明。wifi 继电器控制使用说明 wifi 继电器分为...
利用 Linux 中的 SQUID 将 Linux 主机设置成上网代理机,并用 Windows 的 IE ...并使用 iptables,TCP_Wrapper 等方式进行 安全 控制,基本要求如下: 0.设定内部...
控制访问列表_计算机硬件及网络_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 控制访问列表_计算机硬件及网络_IT/计算机_专业资料。姓名:余亚召 班级 ...
大型冷库计算机网络自动控制系统钱立元 ( 广东省水产学校 , 广州 510320 ) 根据冷库制冷工艺的要求 , 提出一种基于现场总线技术的冷库计算机网络自动控制系统 , 并...
linux流量控制与防火墙技术_互联网_IT/计算机_专业资料...使用 NETFILTER、IPROUTE2 和 SQUID 实现 WEB 透明...根据 fwmark 你可以使用 ipchains/iptables 给数据包...
热门文档