Routing between 2 links

  • I am setting up a network with 2 pfsense machines. The main pfsense is acting as a NAT/firewall/VPN for multiple LANs in a business. The other pfsense is going to serve multiple LANs as well, but it will sometimes be connected directly to the main pfsense and sometimes over vpn.

    Here is a sketch of the network LANs and link interfaces. –---|                  | Public IP -----| Mainpfsense | tun0: (Openvpn site2site) -------|                  | opt1: (LAN link)|                    | tun0: (Openvpn site2site)|Mobilepfsense  | opt1: (LAN link)
                                                |  Public IP

    The mobilepfsense is in a bus that is sometimes parked and connected through LAN link network ( and sometimes through openvpn link network (

    I need to make routing work between the different LANs so that it routes throgh the LAN link when connected to it and vpn when not connected to the LAN. Static routning with metrics doesn't work right? So I thought of dynamic routing. I tried ripv2 but that didn't work well. I tried to run OSPFd on the the LAN link and tunnel interfaces, and that kind of works, but there seems to be some kind of problems. (maybe a misconfiguration...)

    Is there some other way that I may have missed? This shouldn't be so difficult to accomplish.

    Communication works fine on all links, it's just the routing that I have an issue with...

    Any help appreciated. Thank you.

Log in to reply