News for hackers. Stuff that matters.
Re:Ask HN: Why is my web server being attacked? by cameron_b on Wednesday December 27, 2023 @02:26PM (#38785543)
Adding to what has already been said- New registrations are the food for probing. You could have an IP on someone's naughty list from a previous user. It's any other day on the internet.

That's just what the neighborhood ( the whole internet ) looks like from the sidewalk.

So, Set up a free Cloudflare account, move your DNS of record to them, and run traffic through Cloudflare to your server.

Re:Ask HN: Why is my web server being attacked? by piperswe on Wednesday December 27, 2023 @03:03PM (#38785982)
If you set up Cloudflare Tunnel, you don't even need to be set up to accept any incoming connections. With Access, you can even run SSH through that tunnel. You can then setup your firewall to drop any incoming packets for non-established connections, closing a significant hole for DoS attacks and such.
Re:Ask HN: Why is my web server being attacked? by naiv on Wednesday December 27, 2023 @03:21PM (#38786233)
Tailscale is also a great alternative
Re:Ask HN: Why is my web server being attacked? by KTibow on Wednesday December 27, 2023 @05:51PM (#38787838)
I mean for the author's case you could go all the way and use CF Pages
Re:Ask HN: Why is my web server being attacked? by diggan on Wednesday December 27, 2023 @02:29PM (#38785577)
> So, Set up a free Cloudflare account, move your DNS of record to them, and run traffic through Cloudflare to your server.

Since the author is not actually experiencing any issues, they're just curious, there really isn't any need for this.

Re:Ask HN: Why is my web server being attacked? by joeyrobert on Wednesday December 27, 2023 @02:40PM (#38785707)
I recommend this method for self-hosting too. I have gigabit Internet and cloudflare proxying unlocks the ability to host locally without exposing my home IP. Plus all the advantages of DDoS mitigation.
Re:Ask HN: Why is my web server being attacked? by codegeek on Wednesday December 27, 2023 @02:41PM (#38785710)
Cloudflare won't protect your IP being hit directly. If your IP can be accessed publicly, it will get hit. period. You could use nginx etc to do a 444 status code but can't stop these scripts/bots from hitting ur IP completely.
Re:Ask HN: Why is my web server being attacked? by lormayna on Wednesday December 27, 2023 @03:32PM (#38786375)
Yes and no. If you have an iptables rule that drop anything not coming from CF IPs, the attacking packets are not passed to the application and dropped in kernel mode. Otherwise the packet will be passed to user mode application that consume more resources to analyse and drop the connection.
Re:Ask HN: Why is my web server being attacked? by solardev on Wednesday December 27, 2023 @03:21PM (#38786235)
Normally you'd just configure the firewall to drop all packets not from Cloudflare. Maybe also get a new static IP first.
Re:Ask HN: Why is my web server being attacked? by dizhn on Wednesday December 27, 2023 @10:48PM (#38789809)
Is there a different set of IPs for Warp? That would have to be denied too.
Re:Ask HN: Why is my web server being attacked? by kkielhofner on Wednesday December 27, 2023 @09:21PM (#38789256)
Cloudflare tunnels:

https://www.cloudflare.com/products/tunnel/

I haven’t had anything exposed to the Internet in a long while.

Re:Ask HN: Why is my web server being attacked? by gustavus on Wednesday December 27, 2023 @02:28PM (#38785565)
Please don't do this, find another way. Almost 1/2 the internet is inaccessible to me at this point because at some point CF decided that I was a bad actor and now I can't get to anything.
Re:Ask HN: Why is my web server being attacked? by Erratic6576 on Wednesday December 27, 2023 @03:20PM (#38786218)
Have you tried changing the web browser or VPN?
Re:Ask HN: Why is my web server being attacked? by throwaway67743 on Wednesday December 27, 2023 @06:27PM (#38788143)
Enabled cookies? Checked your TCP/IP settings?
Re:Ask HN: Why is my web server being attacked? by hedora on Wednesday December 27, 2023 @10:17PM (#38789602)
I used to have similar problems (and also hell bans at random web sites) because I had a small ISP that uses CGNAT. Somewhere in my zip code, there was probably an infected windows box or something.

You might check your IP in an IP reputation database.

I eventually switched to a larger, more soulless ISP (also CGNAT) because we can’t have nice things on the internet any more.

Re:Ask HN: Why is my web server being attacked? by ozim on Wednesday December 27, 2023 @05:33PM (#38787654)
Pro Tip - if you can get cheap IPv6 host cloudflare proxy will work for you as well for IPv4 as they will handle it.

You setup only AAAA record and you are reachable from IPv4 as well as much as other cloudflare caching benefits that you get.

Re:Ask HN: Why is my web server being attacked? by taskforcegemini on Thursday December 28, 2023 @08:54AM (#38793476)
that is terrible advice for the internet as a whole. cloudflare is too ubiquitous already which comes with a lot of potential danger. In other words: if you can afford not to use cloudflare, please don't.