I have the following configuration:
- Linux machine with ip 10.0.0.99
- bridge over a virtual interface with ip 192.168.0.1
- linux in a lxc container over the bridge with ip 192.168.0.2
- vpn on the container with ip 172.xx.x.xxx
- the machines behind the vpn are in the network 10.232.10.0/24
I want to reach from the Linux machine the ips from the vpn
Why I tried: ip route add 192.168.0.0/24 via 192.168.0.1 dev bridge_lxc
ping/ssh works to 192.168.0.2
Tried to route the vpn network through 192.168.0.2: ip route add 10.232.10.0/24 via 192.168.0.2 dev bridge_lxc RTNETLINK answers: Network is unreachable
how can I route all the vpn network through the virtual machine inside the container?