当前位置:网站首页>Network equipment hard core technology insider firewall and security gateway chapter (VI) security double repair under the law
Network equipment hard core technology insider firewall and security gateway chapter (VI) security double repair under the law
2022-07-28 00:48:00 【User 8289326】
Last time when it comes to , Linghuchong developed the firewall HA (High Availability) function , Realize the session synchronization of firewall , In this way, when a firewall fails , Another firewall seamlessly takes over all traffic , Only a few packets are lost .
But , When testing the new connection performance of firewall , Linghuchong found , Test results and closure HA The functions are quite different .
original , Linghuchong forgot an important problem .
When the firewall synchronizes the session , You need to carry the following information :
Quintuples ( Source IP, Purpose IP, Source port , Destination port , Protocol type );
NAT The last quintuple ;
VRF—— Because of the difference VRF The addresses of can overlap , Avoid confusion ;
And other processing fields of the session .
thus , Calculate the packet header cost of each session packet , The network of session synchronization itself becomes the bottleneck of restricting session synchronization ……
The solution is also very simple , Linghuchong modified the driver code , Let the session synchronization be carried out through the aggregated Ethernet .
However , One wave rises after another .
Linghuchong tested the firewall layer 2 networking , Find a new problem :
Pictured , Firewall works in layer 2 mode , There is no IP Address , It presents a network bridge with the function of state detection firewall .
because FW A,FW B,SW X and SW Y Form a loop , therefore , Need to use STP The protocol blocks the redundant interfaces of the loop to form a spanning tree :
Of course , This kind of networking has the same disadvantages as the switch spanning tree : Long convergence time , At least half of the interface bandwidth is wasted .
Linghuchong transplanted the code related to the switch stacking function to the firewall , Allow two firewalls to stack , The control plane is virtualized into one , however , Linghuchong found , Even the basic session establishment function can't work properly ……
original , Here's the problem :
because SW X and SW Y It's all switches , Their lines to two firewalls are configured using port aggregation . Switch in the case of port aggregation , Packet streaming is based on IP Of —— that , This may cause TCP SYN and TCP SYN-ACK Sent to two different firewalls in the stack group .
Suppose the firewall A received TCP SYN package , And establish a session , And on the return trip TCP SYN-ACK But there is no guarantee that it will be sent to the firewall A. If SYN-ACK Sent to the firewall B, It will be discarded , As a result, this session will never be established .
therefore , Use stack mode in firewall ( Also known as Active-Active Pattern ) When realizing dual machine hot standby , Asymmetric session establishment is a very necessary function .
It allows two firewalls to synchronize session state machine information , Instead of simply synchronizing the addition and deletion of sessions . such , The enviable switch stacking function can also be realized on the firewall .
Linghuchong has solved the dual machine hot standby function of the firewall , Very happy , Soon , The new firewall has been deployed in the network exit and network core of Huashan School , Yue buqun is very happy .
However , With the development of Huashan sect , New challenges are coming ——
Please look forward to the next issue .
边栏推荐
- 为华为打造无美系设备的产线,台积电三星能做到吗?
- Logic of automatic reasoning 07 - predicate calculus
- Build Release Blogs
- 几行代码轻松实现对于PaddleOCR的实时推理,快来get!
- 大众中国豪掷80亿,成国轩高科第一大股东
- 英特尔携手汉朔、微软,释放“AI + 零售”大招!
- ASML推出第一代HMI多光束检测机:速度提升600%,适用于5nm及更先进工艺
- Data visualization - White Snake 2: black snake robbery (3)
- Rational and perceptual activities and required skills in programmers' work
- Data analysis: disassembly method (details)
猜你喜欢

Set 数据构造函数

Code review tool

Buildforge materials

MATLAB 文件夹前面的+和@是干啥的 命名空间与函数的重载

Openvino integrates tensorflow to accelerate reasoning

Matlab | those matlab tips you have to know (3)

Camera and lidar calibration: gazebo simulation livox_ camera_ lidar_ Calibration ---- external parameter calibration calculation and result verification

Recurrence of fastjson historical vulnerabilities

服务器中毒了——菜是原罪

Intel AI practice day issue 56 | explore new trends in industry development
随机推荐
How to smoothly go online after MySQL table splitting?
蓝桥杯单片机第十一届国赛程序设计试题
网络设备硬核技术内幕 防火墙与安全网关篇 (十二) 零接触办公的奥秘 下
Jerry caused other messages to accumulate in the message pool [article]
The Canadian court found Meng Wanzhou guilty of "dual criminality", and the extradition procedure will continue!
What are the namespaces and function overloads of + and @ in front of MATLAB folder
From the second floor to the third floor
英特尔携手汉朔、微软,释放“AI + 零售”大招!
Threejs personal notes
半导体测试设备市场现状:国产化率仍不足10%!
递归求解迷宫问题
[BuildRelease Management]Parabuild
Set data constructor
Matlab | those matlab tips you have to know (3)
Y79. Chapter IV Prometheus' monitoring system and practice -- Prometheus' service discovery mechanism (10)
[meetup preview] openmldb + ONEFLOW: link feature engineering to model training to accelerate machine learning model development
Rendering problems
强强协同,共拓发展!英特尔与太一物联举办 AI 计算盒聚合服务研讨会
程序员成长第三十篇:你真的懂反馈吗?
code review 工具