16
Virtual private networks / [SOLVED] WireGuard Road Warrior, no DNS resolution
« on: August 01, 2022, 05:01:42 pm »
Hi All,
Pretty new to OPNsense, but loving it so far!
I have followed the docs (https://docs.opnsense.org/manual/how-tos/wireguard-client.html) for the setup of OPNsense being a WireGuard server and setup WireGuard client on my iPhone.
I am using Unbound DSN on the OPNsense device.
I have a successful connection, traffic flowing, etc.
From my iPhone, I can navigate to LAN addresses, by IP, but cant navigate using DNS name.
Using a tool such as iNet on iPhone, I can scan the LAN network, and port scan both the WireGuard interface address and LAN gateway address - and can see ports 53, 80,443 are open.
I have tried setting the client DNS to both the WireGuard HW and LAN GW addresses, I just can not get the DNS resolution to work!
Any pointers would be greatly received!
Server config;
Client config;
Pretty new to OPNsense, but loving it so far!
I have followed the docs (https://docs.opnsense.org/manual/how-tos/wireguard-client.html) for the setup of OPNsense being a WireGuard server and setup WireGuard client on my iPhone.
I am using Unbound DSN on the OPNsense device.
I have a successful connection, traffic flowing, etc.
From my iPhone, I can navigate to LAN addresses, by IP, but cant navigate using DNS name.
Using a tool such as iNet on iPhone, I can scan the LAN network, and port scan both the WireGuard interface address and LAN gateway address - and can see ports 53, 80,443 are open.
I have tried setting the client DNS to both the WireGuard HW and LAN GW addresses, I just can not get the DNS resolution to work!
Any pointers would be greatly received!
Server config;
Code: [Select]
# cat /usr/local/etc/wireguard/wg1.conf
[Interface]
PrivateKey = xxx
Address = 192.168.10.1/24
ListenPort = 51820
[Peer]
PublicKey = xxx
AllowedIPs = 192.168.10.50/32Client config;
Code: [Select]
[Interface]
PrivateKey = xxx
Address=192.168.10.50/32
DNS=192.168.5.1
[Peer]
PublicKey = xxx
AllowedIPs = 192.168.0.0/16
Endpoint = wg.mydomain.co.uk:51820

