Skip to content

Windows 10 ssh Doesn't support TUN tunneling even if we add a TAP-Windows adapter #2162

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

Open
3 tasks done
szaszg opened this issue Oct 14, 2023 · 4 comments
Open
3 tasks done
Assignees

Comments

@szaszg
Copy link

szaszg commented Oct 14, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Windows 10 ssh Doesn't support TUN tunneling. (No. 3. in this issue: #1647)

We add a TAP-Windows adapter:

C:\Program Files\OpenVPN\bin>tapctl create --name tap102
{A2A21221-9F22-46B1-A430-FE9F4CD6D1B5}

C:\Program Files\OpenVPN\bin>tapctl list
{236FF470-24C2-4B57-B09C-EDECCAF70A7B}  OpenVPN Wintun
{F4FFDCC0-6FD0-40DC-A32B-6A783217AE3F}  OpenVPN TAP-Windows6
{A2A21221-9F22-46B1-A430-FE9F4CD6D1B5}  tap102

C:\Users\User name>ssh -w 102:102 username@hostname
Tunnel interfaces are not supported on this platform
Tunnel device open failed.
Could not request tunnel forwarding.

Expected behavior

OpenSSH should support TUN interfaces on Windows.

Actual behavior

Tunnel interfaces are not supported on this platform.

Error details

No response

Environment data

C:\Users\informatika\.ssh>powershell $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.1023
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1023
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

OpenSSH_for_Windows_9.4p1, LibreSSL 3.7.3

Visuals

No response

@tgauth
Copy link
Collaborator

tgauth commented Oct 16, 2023

Thanks for opening as a separate issue! There is still work that needs to be done to support this on Windows.

@ErSoul
Copy link

ErSoul commented Feb 14, 2024

Any update on this issue? Seems it ain't easy task...

If anybody knows a workaround for this (not including WSL or docker) please let me know if possible.

I got the same results for the OpenSSH client built for git-windows:

$ ssh -V
OpenSSH_9.5p1, OpenSSL 3.1.4 24 Oct 2023

And for the Win11 OpenSSH client:

C:\>ssh -V
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

@rnd39
Copy link

rnd39 commented Aug 11, 2024

Is there any workaround for this known yet?

@giusguerrini
Copy link

If you are interested in testing an experimental feature, I posted a pull request for this issue: PowerShell/openssh-portable#750

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

No branches or pull requests

6 participants