Sorry for the late reply. All is working now. It seems the gateway ip was intefering with the IP addres of the wireguard server.