Multiple home and static routing



  • Hi all,
    I've got a setup with the WAN, LAN and OPT1 interfaces. The WAN has a default gateway to access and expose internet services, the LAN has another gateway configured with static routes to connect to a remote LAN, and the same should happen on the OPT1. The schema is the following:

    WAN -> wan_router
    LAN (192.168.4.0/24) -> VPN router -> 192.168.1.0/24
    OPT1 (192.168.44.0/24) -> ?

    I'd like to have the OPT1 network to be routed to all the static routes of the LAN, as the LAN interface can work as default gateway of the OPT1 interface for all traffic that is not directed to the internet directly (i.e., is not directed to the WAN interface).
    I've allowed the traffic to bypass firewall rules on the same interface, and I have at the moment a policy that allows every kind of traffic to go thru the interfaces. I cannot add a static route on the OPT1 interface to the 192.168.1.0 network since there is already a static route for such network on the LAN interface.
    How can I get the OPT1 interface routed to the VPN router and therefore to the 192.168.1.0 network?



  • To make it simpler to understand, I've done a diagram with the main setup.

    Now, the 192.168.4.0 network on the LAN interface has a static route to 192.168.1.0 via 192.168.4.245, I'd like to have the same for the network 192.168.44.0, that is a connection to the 192.168.1.0 via 192.168.44.245 but the system says that I cannot add a static route to the 192.168.1.0 network since there is already one. But the interfaces are different!



  • Rebel Alliance Developer Netgate

    It's not yet possible to have multiple paths to reach the same destination network in that way, even if they are all internal.

    You might be able to pull this off if all of the involved routers can run some kind of dynamic routing protocol (RIP? OSPF? BGP?), but someone else may have to chime in on that if it's even possible.


Log in to reply