MIPS version? or alternative?
Hi, I have used wgsd-client for x86 and ARM platforms with great results. I know have a router that has the wireguard kernel module installed but I don't see a mips version of the wgsd-client.
Furthermore, looks like the statically compiled wgsd-client is quite big around 4MB , for a limited resources device is quite big.
Any ideas or direction to point to?
I think you can build it, OpenWRT have the package. But as of the size - not much could be done, it's Go (but 4M for Go or Rust progs - is not that much). But you can try OpenWRT, compilled in to root SquashFS it'll be much smaller, somewhat ~2M.
Thanks for the response. For reference this is what I did:
Compiled a MIPS version that turned out to be 5.1M in size. Because there is not enough space in Flash, during bootup sequence the router downloads the executable from my website into ramfs and runs from there.
Probably not very safe but it has been working since February without any issues.
It's a pity that manufacturers still place 16-32MiB flash. But here one of my nodes, ASUS RT-AX53U:
root@karlson:~# ls -lah /usr/bin/wgsd-client
-rwxr-xr-x 1 root root 5.6M Jun 2 09:44 /usr/bin/wgsd-client
root@karlson:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 23.5M 23.5M 0 100% /rom
tmpfs 121.4M 4.1M 117.3M 3% /tmp
/dev/ubi0_1 15.1M 376.0K 13.9M 3% /overlay
overlayfs:/overlay 15.1M 376.0K 13.9M 3% /
tmpfs 512.0K 0 512.0K 0% /dev
@groundstack out of curiosity I implemented wgsd on the ucode, and it much smaller, a few tens of kilobytes...
https://github.com/vooon/wgsd-ucode