访问控制列表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

相关推荐
linksinke5 分钟前
Mapstruct引发的 Caused by: java.lang.NumberFormatException: For input string: ““
java·开发语言·exception·mapstruct·numberformat·不能为空
@菜菜_达20 分钟前
Nginx错误拦截转发 error_page
运维·nginx
likuolei25 分钟前
Eclipse 代码模板
java·ide·eclipse
好好研究31 分钟前
SpringMVC框架 - 异常处理
java·开发语言·spring·mvc
只会写代码32 分钟前
JDK8 Lambda 加持:打造优雅通用的对象构建器
java
云计算老刘33 分钟前
10. Linux 系统启动原理
linux·运维·服务器
h***936639 分钟前
【MySQL数据库】Ubuntu下的mysql
数据库·mysql·ubuntu
LZ7工作室40 分钟前
MAC编程:在MACOS安装和使用 Git 的方法
网络·git·macos·github·个人开发
CS_浮鱼41 分钟前
【Linux编程】线程同步与互斥
linux·网络·c++
摇滚侠1 小时前
Vue 项目实战《尚医通》,完成确定挂号业务,笔记46
java·开发语言·javascript·vue.js·笔记