Package Details: cloudflared-bin 2019.4.0-1

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: 5
Popularity: 0.719684
First Submitted: 2018-06-24 08:32
Last Updated: 2019-04-07 14:48

Latest Comments

1 2 Next › Last »

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

ng0177 commented on 2019-03-22 18:51

erkexzcx commented on 2019-02-10 11:06 :( The binary for 'arm' work completely fine (thanks to backwards >compatibility) on other ARM architectures ('armv6h' 'armv7h' 'aarch64').

Adaption of PKGBUILD for "aarch64" still leads to a problem with the binary:

-bash: /usr/bin/cloudflared: cannot execute binary file: Exec format error

Any advice?

Nowaker commented on 2019-03-21 01:18

Please note cloudflared can be also used as DNS server that looks up records using DNS over HTTPS: https://developers.cloudflare.com/1.1.1.1/dns-over-https/cloudflared-proxy/.

Can you please provide a unit called cloudflared-dns with the following code? Thanks.

[Unit]
After=network.target
Wants=network.target

[Service]
User=cloudflared
Type=simple
ExecStart=/usr/bin/cloudflared proxy-dns --port 5300
Restart=on-failure

[Install]
WantedBy=multi-user.target

...plus after install script to useradd cloudflared user.

canton7 commented on 2019-03-19 18:33

Today the service stopped, with this in the logs:

Mar 19 13:13:29 X cloudflared[327]: time="2019-03-19T13:13:29Z" level=info msg="PID of the new process is 28130" Mar 19 13:13:29 X cloudflared[327]: time="2019-03-19T13:13:29Z" level=info msg=Quitting... Mar 19 13:13:29 X cloudflared[327]: time="2019-03-19T13:13:29Z" level=info msg="Metrics server stopped"

So it looks like cloudflared will try and auto-upgrade, but won't manage to successfully restart itself in the process?

erkexzcx commented on 2019-03-06 03:46

SWEET! Finally, there is no need to update PKGBUILD manually each time there is an update. :)

jonandermb commented on 2019-02-24 10:24

As @erkexzcx mentioned, the PKG works flawlessly on armv7h. I just tested it myself. I might create an aur package for armv7h, since, as this package's author well stated, only armv6h is supported.