OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of QuaCKeReD »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - QuaCKeReD

Pages: 1 [2]
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;
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/32

Client 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

Pages: 1 [2]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2