So, I'm running DSM 6.2 I've installed:
Then I've configured and set up:
as a Wireguard server... This works perfectly, is much faster and more reliable than any of the VPN's Synology offer and better than my previous OpenVPN configuration.
So now to the fun part.
I've tried both the linuxserver/wireguard (seperate one ofc) container configured as a client which fails with:
Any ideas where I'm going wrong?
Docker-compose:
Thanks in advance.
FWIW I'm not precious about using a given container and have also tried justin8/torguard-openvpn but it's been archived.
Code:
https://github.com/runfalk/synology-wireguard
Code:
ghcr.io/linuxserver/wireguard
So now to the fun part.
I've tried both the linuxserver/wireguard (seperate one ofc) container configured as a client which fails with:
Code:
[#] ip link add wg0 type wireguard,
[#] wg setconf wg0 /dev/fd/63,
[#] ip -4 address add redacted/24 dev wg0,
[#] ip link set mtu 1420 up dev wg0,
[#] resolvconf -a wg0 -m 0 -x,
[#] wg set wg0 fwmark 51820,
[#] 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.6.1: 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
Any ideas where I'm going wrong?
Docker-compose:
Code:
version: '3'
services:
wireguard2:
image: ghcr.io/linuxserver/wireguard
container_name: wireguard2
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=${USERID}
- PGID=${USERGROUP}
- TZ=${TZ}
volumes:
- "${SSD}/wireguard2:/config"
- '/etc/localtime:/etc/localtime:ro'
- /lib/modules:/lib/modules
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
networks:
- synology
restart: always
privileged: true
networks:
synology:
external: true
FWIW I'm not precious about using a given container and have also tried justin8/torguard-openvpn but it's been archived.