mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-11 20:00:28 +01:00
Nodes IP missing in tailscale status #44
Closed
opened 2025-12-29 01:21:00 +01:00 by adam
·
14 comments
No Branch/Tag Specified
main
update_flake_lock_action
gh-pages
kradalby/release-v0.27.2
dependabot/go_modules/golang.org/x/crypto-0.45.0
dependabot/go_modules/github.com/opencontainers/runc-1.3.3
copilot/investigate-headscale-issue-2788
copilot/investigate-visibility-issue-2788
copilot/investigate-issue-2833
copilot/debug-issue-2846
copilot/fix-issue-2847
dependabot/go_modules/github.com/go-viper/mapstructure/v2-2.4.0
dependabot/go_modules/github.com/docker/docker-28.3.3incompatible
kradalby/cli-experiement3
doc/0.26.1
doc/0.25.1
doc/0.25.0
doc/0.24.3
doc/0.24.2
doc/0.24.1
doc/0.24.0
kradalby/build-docker-on-pr
topic/docu-versioning
topic/docker-kos
juanfont/fix-crash-node-id
juanfont/better-disclaimer
update-contributors
topic/prettier
revert-1893-add-test-stage-to-docs
add-test-stage-to-docs
remove-node-check-interval
fix-empty-prefix
fix-ephemeral-reusable
bug_report-debuginfo
autogroups
logs-to-stderr
revert-1414-topic/fix_unix_socket
rename-machine-node
port-embedded-derp-tests-v2
port-derp-tests
duplicate-word-linter
update-tailscale-1.36
warn-against-apache
ko-fi-link
more-acl-tests
fix-typo-standalone
parallel-nolint
tparallel-fix
rerouting
ssh-changelog-docs
oidc-cleanup
web-auth-flow-tests
kradalby-gh-runner
fix-proto-lint
remove-funding-links
go-1.19
enable-1.30-in-tests
0.16.x
cosmetic-changes-integration
tmp-fix-integration-docker
fix-integration-docker
configurable-update-interval
show-nodes-online
hs2021
acl-syntax-fixes
ts2021-implementation
fix-spurious-updates
unstable-integration-tests
mandatory-stun
embedded-derp
prtemplate-fix
v0.28.0-beta.1
v0.27.2-rc.1
v0.27.1
v0.27.0
v0.27.0-beta.2
v0.27.0-beta.1
v0.26.1
v0.26.0
v0.26.0-beta.2
v0.26.0-beta.1
v0.25.1
v0.25.0
v0.25.0-beta.2
v0.24.3
v0.25.0-beta.1
v0.24.2
v0.24.1
v0.24.0
v0.24.0-beta.2
v0.24.0-beta.1
v0.23.0
v0.23.0-rc.1
v0.23.0-beta.5
v0.23.0-beta.4
v0.23.0-beta3
v0.23.0-beta2
v0.23.0-beta1
v0.23.0-alpha12
v0.23.0-alpha11
v0.23.0-alpha10
v0.23.0-alpha9
v0.23.0-alpha8
v0.23.0-alpha7
v0.23.0-alpha6
v0.23.0-alpha5
v0.23.0-alpha4
v0.23.0-alpha4-docker-ko-test9
v0.23.0-alpha4-docker-ko-test8
v0.23.0-alpha4-docker-ko-test7
v0.23.0-alpha4-docker-ko-test6
v0.23.0-alpha4-docker-ko-test5
v0.23.0-alpha-docker-release-test-debug2
v0.23.0-alpha-docker-release-test-debug
v0.23.0-alpha4-docker-ko-test4
v0.23.0-alpha4-docker-ko-test3
v0.23.0-alpha4-docker-ko-test2
v0.23.0-alpha4-docker-ko-test
v0.23.0-alpha3
v0.23.0-alpha2
v0.23.0-alpha1
v0.22.3
v0.22.2
v0.23.0-alpha-docker-release-test
v0.22.1
v0.22.0
v0.22.0-alpha3
v0.22.0-alpha2
v0.22.0-alpha1
v0.22.0-nfpmtest
v0.21.0
v0.20.0
v0.19.0
v0.19.0-beta2
v0.19.0-beta1
v0.18.0
v0.18.0-beta4
v0.18.0-beta3
v0.18.0-beta2
v0.18.0-beta1
v0.17.1
v0.17.0
v0.17.0-beta5
v0.17.0-beta4
v0.17.0-beta3
v0.17.0-beta2
v0.17.0-beta1
v0.17.0-alpha4
v0.17.0-alpha3
v0.17.0-alpha2
v0.17.0-alpha1
v0.16.4
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.16.0-beta7
v0.16.0-beta6
v0.16.0-beta5
v0.16.0-beta4
v0.16.0-beta3
v0.16.0-beta2
v0.16.0-beta1
v0.15.0
v0.15.0-beta6
v0.15.0-beta5
v0.15.0-beta4
v0.15.0-beta3
v0.15.0-beta2
v0.15.0-beta1
v0.14.0
v0.14.0-beta2
v0.14.0-beta1
v0.13.0
v0.13.0-beta3
v0.13.0-beta2
v0.13.0-beta1
upstream/v0.12.4
v0.12.4
v0.12.3
v0.12.2
v0.12.2-beta1
v0.12.1
v0.12.0-beta2
v0.12.0-beta1
v0.11.0
v0.10.8
v0.10.7
v0.10.6
v0.10.5
v0.10.4
v0.10.3
v0.10.2
v0.10.1
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.1
v0.7.0
v0.6.1
v0.6.0
v0.5.2
v0.5.1
v0.5.0
v0.4.0
v0.3.6
v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Labels
Clear labels
CLI
DERP
DNS
Nix
OIDC
SSH
bug
database
documentation
duplicate
enhancement
faq
good first issue
grants
help wanted
might-come
needs design doc
needs investigation
no-stale-bot
out of scope
performance
policy 📝
pull-request
question
regression
routes
stale
tags
tailscale-feature-gap
well described ❤️
wontfix
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/headscale#44
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mhhakim on GitHub (Oct 11, 2021).
Hi,
Here is my config.json
{ "server_url": "https://sub.domain.tld", "listen_addr": "0.0.0.0:443", "ip_prefix": "10.0.1.0/24", "private_key_path": "/etc/headscale/private.key", "derp_map_path": "/etc/headscale/derp.yaml", "ephemeral_node_inactivity_timeout": "30m", "db_type": "sqlite3", "db_path": "/etc/headscale/db.sqlite", "tls_cert_path": "/etc/headscale/crt.pem", "tls_key_path": "/etc/headscale/key.pem", "acl_policy_path": "", "dns_config": { "nameservers": ["1.1.1.1", "8.8.8.8"], "domains": [], "magic_dns": true, "base_domain": "local.net" } }Created namescpace. Joined 3 nodes successfully. They can reach each others. The issue is, when I run tailscale status, it doesn't show headscale IP on node list. I get the following output.
hakim@node-2:~$ sudo tailscale status 10.0.1.2 node-2 main linux - node-1 main linux active; direct PUBLICIP:41641, tx 11524412 rx 288104 node-3 main linux active; direct PUBLICIP:41641, tx 3092 rx 2556I can ping using node name like ping node-1 because of Magic DNS but can't use tailscale ping node-1 or Taildrop using node name. I have to use node's tailscale IP address. Headscale log seems fine. I am running v0.10.0
@0xcd0e commented on GitHub (Oct 11, 2021):
Im having the same issue, config looks basically the same, also running v0.10.0.
Everything works fine, but the ip addresses are missing from tailscale status
@juanfont commented on GitHub (Oct 11, 2021):
Was this happening on a previous version? Can you please attach the following data?
ip addrfrom one node/etc/resolv.conftailscale status --jsonThanks! @ChrizDoe @mhhakim
@0xcd0e commented on GitHub (Oct 11, 2021):
I was using the previous version for just a short time, dont think this was happening there.
I can see a lot of these messages in my tailscaled log, may have something to do with it:
tailscaled[655]: portmapper: failed to get PCP mapping: PCP response not ok, code 2ip addr:
cat /etc/resolv.conf
tailscale status --json
@mhhakim commented on GitHub (Oct 11, 2021):
This is my first time setup.
Here's the outputs.
ip addr
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 02:00:17:01:b6:92 brd ff:ff:ff:ff:ff:ff altname enp0s3 inet 10.0.0.154/24 brd 10.0.0.255 scope global dynamic eth0 valid_lft 74180sec preferred_lft 74180sec inet6 PUBLIC_IPv6/128 scope global valid_lft forever preferred_lft forever inet6 fe80::17ff:fe01:b692/64 scope link valid_lft forever preferred_lft forever 3: ztv4t3w3z4: mtu 2800 qdisc fq state UNKNOWN group default qlen 1000 link/ether 66:be:78:8e:94:ee brd ff:ff:ff:ff:ff:ff inet 10.10.10.143/24 brd 10.10.10.255 scope global ztv4t3w3z4 valid_lft forever preferred_lft forever inet6 fe80::f491:87ff:feae:c6ca/64 scope link valid_lft forever preferred_lft forever 4: wg0: mtu 8920 qdisc noqueue state UNKNOWN group default qlen 1000 link/none inet 10.66.66.1/24 scope global wg0 valid_lft forever preferred_lft forever inet6 fd42:42:42::1/64 scope global valid_lft forever preferred_lft forever 6: tailscale0: mtu 1280 qdisc fq state UNKNOWN group default qlen 500 link/none inet 10.0.1.2/32 scope global tailscale0 valid_lft forever preferred_lft forever inet6 fe80::ee60:498d:5290:4b4c/64 scope link stable-privacy valid_lft forever preferred_lft forever 7: br-be1ace317cd9: mtu 1500 qdisc noqueue state UP group default link/ether 02:42:44:44:44:16 brd ff:ff:ff:ff:ff:ff inet 172.18.0.1/16 brd 172.18.255.255 scope global br-be1ace317cd9 valid_lft forever preferred_lft forever inet6 fe80::42:44ff:fe44:4416/64 scope link valid_lft forever preferred_lft forever 8: docker0: mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:8d:59:44:31 brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0 valid_lft forever preferred_lft forever 14: veth0d19f34@if13: mtu 1500 qdisc noqueue master br-be1ace317cd9 state UP group default link/ether 12:0c:60:07:a8:a5 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::100c:60ff:fe07:a8a5/64 scope link valid_lft forever preferred_lft forever 16: nm-main: mtu 1280 qdisc noqueue state UNKNOWN group default qlen 1000 link/none inet 10.11.11.8/24 scope global nm-main valid_lft forever preferred_lft forevercat /etc/resolv.conf
tailscale status --json
{ "Version": "1.16.0-t86bcf6a96-gf787a582e", "BackendState": "Running", "AuthURL": "", "TailscaleIPs": [ "10.0.1.2" ], "Self": { "ID": "2", "PublicKey": "QKphoL3CkI2vD20S5Ne7g2p6cPwcAlRA2h0hKJ/lNVU=", "HostName": "mum-1", "DNSName": "mum-1.main.local.net", "OS": "linux", "UserID": 1, "TailAddr": "10.0.1.2", "TailscaleIPs": [ "10.0.1.2" ], "Addrs": [ "PUBLIC_v4:41641", "10.0.0.154:41641", "10.0.1.2:41641", "10.11.11.8:41641", "10.66.66.1:41641", "172.17.0.1:41641", "172.18.0.1:41641", "[PUBLIC_v6]:41641" ], "CurAddr": "", "Relay": "blr", "RxBytes": 0, "TxBytes": 0, "Created": "0001-01-01T00:00:00Z", "LastWrite": "0001-01-01T00:00:00Z", "LastSeen": "0001-01-01T00:00:00Z", "LastHandshake": "0001-01-01T00:00:00Z", "KeepAlive": false, "ExitNode": false, "Active": false, "PeerAPIURL": [ "http://10.0.1.2:35199" ], "Capabilities": [ "https://tailscale.com/cap/file-sharing" ], "InNetworkMap": false, "InMagicSock": false, "InEngine": false }, "Health": null, "MagicDNSSuffix": "main.local.net", "CertDomains": null, "Peer": { "8IFinpYQZ3IKygOp2nkXiBor/+bisT4Opbb/+ZGQcFs=": { "ID": "1", "PublicKey": "8IFinpYQZ3IKygOp2nkXiBor/+bisT4Opbb/+ZGQcFs=", "HostName": "dub-1", "DNSName": "dub-1.main.local.net", "OS": "linux", "UserID": 1, "TailAddr": "", "TailscaleIPs": [], "Addrs": null, "CurAddr": "10.11.11.5:41641", "Relay": "sin", "RxBytes": 33468, "TxBytes": 23368, "Created": "2021-10-11T12:32:54.845811961+06:00", "LastWrite": "2021-10-12T00:14:31.914971403+06:00", "LastSeen": "2021-10-11T18:13:50.339081241Z", "LastHandshake": "2021-10-12T00:13:15.782278837+06:00", "KeepAlive": true, "ExitNode": false, "Active": true, "PeerAPIURL": null, "InNetworkMap": true, "InMagicSock": true, "InEngine": true }, "Gv7hpxpwnSww922gYvY7CdgKI6fpB9/FFm4wKDuUbkU=": { "ID": "3", "PublicKey": "Gv7hpxpwnSww922gYvY7CdgKI6fpB9/FFm4wKDuUbkU=", "HostName": "hub-3", "DNSName": "hub-3.main.local.net", "OS": "linux", "UserID": 1, "TailAddr": "", "TailscaleIPs": [], "Addrs": null, "CurAddr": "10.11.11.3:41641", "Relay": "sfo", "RxBytes": 24172, "TxBytes": 32792, "Created": "2021-10-11T12:40:13.65182005+06:00", "LastWrite": "2021-10-12T00:14:27.267750772+06:00", "LastSeen": "2021-10-11T18:13:45.356754978Z", "LastHandshake": "2021-10-12T00:14:01.138016949+06:00", "KeepAlive": true, "ExitNode": false, "Active": true, "PeerAPIURL": null, "InNetworkMap": true, "InMagicSock": true, "InEngine": true } }, "User": { "1": { "ID": 1, "LoginName": "main", "DisplayName": "main", "ProfilePicURL": "", "Roles": [] } } }@juanfont commented on GitHub (Oct 12, 2021):
We have been able to replicate the issue. We will let you know ASAP :)
@juanfont commented on GitHub (Oct 16, 2021):
Small update on this.
We are quite sure this is a 'feature' of the Tailscale client. They filter out the IP addresses that don't belong to their 100.64.0.0/10.
I need some more time to change their code, and perhaps trigger a PR to them.
@enoperm commented on GitHub (Nov 21, 2021):
Grepping through the tailscale code led me to
22a1a5d7cf/ipn/ipnlocal/local.go (L389)I think moving that below the
}might do the trick, though I have yet to test it.@enoperm commented on GitHub (Nov 21, 2021):
Though I guess the
IsSingleIPcall might still be useful here, so maybe it is a little bit more than just swapping two lines.@kradalby commented on GitHub (Jun 12, 2022):
I am going to shelve this for now, if this is still an issue, please reopen.
@1itt1eB0y commented on GitHub (Jun 16, 2022):
still a problem without using

100.64.0.0/10And this problem will cause linux client can't use exit node function properly.
@restanrm commented on GitHub (Aug 24, 2022):
I think this issue should be reopened, it's not fixed and not fixable by headscale. Or we could open a new issue to remove the ability to change network prefixes for Headscale since it doesn't work at all with the tailscale client.
By removing prefix choice I mean choosing between
not removing completely that ability.
The network prefixes are deeply embedded in tailscale client. Removing the
iptableson client side is not enough.@yangboyd commented on GitHub (Dec 6, 2022):
Please document this . (100.64.0.0/10) It is hardcoded in tailscale.
@Gerrit91 commented on GitHub (Mar 30, 2023):
The same applies for IPv6 prefixes, they need to be inside
fd7a:115c:a1e0:ab12::/64https://tailscale.com/kb/1033/ip-and-dns-addresses/#tailscale-ipv6-local-address-prefix
@axxonadmin commented on GitHub (Oct 8, 2023):
I can't see ipv4 address in windows tailscale client despite the fact that it assigned and works,
I see only IPv6