Replies: 8 comments 10 replies
-
Hi @tomvoss, thanks for bringing this information to my attention. I assume that you've tested and are running this on UniFi OS 1.x (i.e. a 1.12.x firmware version), but looking at the backing thread in tailscale/tailscale#4038 it sounds like this is something that Tailscale should be configuring internally. Given the need to setup and run a separate process (in this case a script) to constantly ensure that the correct routing table is configured and the requirement to manually tweak route rules, I'm going to opt to not include this change in the core tailscale-udm scripts (as we've worked around this problem by using userspace networking). What I will do is convert this issue into a discussion and link it in the README under the section relating to exposing your Tailnet via your UDM (i.e. not requiring Tailscale to be installed on devices within your local network). I'll also be following that Tailscale thread to see what (if any) updates come up so that I can make adjustments here as needed. |
Beta Was this translation helpful? Give feedback.
-
Just FYI I tried this on a UDM pro with 1.x firmware and it doesn't work. In fact Tailscale won't even connect at all with those settings. |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: I'm new to Tailscale having only set it up yesterday, and only somewhat familiar with Wireguard. I wasn't able to get it working either with the above configurations. However, I did get it working by following the instructions here: https://tailscale.com/kb/1019/subnets/#enable-ip-forwarding And then going to the Tailscale UI and enabling the following flags under "Edit Route Settings" for the router/node.
|
Beta Was this translation helpful? Give feedback.
-
I am on UnifyOS v3.0.20. I got a message that the route already existed ( So my script (quick and dirty) looks like:
That got the connection up (together with the priority rule to allow tailscale to route out of the correct WAN port), however it doesn't resolve all my problems. I can ping remote tailscale IPs and the networks behind them from the UDM Pro shell, I can ping the local tailscale IP from my hosts, but I cannot ping the remote tailscale IPs from my hosts, let alone the networks behind them. PS: I am not certain the ROUTES_TO_DELETE part works correctly if there are multiple IP subnets to route locally, because I am pretty certain this will only give me the first one, but I haven't been able to test it, because I only have the one subnet right now! |
Beta Was this translation helpful? Give feedback.
-
This doesn't work for me - nothing happens when I follow the instructions. I can't even ping any of the tailscale machine IPs from UDM. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
@tomvoss this worked wonderfully. Thank you I made one modification to the script though. getDefaultRouteTable() {
/sbin/ip rule list priority 32766 | cut -d " " -f 4 | cut -d "." -f 1
} The output of
|
Beta Was this translation helpful? Give feedback.
-
I'm currently thinking about buying a UDM-pro to replace my firewall. What's the current status on this on the latest UnifyOS with only one WAN connection? Does following the instructions here work? Is there more that needs to be done? |
Beta Was this translation helpful? Give feedback.
-
This all worked perfectly for me but I'm still getting: tailscale status Health check:- Update available: 1.56.1 -> 1.62.1, run
|
Beta Was this translation helpful? Give feedback.
-
There a few small tweaks that can be made to allow routing to/from other machines on the local network and account for multiple WAN links failing over.
Beta Was this translation helpful? Give feedback.
All reactions