New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X11 not working when connected to vpn #6336
Comments
I tried using OpenConnect in WSL2 as well. |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@therealkenc, this does not seem to be neither of #5805 #5782. |
this is still an issue, X11 works when connected to VPN only and the VPN address is used, it does not work when local IP or WSL eth IP is used. Anybody got it working on the local ip? |
I have recently updated to win11. With wslg and using the anyconnect from the Microsoft store, this is no longer a problem for me. |
In Windows 11, WSLg can be used as X Server, but WSLg doen't report cursor positions if mouse cursor isn't on any WSLg windows, so xeyes doesn't move... I disabled WSLg by adding guiApplications=false to .wslconfig: [wsl2] By this config, VcSsrv + xeyes can be used on Windows 11, but still this problem (with VPN, connection from X clients to X server failed) remains. Hope this will be fixed. |
@Hugo-Leung Do you mean you got it working with mobaxterm setting $DISPLAY to the VPN address? Or using a local address? The former works fine but I still haven't been able to get it to work with a local address (Windows 10, Debian Bullseye Unstable). |
@mmmuir But I am no longer using this solution after upgrading to win11 and wslg |
i have this issue. i am using docker containers and activating VPNs within the containers so that I don't have to put my entire host computer on the VPN. x11 works without VPN but not with VPN activated in the container. edit: the solution was unrelated to docker, i simply had to use vpn-slice so that only requests destined for my intended resource were routed through VPN. |
I have just install WSL2 and have problems using it with cisco anyconnect vpn
Environment
Steps to reproduce
In my bashrc, I have included
and
I have VcXrv running and this set up works when there is no VPN .
When I start the VPN
I first start cisco anyconnect on windows and connect to my university's VPN.
Then start WSL2 and follow the instruction on
https://community.cisco.com/t5/vpn/anyconnect-wsl-2-windows-substem-for-linux/td-p/4179888
I can now connect to internet
However X11 is no longer working.
Expected behavior
When I enter
xeyes
, a window should pop upActual behavior
The text was updated successfully, but these errors were encountered: