This repo has a version of cloudflared (Cloudflare Tunnel client) that works on MIPS-based devices running OpenWrt, like the TP-Link MR-3020.
- A cloudflared continues build for MIPS devices.
- Automatic updates using GitHub Actions, so always up-to-date.
- Every day at 00:00, a GitHub Actions job will be checks if there’s a new version of official Cloudflared releases.
- If there’s an update, it compiles the new version and drops it in the Releases.
This repo contains:
- cloudflared binary build for mips based architecture
- cloudflared init (services)
Download latest binary release
-
using aria2
aria2c $(curl -s https://api.github.com/repos/notsudoers/cloudflared-openwrt-for-mips/releases/latest | jq -r '.assets[] | select(.name | contains ("tar.gz")) | .browser_download_url' | head -n 1) \ -o cloudflared-mips-latest.tar.gz
-
using wget
wget $(curl -s https://api.github.com/repos/notsudoers/cloudflared-openwrt-for-mips/releases/latest | jq -r '.assets[] | select(.name | contains ("tar.gz")) | .browser_download_url' | head -n 1) \ --no-check-certificate -O cloudflared-mips-latest.tar.gz
-
extract archive and change permissions
tar xvf cloudflared-mips-latest.tar.gz mv cloudflared /usr/bin/cloudflared chmod +x /usr/bin/cloudflared
Download cloudflared services
-
Using aria2
aria2c https://raw.githubusercontent.com/notsudoers/cloudflared-openwrt-for-mips/main/etc/init.d/cloudflared -o /etc/init.d/cloudflared
-
Using wget
wget https://raw.githubusercontent.com/notsudoers/cloudflared-openwrt-for-mips/main/etc/init.d/cloudflared --no-check-certificate -O /etc/init.d/cloudflared
-
Change permissions
chmod +x /etc/init.d/cloudflared
Add your token to services
- Make sure you have created a Tunnel and got the token or just following this Guides
- Run command below and replace "your-token" with your owns.
sed -i 's,#token=,token="your-token",' /etc/init.d/cloudflared
Start the services
/etc/init.d/cloudflared start
Enable service on boot
/etc/init.d/cloudflared enable
other available options:
Syntax: /etc/init.d/cloudflared [command]
Available commands:
start Start the service
stop Stop the service
restart Restart the service
reload Reload configuration files (or restart if service does not implement reload)
enable Enable service autostart
disable Disable service autostart
enabled Check if service is started on boot
running Check if service is running
status Service status
trace Start with syscall trace
info Dump procd service info