Skip to content
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

Epic: VPN #1115

Closed
2 tasks done
gaktive opened this issue Dec 15, 2021 · 11 comments
Closed
2 tasks done

Epic: VPN #1115

gaktive opened this issue Dec 15, 2021 · 11 comments
Assignees
Labels
area/vpn kind/epic Umbrella-bug for a group of related issues
Milestone

Comments

@gaktive
Copy link
Contributor

gaktive commented Dec 15, 2021

Running Rancher Desktop on systems that rely on VPNs has proven to be tricky. We'll use this epic to help track the various issues that pop up.

@gaktive gaktive added kind/enhancement New feature or request area/vpn labels Dec 15, 2021
@gaktive gaktive added this to the v1.0.0 milestone Dec 17, 2021
@evertonlperes
Copy link
Contributor

evertonlperes commented Jan 3, 2022

Here's a list of VPN software reported by the users:

  • Cisco AnyConnect
  • OpenVPN
  • ZScaler VPN
  • Checkpoint Endpoint Security
  • Tailscale
  • SAS Corporate Firewall

@agracey
Copy link

agracey commented Jan 5, 2022

For Cisco, here's a potential workaround: https://gist.github.com/pyther/b7c03579a5ea55fe431561b502ec1ba8

@jandubois jandubois modified the milestones: v1.0.0-beta, v1.0.0 Jan 12, 2022
@gaktive gaktive modified the milestones: v1.0.0, v1.1.0 Jan 17, 2022
@mirraxian
Copy link

mirraxian commented Jan 25, 2022

Rancher Desktop on Windows while connected to Cisco AnyConnect 4.10.x or newer is confirmed working when the "Allow local (LAN) acess when using VPN (if configured)" user preferences is set and BypassVirtualSubnetsOnlyV4 Custom Attribute is set according to Cisco's documentation:

https://www.cisco.com/c/en/us/td/docs/security/vpn_client/anyconnect/anyconnect410/administration/guide/b-anyconnect-admin-guide-4-10/troubleshoot-anyconnect.html#Cisco_Task_in_List_GUI.dita_3a9a8101-f034-4e9b-b24a-486ee47b5e9f

@rwxrob
Copy link

rwxrob commented Jan 27, 2022

It's worth noting that Docker Desktop is not susceptible to this bug at all. In fact, by running Linux in a workspace container under Docker Desktop one can automatically gain the benefits of the VPN state without any scripted changes at all. I'm not sure why that is, but I'm very disappointed to discover that Rancher Desktop is definitely not a drop-in replacement for Docker Desktop for enterprises using Cisco Anyconnect. The instructions to get around the problem defeat the very objective of an easy-to-use, turn-key Docker installation on Mac and Windows.

@vickimfox
Copy link

Docker Desktop fixes the WSL2 VPN problem using "vpnkit" (https://github.com/moby/vpnkit).

There is an example of how to use "vpnkit" provided by "wsl-vpnkit" (https://github.com/sakai135/wsl-vpnkit).

@mattfarina
Copy link
Contributor

@rwxrob working with the system VPN is quite a hard problem. Docker Desktop has had years to work on it and has done a fantastic job. I've personally learned more about networking on Mac, Windows, and Linux (which are each different) than I expected going into this.

@vickimfox we're familiar with vpnkit. Rancher Desktop lets you use both containerd and dockerd. vpnkit is wired to work with dockerd. This makes sense for the project given it's under Moby and developed for Docker Desktop. This is one of the many nuances you have with it.

We're working on the problem and, for various reasons, there isn't a quick fix. It is a priority.

@plaisted
Copy link

Using Rancher Desktop 1.0 and Cisco AnyConnect with wsl-vpnkit appears to be working at a high level. kubectl works from windows after updating contexts to point to localhost instead of the wsl2 IP. Nerdctl worked without any changes.

@jandubois jandubois added kind/epic Umbrella-bug for a group of related issues and removed kind/enhancement New feature or request labels Feb 4, 2022
@jandubois jandubois modified the milestones: Later, Next Mar 3, 2022
@jandubois jandubois modified the milestones: v1.2.0, Later Mar 18, 2022
@gaktive gaktive modified the milestones: Next, Later Apr 22, 2022
@jandubois jandubois modified the milestones: Next, Later May 20, 2022
@jandubois jandubois modified the milestones: Next, Later Jul 19, 2022
@gaktive gaktive modified the milestones: Next, Later Aug 30, 2022
@Jan-Pleva
Copy link

We need this VPN feature. Is it in plan?

@micxer
Copy link

micxer commented Apr 21, 2023

Still broken on macOS with AyConnect. 😢

@Nino-K
Copy link
Member

Nino-K commented Apr 26, 2023

@micxer we have introduced an experimental feature in 1.8.1 that should fix your VPN issue. The feature will be fully baked in our next few upcoming releases. As I mentioned it is experimental and the downside is the port forwarding for all the publish ports has to be performed manually as mentioned here: #4096 (comment)

@micxer
Copy link

micxer commented Sep 19, 2023

Seems to be working now. Thanks.

@gaktive gaktive modified the milestones: Later, 1.12 Nov 21, 2023
@Nino-K Nino-K closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vpn kind/epic Umbrella-bug for a group of related issues
Projects
None yet
Development

No branches or pull requests