当前位置:网站首页>防范SYN洪泛攻击的方法 -- SYN cookie
防范SYN洪泛攻击的方法 -- SYN cookie
2022-07-25 11:25:00 【ZboY.】
SYN洪泛攻击
在tcp的三次握手中,如果客户端不发送ACK来完成三次握手的第三步,那么通常一分多钟之后,服务器将中止半开连接并回收资源。
如果攻击者发送大量的TCP SYN报文段,而不完成第三次握手的步骤,那么服务器会不断为这些半开连接分配资源,导致服务器的连接资源被消耗殆尽。
当在服务器上发现大量的半连接状态,同时源ip地址是随机的,基本可以判断是一次SYN洪泛攻击。
SYN cookie -- 通过修改第二步握手中的序列号来实现

1. 当服务器收到一个SYN报文段时,先不为这个报文段生成半开连接。相反,服务器生成一个初始TCP序列号,又称为cookie。服务器利用一个散列函数,以SYN报文段源和目的地址和端口号为输入,将输出的cookie作为第二步握手的序列号(seq)返回给客户端。
2. 如果用户是合法的,他将返回一个ACK。对于一个合法的ACK, 在确认字段中确认号(ack)的值等于第二步握手中序列号值(seq)加一。服务器从ACK中取出确认号ack的值,同时根据ACK中源和目的地址和端口号运行相同的散列函数,如果输出的值加一等于从ACK中的ack值,那么合法。
边栏推荐
- PHP uploads the FTP path file to the curl Base64 image on the Internet server
- 通过Referer请求头实现防盗链
- Intelligent information retrieval(智能信息检索综述)
- NLP知识----pytorch,反向传播,预测型任务的一些小碎块笔记
- Solutions to the failure of winddowns planning task execution bat to execute PHP files
- Ups and downs of Apple's supply chain in the past decade: foreign head teachers and their Chinese students
- 面试官:“同学,你做过真实落地项目吗?”
- Atomic atomic class
- How to solve the problem of the error reported by the Flink SQL client when connecting to MySQL?
- 【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)
猜你喜欢

Eureka注册中心开启密码认证-记录

【6篇文章串讲ScalableGNN】围绕WWW 2022 best paper《PaSca》

dirReader. Readentries compatibility issues. Exception error domexception

剑指 Offer 22. 链表中倒数第k个节点

Intelligent information retrieval (overview of intelligent information retrieval)

Location analysis of recording an online deadlock

Video Caption(跨模态视频摘要/字幕生成)

Zero shot image retrieval (zero sample cross modal retrieval)

对比学习的应用(LCGNN,VideoMoCo,GraphCL,XMC-GAN)

图神经网络用于推荐系统问题(IMP-GCN,LR-GCN)
随机推荐
Heterogeneous graph neural network for recommendation system problems (ackrec, hfgn)
LeetCode第303场周赛(20220724)
【GCN-RS】Learning Explicit User Interest Boundary for Recommendation (WWW‘22)
【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
Multi label image classification
aaaaaaaaaaA heH heH nuN
硬件连接服务器 tcp通讯协议 gateway
Musk's "eternal soul": half hype, half flicker
LeetCode 50. Pow(x,n)
Innovation and breakthrough! AsiaInfo technology helped a province of China Mobile complete the independent and controllable transformation of its core accounting database
NLP knowledge - pytorch, back propagation, some small pieces of notes for predictive tasks
Introduction to pl/sql, very detailed notes
Qin long, a technical expert of Alibaba cloud: a prerequisite for reliability assurance - how to carry out chaos engineering on the cloud
Ansible
【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)
【云驻共创】AI在数学界有哪些作用?未来对数学界会有哪些颠覆性影响?
给生活加点惊喜,做创意生活的原型设计师丨编程挑战赛 x 选手分享
【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
面试官:“同学,你做过真实落地项目吗?”
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置add参数在小提琴内部添加抖动数据点以及均值标准差竖线(jitter and mean_sd)