Thankyou for this great addon, and keeping it updated!
I’ve moved my installation from Hass.io to Raspbian with supervised ha. I did this to get the RPi4 to boot from the SSD.
After doing this, the wireguard doesn’t work at all. There is no firewall active on the raspbian. It won’t even ping the homeassistant itself.
As soon as I start the tunnel the ping shows “General failure”, as soon as I close it again, the ping replies.
I’m not sure if it’s supposed to look like this, but when looking at the routes of the PC (client) with the ‘FullVPN’, I see two default gateways (0.0.0.0), one is pointing to the LAN’s gateway, and the other to the vpn ip.
Do you have any input on this?
Probably somewhere in this lengthy thread there is an answer to my question but I it isn’t obvious. I am running WireGuard and AdGuard plugins both on the same server. I have the DNS set to 172.30.32.1 and I can resolve everything just fine–including Ads. The ads are not being blocked in this config. On my internal network, my DNS server is set to 172.16.1.104 which blocks ads. I tried setting the WireGuard DNS to 172.16.1.104 but nothing resolves. The 172.30.32.1 is the correct IP according to the docs so why doesn’t it block ads?
Somebody knows if it is possible that the wireguard client get the public IP of the wireguard server when connected ?
By example. on my cell phone my public ip is 24.124.143.46 (coming from my carrier).
When I connect a third party VPN via OpenVPN, my IP change to the one coming from the OpenVPN server.
When I connect to my wireguard server, I still have my carrier ip 24.124.143.46 rather than the one from my wireguard server.
HI @frenck,
Is it possible to add the capability to your addon to work as both a “server” or a “client”? Connecting HA instances via VPN is a really useful thing to do. ZeroTier is good but uses a lot of data just keeping the connection alive. Wireguard would be prefect if you could make your remote instance behave like your phone or device.
If I understand it correctly, if I already have a paid VPN service (on my phone for instance), this addon is not for me, right ?
Or will it allow me to access other devices on my home network as if I was home myself ?
ok, but I can only have one at once so if I use one I have to disconnect from the other that’s what I wanted to say by saying “have to choose”
Are some of you only connecting to HA through the Wireguard add-on and have totally removed external access via HTTPS ?
No not with WireGuard. WG “server” needs a duckdns address or similar to resolve your IP. Have a look at ZeroTier. That will run fine without a duckdns address and you can setup multiple networks to access your instance.
Just tried this, and everything appears to act as expected, except for no data being transferred on my phone. this is my setup, i added google dns as i suspected the pi-hole dns could be the issue:
anything obvious here? the ip range is 192.168.1.x in m local network. This is from the log
[14:05:57] INFO: Requesting current status from WireGuard...
interface: wg0
public key: trololololololohahaha
private key: (hidden)
listening port: 51820
peer: trololololololohahaha-no1
endpoint: 77.18.51.214:14889
allowed ips: 10.10.10.2/32
latest handshake: 1 minute, 50 seconds ago
transfer: 101.38 KiB received, 15.41 KiB sent
persistent keepalive: every 25 seconds
peer: trololololololohahaha-no2
allowed ips: 10.10.10.3/32
persistent keepalive: every 25 seconds
EDIT: Removed the DNS server, and now it works, but obviously doesn’t block ads. In the Pi-hole add-on, i keep seeing 200 192.168.1.1, 172.30.32.1(172.30.32.2) GET ..., which makes me think that 172.30.32.1 should be correct. Yes, I do re-scan the qr code, and Private DNS is turned off. Anybody?
Now that I am connected and there is traffic in the add-on log does this mean that everything is going through WireGuard and is now secure including surfing the web?
Do I still need all these ports to be forwarded on my router for things like Configurator (port: 3218), Influxdb (port: 8086) and Node-Red (port: 1880)?
Any answers to these questions would be great as I want to keep my HA as secure as possible.
Is there any way to configure this add-on also as site-to-site vpn? I need to connect my HA server to other location’s LAN over internet to integrate smart devices and HUE bridge there with my HA. So I’m curious that can I do it via this add-on or do I need full WireGuard installation on both locations? Any help and advice is highly appreciated, thanks!
Anyway, this add-on is already awesome and I love it with my smartphone. There is only one dilemma for me though: I’m using an Android smartphone and WireGuard app doesn’t have on-demand option on Android. I don’t have NAT hairpinning / loopback option with my router either, so is there any wise configuration how I make it work also within my wifi network without toggling the tunnel on/off every time when I connect/disconnect my wifi? I use AdGuard as well and want to use it all the time, so now I just keep my smartphone disconnected from wifi and vpn tunnel always on to get everything routed as needed. I would prefer wifi though because it consumes less battery on the phone.