Skip to content

Coordination server public IP (exposed via dashboard & API) doesn't match actual real-world IP #18603

Closed

Description

@luckman212

Problem

I've observed the following behavior:

In a multi-WAN environment,after a WAN failover, and subsequent failback event, node information on the dashboard (as well as the API) returns stale information about endpoint IP:PORT mapping for the public IP.

Tailscale versions where this has occurred: 1.94.1, 1.92.3 (probably not version specific)

Example from today

  • Primary WAN IP: 70.18.30.71
  • Failover WAN IP: 172.56.165.107

Querying from the node directly yields the correct IP:PORT (the command partially obscured by the red arrow is curl ip.me):

Image

But the dashboard is holding stale information:

Image

Restarting the Tailscale service on the endpoint typically fixes this. But it would be better if it was correct, and/or refreshed itself automatically.

Activity

  1. changed the title [-]coordination server public IP (exposed via dashboard & API) doesn't match actual real-world IP[/-] [+]Coordination server public IP (exposed via dashboard & API) doesn't match actual real-world IP[/+] on Feb 4, 2026
  2. raggi commented on Feb 6, 2026

    @raggi
    Member

    @knyar could you take a look at this, it smells similar to what we were discussing recently around fast paths.

  3. knyar commented on Feb 6, 2026

    @knyar
    Contributor

    This does not seem to be related to fast path peer updates, since in this case the endpoint changes have not seem to have reached the coordination server in the first place.

    @luckman212 – if you experience this again, or have a way to reproduce this, it would be helpful if you ran tailscaled with TS_DEBUG_MAP=1 environment variable set, and generated a bug report for us to examine when this happens next time.

  4. luckman212 commented on Feb 6, 2026

    @luckman212
    Author

    @knyar happy to help debug, but not familiar with exactly where to put that. Which of the methods below is the preferred way to set TS_DEBUG_MAP=1 in the environment on a Debian system?

    Method 1

    add TS_DEBUG_MAP=1 to /etc/default/tailscaled

    Method 2

    systemctl edit tailscaled.service
    

    add:

    [Service]
    Environment="TS_DEBUG_MAP=1"
    

    Method 3

    mkdir -p /opt/tailscaled
    echo "TS_DEBUG_MAP=1" >/opt/tailscaled/tailscaled.env
    systemctl edit tailscaled.service
    

    add:

    [Service]
    EnvironmentFile=/opt/tailscaled/tailscaled.env
    
  5. knyar commented on Feb 6, 2026

    @knyar
    Contributor

    @knyar happy to help debug, but not familiar with exactly where to put that. Which of the methods below is the preferred way to set TS_DEBUG_MAP=1 in the environment on a Debian system?

    I'd recommend method 1: add TS_DEBUG_MAP=1 to /etc/default/tailscaled and restart the tailscaled service.

  6. luckman212 commented on Feb 6, 2026

    @luckman212
    Author

    Thanks. I've got it enabled on 4 hosts now. Will send bugreports if/when it happens again.

  7. luckman212 commented on Mar 6, 2026

    @luckman212
    Author

    @knyar I'm still experiencing (and trying to debug) this. Today it was happening on the router itself (a pfSense running Tailscale 1.94.1). Took me a while to figure out how to get the TS_DEBUG_MAP=1 env var injected into the FreeBSD daemon script, but I do think it's there now.

    Is there a diag command I can run to confirm 100% that this flag is in use?

  8. luckman212 commented on Mar 9, 2026

    @luckman212
    Author

    @knyar I experienced this again today. I have not restarted the node, or the tailscale service (yet) in case there is further debugging you want me to do.

    This node is running 1.96.0 rc now. It has the TS_DEBUG_MAP=1 env var set.

    Image

    BUGREPORT

    # tailscale bugreport
    BUG-8ac7102a8e90d396d2469fd416032f8c6c963652bf53662c3c5c305384d99736-20260309204829Z-89a847143edcee4e
    

    From the node directly:

    # tailscale status --json | jq '.Self | { TailscaleIPs, Addrs }'
    {
      "TailscaleIPs": [
        "100.100.114.64",
        "fd7a:115c:xxxx:xxxx:xxxx:xx96:6264:7240"
      ],
      "Addrs": [
        "70.18.30.71:42912",
        "[2001:470:xxxx:xxxx::21]:41641",
        "172.17.0.1:41641",
        "172.18.0.1:41641",
        "192.168.20.21:41641",
        "192.168.20.22:41641",
        "192.168.40.21:41641",
        "[2001:470:xxxx:xxxx::1]:41641"
      ]
    }
    
    # curl ipecho.net/plain
    70.18.30.71
    
  9. knyar commented on Mar 10, 2026

    @knyar
    Contributor

    Thanks @luckman212 - just to confirm, are you still seeing unexpected endpoint IP address in admin console, or did the change eventually propagate?

    Looking at the logs associated with the bugreport, I see that your Tailscale client struggled to report state changes to coordination server around the time of the public IP address change (21:20-21:34 UTC): you can see this in tailscaled stderr logs searching for "lite map update error". So it seems like the client's internet connectivity was degraded for a while, but eventually it seems to have been able to send an update at 21:34:56 UTC ("successful lite map update").

  10. luckman212 commented on Mar 14, 2026

    @luckman212
    Author

    @knyar Sorry I missed the reply. To answer your question: yes I am still seeing an incorrect endooint IP on the admin console for that device. The IP shown is my backup internet WAN IP. I have several tailscale clients on this same LAN and they are all reporting correctly. Below is a fresh bug ID from just a few minutes ago. This device is a Synology NAS that's now running 1.96.0. I don't think the device had any connectivity issues, I monitor my network quite extensively with an assortment of tools: pfSense, Netdata, smokeping, UptimeKuma...

    BUG-8ac7102a8e90d396d2469fd416032f8c6c963652bf53662c3c5c305384d99736-20260314023906Z-151e6daac518978b
    
  11. luckman212 commented on Mar 15, 2026

    @luckman212
    Author

    Not sure if this continues to be helpful or provide any useful information.

    This node is still reporting an incorrect/outdated public IP on the dashboard. The IP reported is 172.56.165.107 (my backup IP address), yet the actual public IP (shown below) is 70.18.30.71. Network connectivity and conditions are normal. Fresh bug id below.

    # tailscale bugreport
    BUG-8ac7102a8e90d396d2469fd416032f8c6c963652bf53662c3c5c305384d99736-20260315192556Z-b48be1371eaa7e3d
    
    # tailscale netcheck
    2026/03/15 15:25:49 portmap: monitor: gateway and self IP changed: gw=192.168.20.1 self=192.168.20.21
    
    Report:
    	* Time: 2026-03-15T19:25:50.084604629Z
    	* UDP: true
    	* IPv4: yes, 70.18.30.71:48722
    	* IPv6: yes, [2001:470:1f07:230::21]:49617
    	* MappingVariesByDestIP: false
    	* PortMapping:
    	* Nearest DERP: New York City
    	* DERP latency:
    		- nyc: 4.5ms   (New York City)
    		- iad: 10.7ms  (Ashburn)
    		- tor: 14.8ms  (Toronto)
    		- ord: 21.9ms  (Chicago)
    		- mia: 34.2ms  (Miami)
    		- den: 39.9ms  (Denver)
    		- dfw: 40ms    (Dallas)
    		- sea: 60.8ms  (Seattle)
    		- sfo: 63.5ms  (San Francisco)
    		- lax: 65.1ms  (Los Angeles)
    		- lhr: 74.1ms  (London)
    		- par: 75.3ms  (Paris)
    		- ams: 80.3ms  (Amsterdam)
    		- fra: 83.5ms  (Frankfurt)
    		- mad: 84.2ms  (Madrid)
    		- waw: 94.5ms  (Warsaw)
    		- nue: 95.4ms  (Nuremberg)
    		- hel: 95.9ms  (Helsinki)
    		- hnl: 111.1ms (Honolulu)
    		- sao: 114.3ms (São Paulo)
    		- tok: 153ms   (Tokyo)
    		- dbi: 174.5ms (Dubai)
    		- hkg: 195ms   (Hong Kong)
    		- syd: 195.4ms (Sydney)
    		- nai: 209.9ms (Nairobi)
    		- blr: 216.1ms (Bengaluru)
    		- jnb: 221.1ms (Johannesburg)
    		- sin: 224.4ms (Singapore)
    
    # curl ipecho.net/plain
    70.18.30.71
    
  12. knyar commented on Mar 19, 2026

    @knyar
    Contributor

    This is helpful, @luckman212 - thanks for sharing more! It seems that the client is correctly reporting endpoint changes to the coordination server. I am now trying to confirm whether the coordination server is actually expected to persist each of these changes.

    It would be useful to better understand your use case around this. What are you using the list of endpoints for, and how often are you looking at it?

  13. luckman212 commented on Mar 19, 2026

    @luckman212
    Author

    I have a healthcheck that runs periodically to ensure that all devices are routing via our primary WAN. The secondary connection is 2 orders of magnitude slower (and is also a metered connection) so I try to keep that circuit dry unless the main one is down.

    Also, our firewall is set up with EIM-NAT bound to a specific port range- the health check also verifies that all port mappings are within that range. When a device binds to the backup interface, a warning gets triggered due to the port being out of bounds.

    While all of this may seem pedantic, it does have a purpose in my environment.

  14. luckman212 commented on Mar 26, 2026

    @luckman212
    Author

    Got a few more to report today, in case you're still collecting data @knyar

    Image
    host ts version bugid
    pbs 1.96.2 BUG-a97129b65307ecd3d7eb705fd675740ec58e9066209ade5106d431d5e5c49309-20260326142337Z-358fb83eb1e5c5e4
    docker4 1.94.2 n/a
    pdm 1.96.2 BUG-a67c5819bf05e7373470b9cb7327f900befda8a8624b870783ccee5b97738767-20260326142626Z-f4036cf3e1fc6e1e

    P.S. - for the docker4 host above, when I ran tailscale bugreport it returned BUG-NO-LOGS-NO-SUPPORT-this-node-has-had-its-logging-disabled Is there a way to fix that? (host is AlpineLinux)

  15. knyar commented on Apr 1, 2026

    @knyar
    Contributor

    @luckman212 I appreciate more details! I believe this might be related to an optimization in the coordination server which ignores some endpoint updates that are not critical for peer connectivity. I just enabled a change earlier today that should persist such updates, even if they don't get distributed to other nodes. I would love to hear whether you continue seeing outdated information in Admin Console after this. Thank you!

  16. luckman212 commented on Apr 1, 2026

    @luckman212
    Author

    Wonderful, thank you for this. I will continue to monitor things and let you know what my results are.

  17. luckman212 commented on Apr 1, 2026

    @luckman212
    Author

    Very early, but so far this problem has not recurred.

  18. luckman212 commented on Apr 6, 2026

    @luckman212
    Author

    Update, it's been close to a week and this issue has not resurfaced. Tentatively ringing the sucess bell on this 🔔

  19. knyar commented on Apr 13, 2026

    @knyar
    Contributor

    Update, it's been close to a week and this issue has not resurfaced. Tentatively ringing the sucess bell on this 🔔

    This is great to hear, thank you!

  20. luckman212 commented on Apr 27, 2026

    @luckman212
    Author

    @knyar I am sorry to bother you, but on a whim while troubleshooting an issue this morning, I happened to check this again, and it seems to have returned!

    E.g. several nodes are reporting the wrong public IP: mini4, pve01, docker4, and r1 which happens to be my pfSense gateway.

    Image Image

    I captured tailscale bugreport from each of those and below are the BUG IDs

    node bugID
    mini4 BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20260427115712Z-4c0df7915b1f80fc
    pve01 BUG-c23304ea74a21ae43e82cd4a774d89b869737331a3d2fe568e353e47dca1f80c-20260427115727Z-f5b6d40c689f8a58
    docker4 (could not capture- got BUG-NO-LOGS-NO-SUPPORT-this-node-has-had-its-logging-disabled when I tried...)
    r1 BUG-64f4ae8bfccbbe3ffa6ec7ce916785b2cb0e4bb2d6bbb4b752a5b1d892fe2059-20260427115815Z-064a699df7b6842d

    I still have TS_DEBUG_MAP=1 enabled on pve01 btw.

  21. luckman212 commented on Aug 11, 2026

    @luckman212
    Author

    Related: #20818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions