Closed amimof closed 9 months ago
UPDATE: Although I still don't trust Microsoft to implement Linux/POSIX APIs correctly, it's clear that this suspicion :point_down: is incorrect in this case. Same issue occurs on Ubuntu (see https://github.com/dlenski/vpn-slice/issues/145#issuecomment-1866888309 and https://github.com/dlenski/vpn-slice/issues/146).
The --background
functionality requires a working os.fork
, and os.fork
does not normally work on Windows.
Linux DESKTOP-2KSKAB8 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux
Although fork(2)
/os.fork
is supposed to work on WSL, I have no idea about whether it actually works on WSL… your log suggests it isn't working.
Microsoft/Windows has a nasty track record of claiming to add support for various POSIX system calls, completely messing it up, and then never :cursing_face: fixing it, never acknowledging the mistake, and massively wasting the time of FLOSS developers who are attempting to support Windows (Exhibit A).
Thank you for the quick response. It was working before I upgraded my Debian dist in WSL. So it has at least worked at some point :) Thanks for your time. Closing this for now. Cheers
It was working before I upgraded my Debian dist in WSL.
Hrmm, interesting. Nothing else changed?
Feel free to reopen if you discover why it stopped working, or if anyone else encounters a similar issue.
@amimof, any chance that redirecting OpenConnect's stderr
makes any difference here? (See https://github.com/dlenski/vpn-slice/issues/146#issuecomment-1866581829)
I just tried it and it's working with stderr is sent to a file. Thanks for letting me know, this was very useful!
I just tried it and it's working with stderr is sent to a file.
:open_mouth: Okay, so this issue is in fact the same as #146.
I haven notived that split DNS is not working whenever I use the
--background
flag to openconnect. This is what I run:Nothing is added to
/etc/hosts
however my route table is altered with the addition of the subnet provided to vpn-sclice. And this is the output of the openconnect command above:If I run the same command without
--backround
hosts are added to/etc/hosts
and output is the followingOpenConnect
vpn-slice
System