Joined: 18 Mar 2014 Posts: 12879 Location: Netherlands
Posted: Tue Aug 02, 2022 5:34 Post subject:
It is always difficult to give a definitive answer without knowing your exact setup but I will take a shot at question 2.
The Pi also has its own firewall and does not allow traffic from other subnets.
So either tweak the firewall of the Pi or Enable Allow Clients Lan access from the Gui.
It is always difficult to give a definitive answer without knowing your exact setup but I will take a shot at question 2.
@egc Thank you for the kind suggestions. Your reply led me to try to connecting directly using the IP address of the RPi4. I had been trying to use http://homeassistant.local:8123/ but apparently this domain name does not work when I'm connected via Wireguard. Instead, I looked up the IP address assigned by ddwrt and then used it in place of "homeassistant.local". Then it worked!
Is there a way to used the same DNS in the Wireguard tunnel as I would use if I were connected to my ddwrt locally?
Joined: 18 Mar 2014 Posts: 12879 Location: Netherlands
Posted: Sun Aug 07, 2022 8:06 Post subject:
Sure, almost all WireGuard Clients have a DNS setting and if you use the right IP address and if that IP address is reachable via the tunnel and the DNS server is listen then you can.
My WG server which is on 192.168.6.1 als has DNSMasq running and my clients e.g. my phone has 192.168.6.1 as DNS server
Sure, almost all WireGuard Clients have a DNS setting and if you use the right IP address and if that IP address is reachable via the tunnel and the DNS server is listen then you can.
...
I think in recent builds DNSMasq is listening in on all interfaces if not you have to add in Additional DNSMasq options (X is the number of the tunnel/interface):
interface=oetX
Thank you @egc. My ddwrt router (v3.0-r49567 std (07/27/22)) has "Use dnsmasq for DNS" checked. My Wireguard tunnel has "DNS Servers via Tunnel" blank. Should this be filled in the with ip address of the ddwrt router, which is acting as a DNS server because of Dnsmasq?
I apologize for asking the following very basic question, but I'm still a newbie. When you say that I need to set the "DNS server in the client," do you mean in the WireGuard client, or do you mean elsewhere? And which DNS server do I need to point it to? I assume the IP address of the router to which the Home Assistant is connected (i.e., 192.169.1.1).
Joined: 18 Mar 2014 Posts: 12879 Location: Netherlands
Posted: Fri Aug 12, 2022 10:52 Post subject:
Cold-Lemonade wrote:
I apologize for asking the following very basic question, but I'm still a newbie. When you say that I need to set the "DNS server in the client," do you mean in the WireGuard client, or do you mean elsewhere? And which DNS server do I need to point it to? I assume the IP address of the router to which the Home Assistant is connected (i.e., 192.169.1.1).
Many thanks!
You can ask anything
All WG clients whether Android, Apple, Windows have a DNS server field just look at the configuration of your clients.
See the DDWRT WireGuard Server setup for examples or just look at your own configuration for your WG client
You can set any DNS server you want, I either use the DNS server from my network (which is DNSMasq running on my router e.g. in my case the router which is 192.168.6.1 so I set that as DNS Server address) or any other publicly available DNS server you trust (9.9.9.9, 1.0.0.1 etc.)