Testing hardware
- hAP ax²
/interface veth
add address=10.0.0.20/24 gateway=10.0.0.1 name=cf-tunnel
/interface bridge port
add bridge=br-lan interface=cf-tunnel
/disk
add slot=tmpfs tmpfs-max-size=128M type=tmpfs
/container config
set registry-url=https://registry-1.docker.io tmpdir=tmpfs
/system script
add name=addCloudflared source=":delay 20s\
\n/container remove [find tag~\"cloudflared\"]\
\n:delay 5s\
\n/container add remote-image=cloudflare/cloudflared root-dir=tmpfs interface=cf-tunnel logging=yes cmd=\"tunnel --no-autoupdate run --token XXX\"\
\n:delay 30s\
\nwhile ([/container get [find tag~\"cloudflare\"] status] != \"running\") do={\
\n :delay 10s\
\n /container start [find tag~\"cloudflared\"]\
\n}"
/system scheduler
add name=startCloudflare on-event=addCloudflared start-time=startup