使用juniper禁止访问部分网站
使用Web Filtering功能.Web 过滤使您能够管理互联网访问,阻止对不适当 web 内容的访问。ScreenOS 提供了两种 web 过滤解决方案。这里我只说说集成的 web 过滤的方法。
防火墙版本:Firmware Version: 6.3.0r10.0 (Firewall+VPN)
查看防火墙设备的license:
WebUI : Configuration > Update > ScreenOS/Keys
其中有一行“Url Filtering: Disable”,license里不支持Url Filtering,不知道是不是网络提供的相关过滤服务。我们不管它,利用ScreenOS 自身集成的过滤功能好了。
目的:禁止访问所有域为 xunlei.com的网址。
WebUI : Security > Web Filtering > Protocol Selection
Choose Protocol: 选择: Integrated (SurfControl)
点击右上角的“SC-CPA”,在 Enable Web Filtering via CPA Server 处打√。
其中Web Filter Deny Message (1 ~ 1024 characters)处的内容为当访问到禁止的站点时,浏览器显示的提示内容,默认是:Your page is blocked due to a security policy that prohibits access to $URL_CATEGORY
$URL_CATEGORY 是juniper自定义的分组名
WebUI :Security > WEB Filtering > Categories > Custom
点击new 新增,设置:
Category Name: vedio
URL:*.xunlei.com
点击ok
WebUI :Security > WEB Filtering > Profiles > Custom
点击new新增,设置:
Profile Name: vedio_block
然后设置Subscribers identified by处,选择Category Name处的分类为之前设置的“vedio”类别,软后选择Action为“block”,见下图
CLIset url protocol type sc-cpa
set url protocol sc-cpa
set category "vedio" url "*.xunlei.com/"
set profile "vedio_block" other permit
set profile "vedio_block" "vedio" block
set enable
set deny-message "Your page is blocked due to a security policy that prohibits access to $URL_CATEGORY"
最后在上网策略里绑定过滤WEB Filtering 里的一个我们自定义的vedio_block
WebUI :Policy > Policies (From Trust To Untrust)
在WEB Filtering出打√,并选择之前新建的“vedio_block”
CLI
set policy id 399 from "Trust" to "Untrust""any" "Any" "ANY" permit
set policy id 399
set url protocol sc-cpa profile "vedio_block"
exit
版权声明:本文为博主原创文章,未经博主允许不得转载。 你好,首先感谢你的教程。我按照你的方法配置,但是在cli中配置set enable命令中出现there's no UF key。policies里面web filtering选项打钩了,没有出现我之前设定的protocol(gambling_block),配置无法生效,不知哪里出错了。
页:
[1]