Open Neurrone opened 4 years ago
Fixed in latest
. You will need to uncomment this line in your docker-compose.yaml:
https://github.com/masipcat/wireguard-go-docker/blob/93a1aa175adcb0ed6a2867d44ffc98e6e5d2d4db/docker-compose.yml#L17-L18
Hm, it now gets a bit further along and then now fails with a different error.
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n
iptables-restore v1.8.3 (legacy): iptables-restore: unable to initialize table 'raw'
Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[#] resolvconf -d wg0 -f
[#] ip -4 rule delete table 51820
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wg0
Which OS are you using? I can't reproduce this error
I'm attempting to run this on a Synology. So this might not work because of an outdated kernel version. I'll test on another machine to see if I can reproduce.
Reproduced with docker running under WSL 2 on Windows 10 2004.
wireguard | INFO: (wg0) 2020/06/14 08:26:30 Starting wireguard-go version 0.0.20200320
wireguard | [#] wg setconf wg0 /dev/fd/63
wireguard | [#] ip -4 address add 10.67.113.92/32 dev wg0
wireguard | [#] ip link set mtu 1420 up dev wg0
wireguard | [#] resolvconf -a wg0 -m 0 -x
wireguard | [#] wg set wg0 fwmark 51820
wireguard | [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
wireguard | [#] ip -4 rule add not fwmark 51820 table 51820
wireguard | [#] ip -4 rule add table main suppress_prefixlength 0
wireguard | [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
wireguard | [#] iptables-restore -n
wireguard | iptables-restore v1.8.3 (legacy): unknown option "--save-mark"
wireguard | Error occurred at line: 5
wireguard | Try `iptables-restore -h' or 'iptables-restore --help' for more information.
wireguard | [#] resolvconf -d wg0 -f
wireguard | [#] ip -4 rule delete table 51820
wireguard | [#] ip -4 rule delete table main suppress_prefixlength 0
wireguard | [#] ip link delete dev wg0
I'm getting the following error:
The configure file is as follows:
And here's the docker-compose: