Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    4 NIC pfSense with two LANs using two WANs separately per LAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      apiening
      last edited by

      Hi there,

      I have a 4 NIC box running pfSense 2.3.4 with
      => 2 LANs
      => 2 WANs from different ISPs connected with DHCP to different routers

      I want LAN1 to use WAN1 and LAN2 to use WAN2.
      No failover or load balancing. LAN1 does not even need to talk to LAN2, however it is not necessary for them to be really separated.

      To put this in to perspective: WAN1 is fast, but we have issues with latency on VoIP calls. That's why we now have WAN2 which is slower, but the latency is much lower.
      I've created a separate VLAN on the switch for our VoIP phones and connected them to a separate LAN Port on the pfSense box.

      My attempt was to configure the DHCP server on LAN2 so that the Router on WAN2 is given as a gateway.
      But I'm not able to save this setting since the DHCP form complains that the gateway is not in the subnet of the interface LAN2. This is of course true, but hat was on purpose.

      Is there a way to overcome this or a better way to achieve my goal?

      Kind regards

      Andreas

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Policy route LAN1 out to the WAN1 gateway using the pass rule on LAN1

        Policy route LAN2 out to the WAN2 gateway using the pass rule on LAN2

        https://doc.pfsense.org/index.php/What_is_policy_routing

        You can skip this for whichever WAN is the default gateway as long as you do not have default gateway switching enabled.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • A
          apiening
          last edited by

          Hi Derelict,

          thank you very much for your reply!
          Your solution looks promising, I will check that out!

          Kind regards

          Andreas

          1 Reply Last reply Reply Quote 0
          • A
            apiening
            last edited by

            Hi Derelict,

            just wanted to let you know that I implemented your solution and it worked right away.

            Thank you very much!

            Andreas

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.