Skip to content

Instantly share code, notes, and snippets.

@illiafox
Forked from andikahilmy/cloudflare-opensuse.md
Created May 14, 2023 10:21
Show Gist options
  • Save illiafox/74707deb357fd0fae4d009c4faaaf06e to your computer and use it in GitHub Desktop.
Save illiafox/74707deb357fd0fae4d009c4faaaf06e to your computer and use it in GitHub Desktop.
Make Cloudflare-WARP work on RPM-based systems other than RHEL-based distro

Install notes

  • For OpenSUSE, install the RPM package from CLoudflare for CentOS using zypper. When asked, type 2.
  • For Fedora, not tested yet

How to enable after installing

Copy warp-svc.service file to /etc/systemd/system/, then enable in systemd using this command:

systemctl start warp-svc.service
systemctl enable --now warp-svc.service

Cheers!

[Unit]
Description=Cloudflare Zero Trust Client Daemon
After=pre-network.target
[Service]
Type=simple
ExecStart=/bin/warp-svc
DynamicUser=no
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE
StateDirectory=cloudflare-warp
RuntimeDirectory=cloudflare-warp
LogsDirectory=cloudflare-warp
Restart=always
[Install]
WantedBy=multi-user.target
@dinhphu28
Copy link

Thank you, It works for me

@foxane
Copy link

foxane commented Jun 13, 2024

Worked for me too.
Thanks fam

@pilotbear113
Copy link

pilotbear113 commented Aug 17, 2024

Looks really useful but where to find the rpm for CentOS? I've done lots of searching in the myriad CentOS repositories but have yet to find anything to do with cloudflare (but it must be there somewhere!)

@midnight-wonderer
Copy link

You may want to check out how Nix repackages cloudflare-warp from Ubuntu's .deb.
Although the version is quite old, it still gives us a glimpse of what to do when things don't work out.
Like patchelf to load different dynamic libraries.

The code also contains the URL for .deb, which contains the binary. One could easily adapt the pattern to download the current version of cloudflare-warp. (See the current version in Cloudflare's release notes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment