netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.77k stars 486 forks source link

Build packages for synology #1325

Open artemklevtsov opened 10 months ago

artemklevtsov commented 10 months ago

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 commented 10 months ago

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

mlsmaycon commented 10 months ago

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

artemklevtsov commented 9 months ago

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

mlsmaycon commented 9 months ago

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

823Labs commented 8 months ago

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

zzecool commented 8 months ago

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......

823Labs commented 8 months ago

Synologies running on an ARMv7 do not support docker.

zzecool commented 8 months ago

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.

tbc0309 commented 8 months ago

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

elpiel commented 6 months ago

Can docker be used to setup netbird then?

elpiel commented 6 months ago

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"
pcfriek1987 commented 4 months ago

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.

zzecool commented 4 months ago

Check here guys :

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