Package Details: cloudflared-bin 2019.6.0-4

Git Clone URL: https://aur.archlinux.org/cloudflared-bin.git (read-only)
Package Base: cloudflared-bin
Description: An Argo Tunnel client which proxies any local webserver through the Cloudflare network
Upstream URL: https://developers.cloudflare.com/argo-tunnel/
Licenses: custom
Conflicts: cloudflared
Provides: cloudflared
Submitter: imlonghao
Maintainer: imlonghao
Last Packager: imlonghao
Votes: 6
Popularity: 1.111633
First Submitted: 2018-06-24 08:32
Last Updated: 2019-06-18 00:44

Latest Comments

1 2 3 Next › Last »

Noctem commented on 2019-06-17 21:21

--no-autoupdate doesn't seem to be a valid option for proxy-dns, so it should be removed from cloudflared-dns.service.

amish commented on 2019-06-17 14:48

Thanks for the update. I would like to suggest more changes. (I started using the software just from last 1-2 days)

There is no need of /var/lib/cloudflared directory. I am not sure it is being used at all. So no need to set (and create) home directory to /var/lib/cloudflared. Systemd also recommends to omit home directory unless absolutely necessary. (See man tmpfiles.d)

So sysusers.d can be changed to: (i.e. no home directory mentioned)

u cloudflared - "Cloudflare Argo Tunnel Daemon"

Also there is no need to change ownership of /etc/cloudflared to cloudflared. It works just fine as long as cloudflared can read config files placed in that directory.

Also there is no need of separate log file because systemd journal logs the same thing in journal files. If anybody really wants separate log file then they can create it manually. Otherwise no point of having duplicate logs.

So effectively there is no need of tmpfiles.d at all - as none of the lines are necessary. tmpfiles.d can be removed completely.

Thank you

amish commented on 2019-06-16 05:27

Instead of using install script for creating user, files etc., please use systemd sysusers.d and tmpfiles.d. Something like this:

/usr/lib/sysusers.d/cloudflared.conf

u cloudflared - "Cloudflare Argo Tunnel Daemon" /var/lib/cloudflared

/usr/lib/tmpfiles.d/cloudflared.conf

d /var/lib/cloudflared 0700 cloudflared cloudflared
f /var/log/cloudflared.log 0600 cloudflared cloudflared
z /etc/cloudflared - cloudflared cloudflared

Also last two lines in PKGBUILD can be combined in one.

install -Dm644 -t ${pkgdir}/usr/lib/systemd/system cloudflared{@,-dns}.service

Also add "--no-autoupdate" to both the .service files. Because cloudflared user will anyway not be able to update the binary.

fhfs commented on 2019-05-27 19:45

x86_64 tgz links to version 5.0 https://bin.equinox.io/a/2PFjzmtZ2fF/cloudflared-2019.4.1-linux-amd64.tar.gz =)

mjuarezm commented on 2019-05-22 16:02

+1 Integrity check failing for package:

FAILED ==> ERROR: One or more files did not pass the validity check!

erkexzcx commented on 2019-04-15 10:35

Looks like something missing in PKGBUILD to set correct permissions? :)

Instructions followed from here: https://wiki.archlinux.org/index.php/Pi-hole#Cloudflared_DNS_service

Apr 15 10:34:11 homeserver cloudflared[2164]: 2019/04/15 10:34:11 failed to open logfile: /var/log/cloudflared.log open /var/log/cloudflared.log: permission denied
Apr 15 10:34:11 homeserver cloudflared[2164]: Failed to fire hook: open /var/log/cloudflared.log: permission denied
Apr 15 10:34:11 homeserver cloudflared[2164]: time="2019-04-15T10:34:11Z" level=info msg="Autoupdate frequency is set to 24h0m0s"
Apr 15 10:34:11 homeserver cloudflared[2164]: 2019/04/15 10:34:11 failed to open logfile: /var/log/cloudflared.log open /var/log/cloudflared.log: permission denied
Apr 15 10:34:11 homeserver cloudflared[2164]: Failed to fire hook: open /var/log/cloudflared.log: permission denied
Apr 15 10:34:11 homeserver cloudflared[2164]: time="2019-04-15T10:34:11Z" level=info msg="Starting metrics server" addr="127.0.0.1:41171"
Apr 15 10:34:12 homeserver cloudflared[2164]: time="2019-04-15T10:34:12Z" level=error msg="update check failed" error="open /usr/bin/.cloudflared.new: permission denied"

EDIT: Fixed with 2 commands:

[root@homeserver erikas]# touch /var/log/cloudflared.log
[root@homeserver erikas]# chown cloudflared /var/log/cloudflared.log

imlonghao commented on 2019-04-13 16:10

@canton7, I did add user after install, see https://aur.archlinux.org/cgit/aur.git/tree/cloudflared-bin.install?h=cloudflared-bin

But if you are upgrading from an older version, the user will not be created at this moment.

canton7 commented on 2019-04-13 11:52

I think you may have forgotten the bit "plus after install script to useradd cloudflared user." from @Nowaker's comment...

ayr-ton commented on 2019-04-10 22:47

cloudflared-stable-linux-amd64.tgz ... FAILED ==> ERROR: One or more files did not pass the validity check!

imlonghao commented on 2019-03-26 15:06

@Nowaker: cloudflared-dns.service added, thanks for your suggestion.

@ng0177: You may need to compile it from source[1] in order to run in aarch64.

[1] https://github.com/cloudflare/cloudflared