Closed exponentactivity closed 4 years ago
I haven't tried this in my local machine, but it looks that you used the client configuration (https://github.com/masipcat/wireguard-go-docker#client-config-examples) for your server.
The wg0.conf
in your server should be:
[Interface]
Address = 10.100.100.1/24
ListenPort = 51820
PostUp = wg set wg0 private-key /etc/wireguard/privatekey && iptables -t nat -A POSTROUTING -s 10.100.100.0/24 -o eth0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
# [Peer]
# PublicKey =
# AllowedIPs = 10.100.100.2/32
Hope it helps :)
Thanks i got it working!
First of all, thank you for a docker based userspace implementation! When i run the image i get the following in my docker logs and no Wireguard connection from my client:
My
docker-compose.yml
file:My
wg0.conf
file on the server:EDIT: I'm running the container in RancherOS 1.5.3