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

    single WAN /27 ip block multiple PFSense routers

    Scheduled Pinned Locked Moved NAT
    11 Posts 4 Posters 783 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.
    • J
      jcampbell
      last edited by

      Hi, I have a situation that I need some help with. I have a /27 WAN at a datacenter and a virtual host hosting multiple virtual networks. Each virtual network has a virtual PFSense with it's own public IP address. This has worked fine for some time now but now, the virtual networks need to be able to access a resource on one of the other virtual networks. Since their public IP addresses are on the same block, I can't get them to look at the other networks. in the attached picture, Router1 has a web server behind it that the network behind Router2 needs to access. Is this possible?

      Screenshot 2023-03-20 at 3.26.56 PM.png

      V johnpozJ 2 Replies Last reply Reply Quote 0
      • V
        viragomann @jcampbell
        last edited by

        @jcampbell
        You need to add static on both routers.
        On each router add the IP of the other as gateway (System > Routing > Gateways).
        The add a static route for the network behind the other and state the other router's as gateway.

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

          @jcampbell so these are all doing nat? And the the devices behind router 2 need to access it via what the public IP that you forward to the web server or will it access it via the rfc1918 address?

          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

          J 1 Reply Last reply Reply Quote 0
          • J
            jcampbell @johnpoz
            last edited by

            @johnpoz It needs to be able to see it via the public IP of router1.

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

              @jcampbell Well that should just work out of the box..

              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

              J 2 Replies Last reply Reply Quote 0
              • J
                jcampbell @johnpoz
                last edited by

                @johnpoz That is what I thought but I can't get it to work. From any of the other networks. And I think it is because they all have the same gateway since they are on the same WAN subnet. But, I am just guessing.

                S 1 Reply Last reply Reply Quote 0
                • J
                  jcampbell @johnpoz
                  last edited by

                  @johnpoz actually, after look at the logs from the web server, it did work out of the box and has stopped working. The web server is accessible everyone else, just not from these virtual networks. Strange.

                  1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @jcampbell
                    last edited by

                    @jcampbell Is there something in the virtual switch that is isolating them? If you allow ICMP from the other routers can you ping or traceroute?

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jcampbell @SteveITS
                      last edited by

                      @steveits I cannot ping the WAN interface on Router1 from any machine in the network of Router2 or Router3 but can from anywhere else outside the virtual environment. The virtual setup is pretty simple. Using Hyper-V with physical port on each WAN virtual switch on each virtual router, then the virtual switch for each LAN is private. Also, from the network behind router1, I cannot ping router2 or 3 so this is blocked in both directions. Not sure what changed other than updating PFSense to 2.6.0 recently.

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

                        @jcampbell said in single WAN /27 ip block multiple PFSense routers:

                        Not sure what changed other than updating PFSense to 2.6.0 recently.

                        That would have zero to do with anything.

                        If x.x.x.3/27 can not ping x.x.x.1/27 in the same network.. And you have icmp allowed on router1 wan interface the problem is in your network they are a part of.. Do you see the mac address in your arp table router 2 or 3?

                        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

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jcampbell @johnpoz
                          last edited by

                          @johnpoz figured it out. It was as stupid thing I did to try to remember the public IPs I had given the virtual networks. I set them up as virtual IPs and labeled them Do Not Use thinking it would just be a place holder that would not matter unless I created a NAT policy with them. But, apparently it does matter. After I deleted those virtual IPs, all traffic came back and web access resumed.

                          I'm an idiot. Thanks for your assistance!

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