Comments (3)
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.
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.
Thank you for your explanations!
from wsl-vpnkit.
Related Issues (20)
- wsl.exe: 1: MZ: Permission denied HOT 2
- cannot add network services: listen tcp 127.0.0.1:2222: bind: An attempt was made to access a socket in a way forbidden by its access permissions. HOT 6
- request - new version release as upstream gvproxy now supports more DNS record types
- request - ipv6 support
- Patch for 0.4.1's systemd service stopped working
- Intermittently losing network connectivity - "Exception 0xc0000006" and "cannot read size from socket: EOF"
- resolution of host.internal variable HOT 1
- Systemd setup prevents wsl.exe from running
- How does WSL2 2.0.0 interact with wsl-vpnkit? HOT 17
- open capture.pcap: Access is denied HOT 1
- Lost access to WSL service from Windows when connected to VPN
- wsl-vpnkit has a undocumented effect on a distro once systemd is enabled, full uninstall info needed
- bind: An attempt was made to access a socket in a way forbidden by its access permissions.
- Any known issues with wsl-vpnkit and wsl 2.0.5? HOT 30
- Resolving interop-issue while running wsl-vpnkit as a systemd-service in own wsl-distro HOT 12
- Running wsl-vpnkit 0.4.1 works fine, but cannot make it run under systemctl HOT 17
- wsl-vpnkit and wsl 2.0.14 HOT 4
- WSL2 September 2023 allows for Mirrored Networking Mode HOT 3
- Subnet 192.168.100.0/24 ping responds always when wsl-vpnkit distro is running
- Reverse lookup does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-vpnkit.