Same here… Latest updates of Home Assistant break Wireguard addon. Wireguard was working well in past, but now, connection is established but cannot access internal network or Home Assistant.
As it was working as addon, I would not like to start to install it into Debian directly (I am not IT wizard).
Has some one solution to make Wireguard to work again?
Just going to share this tip in case it helps anyone else.
I was having trouble with WireGuard, even after fixing the DNS IP. In my case, I discovered the guest network I was on was blocking port 51820, so I had to forward a different port to get VPN to work.
hi,
i haeve the same problem, brand new homeassisant installation on raspberry, wireguard connect but i don’t have any connection with lan devices or internet
anyone have solved?
Hi, I had the same last weekend, changed the port and then it worked - might have been specific to my network setup but since the same solution was also successful for @apop maybe not a coincidence
Yes, from internal LAN it works.
I don’t think its port forwarding unless i need other port than 51820 udp
from the registry i can see that my phone is connected from internet ip
[15:34:15] INFO: Requesting current status from WireGuard…
interface: wg0
public key:
private key: (hidden)
listening port: 51820
peer: gCgeumyoR94O08X+VL+h17MvXl4BOCFp+oRmrpLsUis=
endpoint: 5.168.29.191:19361 <---- internet ip of my phone
allowed ips: 172.27.66.2/32
latest handshake: 7 seconds ago
transfer: 1.52 MiB received, 7.71 MiB sent
persistent keepalive: every 25 seconds
The fact that the LAN test works means that the WireGuard add-on is functioning and so the issue must be somewhere in your traffic-routing. It takes a lot of info about your network config to debug that, for example:
Is it a single router hop from WAN to WireGuard?
If not, is your “middle router” configured correctly?
If you have an option ‘Enable auto firewall (automatically open ports for specified port forwarding rules)’?
If so, is it disabled and did you forgot to configure your firewall?
Remember that UDP is stateless, so “allow established” won’t work.
Did your public IP change and is your forwarding some how influenced by that?
Did you do any firewalling on your Home Assistant host that prevents connecting from a certain IP address/range?
And so on…
Your network config is a different story than the add-on not working and it seems that your add-on is working just fine.
Changed min to be 0.0.0.0/0, 192.168.0.0/24 and now I can access the web and my entire network… Weird how this is only needed on my iOS devices but not my wife’s android. But you solved my issue that I have been working on for days.
I have problem with Adguard when connected thru Wireguard
When i am on my wifi adguard works ok, but when i go thru Wireguard from outside adds are there
in dns i putt ip of my HA(adguard is on my computer on HA) and 172.30.32.1
server:
host: my.duckdns.org
addresses:
- 111.11.11.1
dns:
- 172.30.32.1 ----WHAT TO PUTT HERE
- 192.168.2.200 ------WHAT TO PUTT HERE
peers:
- name: Mi9T
public_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
addresses:
- 111.11.11.2
allowed_ips: []
client_allowed_ips: []
Alright, so i got wireguard working and i CAN browse from my iphone to https://homeassistant.local:8123 where Safari does show invalid cert error(because homeassistant.local is not mydomain.duckdns.org), but still allows me to browse through.
My problem is that HA Companion app for IOS does not allow you to login when using https://homeassistant.local:8123 when Wireguard is running
I would like to avoid forwarding port 8123 from the interwebs to my HA instance, I was hoping having a VPN such as wireguard would help me.
How do you folks securely make your HA instance accessible via HA Companion IOS app when not at home?
I’ve got this excellent add-on more-or-less running as I’d like, but I’m having trouble accessing a Linux client from the LAN side.
Server: rpi running Home Assistant OS 6.1 / core-2021.7.2 / WG addon 0.5.1.
Client (FWIW): laptop running Ubuntu 21.04.
Server and client configs are set out below.
I’ve set the client up to access LAN addresses through WG, but to connect directly to other internet addresses (hence the “AllowedIPs”).
This seems to work from the client’s perspective. I can access all machines on the LAN from the laptop, and it’s connecting directly to websites (as indicated by, among others, speedtest).
The problem is, I can’t access, or ping, the client, from the LAN.
I can ping it from the WG container using Portainer …
… but I can’t do so from the core or host terminals, nor from other machines on the LAN.
I wonder if this is a routing issue (possibly between HA OS and the WG Container?), rather than the WG settings necessarily, but at this point I’m a bit lost for ideas.
I’m using the wireguard add on together with my pi-hole, so that I have on my mobile network an adblocker as well.
It works quite well.
The only thing, in pi-hole I see for all devices the same IP as soon they are connected via wireguard.
It is working already… was forgotten to put the API part on in the add-on.
Changed it to a different port then 80 and add the port behind the resource link
Hello WireGuard Experts, basically I do have Wireguard running fine, but I would like to extend it to support ipv6. But I cannot get this to run:
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 172.xx.xx.1/24 dev wg0
[#] ip -6 address add fd00:xx::1/64 dev wg0
RTNETLINK answers: Permission denied
[#] ip link delete dev wg0
[13:37:06] INFO: Requesting current status from WireGuard...
I am trying to configure Home Assistant (on a raspberry Pi) with Wireguard in Order to connect to my Phone and Notebook while on the go. Since my ISP does not allow me to open any ports I instead tried to use Wireguard on a rootserver I already owned. I succeded in connecting my Notebook and Home Assistant to the VPN and successfully pinged the raspberry pi from my Notebook, but when I try to Access Home Assistant over the VPN I don’t get a Connection. My Setup is as followed:
Home Assistant: