tailscale / tailscale-qpkg

Package Tailscale client in QPKG
MIT License
457 stars 38 forks source link

Does this support the subnet router feature? #32

Closed Europa2010AD closed 2 years ago

Europa2010AD commented 2 years ago

Official Tailscale FAQ says subnet router is only supported in their Linux version at the moment. What about this qpkg?

ivokub commented 2 years ago

I haven't tried subnet router feature, but it works as an exit node. I would think that subet routing would work similarly, but I can not be sure. I can not try it out on my QNAP, but if you did, then please let know.

matthewpucc commented 2 years ago

I can confirm this works as a subnet router. This is currently how I use it.

ivokub commented 2 years ago

Thanks @matthewpucc for confirming. I'll keep the issue open for now - will update the readme later.

jankatins commented 2 years ago

So I can use this to access anything on my LAN in which the qnap is in? If so: how do I set it up, when I use the app available in the qnapclub.eu store, there is no UI to set any commandline switches :-( Or is that app actually not from this repo?

matthewpucc commented 2 years ago

If you installed the app from this repo, just follow the instructions in the readme and add the appropriate flags to the tailscale up command at the last step. I'm not familiar with the qnapclub.eu store version of this app so I can't say for certain how that app is configured.

Europa2010AD commented 2 years ago

I can confirm the subnet router feature works perfectly after testing it out myself too. I tested it using both ping and iperf3. Thanks for the great work @ivokub !

@jankatins setting it up is easy with this repo (although I haven't tried the one from qnapclub.eu store). Say for example, if your QNAP's LAN IP is 192.168.1.1, and you want to expose the rest of your LAN within the same subnet (192.168.1.x). You just need to add the argument --advertise-routes=192.168.1.0/24 when you start this Tailscale app, then head to your Tailscale admin console, you should see 192.168.1.0/24 appear in light grey under the TS IP address for your QNAP unit. Click on the "..." menu of the unit, the enable the subnet route. Voila! All set.

So using the above example, the starting command when you bring up the TS app in your QNAP should be: ./tailscale -socket var/run/tailscale/tailscaled.sock up --advertise-routes=192.168.1.0/24