wsl-vpnkit icon indicating copy to clipboard operation
wsl-vpnkit copied to clipboard

Adapt the wsl-vpnkit, so it makes use of WSL_INTEROP variable

Open dabeck81 opened this issue 1 year ago • 9 comments

Adapt the wsl-vpnkit, so it makes use of WSL_INTEROP variable and make it self-healing when the socket would be closed for one reason or another

dabeck81 avatar Nov 17 '23 13:11 dabeck81

I can confirm that this worked for me when running wsl-vpnkit as a systemd service. Thanks a bunch!

terlar avatar Nov 17 '23 18:11 terlar

@dabeck81 I tried your solution, but afterwards the start fails with: /app/wsl-gvproxy.exe is not executable due to WSL interop settings or Windows permissions

So, I commended out the check regarding wsl-gvproxy.exe and restarted it, but a have still the initial connection issues.

Mansouu avatar Nov 24 '23 07:11 Mansouu

@dabeck81 I tried your solution, but afterwards the start fails with: /app/wsl-gvproxy.exe is not executable due to WSL interop settings or Windows permissions

So, I commended out the check regarding wsl-gvproxy.exe and restarted it, but a have still the initial connection issues.

Open up a shel-terminal and try to manually run following command /app/wsl-gvproxy.exe -help, it seems you have a different issue preventing to run exe-files than the problem I resolved with the wsl-interop variable.

dabeck81 avatar Nov 24 '23 11:11 dabeck81

This worked for me using systemd with standalone script setup.

garysassano avatar Nov 25 '23 06:11 garysassano

Open up a shel-terminal and try to manually run following command /app/wsl-gvproxy.exe -help, it seems you have a different issue preventing to run exe-files than the problem I resolved with the wsl-interop variable.

I had already done that at the time and it worked, so I knew it was a false positive and that's why I removed temporary the following check :

$GVPROXY_PATH -help 2>/dev/null
if [ $? -eq 1 ]; then
    echo "$GVPROXY_PATH is not executable due to WSL interop settings or Windows permissions"
    exit 1
fi

EDIT: It looks like I'm not the only one with this problem. This is probably the same problem: https://github.com/sakai135/wsl-vpnkit/issues/249#issuecomment-1823192467

Mansouu avatar Nov 27 '23 08:11 Mansouu

I experienced intermittent behaviour, and right now it completely stopped working:

wsl-vpnkit[2530047]: time="2023-12-01T12:34:16+01:00" level=error msg="cannot read size from socket: EOF"
wsl-vpnkit[2530047]: time="2023-12-01T12:34:17+01:00" level=info msg="waiting for packets..."
wsl-vpnkit[2557340]: /home/user/.wsl-vpnkit/wsl-gvproxy.exe: Invalid argument

garysassano avatar Dec 01 '23 11:12 garysassano

Interesting, I had this working flawlessly for 2 weeks and since today I get that all the time.

terlar avatar Dec 01 '23 15:12 terlar

https://github.com/sakai135/wsl-vpnkit/issues/249#issuecomment-1838796709

OrpheeGT avatar Dec 04 '23 14:12 OrpheeGT

Adding that this PR fixed my issues with wsl-gvproxy.exe is not executable due to WSL interop settings or Windows permissions.

paddy74 avatar Jan 29 '24 22:01 paddy74