A-A+

ASA防火墙之三-屏蔽内网访问某些域名

2015年12月25日 站长资讯 暂无评论

在公司有时候老板可能不想让自己的员工,在上班时间上淘宝,QQ空间的之类的网站,影响工作的质量,所以,会叫技术员屏蔽掉这些域名。在这里,我采用思科ASA防火墙实现这个效果。

实验要求:

100.1.1.1作为外网WEB服务,内网的192.168.1.1用户能够获得“luyouqiwang.COM”的域名解析,但无法获得"taobao.com"的域名解析。

  1. conf t  
  2. hostname ASA  
  3. int e0/0  
  4. nameif inside  
  5. ip add 192.168.1.5 255.255.255.0  
  6. no sh  
  7. int e0/1  
  8. nameif outside  
  9. ip add 100.1.1.5 255.255.255.0  
  10. no sh  
  11. exit  
  12.   
  13. access-lis ping permit tcp 192.168.1.0 255.255.255.0 any  eq www  
  14. class-map tcp_filter_class1  
  15. match access-list ping  
  16. exit  
  17. regex url1 "\.taobao\.com"  
  18. class-map type regex match-any url_class1  
  19. match regex url1  
  20. exit  
  21. class-map type inspect http http_url_class  
  22. match request header host regex class  url_class1  
  23. exit  
  24. policy-map type inspect http http_url_policy1  
  25. class http_url_class  
  26. drop-connection log  
  27. exit  
  28. exit  
  29. policy-map inside_http_url_policy  
  30. class tcp_filter_class1  
  31. inspect http  http_url_policy1  
  32. exit  
  33. exit  
  34. service-policy   inside_http_url_policy interface inside  

outweb采用windows server 2008 搭建IIS服务器和做域名解析:

域名" www.xiaoxiongboke.com "能够获得正常的域名解析,访问100.1.1.1的iis服务器.

淘宝域名"www.taobao.com"无法能够获得正常的域名解析。

标签:

给我留言