i have some problem with SYN flood attack of one of the webserver.i want to put source ip based connection limit.
so can someone tell me is it correct or not plz???
Yes, but leave off the ‘src-address=0.0.0.0/0’ in both rules.
FWIW, 25 concurrent connections isn’t very high - you’re likely going to have false positives and block legitimate users. Depending on the severity of the attack that may be a fair trade off, though. I’d personally adjust the address list time out to 1h so that false positives get unblocked faster. Also, make sure you have the drop rule very early in your ruleset so that it gets processed early and can drop all those malicious packets very quickly rather than process a lot of rules for each of them. That will help router load.