Show HN: TailGuard – Bridge your WireGuard router into Tailscale via a container

github.com

147 points by juhovh 3 days ago


My elderly parents are behind a 5G connection in rural areas, and I help them manage their network from overseas. I found a reasonably priced 5G router that can do external antennas required for it to work, but the only reasonable ways to get access to it is either through OpenVPN or WireGuard, the latter of which is much more lightweight and preferred with the memory constraints of the device.

The problem with WireGuard is that it requires handling key management oneself, and configuring the keys to every device you want to access it from. It also doesn't play nicely together with other VPNs, meaning I ended up connecting and disconnecting VPNs whenever I wanted to use them. This is especially evident on my phone, which only allows one VPN app at a time.

I was already using Tailscale as an easy way to handle homelab access with SSO, even if some computers are behind ISP CGNAT, and came up with this idea of spinning up a Docker container to connect the two. I found some suggestions for it online, but nothing ready to use. It ended up being more work than I expected to fine tune the routing, IPv6, firewall settings, re-resolving the DNS of the router on IP address changes etc.

I got it very stable eventually though, and wanted to share with everyone else. I think it's cool to have the WireGuard router looking like any other Tailscale node in my tailnet now.

supernetworks - 3 days ago

We have a similar container @juhovh, for a plugin for the router we work on. in case this is helpful for you, feel free to to review https://github.com/spr-networks/spr-tailscale/blob/main/Dock...

jasonriddle - 3 days ago

So, it looks like this might work with fly.io?

fly.io provides a way to connect to their servers via wireguard (https://fly.io/docs/blueprints/connect-private-network-wireg...), and so tailguard could connect to their wireguard instance?

Terretta - 2 days ago

You can run a Tailscale node providing LAN access on Apple TV. Just grab Tailscale's Apple TV app. Performance is higher than you'd expect, saturates a gigabit link.

This is the perfect "get to parent's network" appliance. Pairs nicely with Eero+, which one might pick for remote network mgmt for reasons such as ad/threat blocking, aside from the cloud management with co-mgmt delegation built in.

It can also serve as an exit node. This makes it a lovely "use the Internet from my usual location" appliance, for all kinds of reasons.

Setup and use is ultra simple.

vladvasiliu - 3 days ago

> It also doesn't play nicely together with other VPNs, meaning I ended up connecting and disconnecting VPNs whenever I wanted to use them. This is especially evident on my phone, which only allows one VPN app at a time.

What do you mean? I've had great luck using specific routes over wireguard with the official app on my phone. It works great with "on-demand" wg, and only routing my home subnet over it.

Now, some "business" vpns suck donkey balls, but these are usually borked beyond belief without any external help. I'm specifically thinking about the dotted red square one.

Jnr - 3 days ago

I use tailscale and wireguard and I route traffic between them, so I can't understand why are so many lines of code needed? Can't you simply enable subnet routing on the tailscale node (single argument does that) and perhaps add additional subnet to the addresses list of wireguard peer?

notadeveloper - 3 days ago

What about the Subnet Router functionality that Tailscale has?

avtar - 3 days ago

The overview and benefits sections along with other bits are great examples of what should go in a root level README.md Nice work <3

syntaxing - 3 days ago

Neat idea but getting a 5G GL inet router would probably be more robust. Built in tailscale and wireguard so you don’t have to worry about this. Best thing about GL inet routers are the IMEI cloning. It’s pretty popular for wireless ISP like T-Mobile and Verizon 5G home internet.

BrandoElFollito - 2 days ago

I am confused. Why not simply advertizing a route in Tailscale on the host that supports tailscale? It will work as the gataway to the LAN.

oe - 3 days ago

Which 5G router do you use?

- 3 days ago
[deleted]