Answer the question
In order to leave comments, you need to log in
How to block a packet with certain mss, wscale, win?
They flood with these packets:
03:30:52.656972 IP XXX.XXXX.XXX.XXX.33392 > YYY.YYY.YYY.YYY.80: Flags [S], seq 3759734784, win 8192, options [mss 1460,nop ,wscale 2,nop,nop,sackOK], length 0
Constantly the same mss, win, wscale, in general all options are the same.
Through iptables in the mangle table I can specify to block mss 1460, but the necessary things can fall under the block. The question is how to specify all the necessary TCP options for blocking? In theory, you can use u32, but how to generate this hash correctly?
Thank you.
Answer the question
In order to leave comments, you need to log in
Are you sure that this is really a SYN flood and after that ACK packets do not come from the same IP addresses?
Looks like a normal connection start. Could you give a more detailed example of the tcpdump log, for example, one IP at a time?
A little on the topic:
https://en.wikipedia.org/wiki/SYN_flood
https://www.cyberciti.biz/tips/howto-limit-linux-s...
Which video card to choose?The year of manufacture that matches your computer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question