05 กุมภาพันธ์ 2568

Mikrotik hex refresh cloudflared container

For devices with EN7562CT CPU, only arm32v5 container images are supported.
 
 
/disk
add slot=tmpfs tmpfs-max-size=160M type=tmpfs

/container config
set registry-url=https://registry-1.docker.io tmpdir=tmpfs

/file
add name=/opt-cf/cloudflared.sh type=file contents="/bin/apt update\n\
/bin/apt -y install wget\n\
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm -O /tmp/cloudflared\n\
chmod +x /tmp/cloudflared\n\
/tmp/cloudflared tunnel --no-autoupdate run --token XXX"

/container mounts
add dst=/opt-cf name=opt-cf src=/opt-cf

/container
add remote-image=arm32v5/debian:bookworm-slim interface=cf-tunnel mounts=opt-cf root-dir=tmpfs logging=yes cmd="bash /opt-cf/cloudflared.sh"