binaries for low-end devices #37

Open
opened 2025-11-19 07:12:34 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @tobias-carlbom on GitHub (Jun 15, 2025).

thanks for this project, its awesome!

i am managing low-end teltonika devices which runs RutOS (fork of openwrt). sadly the routers only has around 3-4MB storage.

it would be super useful to be able to install newt on these devices. but i noticed that the binaries are around 12MB,

thanks!

Originally created by @tobias-carlbom on GitHub (Jun 15, 2025). thanks for this project, its awesome! i am managing low-end teltonika devices which runs RutOS (fork of openwrt). sadly the routers only has around 3-4MB storage. it would be super useful to be able to install newt on these devices. but i noticed that the binaries are around 12MB, thanks!
Author
Owner

@oschwartz10612 commented on GitHub (Jun 15, 2025):

Ahh yeah that is unfortunate. One of the downsides of go is the large binary size due to the static compile. We are also packaging a full netstack into the binary.

I tried upx but was only able to get it down to 8 megs or so which is still too big.

Important request though I will leave this for the future!

@oschwartz10612 commented on GitHub (Jun 15, 2025): Ahh yeah that is unfortunate. One of the downsides of go is the large binary size due to the static compile. We are also packaging a full netstack into the binary. I tried `upx` but was only able to get it down to 8 megs or so which is still too big. Important request though I will leave this for the future!
Author
Owner

@tobias-carlbom commented on GitHub (Jun 16, 2025):

Oh I see! That explains a lot.

Perhaps one way would be to use Basic Wireguard instead. Although, as I understand, I cannot add targets on LAN subnet, only wg subnet. Is that correct? :)

@tobias-carlbom commented on GitHub (Jun 16, 2025): Oh I see! That explains a lot. Perhaps one way would be to use Basic Wireguard instead. Although, as I understand, I cannot add targets on LAN subnet, only wg subnet. Is that correct? :)
Author
Owner

@oschwartz10612 commented on GitHub (Jun 16, 2025):

Oh yeah good idea I should have suggested that haha!

You can add targets from your LAN - you just have to NAT them on the WG device. So you would create a NAT from your WG interface - lets say 100.90.128.12:3456 - to your target at - lets say 192.168.1.34:443. Essential Traefik from the cloud can reach anything in the /29 wg network that is created for the target.

@oschwartz10612 commented on GitHub (Jun 16, 2025): Oh yeah good idea I should have suggested that haha! You _can_ add targets from your LAN - you just have to NAT them on the WG device. So you would create a NAT from your WG interface - lets say 100.90.128.12:3456 - to your target at - lets say 192.168.1.34:443. Essential Traefik from the cloud can reach anything in the /29 wg network that is created for the target.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#37