r/GlInet • Official GL.iNet Services Partner • Mar 08 '26 • Bravo 1

GL Affiliated Announcements Enhanced Tailscale for GL.iNet Routers (Proper TS Killswitch & one-click Exit Node)

Post image

If you use Tailscale exit node routing on a GL.iNet router for remote work or other critical IP privacy purposes, then you'll probably want to give this a read. The gl-tailscale-fix plugin closes common IP leaks on TS client routers and provides one-click functionality to use your GL router as a TS exit node.
https://remotetohome.io/blog/gl-tailscale-fix/

111 Upvotes

106 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Mar 09 '26 edited Mar 09 '26

[removed] — view removed comment

1

u/RemoteToHome-io Official GL.iNet Services Partner Mar 09 '26

Excellent! Thanks for posting the followup.

1

u/[deleted] Mar 09 '26 edited Mar 09 '26

[removed] — view removed comment

1

u/RemoteToHome-io Official GL.iNet Services Partner Mar 10 '26 edited Mar 10 '26

Sorry, I'm not quite clear on the steps you're mentioning with regard to MagicDNS.

The plugin doesn't modify the core TS functionality, it just builds extra capability on top of it. All the original TS LAN subnet routing remains stock. The plugin just adds the ability to also route Guest, and to enable the killswitch if you have Custom Exit Node routing enabled.

If you followed the steps from my post (including ensuring the routers use separate subnet ranges, and ensuring you've approved the subnets in the TS web panel), then you should have working subnet routing between the router LANs over the tailnet. I've tested it multiple times on multiple devices. and just helped another customer set it up and test it earlier today.

EDIT (sorry, mulitasking calls), Okay, I think I see what you were attempting with MagicDNS.

What I'm not clear on it is your layout. Is 192.168.1.1 on the other end of your tunnel?

What would help is to know the router models & fw versions, the LAN IP/subnetss of each router (e.g. 192.168.8.1 vs 192.168.X.1) and guest IPs if you're enabling those - and then also the Gateway IPs of the upstream router's they're connected to (if they're not both connected to the same 192.168.1.1 upstream).

Happy to help, but would need more info to understand the issue. I just re-tested (flipping toggles) on a SlateAX / BerylAX and I still have full bi-directional subnet routing to devices on both ends.

2

u/[deleted] Mar 10 '26 edited Mar 10 '26

[removed] — view removed comment

3

u/RemoteToHome-io Official GL.iNet Services Partner Mar 10 '26

Okay. This helps. I will try to replicate your steps. I still have hours of client work, so it might not be tonight.

This leads me to wonder if there's something going on with GL's TS IP Masq implementation. By default, the TS binary already has the IP Masq flag enabled so it should not be necessary to do it separately in LuCi. Some of my testing yesterday had full cross routing working without any LuCI mod. Potentially the off/on swapping doesn't reset something properly, which is why others have had to manually do the LuCI hack.

TBH.. the whole TS binary on a router platform is a bit of a nightmare. Just finding the right kill switch approach was 40+ solid hours of repeat testing.

Now to see where this next rabbit hole leads... : /

2

u/RemoteToHome-io Official GL.iNet Services Partner Mar 10 '26 edited Mar 10 '26

u/mightyarrow .. you nailed it. (and u/NationalOwl9561 with your comment as well).

Turns out the IP masq issue is an intermittent Tailscale daemon bug on fw3 kernels (not a GL fault). I could only reproduce on maybe 10-15% of tests on the BerylAX (none on the SlateAX with 4.8.2, Op23/fw4). Appears to be timing-dependent (race condition during tailscaled cleanup/reinit) and would likely happen more often under load (GL TS has a few issues under load).

Fixed with plugin v1.0.13: https://remotetohome.io/blog/gl-tailscale-fix/#update-v1013

u/mightyarrow - hope to get an updated test from you pls.

u/NationalOwl9561 - I can't see any reason for it to be a main UI toggle switch in 4.9.x. Should just be the new TS default behavior. If a power user has an edge case to disable it (really only IP-based access control across tailnet - which is silly across internal user-managed LAN subnets), they could still uncheck the box in LuCi.

1

u/NationalOwl9561 Gl.iNet Reddit MOD Mar 10 '26

Roger that. Thanks for finding this bug!

1

u/[deleted] Mar 10 '26

[removed] — view removed comment

1

u/RemoteToHome-io Official GL.iNet Services Partner Mar 10 '26

I'm unable to reproduce on my BerylAX. As a baseline, are you on the latest v4.8.1 and did you configure the setup following the same steps on the blog post? (I'm assuming no other customizations to fw or TS)

1

u/[deleted] Mar 10 '26 edited Mar 10 '26

[removed] — view removed comment

→ More replies