Open snipah opened 1 year ago
Mine works fine on homeassitant, use it all the time. I do not use a POST-UP/POST-DOWN, just the default. Try that first.
If you refresh the addon store, and re-install the addon, the WG_DEVICE can be set.
Already tried all I could think of and of course left post-up and -down default.
ok. If you refresh the addon store, and re-install the addon, the WG_DEVICE can be set.
Thanks! Tried it, but it still did not work. Will have to look into it later.
I think, the pre-up kept the eth0, even though I deleted all the files.
iptables -t nat -A POSTROUTING -s 172.16.3.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
The original docker is using WG_DEVICE to configure the network device. My host machine is using eno1 as network device which works great for my current wg-setup.
Address = 172.16.3.1/24 SaveConfig = true PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eno1 -j MASQUERADE ListenPort = 51820
Your add-on is not working for me, as no data is incoming. I assume, the network-device is the problem. Home Assistant also uses eno1 as network device according to the settings shown in setting/ system/network.