Giter Club home page Giter Club logo

Comments (3)

albertony avatar albertony commented on May 30, 2024

Only one can run at a time, I think. At least you will have to configure different IP, named pipes etc..

What I do is to just run the vpnkit stuff from a single distro, and then other distros connects through the same by simply configuring them to go through the running vpnkit "nameserver":

/etc/wsl.conf:

[network]
generateResolvConf = false

/etc/resolv.conf:

nameserver 192.168.67.1

(may also add a second line with "nameserver 1.1.1.1" if you want this as fall-back).

A wsl.exe --terminate <distroname> or even wsl.exe --shutdown is usually needed for the DNS configuration to be properly applied.

from wsl-vpnkit.

sakai135 avatar sakai135 commented on May 30, 2024

It will work with multiple WSL 2 distros. With WSL 2, all the distros run within the same VM and share the network namespace. When you run wsl-vpnkit in one distro, you'll see that the eth1 and the updated default route in ip route will show in all distros. The only thing left to do would be setting the DNS server as @albertony mentioned.

If you're using the wsl-vpnkit.service script, you would want to use your default distro to run this or edit the script to specify the distro in the wsl.exe command.

from wsl-vpnkit.

philippe-granet avatar philippe-granet commented on May 30, 2024

Thank you for your explanations!

from wsl-vpnkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.