The tcp synflood limits in the firewall are set to 25 and a burst of 50, which is what they were set to back in the 20Mbit/5Mbit up/download days 8+ years ago. I'd argue that nowadays with a typical download speeds 5x that, that this is too low, particularly in busier than home environments.
Recently I did a set of tests in coffee shops and saw that 30% of my syn attempts were retried. There could have been a variety of reason for that, but....
It would be interesting for more folk to take a look at their busier environments and see how often this chain is hit:
iptables -nvL | grep -A 4 "Chain syn_flood"
As for what to do about it - not a clue - turn it off by default? Scale it as part of an sqm system?
While that is a pretty trivial amount the synflood concept is about being resistant to attacks, more than an attempt to ratelimit tcp attempts to save bandwidth, particularly in a cake'd environment.
Are you running ipv6 also (same command ip6ables)? On ipv6 there is generally less need
to do this in that it doesn't impact the conntrack table....
It made sense to try and ratelimit tcp somehow back in the day, but in your case, I'd bump it up.
But I basically have been turning it off everywhere else for years, and simply hadn't noticed others weren't until I got back those stats from my coffee shop tests.
That said, I'd like to be tracking syn failures more generally from the clients than we have been.
For typical home use, I'd only consider increasing it for "semi-trusted" clients, not for the outside sources. I'd also only consider increasing it for ports 80 and 443. Even with a browser opening a dozen, simultaneous HTTPS connections, 25/second is two people opening a page a second, on average.
Actually, it turns out that this is only enabled for the INPUT path - where protecting the router itself from a synflood makes sense. That said, it can be triggered if you run stuff (like torrent or web services) on the router, and doesn't necessarily need to be this low.
This feature is definitely a controversial one, and perhaps it should not be enabled by default.
I didn't bother with calculations and simply disabled it as it negatively affects torrent uploading.
A lot of peers, many file fractions, quite a few connections.
These limits are much easier and more flexible to control via the torrent client/server settings.
Default WAN input policy is REJECT and forwarding from WAN to LAN is disabled.
So, it is more like a limitation on your own network than protection from outside threats.
The only tangible profit is for open ports if any.
It is supposed to protect services on the open ports from SYN-flood or some type of brute force attacks, but the drawbacks make me think it is not worth to be enabled by default.
Currently I don't have syn flood protection enabled.
But if I remember correctly this rule only applies to the Input chain.
So this only affects traffic directed at the router?
For the wan side no big deal because by default everything is filtered anyway.
This only affects traffic from the lan to the router?
And what is the purpose of this rule when syn cookies are enabled by default?
A modern web browser will use multiple connections at once to load a page, the exception been if the page itself is so basic that it there is no objects on the page at all (basic text html).
This rule was probably created in the days when cpu's were 10-20x weaker and the average connection was dialup or slow adsl.
One of the first things I tend to disable on firewalls/routers on home networks now days is anti ddos type features, they are more likely to cause problems than to solve them. Maybe consider this if you are hosting public services on your home network (use a datacentre but whatever), but otherwise I would just turn it off, if you do keep it on, set numbers that fit better the modern hardware and bandwidth available.
Unless UPnP (or the user) has opened ports on the router so unsolicited inbound traffic can reach gaming consoles or other devices, in which case, the traffic would be subject to the limits established for the synflood settings (e.g. 25/50 default), right?
The Input chain applies to the traffic that is directed to processes running on the router.
The Output chain applies to the traffic that is generated by processes running on the router.
(local process)
So does this Synflood Protection Rule apply to traffic that is forwarded?
I guess, No.