Comments (4)
No you are not missing something... unless I am missing something too! :)
But I did this: Located download links for individual package files on my host computer and downloaded them from a browser (or rather, a PowerShell script), then used the package tool in wsl in "offline-mode" to install the packages from file, by referencing them in the /mnt/c/etc. path back where they are on the host. Needs the package socat, but then it needs some dependencies that are also missing so there are a couple more.
Debian:
- The official image being on "stretch" still, I needed the following:
https://packages.debian.org/stretch/amd64/libwrap0/download
https://packages.debian.org/stretch/amd64/libssl1.1/download
https://packages.debian.org/stretch/amd64/socat/download - Just download the files and then from wsl refer to the files by path. Example (not the actual file names, don't know if order is important, but I did dependencies first and socat last):
apt-get install libwrap0.deb libssl1.1.deb socat.deb
Ubuntu 20.04:
- Only missing socat package. Download url can be retrieved by the folowing command in wsl:
apt-get install socat --print-uris -qq
. Then download this link on host etc, and install it just like with Debian.
Alpine:
- Tested the official "Minimal root filesystem" distribution from alpinelinux.org, so not actually a WSL distribution at all, but works like a charm.
Except, needs bash to run the wsl-vpnkit script. - Downloads from https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86_64/
- Packages needed: ncurses-terminfo-base, ncurses-libs, readline, socat,
bash - Install with
apk add --quiet --repositories-file /dev/null <packagefiles>...
.
Also download npiperelay and Docker Desktop on host. As for the vpnkit.exe
and vpnkit-tap-vsockd
I downloaded just downloaded the Docker installer and instracted it with 7-Zip, first the .exe then the iso, to just grap these two files.
from wsl-vpnkit.
@albertony This did indeed work for me, thank you!
from wsl-vpnkit.
Thanks for the detailed steps, @albertony. The steps in the README were intended for when you have access to the internet within WSL2 but no access when connected to the VPN, since that was the situation I had. I'll try to update the README sometime soon to incorporate this where you don't have internet access at all within WSL2.
from wsl-vpnkit.
Another option is to convert the WSL to WSL1, install packages, and convert it back to WSL2
wsl --set-version {distro_name} 1
wsl --set-version {distro_name} 2
from wsl-vpnkit.
Related Issues (20)
- 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 7
- 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
- ping fail error
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.