r/Tailscale • • 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:

  • tcpdump on 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 Upvotes

4 comments sorted by

2

u/tailuser2024 15d ago edited 15d ago

at 10.1.0.5 running Tailscale as a subnet router, advertising 10.1.0.0/24 and a bunch of other subnets.

What all subnets are you advertising?

What all networks are you utilizing in this setup?

On the other end is an Ubuntu VM in Azure (100.126.126.103)

What is its local ip address of the ubuntu VM?

Tailnet to LAN works fine. From the Azure box I can ping 10.1.0.40 with no problem.

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?

1

u/klosie 15d ago edited 15d ago

Why do this? Mainly to connect my azure VM to the on-prem network using the tailnet we already have and avoid needing a site-to-site vpn

1

u/klosie 15d ago

Let me try and get all your questions answered...

What all subnets are you advertising?

10.1.0.0/24, 10.0.0.0/24, 192.168.10.0/24, 192.168.103.0/24, 192.168.103.0/24, 192.168.104.0/24, 192.168.106.0/24, 192.168.107.0/24, 192.168.108.0/24

What all networks are you utilizing in this setup?

Not sure I follow your question, but mainly 10.1.0.0/24, the tailnet and the azure VM.

What is the local address of the ubuntu VM?

172.16.0.4/24

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?

10.1.0.40 is a windows vm on prem, the subnet router is a windows vm on prem, the ubuntu vm is an azure vm.

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

Correct, and tried adding that route.

Post a screenshot of this when you have done it, and test it again

===========================================================================
Interface List
 12...00 15 5d 00 19 13 ......Microsoft Hyper-V Network Adapter
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         10.1.0.1        10.1.0.40    281
         10.1.0.0    255.255.255.0         On-link         10.1.0.40    281
        10.1.0.40  255.255.255.255         On-link         10.1.0.40    281
       10.1.0.255  255.255.255.255         On-link         10.1.0.40    281
     100.118.82.3  255.255.255.255         10.1.0.5        10.1.0.40     26
  100.126.126.103  255.255.255.255         10.1.0.5        10.1.0.40     26
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link         10.1.0.40    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link         10.1.0.40    281
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0         10.1.0.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
 12    281 fe80::/64                On-link
 12    281 fe80::9305:5a51:a633:20f2/128
                                    On-link
  1    331 ff00::/8                 On-link
 12    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

Can you run a traceroute from the ubuntu box to whatever is failing and post a screenshot of the results

The failed traceroute seems interesting, but the ping goes through still.

Can you post the full routing table for the subnet router

===========================================================================
Interface List
 19...........................Tailscale Tunnel
  4...00 15 5d 00 19 14 ......Microsoft Hyper-V Network Adapter
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0         10.1.0.1         10.1.0.5    281
         10.1.0.0    255.255.255.0         On-link          10.1.0.5    281
         10.1.0.5  255.255.255.255         On-link          10.1.0.5    281
       10.1.0.255  255.255.255.255         On-link          10.1.0.5    281
   100.69.253.114  255.255.255.255         On-link    100.108.179.77      5
      100.73.8.49  255.255.255.255         On-link    100.108.179.77      5
     100.73.115.1  255.255.255.255         On-link    100.108.179.77      5
    100.74.131.43  255.255.255.255         On-link    100.108.179.77      5
    100.80.74.118  255.255.255.255         On-link    100.108.179.77      5
    100.82.28.105  255.255.255.255         On-link    100.108.179.77      5
    100.82.198.26  255.255.255.255         On-link    100.108.179.77      5
      100.83.8.30  255.255.255.255         On-link    100.108.179.77      5
    100.84.104.83  255.255.255.255         On-link    100.108.179.77      5
    100.85.211.25  255.255.255.255         On-link    100.108.179.77      5
    100.91.208.29  255.255.255.255         On-link    100.108.179.77      5
     100.93.89.77  255.255.255.255         On-link    100.108.179.77      5
    100.93.154.16  255.255.255.255         On-link    100.108.179.77      5
  100.100.100.100  255.255.255.255         On-link    100.108.179.77      5
    100.104.32.42  255.255.255.255         On-link    100.108.179.77      5
  100.105.111.100  255.255.255.255         On-link    100.108.179.77      5
   100.106.236.94  255.255.255.255         On-link    100.108.179.77      5
   100.108.179.77  255.255.255.255         On-link    100.108.179.77    261
   100.109.198.12  255.255.255.255         On-link    100.108.179.77      5
  100.110.171.122  255.255.255.255         On-link    100.108.179.77      5
   100.110.251.65  255.255.255.255         On-link    100.108.179.77      5
     100.113.0.71  255.255.255.255         On-link    100.108.179.77      5
   100.115.208.66  255.255.255.255         On-link    100.108.179.77      5
   100.117.226.79  255.255.255.255         On-link    100.108.179.77      5
     100.118.82.3  255.255.255.255         On-link    100.108.179.77      5
  100.123.208.122  255.255.255.255         On-link    100.108.179.77      5
  100.123.224.115  255.255.255.255         On-link    100.108.179.77      5
     100.124.55.0  255.255.255.255         On-link    100.108.179.77      5
   100.124.163.74  255.255.255.255         On-link    100.108.179.77      5
  100.126.126.103  255.255.255.255         On-link    100.108.179.77      5
   100.126.179.12  255.255.255.255         On-link    100.108.179.77      5
  100.126.194.118  255.255.255.255         On-link    100.108.179.77      5
   100.127.186.90  255.255.255.255         On-link    100.108.179.77      5
   100.127.214.21  255.255.255.255         On-link    100.108.179.77      5
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link          10.1.0.5    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link          10.1.0.5    281
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0         10.1.0.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
 19      5 fd7a:115c:a1e0::/48      fd7a:115c:a1e0::53
 19      5 fd7a:115c:a1e0::53/128   On-link
 19    261 fd7a:115c:a1e0::9b3b:b34d/128
                                    On-link
  4    281 fe80::/64                On-link
  4    281 fe80::167:3e71:4e3a:73a1/128
                                    On-link
  1    331 ff00::/8                 On-link
  4    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

Can you post the full routing table for the ubuntu vm in question

default via 172.16.0.1 dev eth0 proto dhcp src 172.16.0.4 metric 100
168.63.129.16 via 172.16.0.1 dev eth0 proto dhcp src 172.16.0.4 metric 100
169.254.169.254 via 172.16.0.1 dev eth0 proto dhcp src 172.16.0.4 metric 100
172.16.0.0/24 dev eth0 proto kernel scope link src 172.16.0.4 metric 100
172.16.0.1 dev eth0 proto dhcp scope link src 172.16.0.4 metric 100

Are you running the latest tailscale on all your clients?

Looks like it

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.