News for hackers. Stuff that matters.
Re:A story on home server security by aaomidi on Sunday January 05, 2025 @09:14AM (#42601843)
Tbh I prefer not exposing any ports directly, and then throwing Tailscale on the network used by docker. This automatically protects everything behind a private network too.
Re:A story on home server security by bakugo on Sunday January 05, 2025 @12:18PM (#42603239)
Important to note that, even if you use Tailscale, the firewall punching happens regardless, so you still have to make sure you either:

1. Have some external firewall outside of the Docker host blocking the port

2. Explicitly tell Docker to bind to the Tailscale IP only

Re:A story on home server security by aaomidi on Sunday January 05, 2025 @02:23PM (#42604257)
> the firewall punching happens regardless

Does it? I think it only happens if you specifically enumerate the ports. You do not need to enumerate the ports at all if you're using Tailscale as a container.

Re:A story on home server security by bakugo on Sunday January 05, 2025 @02:47PM (#42604431)
Oh, I didn't realize you meant running Tailscale in docker, my bad. Then yeah, that's safe.
Re:A story on home server security by diggan on Sunday January 05, 2025 @10:14AM (#42602278)
FOSS alternative is to throw up a $5 VPS on some trusted host, then use Wireguard (FOSS FTW) to do basically exactly the same, but cheaper, without giving away control and with better privacy.

There is bunch of software that makes this easier than trivial too, one example: https://github.com/g1ibby/auto-vpn/

Re:A story on home server security by eadmund on Sunday January 05, 2025 @02:57PM (#42604517)
Or you can use headscale (BSD) with the Tailscale client (BSD), which is still FOSS but also very very easy to use.
Re:A story on home server security by yx827ha on Sunday January 05, 2025 @09:59AM (#42602157)
I agree, Tailscale FTW! You didn't even need to integrate it with docker. Just add a subnet route and evening just works. It's a great product.
Re:A story on home server security by smarx007 on Sunday January 05, 2025 @09:28AM (#42601936)
I would love to read a write-up on that! Are you doing something like https://tailscale.com/blog/docker-tailscale-guide ?
Re:A story on home server security by aaomidi on Sunday January 05, 2025 @02:24PM (#42604264)
Yep! That's very similar to what I do.

I have a tailscale container, and a traefik container. Then I use labels with all my other containers to expose themselves on Traefik.

Re:A story on home server security by Manouchehri on Sunday January 05, 2025 @10:13AM (#42602269)
Another option is using Cloudflare Tunnels (`cloudflared`), and stacking Cloudflare Access on top (for non-public services) to enforce authentication.
Re:A story on home server security by aaomidi on Sunday January 05, 2025 @02:23PM (#42604246)
just fyi cloudflare closes any idle connection thats been around longer than 10 seconds.