I'm wanting to establish a static route to a separate subnet, routing through a vpn. Debian linux.
Machine A: vpn IP 10.1.1.10 --> machine b (server) ip 10.1.1.2
Machine B: 3 network interfaces: eth0 LAN1 (172.x.x.x), tun/tap VPN (10.1.1.2), eth1 LAN2 (10.42.0.x).
Machine c: 10.42.0.10 (example)
Eth1 is a shared connection, allowing everything on the 10.42.0 subnet to access the 172.x subnet with iptables forwarding packets and NAT to eth0. Works great.
I want a machine A on the VPN network to be able to access the 10.42.0.x subnet. Basically a static route to 10.42.0.xx to route through 10.1.1.2 from a machine on the 10.1.1.x VPN network.