I have been installing wireguard and pi-hole in several servers with different service providers and everything seemed to be fine until I tried to deploy new servers with Upcloud. I did my standard installation on a debian 10 computer but it doesn't work. Pi-hole shows that traffic gets to the server but I never get back any answer. I even followed Upcloud's tutorial (https://upcloud.com/community/tutorials/get-started-wireguard-vpn/) to make sure there wans't anything I was doing wrong with interfaces of something and that didn't work either. I even tried on an Ubuntu machine and I got the same results, I will leave my basic wireguard .conf file and an image of pi-hole showing traffic getting to the server
Wireguard .conf file:
[Interface]
Address = 10.0.0.1/8
ListenPort = 52810
PrivateKey = {{ server_privkey }}
PostUp = iptables -A FORWARD -i eth0 -j ACCEPT; iptables -A FORWARD -o eth0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i eth0 -j ACCEPT; iptables -D FORWARD -o eth0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
PublicKey = {{ pub_key }}
AllowedIPs = 10.0.9.33/32
Pi-hole:
Pi-hole screenshot