So I have deployed a wireguard container and everything seems to be working even the handshake between the server and my windows 10 client. But, I have no internet connection when using the VPN.
I am running it in Rancher but here is how the docker compose file would look like.
wireguard: image: linuxserver/wireguard container_name: wireguard cap_add: - NET_ADMIN - SYS_MODULE environment: - PUID=1000 - PGID=1000 - TZ=Europe/Zurich - SERVERURL= ---- - SERVERPORT=51820 - PEERS=laptop,phone - PEERDNS=22.214.171.124 volumes: - /path/to/appdata/config:/config - /lib/modules:/lib/modules ports: - 51820:51820/udp sysctls: - net.ipv4.conf.all.src_valid_mark=1 restart: unless-stopped
And yes I have port forwarded the necessary port. Any Ideas what could be wrong?