Wireguard behind fortigate
Hey all,
I have a little issue with getting the DNS working correctly when a user connects through Wireguard VPN. At our local site we have a Wireguard server running behind our Fortigate firewall. Our lan is using 192.168.0.0/22 and the wireguard lan is 192.168.100.0/24.
To get it up and running I have setup a virtual ip from our public ip to the ip of the wireguard server on our lan with port forwarding for the listen port. For access to the lan I have created a static route from 192.168.0.0 to 192.168.100.0 using the wireguard server ip as gateway. I have also created a policy so the traffic is handled correctly.
The tunnel is working and a user can connect to the wireguard server and ping our lan devices. However DNS is not working. In the wireguard client I have setup DNS to 192.168.0.100 and 192.168.0.101 but that doesn't seem to be working. Does anyone know how I can get DNS to work properly in this situation? Is there anything else I have to configure on the Fortigate?
