Hi there
I'm fighting with my OpenWRT to setup additional gateways on the same lan but have no more ideas how to go forward.
Short story: at my home place I have an TV Box. So to be able to watch content from other countries, I've installed two VMs with Debian and PureVPN as VPN client.
So whenever I want to change the country, I go in TV Box into Network settings and change the default gateway from 192.168.2.1 to 192.168.2.2 for Poland or 192.168.2.3 for Germany (see attached drawing).
So far everything works as expected.
Now I have another TV Box connected to OpenWRT router (192.168.8.0/24 Network). This router has an Wireguard client connected to my home network. All my gateways are 192.168.2.1, 192.168.2.2 and 192.168.2.3 reachable (ping, ssh), so the connectivity is not an issue.
The problem is, I would like to be able to change the countries on the other TV Box same way as on the main TV Box by changing the GW. because I'm in network 192.168.8.0/24 - I can't use 192.168.2.x as gateway.
I need to setup virtual GW on OpenWRT with IP 192.168.8.2 and 192.168.8.3 and route all traffic from these IP's to 192.168.2.x (GW 192.168.8.2 -> 192.168.2.2, 192.168.8.3 -> 192.168.2.3).
Any advice how to setup virtual GW and forward the traffic to another GW behind Wireguard VPN?
Thanks for any hint!