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

    [SOLVED] 2 pfsenses and static routing

    Scheduled Pinned Locked Moved Routing and Multi WAN
    7 Posts 3 Posters 1.2k 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.
    • M
      Mepel
      last edited by

      Hello,

      I just started a new job recently, and they are having me setup a new network. i'm pretty new to pfsense but i have done a ton of googling and more to try to find out a solution for my issue and no luck.

      So, i have an esxi server with two pfsense and each has a lan network on it. my boss asked me to setup that way. i'm open to ideas of how i should do it. i've messed around with vlans but he doesn't want me to mess with the switch unless i'm 100% of what i'm doing and i don't. he said he's done this in the past and used static routing. he's not sure how he did it. i have the two networks completely connected to wan and i just need to connect the two wan. they are both in the same esxi server. i just can't ping back and forth on them. both have different wan addresses as well. i'm not 100% what to do right now. i'll take any suggestions.

      Pfsense1: 10.10.10.1 –--> Servers
      esxi--->
                  Pfsense2: 10.20.10.1 ---> Workstations/wireless

      sorry if i posted this on the wrong board as well!

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

        I would do that with only one pfSense with two LAN interfaces, but if your boss want to set it up this way…

        Add an additional NIC to each pfSense and a virtual switch in ESXi and connect the new NICs to it. Give them IP addresses in a separate subnet so that they can talk together.
        On each pfSense add the IP of the other box as gateway in System > Routing > Gateways and set a static route for the other LAN directing to this GW.
        Also add firewall rules on both boxes to the new interfaces to allow the traffic.

        It would also be possible to route the traffic over the WAN interfaces, but that's not recommended.

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

          Im with viragomann - why are you doing this with 2 pfsense?  1 pfsense vm can have multiple lans and multiple wan connections.  I don't see the point of doing 2??

          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
          • M
            Mepel
            last edited by

            @viragomann:

            I would do that with only one pfSense with two LAN interfaces, but if your boss want to set it up this way…

            Add an additional NIC to each pfSense and a virtual switch in ESXi and connect the new NICs to it. Give them IP addresses in a separate subnet so that they can talk together.
            On each pfSense add the IP of the other box as gateway in System > Routing > Gateways and set a static route for the other LAN directing to this GW.
            Also add firewall rules on both boxes to the new interfaces to allow the traffic.

            It would also be possible to route the traffic over the WAN interfaces, but that's not recommended.

            i'm open the two different lans on one box. i may be able to convince him. is it possible to put 2 wans on one pfsense? i think thats the only draw back that he has from what i gathered.

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

              Yes, it is. johnpoz mentioned that above.

              https://doc.pfsense.org/index.php/Multi-WAN

              1 Reply Last reply Reply Quote 0
              • M
                Mepel
                last edited by

                my server only has 2 nics, should i just create 3 vnics? and then use 2 on the lan switch for having two lan networks on one? and will i need to do trucking or whatever?

                1 Reply Last reply Reply Quote 0
                • M
                  Mepel
                  last edited by

                  nvm got it! thanks for the help :D

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