Closed oschmidteu closed 3 years ago
The purpose of the docker image is to allow cross compilation, i.e. you run it on your desktop. (That shouldn't be the issue here though I think. Did you create a new build image based on the 7.0 support branch? I don't think you can build images without using an image with explicit support for it.
Second that post up thing looks a bit weird. What does you config look like?
This was my config:
[Interface]
Address = 192.168.1.1/24
ListenPort = 51821
PrivateKey = **
PostUp = PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
PublicKey = **
PresharedKey = **
AllowedIPs = 192.168.1.2/32
[Peer]
PublicKey = **
PresharedKey = **
AllowedIPs = 192.168.1.3/32
[Peer]
PublicKey = **
PresharedKey = **
AllowedIPs = 192.168.1.4/32
I took the 7.0 branch as adviced here: https://github.com/runfalk/synology-wireguard/pull/71#issuecomment-791911263
I just ran everything due to some problems with windows and docker. Before i upgraded the DSM everything worked fine with compilation so im just wondering whats wrong.
Your postup and down is wrong. It should be:
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
I can't say why your build isn't working though.
@runfalk sorry for the stupid misstake, just found it out a few minutes ago. I compiled everything via an old mac and got the package working.
Just need a working config now, got some problems with the handshake but will check some of the issues to find a solution.
Thanks for your help.
Synology NAS model: DS920+
Description: I just upgraded my DSM from 7.0-41222 to 7.0-41882 and wanted to setup wireguard. Some time ago i already compiled the package (WireGuard-geminilake-1.0.20210424.zip) but when trying to fire it up i get the following error:
I didn't found anything about that error so I started all over again:
Do i miss something? I did it before but can't figure out whats wrong or is it related to the new DSM version?