Re:Show HN: No PortScan
by mmh0000 on Wednesday November 17, 2021 @11:11AM
(#29254903)
Something like this can be implemented in Linux's NetFilter quite easily using the recent module:
The above would start dropping packets from anyone who hits 10 or more ports not previously accepted by an accept rule, and block the /24 of anyone who hits one of the more commonly scanned ports.
[ Parent
| on HN ]
Re:Show HN: No PortScan
by LinuxBender on Wednesday November 17, 2021 @12:30PM
(#29256028)
Use care when blocking scans with iptables. This is mostly safe for TCP if you have a dummy socket listener for the attacker to connect to and you look for established connections in iptables. If you block on SYN or UDP packets then I can disable your traffic with simple spoofing. I can even get you to block your own gateway unless you whitelist it.