Comments (1)
Ok, so I've found that a quick and dirty hack is to just edit the wsl-vpnkit script like so:
wsl.exe -d wsl-vpnkit vi /usr/sbin/wsl-vpnkit
And then find the vpnkit()
function and just add the --port-max-idle-time
parameter at the end:
vpnkit () {
echo "starting vpnkit..."
WIN_PIPE_PATH=$(echo $PIPE_PATH | sed -e "s:/:\\\:g")
CMD='"$VPNKIT_PATH" \
--ethernet $WIN_PIPE_PATH \
--gateway-ip $VPNKIT_GATEWAY_IP \
--host-ip $VPNKIT_HOST_IP \
--lowest-ip $VPNKIT_LOWEST_IP \
--highest-ip $VPNKIT_HIGHEST_IP \
--port-max-idle-time 43000 \
'
if [ "$VPNKIT_DEBUG" ]; then
CMD="$CMD"' --debug'
fi
eval "$CMD"
}
I'm testing how long my X11 session can survive with this. I'm at 15 minutes right now. After 1h I'll assume it "fixed" the problem. (though I'm not really sure why the connection is viewed as "idle" in the first place).
// EDIT: ok, it's been an hour and X11 session is still standing strong. I'm not happy with the hack, but it seems to work and I'll take it, and maybe this will even help someone else.
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 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
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.