Warp support for WSL2

I’ve recently been trying out the zero-trust and warp products and I found it really easy to use and setup. I was able to completely close off all open ports for my servers and use cloudflared to tunnel them to Cloudflare.

I wanted to set up ssh access to a linux server on a private address using Cloudflare zero trust. I was able to do this successfully by adding the linux server as a private network to a Cloudflare zero trust tunnel and installing the warp client on my Windows 10 machine. Everything works really well, but I soon discovered that when trying to ssh into the machine’s local address from WSL2 (my preferred way of working these things), it completely bypasses the warp client installed in Windows.

I noticed there were a few posts about this as well, but the discussions were all closed. Is support for WSL2 for the Windows client something the team is working for? I’d definitely find this useful as I do most of my work in WSL.

I also tried to install Cloudflare-warp directly in WSL as a workaround, however, running warp-cli register returns an error saying that the daemon is not started. Unfortunately daemons and systemctl don’t work in WSL2, so I couldn’t proceed further.

I just wanted to add that I’m in the same boat. It was a bit of an uphill slog to get Warp and the Zero Trust functionality configured properly and kind of disappointing that as soon as I did, my WSL2 breaks. :frowning:

Well, I think for “plain” WARP, the issue is simply to run warp-svc. Normally, this is run as a service. And my impression is that some combination of Windows 11 and Ubuntu 22.04 will support services in WSL. But I found that if I just ran warp-svc manually as root, I could then run warp-cli register and warp-cli connect.

That isn’t a perfect fix, but hopefully it helps somebody move in the right direction. I was hoping to be able to build enough momentum to be able to run warp-cli teams-enroll ... as well. But, sadly, that doesn’t work and the only diagnostic error message I get is just ApiError…not super useful. But, as I said, perhaps just getting to warp-cli connect will be useful for some people.

Cloudflare team, guys: we need WSL support. For teams. Really.