09-05-2023 03:23 AM
So With VPN off, my WSL terminal can ping/ssh, but as soon as I turn on VPN, terminal cannot ping/ssh but CMD can. Here is a screeenshot. Can you please help me with this issue? I searched a lot but did not find a solution. The small terminal on the left is WSL and the large terminal on the right is CMD.
09-05-2023 04:59 AM
So when AnyConnect is connected you cannot ping from WSL but CMD is able to ping?
09-05-2023 05:38 AM
As far as I can see on my own WSL2 VM I am experiencing the same behavior, from a quick search online I can see many other people does too.
Personally I can tell that this happens to me with a VM using WSL2 version, if you switch to WSL1 most likely it will work as the network stack is different.
If you want a potential solution for your problem you can look into this specific topic from WSL github page: https://github.com/microsoft/WSL/issues/4731#issuecomment-1203643323
I haven't tried it but you may and let us know.
09-05-2023 06:09 AM
I have seen clients with issues using WLC + VPN due to the VPN client not updating WLS's DNS settings. Their work around was to manually change the DNS settings in WSL when connected to VPN.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide