Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/tailscale, ipn/ipnlocal: add 'debug dial-types' command #10753

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

andrew-d
Copy link
Member

@andrew-d andrew-d commented Jan 5, 2024

This command allows observing whether a given dialer ("SystemDial", "UserDial", etc.) will successfully obtain a connection to a provided host, from inside tailscaled itself. This is intended to help debug a variety of issues from subnet routers to split DNS setups.

Updates #9619

Change-Id: Ie01ebb5469d3e287eac633ff656783960f697b84

This command allows observing whether a given dialer ("SystemDial",
"UserDial", etc.) will successfully obtain a connection to a provided
host, from inside tailscaled itself. This is intended to help debug a
variety of issues from subnet routers to split DNS setups.

Updates #9619

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ie01ebb5469d3e287eac633ff656783960f697b84
@andrew-d
Copy link
Member Author

andrew-d commented Jan 5, 2024

Example output on my personal tailnet, from a userspace-networking tailscaled:

$ tailscale debug dial-types 100.64.1.2 80
[UserDial] connected=true err=<nil>
[BareDial] connected=false err=dial tcp 100.64.1.2:80: i/o timeout
[SystemDial] connected=false err=dial tcp 100.64.1.2:80: i/o timeout
[PeerDial] connected=false err=dial tcp 100.64.1.2:80: i/o timeout

@andrew-d andrew-d merged commit d3574a3 into main Jan 5, 2024
46 checks passed
@andrew-d andrew-d deleted the andrew/debug-dial-types branch January 5, 2024 18:43
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.

None yet

2 participants