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 br0:0 (not the real IP of course). tap0 (OpenVPN tunnel attached to br0 bridge)

  1. Client's on LAN A need to use
  2. Router on LAN needs to route packets for through tap0

The problem is that Linux sees 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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.