Wireguard VPN with cloudflare ddns

I have configured Cloudflare DDNS for my domain and set up a CNAME record for vpn.abc.com to use with WireGuard. WireGuard is installed on a Proxmox LXC container, and I have forwarded UDP port 51820 on my router. However, I’m unable to connect to the WireGuard VPN from any other device. In the logs, I consistently see a handshake error.

When I run nslookup, it correctly resolves to my public IP address.

Sounds like a key issue then versus an IP or DNS issue.

reddit can eat shit

free luigi

I agree the issue seems to be with the WG not the DDNS, definitely need to check the firewall rules and that the server will accept requests on 51280 from an appropriate IP range, and that the keys are working.

check if you can run it directly without LXC. are you binding to 0.0.0.0 ? is there some sort of forwarding to LXC? any firewall rules that need to be updated?