I'am wondering how to forward traffic from a gateway to a subnet.
I have this working setup. Host A, HOST C, and HOST VPN have interfaces from internal network IP addressing and communicate between each other. In host B i have run an OVPN client.
I added route for HOST A, HOST C like:
ip route add 10.8.0.0/24 via 10.0.10.103
And this resolved problem with ping to HOST B.
Now I want to ping from HOST B all machines from address 10.0.10.0/24 between interface tun0 and interface ens19 with address 10.0.10.103 and forward this traffic for HOST A, and next forward this traffic for other VM's.
From HOST B I can ping 10.0.10.103 and 10.8.0.0/24, From host A,C,VPN I can ping 10.8.0.0/24, but from Host B i can't ping 10.0.10.0/24
TCP dump, traceroute from Host B to Host A,C is ending in Host VPN.
I tried different settings with routes and IPTables, but it did not work. Please help me ;x