Skip to content

mknod `/dev/net /tun' function is not implemented #874

Closed

Description

@inakalepsie

I've installed vpnc (sudo apt-get install vpnc) and tried to run it, but unsuccessfully.

I've got this error:

mknod: `/dev/net/tun': function is not implemented
vpnc-connect: can't initialise tunnel interface: Inappropriate ioctl for device

Any help would be greatly appreciated, as I often need to work through the VPN. Thanks.

Activity

  1. fcicq commented on Aug 12, 2016

    @fcicq

    looks like you are requesting tun / tap device support. I dont think it will be implemented. you should use Windows native VPN instead.

  2. fpqc commented on Aug 12, 2016

    @fpqc

    Windows should allow you to set up the VPN tunnel, then you should be able to just make use of WSL through the Windows tunnel.

  3. inakalepsie commented on Aug 16, 2016

    @inakalepsie
    Author

    yes, I could set up VPN tunnel from Windows, but I would prefer to do it from WSL.:-)

  4. sunilmut commented on Aug 16, 2016

    @sunilmut
    Member

    inakalepsie - Thanks for the feedback. If you would like to setup VPN through WSL, help us prioritize that by also providing that feedback through our user voice page

  5. JockDaRock commented on Aug 26, 2016

    @JockDaRock

    Sunil Muthuswamy (@sunilmut) so what is the status of this... I am interested in this being a thing as well

  6. fpqc commented on Aug 26, 2016

    @fpqc

    Jock Reed (@JockDaRock) No update. If it is going to be implemented, there is zero chance it's going to show up in Redstone 2 (next Win10 release). We'll probably start hearing from the team about implementation of kernel-mode drivers in general (or maybe a way for driver-makers to expose their drivers to WSL) for this sort of thing, but there are right now no plans. They won't rule it out if it becomes a super high-rated feature on the user voice page, but atm they have other priorities.

  7. JockDaRock commented on Aug 26, 2016

    @JockDaRock

    What is on the roadmap currently for WSL? 😄

  8. fpqc commented on Aug 26, 2016

    @fpqc

    Jock Reed (@JockDaRock) Usermode usermode usermode, more interop, and better FS performance

  9. hiemal commented on Sep 1, 2016

    @hiemal

    This is important especially for Cisco IPSec VPN. The only reason I use linux subsystem on windows is to get around the lack of support of cisco ipsec in windows 10 native vpn settings.

  10. JockDaRock commented on Sep 2, 2016

    @JockDaRock

    I agree, this feature needs to be added fairly soon, makes some of my other projects more difficult

  11. sunilmut commented on Sep 2, 2016

    @sunilmut
    Member

    Russ Alexander (@russalex) might be able to give a better insight into the roadmaps, which might help you understand where this lines up with other things.

  12. russalex commented on Sep 6, 2016

    @russalex
    Contributor

    Sorry for the late reply. Long weekend here.

    Unfortunately I can't give too many details about the roadmap but I can give some clues. First, if you look at our release notes so far they show off a bit of our priorities (usermode, networking, bug fixes). Second, we have stated publicly that filesystem performance is pretty high on our list. Finally, we really do pay attention to User Voice so expect to see something from that list.

    On /dev/net/tun, we do know that we have issues with VPN's, but we haven't fully investigated yet. This is one of those situations where we need to prioritize against everything else. As always, User Voice is a great place to vote to help raise visibility.

  13. misenesi commented on Nov 28, 2016

    @misenesi

    who's pig (@hiemal), could you please provide output when you do

    ipconfig /all

    ?

    I have a fix prepared for DNS resolution when you connect to VPN on windows, but need to verify that your VPN networking interface is reported as point-to-point interface (which is a Windows requirement).

  14. fpqc commented on Nov 28, 2016

    @fpqc

    Pretty sure Win10 does support "Cisco Ipsec" in the advanced options anyway. Ipsec-IKEv2 with machine certs or user certs is broken for me on insider builds but works inside my Win10 1607 testing VM (lol @ role reversal). Not sure if I need to do a clean install of an insider build to fix it either...

    Also, there's a whole other crazy thing where you can set up ipsec directly in the "Windows Advanced Firewall" for split-tunneling and secure login to remote domain controllers, but I haven't gotten it to work with strongswan.

  15. 4 remaining items

  16. fpqc commented on May 1, 2017

    @fpqc

    Peter Jansen (@Peter-J-Jansen) sure there's a chance, but I wouldn't hold my breath.

  17. Peter-J-Jansen commented on May 2, 2017

    @Peter-J-Jansen

    Dear fpqc,
    Thanks for the feedback, I understand this is going to be problematic.
    Is there a way to find out about Microsoft's priorities for WSL improvements and to see if this is somewhere in the pipeline at all ?
    Peter J. Jansen

  18. fpqc commented on May 2, 2017

    @fpqc

    this kind of feature will only make it in if there are a lot of votes for it on uservoice I think

  19. vineethelias commented on May 14, 2017

    @vineethelias

    I'm facing same problem with openconnect vpn. It fails to configure tun\tap module.

  20. fpqc commented on May 14, 2017

    @fpqc

    vineethelias yeah because WSL doesn't contain such a kernel module to configure

  21. moralrebuild commented on Apr 2, 2018

    @moralrebuild

    Any progress in April 2018? I was failed when running openconnect in WSL Debian:
    Failed to open tun device: No such device
    Set up tun device failed
    Unknown error; exiting.

  22. tara-raj commented on Jun 12, 2018

    @tara-raj

    We do not currently have plans to support this. Please submit a request on our User Voice Page and upvote. We will prioritize feature requests accordingly

  23. fpqc commented on Jun 12, 2018

    @fpqc

    Can't you set up the tunnel on Windows and then set your routes to use the Windows tunnel?

  24. therealkenc commented on Jun 13, 2018

    @therealkenc

    Can't you set up the tunnel on Windows and then set your routes to use the Windows tunnel?

    Yep. I spend some of my day with bits and bytes going through an OpenSSL tunnel via a Windows TAP driver to California. Have since before the OP.

    Someone mentioned further back "yes, I could set up VPN tunnel from Windows, but I would prefer to do it from WSL". Someone is bound to say it again. But that isn't really a well-formed ask under the present WSL design, since (unlike in a VM) your Windows Network is your WSL network. It is roughly equivalent to "I want to administer my Windows network with the Linux kernel ABI".

    So, yeah, UserVoice, sure -- I guess. But there are a lot of technical reasons why that isn't real feasible, and those reasons don't have much to do with "tunnels". [With the obligatory caveat, anything is technically possible even if it isn't especially feasible.]

    [ed] User Voice here and here.

  25. pmercatoris commented on Jul 26, 2020

    @pmercatoris

    Any update on this? I am trying to install snx vpn on wsl or on docker, but the missing tun module makes it impossible.

  26. therealkenc commented on Jul 26, 2020

    @therealkenc

    image

    I am trying to install snx vpn

    If you are missing a particular kconfig module please open new submission under a new cover. For general help with "snx vpn" you will get better eyeballs in a forum related to the product.

  27. DjArt commented on Dec 1, 2021

    @DjArt

    But what about WSL1?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions