Found the solution.
Cause: outdated go package
How to fix:
OPTIONAL (in case of certificate issues) :
Cloudflare Dashboard -> Tunnels -> EDIT tunnel -> Public Hostnames TAB + EDIT -> TLS -> No TLS Verify: ON
Cause: outdated go package
How to fix:
Code Select
cd /usr/ports/net/cloudflared
make deinstall
make cleanup
EDIT file: /usr/ports/net/cloudflared/Makefile
FROM USES= cpe go:1.22,modules
TO USES= cpe go:1.24,modules
make install
cloudflared tunnel --no-autoupdate run --token MY_TOKEN
OPTIONAL (in case of certificate issues) :
Cloudflare Dashboard -> Tunnels -> EDIT tunnel -> Public Hostnames TAB + EDIT -> TLS -> No TLS Verify: ON