--snat-subnet-routes=true not work #378

Closed
opened 2025-12-29 01:27:55 +01:00 by adam · 2 comments
Owner

Originally created by @pingod on GitHub (Nov 23, 2022).

Bug description
--snat-subnet-routes=true not work

To Reproduce

  1. tailscale up --login-server=http://server_url --accept-routes=true --accept-dns=false --advertise-routes=10.0.0.234/32--snat-subnet-routes=true

  2. headscale routes enable -i 12 -r "10.0.0.234/32"

  3. headscale node route list -i 12
    Route | Enabled
    10.0.0.234/32 | true

Context info
i use tcpdump at one of node(ip:10.0.0.234) :

tcpdump -i ens160 icmp and host 10.0.9.3 -nn -vvv
tcpdump: listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes
13:52:26.379681 IP (tos 0x0, ttl 63, id 42914, offset 0, flags [DF], proto ICMP (1), length 84)
10.0.9.3 > 10.0.0.234: ICMP echo request, id 18, seq 93, length 64
13:52:26.379754 IP (tos 0x0, ttl 64, id 29816, offset 0, flags [none], proto ICMP (1), length 84)
10.0.0.234 > 10.0.9.3: ICMP echo reply, id 18, seq 93, length 64
13:52:27.392447 IP (tos 0x0, ttl 63, id 42921, offset 0, flags [DF], proto ICMP (1), length 84)
10.0.9.3 > 10.0.0.234: ICMP echo request, id 18, seq 94, length 64

So, --snat-subnet-routes=true not work

Version of headscale used: v0.17.0-beta4
Version of tailscale client: 1.32.2
OS: Ubuntu 18

Originally created by @pingod on GitHub (Nov 23, 2022). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the bug report in this language. --> **Bug description** --snat-subnet-routes=true not work <!-- A clear and concise description of what the bug is. Describe the expected bahavior and how it is currently different. If you are unsure if it is a bug, consider discussing it on our Discord server first. --> **To Reproduce** 1. tailscale up --login-server=http://server_url --accept-routes=true --accept-dns=false --advertise-routes=10.0.0.234/32--snat-subnet-routes=true 2. headscale routes enable -i 12 -r "10.0.0.234/32" 3. headscale node route list -i 12 Route | Enabled 10.0.0.234/32 | true <!-- Steps to reproduce the behavior. --> **Context info** i use tcpdump at one of node(ip:10.0.0.234) : tcpdump -i ens160 icmp and host 10.0.9.3 -nn -vvv tcpdump: listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes 13:52:26.379681 IP (tos 0x0, ttl 63, id 42914, offset 0, flags [DF], proto ICMP (1), length 84) 10.0.9.3 > 10.0.0.234: ICMP echo request, id 18, seq 93, length 64 13:52:26.379754 IP (tos 0x0, ttl 64, id 29816, offset 0, flags [none], proto ICMP (1), length 84) 10.0.0.234 > 10.0.9.3: ICMP echo reply, id 18, seq 93, length 64 13:52:27.392447 IP (tos 0x0, ttl 63, id 42921, offset 0, flags [DF], proto ICMP (1), length 84) 10.0.9.3 > 10.0.0.234: ICMP echo request, id 18, seq 94, length 64 So, --snat-subnet-routes=true not work <!-- Please add relevant information about your system. For example: - Version of headscale used - Version of tailscale client - OS (e.g. Linux, Mac, Cygwin, WSL, etc.) and version - Kernel version - The relevant config parameters you used - Log output --> Version of headscale used: v0.17.0-beta4 Version of tailscale client: 1.32.2 OS: Ubuntu 18
adam added the stalebug labels 2025-12-29 01:27:55 +01:00
adam closed this issue 2025-12-29 01:27:55 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 28, 2023):

This issue is stale because it has been open for 180 days with no activity.

@github-actions[bot] commented on GitHub (Sep 28, 2023): This issue is stale because it has been open for 180 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 13, 2023):

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions[bot] commented on GitHub (Oct 13, 2023): This issue was closed because it has been inactive for 14 days since being marked as stale.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#378