News for hackers. Stuff that matters.
Re:I got hacked: My Hetzner server started mining Monero by miramba on Wednesday December 17, 2025 @04:48PM (#46306012)
Is there a way to do that and still be able to access the server?
Re:I got hacked: My Hetzner server started mining Monero by m00x on Wednesday December 17, 2025 @04:55PM (#46306114)
Yes, cloudflare tunnels do this, but I don't think it's really necessary for this.

I use them for self-hosting.

Re:I got hacked: My Hetzner server started mining Monero by doublerabbit on Wednesday December 17, 2025 @07:32PM (#46307543)
That server is still exposed to the internet on a public IP. Just only known and courted through a 3rd party's castle.
Re:I got hacked: My Hetzner server started mining Monero by j45 on Wednesday December 17, 2025 @08:57PM (#46308114)
The tunnel doesn't have to use the Public IP inbound, the cloudflare tunnel calls outbound that can be entirely locked up.

If you are using Cloudflare's DNS they can hide your IP on the dns record but it would still have to be locked down but some folks find ways to tighten that up too.

If you're using a bare metal server it can be broken up.

It's fair that it's a 3rd party's castle. At the same time until you know how to run and secure a server, some services are not a bad idea.

Some people run pangolin or nginx proxy manager on a cheap vps if it suits their use case which will securely connect to the server.

We are lucky that many of these ideas have already been discovered and hardened by people before us.

Even when I had bare metal servers connected to the internet, I would put a firewall like pfsense or something in between.

Re:I got hacked: My Hetzner server started mining Monero by palata on Thursday December 18, 2025 @04:36AM (#46310627)
What does the tunnel bring except DoS protection and hiding your IP? And what is the security concern with divulging your IP? Say when I connect to a website, the website knows my IP and I don't consider this a security risk.

If I run vulnerable software, it will still be vulnerable through a Cloudflare tunnel, right?

Genuinely interested, I'm always scared to expose things to the internet :-).

Re:I got hacked: My Hetzner server started mining Monero by j45 on Sunday December 21, 2025 @08:48PM (#46350505)
Small "except". :)

With the amount of automated bots that port scan looking for anything/everything that's open, as well as scanning DNS records for server IPs that could be targeted, one of the nice patterns of cloud hosting is how application and data servers are hosted behind firewalls of some kind, to effectively be internal.

As for what's exposed to the web, let's say the payload of a website, if there was something vulnerable in the javascript, that could be a weakness hosted anywhere.

Cloudflare can also help achieve this without too much fuss for self-hosted projects, be it personal, and production grade, assuming the rest of the trimmings are tehre.

Re:I got hacked: My Hetzner server started mining Monero by palata on Monday December 22, 2025 @03:44AM (#46352318)
> one of the nice patterns of cloud hosting is how application and data servers are hosted behind firewalls of some kind

Oh I see, so that I benefit from the "professional" firewall of Cloudflare, as opposed to my own that I may have possibly misconfigured or forgot to update etc?

Or is there more, like Cloudflare will block IPs that know to come from malicious actors and things like this?

Re:I got hacked: My Hetzner server started mining Monero by j45 on Monday December 22, 2025 @02:44PM (#46358052)
Both are a yes.
Re:I got hacked: My Hetzner server started mining Monero by Carrok on Wednesday December 17, 2025 @04:54PM (#46306094)
Many ways. Using a "bastion host" is one option, with something like wireguard or tinc. Tailscale and similar services are another option. Tor is yet another option.
Re:I got hacked: My Hetzner server started mining Monero by cortesoft on Wednesday December 17, 2025 @06:16PM (#46306944)
The bastion host is a server, though, and would be exposed to the internet.
Re:I got hacked: My Hetzner server started mining Monero by j45 on Sunday December 21, 2025 @08:50PM (#46350519)
It can run a firewall and forward to internal traffic as well.
Re:I got hacked: My Hetzner server started mining Monero by venturecruelty on Wednesday December 17, 2025 @05:46PM (#46306639)
>Never expose your server IP directly to the internet, vps or baremetal.
Re:I got hacked: My Hetzner server started mining Monero by sh3rl0ck on Wednesday December 17, 2025 @04:54PM (#46306097)
Either via a VPN or a tunnel.
Re:I got hacked: My Hetzner server started mining Monero by iLoveOncall on Wednesday December 17, 2025 @04:55PM (#46306112)
Yes, CloudFlare ZeroTrust. It's entirely free, I use it for loads of containers on multiple hosts and it works perfectly.
Re:I got hacked: My Hetzner server started mining Monero by j45 on Wednesday December 17, 2025 @08:58PM (#46308116)
It's really convenient. I don't love that its a one of one service, but it's a decent enough placeholder.
Re:I got hacked: My Hetzner server started mining Monero by j45 on Wednesday December 17, 2025 @08:54PM (#46308091)
Yes, of course.

Free way - sign up for a cloudflare account. Use the DNS on cloudflare, they wil put their public ip in front of your www.

Level 2 is install the cloudflare tunnel software on your server and you never need to use the public IP.

Backend access securely? Install Tailscale or headscale.

This should cover most web hosting scenarios. If there's additional ports or services, tools like nginx proxy manager (web based) or others can help. Some people put them on a dedicated VPS as a jump machine.

This way using the Public IP can almost be optional and locked down if needed. This is all before running a firewall on it.