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

    Dual WANS and Gateway Question

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 4 Posters 2.4k 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.
    • W
      Wasca
      last edited by

      Hi

      I'm planning on setting up a PFSense 1.2 Firewall and have a quick question about the Gateway options in the Interface setup.

      In my setup, WAN is an ADSL2+ connection, I'm going to get PFSense to do the PPP connection and have the ADSL2+ modem in bridged mode. OPT1 (WAN2) is a static IP, 10Mbit symetrical connection. I also have a LAN, and OPT2 subnets.

      By default do all LAN clients use the WAN interface to get on the internet? and if I wanted all the LAN clients to use (OPT1)WAN2 how would I do that? My first guess is via the LAN Firewall Rules, is that correct?

      Next, how would I make sure that all the OPT2 clients use the WAN connection to get on the internet? Do I simply type in the next hop router IP of my WAN (ADSL2+) connection. i.e. my ISP's router?

      Thanks

      1 Reply Last reply Reply Quote 0
      • P
        Perry
        last edited by

        By default do all LAN clients use the WAN interface to get on the internet?

        Yes because the default rule is set to use the default gateway *

        if I wanted all the LAN clients to use (OPT1)WAN2 how would I do that? My first guess is via the LAN Firewall Rules, is that correct?

        Yes change the gateway to WAN2

        Next, how would I make sure that all the OPT2 clients use the WAN connection to get on the internet? Do I simply type in the next hop router IP of my WAN (ADSL2+) connection. i.e. my ISP's router?

        Add a LAN2 net rule with the default gateway.

        You might need System -> Static Routes

        WAN      WAN ISP DNS 1      WAN gateway
        WAN      WAN ISP DNS 2      WAN gateway
        WAN2    WAN2 ISP DNS 1      WAN2 gateway
        WAN2    WAN2 ISP DNS 2      WAN2 gateway

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • S
          sai
          last edited by

          @Perry:

          You might need System -> Static Routes

          WAN      WAN ISP DNS 1      WAN gateway
          WAN      WAN ISP DNS 2      WAN gateway
          WAN2     WAN2 ISP DNS 1      WAN2 gateway
          WAN2     WAN2 ISP DNS 2      WAN2 gateway

          I have been playing with static routes and it seems to me that it doesnt matter which interface you set on the static route. the routing table looks the same.

          could any one comment on this pls? did I miss something?

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by

            Can you show us what you did and what looks the same? Some ISPs have their dns servers directly in the same subnet like the IP that you get from them. In that case no route is needed of course.

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