访问控制列表ACL

学习新思想,争做新青年。今天学习访问控制列表ACL

实验拓扑

实验要求

①允许三台PC访问FTP和WEB

②不允许三台PC访问FTP和WEB

③允许PC1访问,不允许PC2PC3访问

④允许PC1访问FTP,PC2PC3访问WEB,不允许PC1访问WEB,PC2PC3访问FTP

⑤PC1可以访问PC3,PC2不可以访问PC3

实验配置

基础配置

R1:

sys

sysname R1

int g0/0/0

ip add 172.16.1.254 24

int g0/0/1

ip add 172.16.2.254 24

int g0/0/2

ip add 172.16.3.254 24

int g0/0/3

ip add 192.168.1.254 24

S1:

sys

sysname S1

int vlanif 1

ip add 192.168.1.1 24

要求配置

①允许三台PC访问FTP和WEB

acl 2000

rule 5 permit source 172.16.1.1 0

rule 10 permit source 172.16.2.1 0

rule 15 permit source 172.16.3.1 0

②不允许三台PC访问FTP和WEB

acl 2001

rule 5 deny source 172.16.1.1 0

rule 10 deny source 172.16.2.1 0

rule 15 deny source 172.16.3.1 0

③允许PC1访问,不允许PC2PC3访问

acl 2002

rule 5 permit source 172.16.1.1 0

rule 10 deny source 172.16.2.1 0

rule 15 deny source 172.16.3.1 0

④允许PC1访问FTP,PC2PC3访问WEB,不允许PC1访问WEB,PC2PC3访问FTP

acl 3000

rule 5 permit tcp destination-port eq ftp source 172.16.1.1 0 destination 192.168.1.10 0

rule 10 permit tcp destination-port eq www source 172.16.2.1 0 destination 192.168.1.30 0

rule 15 permit tcp destination-port eq www source 172.16.3.1 0 destination 192.168.1.30 0

rule 20 deny tcp destination-port eq www source 172.16.1.1 0 destination 192.168.1.30 0

rule 25 deny tcp destination-port eq www source 172.16.2.1 0 destination 192.168.1.10 0

rule 30 deny tcp destination-port eq www source 172.16.3.1 0 destination 192.168.1.10 0

rule 35 deny any

⑤PC1可以访问PC3,PC2不可以访问PC3

acl 3001

rule 5 permit tcp destination-port eq icmp source 172.16.1.1 0 destionation 172.16.3.1 0

rule 10 deny tcp destination-port eq icmp source 172.16.2.1 0 destionation 172.16.3.1 0

rule 15 deny any any

相关推荐
麻辣清汤7 分钟前
结合BI多维度异常分析(日期-> 商家/渠道->日期(商家/渠道))
数据库·python·sql·finebi
ankleless10 分钟前
Spring Boot 实战:从项目搭建到部署优化
java·spring boot·后端
云边云科技11 分钟前
零售行业新店网络零接触部署场景下,如何选择SDWAN
运维·服务器·网络·人工智能·安全·边缘计算·零售
城管不管23 分钟前
Docker核心---数据卷(堵门秘籍)
运维·docker·容器
rainFFrain33 分钟前
Boost搜索引擎项目(详细思路版)
网络·c++·http·搜索引擎
AOwhisky37 分钟前
Linux 文本处理三剑客:awk、grep、sed 完全指南
linux·运维·服务器·网络·云计算·运维开发
野生技术架构师1 小时前
2025年中高级后端开发Java岗八股文最新开源
java·开发语言
静若繁花_jingjing1 小时前
JVM常量池
java·开发语言·jvm
xuanerya1 小时前
使用 SSH 方式克隆 GitHub 仓库没有权限解决办法
运维·ssh·github
David爱编程2 小时前
为什么线程不是越多越好?一文讲透上下文切换成本
java·后端