I am trying to route a remote gateway so it can be used on the LAN to assign public IPs from a remote network. I have partially succeeded with some hacking around but cannot fully achieve what I want.
LAN A needs to use the remote gateway of WAN B.
Router on LAN A: br0 192.168.20.8 br0:0 188.8.131.52 (not the real IP of course). tap0 (OpenVPN tunnel attached to br0 bridge)
- Client's on LAN A need to use 184.108.40.206.
- Router on LAN needs to route packets for 220.127.116.11 through tap0
The problem is that Linux sees 18.104.22.168 as local and source based routing has failed to work so far.
I am fine with using iptables or source based routing tables if anyone can show me the solution.
Thanks for your help everyone!