当前位置:网站首页>ACL and NAT
ACL and NAT
2022-07-21 14:10:00 【stars293】
1.ACL Overview and background
ACL:access list Access control list
- In order to ensure the security of financial data , R & D departments are not allowed to access the financial server , But there is no limit to the president's office . Realization way :
stay Interface 1 In the same direction ACL, The R & D department is forbidden to access the message of financial server through .Interface 2 There is no need to deploy ACL, Messages from the president's office accessing the financial server are allowed to pass through by default .
- Protect the security of Intranet environment , prevent Internet Virus invasion . Realization way :
stay Interface 3 In the same direction ACL, Block the port that the virus often uses .
White list : Reject all by default , Let's play one. Can communicate with one Within oneselfBusiness of the DepartmentThe blacklist : Open all by default , Add a , Cannot communicate with one

An entry refers to a packet that has reached the router interface , Will be processed by the router .
exit
Exit means that it has been processed by the router , Packets leaving the router .
senior ACL(3000~3999): Can match source IP, The goal is IP, Source port , Target port and other three-tier and four tier fields and protocols
On the second floor ACL(4000~4999): According to the source of the packet MAC Address , The goal is MAC Address ,802.1q priority , Layer 2 protocol
[Huawei] acl number 2000 ### establish acl 2000
[Huawei-acl-basic-2000]rule 5 deny source 192.168.1.1 0
# The rejection source address is 192.168.1.1 Of traffic ,0 Represents only this one ,5 Is the serial number of this rule ( Not to add )[Huawei] interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192. 168.2.254 24
[Huawei -GigabitEthernet0/0/1]traffic-filter outbound acl 2000
### Interface out direction call acl 2000,outbound Represents the direction ,inbound Represents the direction of entry [Huawei-GigabitEthernet0/0/1]undo sh
[Huawei]acl number 2001 ### Get into acl 2001 list
[Huawei-acl-basic-2001]rule permit source 192.168.1.0 0.0.0.255
###permit On behalf of the allowed ,source On behalf of the source , The mask part is unmasked
[Huawei-acl-basic-2001]rule deny source any perhaps rule deny
### Deny all access ,any On behalf of all 0.0.0.0 255.255.255.255
[Huawei] interface GigabitEthernet 0/0/1 ### Enter the exit interface
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[Huawei -Gigabi tEthernet0/0/1]traffic-filter outbound acl 2001
[Huawei]aclnumber 3000 ### Refuse tcp For advanced control , therefore 3000 rise
[Huawei-acl-adv-3000]rule deny icmp source 192.168.1.0 0.0.0.255 destination 192.168.3.1 0 ### Refuse Ping
[Huawei-acl-adv-3000]rule permit tcp source 192.168.1.3 0 destination 192.168.3.1 0 destination-port eq 80
###destination Represents the destination address ,destination- port Represents the destination port number ,80 You can use www Instead of
### Configuration stops , No further execution
[Huawei-acl-adv-3000] rule deny tcp source any destination 192.168.3.1 0 destination-port eq 80
[Huawei-acl-adv-3000]rule deny tcp source 192.168.10.0 0.0.0.255 destination 12.0.0.2 destination-port eq 21
### Reject source address 192.168.10.0 Segment access FTP The server 12.0.0.2
[Huawei-acl-adv-3000]dis this ### View the current ACL Whether the configuration is successful
[Huawei]interface g0/0/0
[Huawei -GigabitEthernet0/0/1]ip address 192.168.2.254 24
[Huawei-GigabitEthernet0/0/0]traffic- filter inbound acl 3000 ### Apply in the direction of interface entry acl
[Huawei-GigabitEthernet0/0/1]undo traffic- filter inbound ### Cancel on interface acl Application
[Huawei] display acl 3000 ### Show acl To configure
[Huawei]acl number 3000
[Huawei-acl-adv-3000]dis this ### View rule sequence number
[Huawei-acl-adv-3000]undo rule 5 ### Delete one acl sentence
[Huawei]undo acl number 3000 ### Delete the whole ACL
senior acl
边栏推荐
猜你喜欢
不懂 CAN ?一文告诉你CAN协议!
Comparison of five classic code readers
PCL计算点云粗糙度
【WMCA】《Biometric Face Presentation Attack Detection with Multi-Channel Convolutional Neural Network》
Penetration testing XML injection and xxE vulnerability
Safe day 2022 China large scale agile conference will be held on November 5
npm Warn config global `--global`, `--local` are deprecated. Use `--location=global` instead
正则表达式
C#中缓存的使用
电脑突然显示只有C盘,其他磁盘不显示了----解决方法(很简单)
随机推荐
Activity registration | expose the insider of Apache Doris data Lake analysis technology? Rare earth Developers Conference free registration!
内网渗透学习(一)内网入门基础
(22) blender source code analysis: mouse down message to window call process
如何实现随叫随到的客户服务
Trust reverse traversal rev()
Player update and corresponding new function addition in easynvs customization project
Help enterprises' digital upgrading, and volcano engine releases cloud growth solutions
JVM的前世今生及未来盘点
【服务器数据恢复】断电导致存储raid6阵列瘫痪的数据恢复案例
_ Aggregate function
How can technologists start their personal brand? Exclusive teaching of top five KOLs
TF 坐标变换
Win11打印机文档被挂起如何解决?
分组查询以及筛选的区别
PCL计算点云粗糙度
助力企业数字化升级,火山引擎发布云上增长解决方案
JVM startup process
王者荣耀商城异地多活架构
更智能!AIRIOT加速煤炭行业节能减排升级
【软件测试】测试中的风险有哪些?