Package Details: cloudflare-warp-bin 2024.4.133-2

Git Clone URL: https://aur.archlinux.org/cloudflare-warp-bin.git (read-only, click to copy)
Package Base: cloudflare-warp-bin
Description: Cloudflare Warp Client
Upstream URL: https://1.1.1.1
Licenses: unknown
Conflicts: cloudflare-warp
Provides: warp-cli, warp-diag, warp-svc
Submitter: solatis
Maintainer: solatis (unlogicalcode, nomaxx117, MemoryShadow, Neomax7, dhupee)
Last Packager: dhupee
Votes: 51
Popularity: 1.69
First Submitted: 2021-05-26 08:59 (UTC)
Last Updated: 2024-05-20 15:58 (UTC)

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

username13 commented on 2024-06-16 18:06 (UTC)

warp-dex: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

dhupee commented on 2024-05-21 13:50 (UTC) (edited on 2024-05-21 13:51 (UTC) by dhupee)

not sure how to that @brianwo im not that bright, however i think i can help another method

I have this in my .zshrc

# export completion cli to fpath
fpath=($HOME/.completion_zsh $fpath)

that way if i do warp-cli generate-completions zsh > .completion_zsh/_warp-cli then i exec zsh i can have the completions

brianwo commented on 2024-05-21 13:37 (UTC)

Can we add shell completion directly to the package? There are completions for bash, elvish, fish, powershell, and zsh built-in to the executable (warp-cli generate-completions). The completion code is rather long >6000 lines.

dhupee commented on 2024-05-20 15:59 (UTC)

okay i've update the source to jammy @klosentag, thx for the input appreciate it

klosentag commented on 2024-05-17 07:14 (UTC)

@Neomax7 @dhupee Hey guys can you change the ubuntu distro to jammy? It might be better because it's linked to a newer glibc

diff --git a/PKGBUILD b/PKGBUILD
index e72df36..19248b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,7 +20,7 @@ conflicts=('cloudflare-warp')

 # Function to get latest version from repository
 get_latest_version() {
-    curl -s https://pkg.cloudflareclient.com/dists/focal/main/binary-amd64/Packages \
+    curl -s https://pkg.cloudflareclient.com/dists/jammy/main/binary-amd64/Packages \
     | grep -E -o 'Version: [0-9]+\.[0-9]+\.[0-9]+' \
     | head -n1 \
     | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+'
@@ -35,9 +35,9 @@ if [[ "$pkgver" != "$latest_version" ]]; then
 fi

 source=(
-    "${pkgname}-${pkgver}-x86_64.deb::https://pkg.cloudflareclient.com/pool/focal/main/c/cloudflare-warp/cloudflare-warp_${pkgver//-/_}-1_amd64.deb"
-    "${pkgname}-${pkgver}-${pkgrel}-Release::https://pkg.cloudflareclient.com/dists/focal/Release"
-    "${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages::https://pkg.cloudflareclient.com/dists/focal/main/binary-amd64/Packages"
+    "${pkgname}-${pkgver}-x86_64.deb::https://pkg.cloudflareclient.com/pool/jammy/main/c/cloudflare-warp/cloudflare-warp_${pkgver//-/_}-1_amd64.deb"
+    "${pkgname}-${pkgver}-${pkgrel}-Release::https://pkg.cloudflareclient.com/dists/jammy/Release"
+    "${pkgname}-${pkgver}-${pkgrel}-x86_64-Packages::https://pkg.cloudflareclient.com/dists/jammy/main/binary-amd64/Packages"
 )

 md5sums=('SKIP'

yuriy.shatrov commented on 2024-05-07 15:59 (UTC) (edited on 2024-05-07 16:00 (UTC) by yuriy.shatrov)

Hi everyone,

I had some issues with CF warp not able to start due to various problems, including not being able to initialize firewall or access the local DNS resolver (it wanted to overwrite the existing /etc/resolv.conf which is obviously protected.

I have not found any solutions elsewhere so decided to share a solution myself (credits go to my colleague Atte :) ).

  • Create a file override.conf in /etc/systemd/system/warp-svc.service.d with the following contents:
[Unit]
After=network.target

[Service]
TemporaryFileSystem=/etc /usr/bin
BindPaths=/etc/warp/resolv.conf:/etc/resolv.conf
BindReadOnlyPaths=/etc/warp/nsswitch.conf:/etc/nsswitch.conf /usr/bin/warp-svc /usr/bin/nft /usr/bin/resolvectl

User=warp-svc
Group=warp-svc
DynamicUser=yes

AmbientCapabilities=
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
CapabilityBoundingSet=
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
DeviceAllow=/dev/net/tun
DevicePolicy=closed
LockPersonality=yes
MemoryDenyWriteExecute=yes
ProcSubset=pid
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
Restart=no
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources

[Install]
WantedBy=default.target
  • Create a directory /etc/warp and put a copy of /etc/resolv.conf there with the owner set to the warp-svc user. Also, put there a nsswitch.conf file with the following contents (just copying for what it's worth):
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

hosts: hosts: dns [!UNAVAIL=return] files

networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files
  • These steps should help run warp-svc successfully!

nmars commented on 2024-03-10 16:34 (UTC)

amin kani memoryshadow please check this https://github.com/cloudflare/cloudflare-docs/blob/production/content/cloudflare-one/faq/teams-troubleshooting.md#warp-on-linux-shows-dns-connectivity-check-failed-with-reason-dnslookupfailed section linux dns and please disable systemd resolved of your systems

MemoryShadow commented on 2024-03-09 14:48 (UTC) (edited on 2024-03-09 14:51 (UTC) by MemoryShadow)

Same issue as amin616, even resetting the warp-cli registration didn't help. The verification curl as specified in the cloudflare docs returns warp=off. If any steps are shared to fix it, I'd appreciate it as well.

@kani, @amin616 You run systemctl status warp-svc.service to see if you successfully connected to the endpoint correctly.

If the endpoint is not successfully connected, this is not a problem with this package and should not be discussed here.

3xploiton3 commented on 2024-03-09 06:27 (UTC)

@dhupee please change package version to pkgver=2024.2.62

 -> cloudflare-warp-bin: local (2024.2.62-1) is newer than AUR (2024.2-1)

dhupee commented on 2024-03-08 08:12 (UTC) (edited on 2024-03-08 10:19 (UTC) by dhupee)

So I tried to use @barcode's solution, I don't find the checksum also maybe I made a mistake.

If you have a problem please tell us but I managed to update to 2024.2 with his solution

EDIT: I forgot to update the SRCINFO, I have pushed the update, and I have try to install the AUR myself it worked, This is my first rodeo so be easy on me