Block web scanners with ipset and iptables
11–20 of 46 posts
Re: Block web scanners with ipset and iptables
#12I wonder why the author uses a 404 error response. I usually configure NGINX with "return 444;" which closes the connection without response. Scanners don't deserve a response. I may have wasted bytes receiving the request, but I won't waste any more once I know the request is garbage.
I also have a fake /admin path that just contains a bunch of offensive/illegal phrases in 10 ish languages, but it was out of character for the post.
444 is a good idea though, I didn't know about that response code!
Re: Block web scanners with ipset and iptables
#13https://wiki.nftables.org/wiki-nftables/index.php/Moving_fro...
Re: Block web scanners with ipset and iptables
#14I wonder why the author uses a 404 error response. I usually configure NGINX with "return 444;" which closes the connection without response. Scanners don't deserve a response. I may have wasted bytes receiving the request, but I won't waste any more once I know the request is garbage.
Re: Block web scanners with ipset and iptables
#15I wonder why the author uses a 404 error response. I usually configure NGINX with "return 444;" which closes the connection without response. Scanners don't deserve a response. I may have wasted bytes receiving the request, but I won't waste any more once I know the request is garbage.
Re: Block web scanners with ipset and iptables
#16Re: Block web scanners with ipset and iptables
#17Re: Block web scanners with ipset and iptables
#18I wonder why the author uses a 404 error response. I usually configure NGINX with "return 444;" which closes the connection without response. Scanners don't deserve a response. I may have wasted bytes receiving the request, but I won't waste any more once I know the request is garbage.
I use "402 Payment Required“ right now, which is sent to the client. Didn't know about 444, which isn't listed on the Wikipedia page about HTTP return codes ...
Re: Block web scanners with ipset and iptables
#19What are some best practices to deal with in on a PC? I mean, by default pretty much everything is closed and it's not like there is any "legitimate traffic" at all, but over time it still accumulates some open ports by running stuff in docker and elsewhere: a jupyter console here, an MPD UI there — most of the time I don't even think about the fact that I'm constantly scanned by someone, and remember only after I se…
Re: Block web scanners with ipset and iptables
#20I've been using fail2ban to kill this for years. Seems to be quite effective: https://github.com/fail2ban/fail2ban
Trusted combo: Fail2Ban + 7G firewall