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

    One WAN. Two LAN's.

    Scheduled Pinned Locked Moved Routing and Multi WAN
    7 Posts 3 Posters 583 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.
    • E
      epretorious
      last edited by epretorious

      Hello, All:

      OVERVIEW
      I'm using 2.4.4-RELEASE-p3 (amd64) on my home gateway system. The gateway has 5 network ports:

      • One functions as the External Interface (WAN): em4.
        This interface is configured via my ISP's DHCP.

      • Two of the other ports function as the Internal Interfaces (LAN &OPT1): em0 & em1.

      • One services my Household Network (LAN:192.168.1.1/24).
      • The other services my Lab Network (OPT1:172.16.0.1/24).

      PROBLEM STATEMENT
      I'm able to go from the Household Network to the Lab Network. But I'm not able to go from the Lab Network to the Household Network or to the Internet.

      CURRENT STATE
      The Household Network (LAN:192.168.1.1/24) works correctly:

      • DHCP works correctly (192.168.1.1/24).
      • DNS works correctly (192.168.1.1).
      • I'm able to reach the hosts and services across on Internet (WAN).
      • I'm able to reach hosts and services on the Lab Network (OPT1:172.16.0.1/24).
      • When I sign-in to any of the systems in the Lab:
      • The source address shown by the /usr/bin/netstat command is the IP address of my computer (192.168.1.101).
      • The /usr/bin/w & /usr/bin/who commands both display the IP address of my computer (192.168.1.101).

      But the Lab Network only works partially:

      • DHCP works correctly (172.16.0.1/24).
      • DNS does not seem to work (172.16.0.1).
      • I'm not able to reach the DNS service of the gateway (192.168.1.1).
      • I'm not able to reach any hosts or services on the Household Network (192.168.1.1/24).
      • I'm not able to reach any hosts on the Internet (WAN).

      DESIRED STATE
      I'd like to be able to go from either of the Internal Interfaces (LAN &OPT1)...

      • to the other Internal Interface
      • to the Internet

      Is there and important configuration step that I've missed?

      Eric P.
      Sunnyvale, CA

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @epretorious
        last edited by

        @epretorious said in One WAN. Two LAN's.:

        Is there and important configuration step that I've missed?

        Fireall rules which allow the desired acceess?

        By default pfSense has an allow any to any rule on LAN, so from LAN network it allows access to any destionations.
        But if you add additional interfaces you have to add firewall rules to it by yourself to allow traffic coming in that interface.

        1 Reply Last reply Reply Quote 2
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          @viragomann said in One WAN. Two LAN's.:

          you have to add firewall rules

          This ;) dhcp will work because when you enable dhcp on an interface pfsense auto adds hidden rules for dhcp to work. But nothing else would be allowed..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 1
          • E
            epretorious
            last edited by

            Thank you, both, for your insight!

            I've used the "Default allow LAN to any rule" as a template and created a similar rule for Internal Interface that services the Lab Network (OPT1: 172.16.0.1/24) and that seems to have solved my problem!

            Eric P.
            Sunnyvale, CA

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Yeah that will allow you to route, but not do any sort of firewall between your networks - is that something you looking to doing?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              E 1 Reply Last reply Reply Quote 0
              • E
                epretorious @johnpoz
                last edited by

                @johnpoz said in One WAN. Two LAN's.:

                Yeah that will allow you to route, but not do any sort of firewall between your networks - is that something you looking to doing?

                I'm not too worried about separating the two. But maybe I should be...

                Eric P.
                Sunnyvale, CA

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  If your not worried about them talking to each other, since you have any any rules - what is the point of multiple segments in the first place? ;)

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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