Skip to content

fix(gw01): masquerade tailnet clients into the sandbox VLAN - #19

Merged
jmgilman merged 1 commit into
masterfrom
fix/gw01-tailscale-vlan40-snat
Aug 26, 2026
Merged

fix(gw01): masquerade tailnet clients into the sandbox VLAN#19
jmgilman merged 1 commit into
masterfrom
fix/gw01-tailscale-vlan40-snat

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

Tailscale clients using the glab-vyos-subnet-router route to 10.10.0.0/16 cannot reach tailnet-member hosts on VLAN 40 (sandbox01). The forward path works, but replies to the client's 100.64.0.0/10 source detour into the host's own tailscale0 (peer /32 in table 52) and are dropped, because 10.10.40.10 is not a route that host advertises. Confirmed with tcpdump on sandbox01: echo requests arrive on enp2s0, no replies leave it. Hosts without tailscaled (nas01) are unaffected.

Change

New NAT source rule 110: masquerade 100.64.0.0/10 out br40 only. Home-to-lab, inter-VLAN, and tailscale traffic to other VLANs keep their source addresses per the address plan.

Validation

  • moon run network:vyos-validate passes
  • moon run network:test — 42 passed
  • Home-LAN path to 10.10.40.10 verified working pre-change (unaffected by this rule)

Tailnet-member hosts on VLAN 40 (sandbox01) reply to tailnet client
addresses through their own tailscale0 peer routes instead of gw01,
so un-SNATed subnet-routed traffic gets dropped asymmetrically.
Masquerading 100.64.0.0/10 out br40 keeps replies symmetric. Home
and inter-VLAN traffic remain un-NATed.
@jmgilman
jmgilman merged commit d565d19 into master Aug 26, 2026
1 check passed
jmgilman added a commit to GilmanLab/root that referenced this pull request Aug 26, 2026
Companion to GilmanLab/networking#19, which masquerades 100.64.0.0/10
out br40 so tailnet-member sandbox hosts reply symmetrically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant