用思科写一个阻断pc访问web服务器的代码
时间: 2024-04-30 12:19:45 浏览: 144
以下是一段思科路由器上的ACL代码,用于阻断PC访问Web服务器:
```
access-list 100 deny tcp host [PC IP address] host [Web server IP address] eq www
access-list 100 permit ip any any
interface [interface name]
ip access-group 100 in
```
请将 [PC IP address] 和 [Web server IP address] 替换为实际的IP地址,将 [interface name] 替换为连接Web服务器的接口名称。此代码将阻止来自PC的TCP流量访问Web服务器的HTTP端口80,并允许其他所有IP流量通过路由器。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pptx](https://img-home.csdnimg.cn/images/20241231044947.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)