Home >Database >Mysql Tutorial >Cisco 访问控制列表允许部分人上网

Cisco 访问控制列表允许部分人上网

WBOY
WBOYOriginal
2016-06-07 15:16:021148browse

route#config t Enter configuration commands, one per line. End with CNTL/Z. route(config)#int fa0/1 route(config-if)#ip access-group 112 in 然后,在这个组里面,写入 允许 上网 的主机地址(配置要在全局下配置)。最后加一条,不符合以上条件者,

  route#config t

  Enter configuration commands, one per line.  End with CNTL/Z.

  route(config)#int fa0/1

  route(config-if)#ip access-group 112 in

  然后,在这个组里面,写入允许上网的主机地址(配置要在全局下配置)。最后加一条,不符合以上条件者,全部过滤。

  access-list 112 permit ip host 192.168.0.160 any

  access-list 112 permit ip host 192.168.0.161 any

  access-list 112 permit ip host 192.168.0.162 any

  access-list 112 permit ip host 192.168.0.163 any

  access-list 112 permit ip host 192.168.0.164 any

  access-list 112 permit ip host 192.168.0.165 any

  access-list 112 permit ip host 192.168.0.166 any

  access-list 112 permit ip host 192.168.0.167 any

  access-list 112 permit ip host 192.168.0.168 any

  access-list 112 permit ip host 192.168.0.169 any

  access-list 112 permit ip host 192.168.0.170 any

  access-list 112 permit ip host 192.168.0.171 any

  access-list 112 permit ip host 192.168.0.172 any

  access-list 112 permit ip host 192.168.0.173 any

  access-list 112 permit ip host 192.168.0.174 any

  access-list 112 permit ip host 192.168.0.175 any

  access-list 112 permit ip host 192.168.0.151 any

  access-list 112 permit ip host 192.168.0.5 any

  access-list 112 deny   ip any any

  在这个表中,我允许了160-175可以访问公网。还有一条比较特殊,因为我们公司有WEB代理服务器。服务器地址为5。所以一定要允许代理服务器 访问网关。要不公司里允许上网的人也打不开网页了!如果公司有web,ftp,mail应该把这些服务器地址,添加到访问控制列表中。以保证他们正常工作!

【责编:peter】

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn