Custom Build for Running Corosync on the Router

:rocket: Just dropped something pretty cool for the homelab + networking crowd!

If you’ve ever wanted to run Corosync QNetd on OpenWrt, I put together a repo to make it way easier to get up and running :backhand_index_pointing_down:
https://github.com/jrparks/corosync-qnetd-openwrt

:light_bulb: Why this matters:

  • Lightweight quorum for clusters

  • Perfect for low-power devices (routers, embedded gear)

  • Great for Proxmox / distributed setups where you don’t want a full extra node

:hammer_and_wrench: What’s inside:

  • OpenWrt-friendly build setup

  • Packaging for qnetd

  • Clean structure so you can adapt or extend it

If you're running clusters on unconventional hardware (like routers :eyes:), this might save you a ton of time.

Would love feedback, improvements, or ideas — PRs welcome!

#OpenWrt #Proxmox #Homelab #Clustering #DevOps #Networking

2 Likes

Hi

Thanks for sharing!

Can you make a mipsel_24kc build for the mango please?

It’s possible however that router doesn’t have very much ram and it’s going to consume at least 10 mb of ram. Also i don’t have the physical device so i would never be 100% sure it’s working as it should be. Let me know how much free ram you have on the device right now. No point building it if you are going to turn your router into a boat anchor. :grin:

Sorry I don’t have the physical device right now either, I will come Friday. I will not be using it functionally as a router, however, just the qdevice, so I wanna say roughly 70-90mbs free ram? The mango has 128mb of ram, thank you for the quick response!

@will.qiu Do you happen to know how much ram is available on that router once it’s booted up?

No, I can tell you Friday, sorry for the wait haha.

After a factory reset, the Mango v4.3.25 has approximately 60+ MB of free space on initial boot with no features enabled.

root@GL-MT300N-V2:~# cat /etc/glversion
4.3.25
root@GL-MT300N-V2:~# free -h
              total        used        free      shared  buff/cache   available
Mem:         121960       26404       64912         704       30644       76380
Swap:             0           0           0

Well it is possible to run it. Might be a little lean if anything important is enabled. Does that model use the same type of firewall as the GL-BE6500? If not I will stream line that part of the code and they ca add their rules the manual way.

Mango and BE6500 use the same nftables as their firewall.

root@GL-MT300N-V2:~# opkg list-installed | grep nft
ip6tables-nft - 1.8.7-7
iptables-nft - 1.8.7-7
kmod-nft-compat - 5.10.176-1
kmod-nft-core - 5.10.176-1
kmod-nft-fib - 5.10.176-1
kmod-nft-nat - 5.10.176-1
kmod-nft-offload - 5.10.176-1
libiptext-nft0 - 1.8.7-7
libnftnl11 - 1.2.1-2
nftables-json - 1.0.2-2.1
xtables-nft - 1.8.7-7