Chinaunix首页 | 论坛 | 博客
  • 博客访问: 100738280
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-25 10:46:39

作者: yuhongchun     出自:
用Squid禁QQ其实有简单的实现方式。我们只需要定义一个源,一个目标,然后让源只能访问目标,其他的全部禁止掉就可以了。

# 定义终端查询机器(只能访问某些站点)
acl query_terminal src 192.168.200.96/28
# 定义单位对外的Web服务IP地址
acl school_ips dst 218.6.165.8 218.6.165.7
# 只允许查询终端访问单位的外部IP地址
http_access allow query_terminal school_ips
http_access deny query_terminal all

更多精彩请关注我的空间
阅读(295) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~