The keen eyed under us may have noticed that the “Configuration lines” miss the “add chain=forward” line.
As a result, the firewall rules do not work (unless the user notices this error) as there is no jump happening.
Of course, people should always read instead of just blindly copy-pasting, however a fix would still be appreciated.
Yep, I also believe that in this case order doesn't functionally matter, but the text should then be changed to something to the effect of:
First we write this as second rule, then (second) we write this other rule and we place it before the former (thus the latter will be the first one)...
or:
First we have this rule, but we write before it, in the chain we haven't yet created ...
The other consideration to make is that if the packet is sent to you, only the ISP can block it BEFORE it clogs up your line,
otherwise, whether you block them or not, they will always take up your bandwidth...
To @rextended's point, could add a commentary that no DDoS solution is complete. And perhaps have short explaination that script does in fact short-circuit more expensive processing on router... Perhaps note on the use of jump/return since it's also a good example of "optimizing" firewall rules and the perils therein.