netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Build packages for synology

Open artemklevtsov opened this issue 1 year ago • 13 comments

Is your feature request related to a problem? Please describe. I can't install netbird on my synology nas.

Describe the solution you'd like build packages for synology dsm7 for the arm64 and amd64.

Describe alternatives you've considered Use netbird in docker container.

Additional context no context needed.

artemklevtsov avatar Nov 21 '23 15:11 artemklevtsov

@tbc0309 already do it here but without share build scripts.

artemklevtsov avatar Nov 21 '23 15:11 artemklevtsov

@artemklevtsov is there something more generic that you can share with the community?

mlsmaycon avatar Nov 28 '23 09:11 mlsmaycon

I would just like to get the official support of the synology nas.

artemklevtsov avatar Dec 23 '23 17:12 artemklevtsov

Thanks guys, we will have a look at it for the next quarter.

mlsmaycon avatar Dec 28 '23 10:12 mlsmaycon

Looking forward to it. If possible please include a package compatible with the ARMv7 architecture.

823Labs avatar Jan 09 '24 09:01 823Labs

A Synology package is not a Solution. We have seen this with numerous other projects, the maintenance is slow so you will be versions behind and eventually getting dropped. Not only that but the proprietary Synology application saves the data in hidden folders in the filesystem, making access edit and backup a nightmare.

The Best solution for Synology would be the adaptation of the script so it only creates you the docker compose file + evn file that you then can easily load it to Portainer and start your stack like a BOSS.

This way you can also decide not to use docker Volumes but mount persistent data to your Synology, making accessing of the data, edit and backup a simple task instead.

There is no other way really......

zzecool avatar Jan 26 '24 16:01 zzecool

Synologies running on an ARMv7 do not support docker.

823Labs avatar Jan 27 '24 22:01 823Labs

Synologies running on an ARMv7 do not support docker.

That is so unfortunate. Maybe i need to make a new issue for the docker install support then.

zzecool avatar Jan 28 '24 10:01 zzecool

The official Netbird build does not provide ARMv7 binary file, which means I cannot easily create a package for Synology ARMv7 NAS.

tbc0309 avatar Jan 28 '24 10:01 tbc0309

Can docker be used to setup netbird then?

elpiel avatar Apr 01 '24 10:04 elpiel

I managed to run the docker container without any luck of accessing it through the netbird network. It still shows as not connected. First I had an issue with /dev/net/tun not being found inside docker and now when I added --device it gives me a timeout:

sudo docker run --rm --name synology-dsXXX --hostname synology-dsXXX --device /dev/net/tun --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --cap-add=SYS_RESOURCE -d -e NB_SETUP_KEY=XXXXX -v netbird-client:/etc/netbird netbirdio/netbird:latest

and the logs from the container:

2024-04-02T13:59:52Z INFO client/internal/connect.go:96: starting NetBird client version 0.26.7
2024-04-02T13:59:52Z WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
2024-04-02T13:59:52Z INFO iface/tun_usp_linux.go:33: using userspace bind mode
2024-04-02T13:59:52Z INFO client/internal/routemanager/manager.go:76: Routing setup complete
2024-04-02T13:59:52Z INFO iface/tun_usp_linux.go:45: create tun interface
2024-04-02T13:59:52Z INFO client/internal/dns/host_linux.go:68: System DNS manager discovered: file
2024-04-02T14:00:18Z WARN signal/client/grpc.go:152: disconnected from the Signal Exchange due to an error: rpc error: code = Unavailable desc = connection error: desc = "error reading from server: read tcp 172.17.0.2:53890->35.186.199.111:443: read: connection timed out"

elpiel avatar Apr 02 '24 14:04 elpiel

Hmm one of the reasons I use tailscale now, is because they have a package for synology.

I have a synology placed with family and by tailscale I can connect wherever I am even if their IP changes.

pcfriek1987 avatar May 09 '24 18:05 pcfriek1987

Check here guys :

https://github.com/netbirdio/netbird/issues/1977

zzecool avatar May 14 '24 13:05 zzecool