Add custom route to home assistant

Hi folks, I just discovered home-assistant few days ago and it’s a very cool swiss knife.
I installed ha os using the qcow2 image with proxmox.

Everything is working fine but I have a problem accessing my home assistant through openvpn. Here is my setup:

HA (192.168.10.240) <----> LAN GW (eth0:192.168.10.250 / tun0:192.168.20.2/24) <----> VPN (tun0:192.168.20.1/24) <----> ANDROID (tun0: 192.168.20.3/24)

I have multiple devices in my lan subnet and I can access them from my mobile. The problem is : ha os has a default route to docker subnet 172.17.X.Y (I guess it is, not really searched about).
I tried to add a route to 192.168.20.0/24 through 192.168.10.250 but it’s not allowed using the ssh integration. I think the ssh integration is a docker container and is isolated from ha os root.

When I connect locally to my ha os shell, it seems the ip route command is not working. It’s a bit confusing for me. Anyone already make it works to have a remote access ?

Regards,

1 Like

Ok, I found a way in details here : Add Static Route to Hassio on RPI3B+