设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
运维技术 —— LinuxSir.cn
›
服务器架设、应用、维护
›
squid中限制exe.zip之类的文件??
返回列表
查看:
999
|
回复:
4
squid中限制exe.zip之类的文件??
[复制链接]
wallace888
wallace888
当前离线
积分
342
IP卡
狗仔卡
发表于 2003-9-16 16:28:44
|
显示全部楼层
|
阅读模式
acl mmxfile urlpath_regex \.mp3$ \.avi$ \.exe$
http_access deny mmxfile
上面的命令应该是限制下载 mp3 avi exe的文件。我的问题是如果就按照上面的书写格式写入squid.conf的话是不是对所有的客户机生效啊。如果我现在只想限制192.168.1.2这台电脑进行限制我如何写呢?
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
大熊宝宝
大熊宝宝
当前离线
积分
1876
IP卡
狗仔卡
发表于 2003-9-16 17:21:20
|
显示全部楼层
不可以这样吧 哪位兄弟知道。。。
回复
支持
反对
使用道具
举报
显身卡
wallace888
wallace888
当前离线
积分
342
IP卡
狗仔卡
楼主
|
发表于 2003-9-16 18:31:58
|
显示全部楼层
up up up up up 顶一下!!!!
回复
支持
反对
使用道具
举报
显身卡
Glue
Glue
当前离线
积分
3129
IP卡
狗仔卡
发表于 2003-9-16 20:30:30
|
显示全部楼层
有一个想法
http_access 好象是有顺序的
acl badguy 192.168.1.2/32
http_access allow !badguy
acl mmxfile urlpath_regex \.mp3$ \.avi$ \.exe$
http_access deny mmxfile
http_access allow badguy
不妨一试 :cool:
回复
支持
反对
使用道具
举报
显身卡
chg1226
chg1226
当前离线
积分
24
IP卡
狗仔卡
发表于 2003-9-17 11:14:23
|
显示全部楼层
可以这样
acl allow_host src 192.168.2.0/24
acl no_allow_file urlpath_regex \.mp3$ \/vai$ \.exe$
http_access allow allow_host no_allow_file
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表