Not sure Routers can do Layer 7 DDOS protection... Most common are Layer 3 and Layer 4 like TCP-SYN floods, UDP
floods, and ICMP attacks.
https://blog.radware.com/security/2016/ ... ive-apdos/
Actually, poking around the Interweb I came across this reply to a basic question about DDOS protection for SMTP ...
.
One of the difficulties in securing SMTP lies in the protocol itself, specifically the admonitions in RFC 5321 which give proscriptions on timing out a session. A faithful implementation provides no facility for timing a session out. Ideally one would want to ignore those recommendations, and set a session timeout for the mail session. This will prevent for example any attacks where long delays are used to send data character by character with large mail sizes. For example if you have a mail server with a 10MB mail size limit, it is fairly easy to write a script which delivers a fake mail to your server and writes a Lorem Ipsum message, one character at a time up to the 10MB limit, but delaying each character by 1 - 2 minutes. Theoretically without a session limit such a mail session could run around 10 million minutes. So now run a script that simply starts bots that do this from hundreds of places on the web, and pretty soon the bots will have all your connections tied up (assuming you have connection limits, or are using a connection pool).
Ideally, one would set up a timer from the time the DATA command was issued to the time that the "CRLF . CRLF" was issued. Something like 5 minutes or so for the whole data to transmit should be reasonable. And violate the RFC and simply drop the connection if it exceeds that timeout. Well behaved clients will never come close to that limit and even people using the command line terminal ought to be able to send data within that time frame presuming they know how to type.
A read-worthy document:
https://www.crysys.hu/publications/file ... R07cts.pdf
It turns out my server is reasonably safe. I do not allow sending or relaying mail without authentication. Authentication is limited to Danish realms via GEOIP. SMTP connections not resulting in emails are banned. Firewall ban would be preferred but server is W2K3 Server R2 and that firewall sux
So, I'll leave the Layer 3 and Layer 4 DDOS to the routers.

SørenR.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.