From my point of view, there's no way of doing this, but maybe someone can suggest me a workaround.
I have two companies that have a VPN between them, configured on a Mikrotik router. Subnets 192.168.1.0/24 and 192.168.2.0/24 and they are working fine.
I had to create a DHCP server(192.168.2.240) on my N2 company. I kinda have a small different subnet inside the company.
What I need is that when this "different subnet" goes to the internet, they pass through the firewall on my N1 company(192.168.1.10).
I created the routing table on my N2 company, but when I try to put the gateway for this routing table, I have the error:
ip route add table othernet default via 192.168.1.10 metric 100
RTNETLINK answers: Network is unreachable
That is very natural, since this DHCP server is not on the same subnet, but there is a way of doing something like this?
I know that if I configure a VPN directly between these two hosts(002-DHCP,001-Firewall) I can make this happen, but I would like to do it only with routes configured on these both Linux.