logoalt Hacker News

mirambalast Wednesday at 9:48 PM6 repliesview on HN

Is there a way to do that and still be able to access the server?


Replies

j45last Thursday at 1:54 AM

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.

m00xlast Wednesday at 9:55 PM

Yes, cloudflare tunnels do this, but I don't think it's really necessary for this.

I use them for self-hosting.

show 1 reply
iLoveOncalllast Wednesday at 9:55 PM

Yes, CloudFlare ZeroTrust. It's entirely free, I use it for loads of containers on multiple hosts and it works perfectly.

show 1 reply
Carroklast Wednesday at 9:54 PM

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.

show 2 replies
sh3rl0cklast Wednesday at 9:54 PM

Either via a VPN or a tunnel.