Package Details: cloudflared-bin 2020.5.1-1

Git Clone URL: https://aur.archlinux.org/cloudflared-bin.git (read-only, click to copy)
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: 7
Popularity: 0.054987
First Submitted: 2018-06-24 08:32
Last Updated: 2020-05-13 15:17

Latest Comments

1 2 3 4 Next › Last »

CrimsonKnight13 commented on 2020-04-14 14:47

@imlonghao - Thanks! Great to know that's available now. I'll give it a try.

imlonghao commented on 2020-04-14 12:38

@CrimsonKnight13 no, you can build from source for aarch64. https://aur.archlinux.org/packages/cloudflared should work after change the arch to any or aarch64.

CrimsonKnight13 commented on 2020-04-13 20:22

Would it be possible to add the aarch64 source package going forward? https://github.com/danacr/drone-cloudflared/releases

hali commented on 2020-03-13 13:30

@imlonghao - works perfectly fine now, thanks.

imlonghao commented on 2020-03-13 12:45

@hali I added AmbientCapabilities=CAP_NET_BIND_SERVICE to the service file, should fix your issue. Thanks for your feedback~

hali commented on 2020-03-13 09:23

'systemctl start cloudflared@cloudflared' when using a cloudflared.yml as described in https://wiki.archlinux.org/index.php/Cloudflared#Configuration fails with "permission denied" as user cloudflared is not authorised to bind to port 53. Removing user and group from cloudflared@.service so it runs as root works OK.

According to here https://developers.cloudflare.com/1.1.1.1/dns-over-https/cloudflared-proxy/ - "DNS (53) is a privileged port, so you need to run the daemon as a privileged user in order to be able to bind to it."

Should cloudflared@.service be updated or am I missing a step?

Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="GOOS: linux, GOVersion: go1.12.7, GoArch: amd64"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg=Flags config=/etc/cloudflared/cloudflared.yml no-autoupdate=true proxy-dns=true proxy-dns-upstream="https://1.1.1.1/dns-query, https://1.0.0.1/dns-query, https://2606:4700:4700::1111/dns-query, https://2606:4700:4700::1001/dns-query"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Adding DNS upstream" url="https://1.1.1.1/dns-query"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Adding DNS upstream" url="https://1.0.0.1/dns-query"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Adding DNS upstream" url="https://2606:4700:4700::1111/dns-query"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Adding DNS upstream" url="https://2606:4700:4700::1001/dns-query"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Starting DNS over HTTPS proxy server" addr="dns://localhost:53"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=error msg="Cannot start the DNS over HTTPS proxy server" error="failed to create a UDP listener: listen udp 127.0.0.1:53: bind: permission denied"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=info msg="Starting metrics server" addr="127.0.0.1:33061"
Mar 13 10:01:46 arch cloudflared[31496]: time="2020-03-13T10:01:46+01:00" level=error msg="Quitting due to error" error="Cannot start the DNS over HTTPS proxy server: failed to create a UDP listener: listen udp 127.0.0.1:53: bind: permission denied"

step commented on 2019-09-26 20:23

I made some modification to the pkgbuild in order to update cloudflared

# Maintainer: Hao Long <aur@esd.cc>

pkgname=cloudflared-bin
pkgver=2019.9.2
pkgrel=1
pkgdesc="An Argo Tunnel client which proxies any local webserver through the Cloudflare network"
arch=("x86_64" "i686" "armv6h" "armv7h")
url="https://developers.cloudflare.com/argo-tunnel/"
license=("custom")
depends=("glibc")
provides=("cloudflared")
conflicts=("cloudflared")
source=("https://raw.githubusercontent.com/cloudflare/cloudflared/master/LICENSE"
        "cloudflared.yml"
        "cloudflared@.service"
        "cloudflared-dns.service"
        "sysusers.d")
source_x86_64=("https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.tgz")
source_i686=("https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-386.tgz")
source_armv6h=("https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-arm.tgz")
source_armv7h=(${source_armv6h})
sha256sums=('6a486a0f6c00e87cce1caf0aa8db45ea9fefd0bf91d9be6fc44460160dc0dbda'
            'e769786afdfbd486a4d7ca99495dbe955c25e41b5e012b722b018ca17f269dac'
            '791ec5bebea5863544f5e0db0d9184a5bbb75e66725f7505e83e252f51d84376'
            'bc40e3f7e1b21b93a949a1b1c05639584943d9ce9cc7ccb96612688eeb9fd206'
            'bfda935c07b8e49821ee13e19433b1ed475ebb651e3008a32950734afbaef813')
sha256sums_x86_64=('6bab8ee067888fbeb27f1dcd8734f4f58a5d63598c27c82ce10894baad87f414')
sha256sums_i686=('ec2ec695035a8f8577630bf6cbbe06fd8c66bf7070fa46d09ccbc72aff84f085')
sha256sums_armv6h=('7670c79d823d64494bead3fb0ff7f30ff5550360bcab9b7534c75249ee7383ea')
sha256sums_armv7h=(${sha256sums_armv6h})

package() {
    # Install License
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

    # Install Binary
    install -Dm755 cloudflared ${pkgdir}/usr/bin/cloudflared

    # Configuration File
    install -Dm644 cloudflared.yml ${pkgdir}/etc/cloudflared/cloudflared.yml.example
    install -Dm644 -t ${pkgdir}/usr/lib/systemd/system cloudflared{@,-dns}.service

    # Post install
    install -Dm644 sysusers.d ${pkgdir}/usr/lib/sysusers.d/cloudflared.conf
}

# vim: ts=2 sw=2 et:

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.