bigmoby / addon-wireguard-client

Hassio Add-On Wireguard Client
MIT License
66 stars 24 forks source link

Connecting to HomeAssistant UI via WireGuard Client #29

Closed goooroooX closed 1 year ago

goooroooX commented 1 year ago

Hi!

I'm looking the way to connect to Home Assistance instance using WireGuard. Here is a scenario:

All the clients are successfully connected to WireGuard server running on VPS. All clients are able to cross-communicate (e.g. ping mobile from desktop and vice-versa).

Home Assistant's addons are running on separate docker containers, UI and WireGuard are completely separate, so when VPN is connected from addon container, I cannot access UI from other VPN client.

Can you please suggest the way to access Home Assistant UI in such a scenario? From network perspective this should be something like opening port on addon container that will forward requests to UI container on 8123, but I can hardly imagine how this can be achieved in HASS.

Thank you in advance!

PS: One more weird thing found: Home Assistant is unable to download update and access Internet in general, when addon is running.

tobiraak commented 1 year ago

I have the exact same issue. Could provide a solution please or a more detailed documentation? I am able to get a connection to my VPN Server running on a vserver but I cannot access homeassistant via the URL

bigmoby commented 1 year ago

I apologize for the delay in replying! Please take a look at this guide (unfortunately only in Italian) which I think is right for you. https://github.com/bigmoby/homeassistant_nat_network/blob/main/README.md And https://github.com/bigmoby/homeassistant_nat_network/blob/main/README_IT_part_2.md

goooroooX commented 1 year ago

This guide does not tell anything about Wireguard in docker - they are proposing to use wg on host-level. Anyway, it seems this addon is just a PoC without any actual usage scenario.

bigmoby commented 1 year ago

[...] Anyway, it seems this addon is just a PoC without any actual usage scenario.

Ipse dixit! ...ok, see you 👍