r/Tailscale • u/klosie • 15d ago
Help Needed Windows Tailscale subnet router: Azure VM can reach my LAN, but LAN hosts can’t reach the Azure VM
Got a weird one. I have a Windows Server 2025 VM (Hyper-V) at 10.1.0.5 running Tailscale as a subnet router, advertising 10.1.0.0/24 and a bunch of other subnets. It’s also an exit node. On the other end is an Ubuntu VM in Azure (100.126.126.103) running tailscale up --accept-routes. ACLs are still the default allow-all.
Tailnet to LAN works fine. From the Azure box I can ping 10.1.0.40 with no problem. Going the other direction is the issue. From 10.1.0.40 I added a static route for 100.126.126.103 via 10.1.0.5, and ping and port 22 just time out.
Here’s what I’ve checked so far:
tcpdumpon the Azure VM’s tailscale0 shows every echo request from 10.1.0.40 arriving, and the VM sends a reply for each one. So the forward path is fine and the VM knows how to answer.- Forwarding is enabled on both interfaces on the Windows box (
Get-NetIPInterface). - Turning Windows Firewall off on the router changed nothing.
- pktmon on the router shows the request coming in on Ethernet and getting handed to the IP stack. I haven’t found the reply leaving toward .40 yet.
- The Hyper-V vSwitch is a plain external one with no extensions.
- Only the Windows node has the Subnets badge in the admin console, so I don’t think another router is stealing the 10.1.0.0/24 traffic.
Should this config work? Anyone gotten LAN to tailnet traffic working through a Windows subnet router with replies coming back?
2
u/tailuser2024 15d ago edited 15d ago
What all subnets are you advertising?
What all networks are you utilizing in this setup?
What is its local ip address of the ubuntu VM?
What device is running 10.1.0.40? Just so we are on the same page, this device is sitting in Azure with the subnet router?
So 10.1.0.40 doesnt have tailscale installed correct? If you want your non talscale clients to be able to reach your tailnet, create a static route for 100.64.0.0/10 and point it to 10.1.0.5
Post a screenshot of this when you have done it, and test it again
Can you run a traceroute from the ubuntu box to whatever is failing and post a screenshot of the results
Can you post the full routing table for the subnet router
Can you post the full routing table for the ubuntu vm in question
Are you running the latest tailscale on all your clients?
2
u/youknowwhyimhere758 15d ago
By default a subnet router will masquerade traffic to the selected subnet.
The ping will leave as source: 10.1.0.40 destination: 100.126.126.103, but replies will return as destination 10.1.0.40 source: 10.1.0.5. Which means as far as the local device is concerned, no relevant reply was received to the ping attempt and some other irrelevant external connection attempt was made (and ignored).
On Linux you can turn off snat in the subnet router config to resolve this. I do not know if that option is available in the windows client.