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

    Access opt1 from another pfsense

    Routing and Multi WAN
    2
    8
    804
    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.
    • G
      gjaltemba
      last edited by

      pfSense1 is configured with open access for lan 192.168.1.1 and opt1 192.168.100.1
      pfSense2 is on the same lan subnet 192.168.1.2.

      How do I setup pfSense2 access to opt1 using 192.168.1.1 as gateway?

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Can you explain in more detail what it is you're trying to do?  If you just want pf2 to use pf1 as its gateway then set that in your WAN config.  As long as LAN can access OPT1, clients behind pf2 should be able to as well.

        1 Reply Last reply Reply Quote 0
        • G
          gjaltemba
          last edited by

          pf1 wan is connected to isp1
          pf2 wan is connected to isp2
          pf1 lan and pf2 lan are on the same switch 192.168.1.0/24
          opt1 192.168.100.0/24 is only connected to pf1
          opt1 is accessible from pf1 lan 192.168.1.1

          I want to also access opt1 from pf2 lan 192.168.1.2.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            I think you have to add 192.168.1.1 as a gateway under System - Routing - Gateways.  Then, using System - Routing - Static Routes, you can add a route for the OPT1 network using 192.168.1.1 as the gateway.

            1 Reply Last reply Reply Quote 0
            • G
              gjaltemba
              last edited by

              It does not seem to work if I add the 192.168.1.1 gateway using the lan interface. If I traceroute from the client, it just goes out the wan. Traceroute from pf2 shows first hop to 192.168.1.1 and then nothing.

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                From console, what is the output of netstat -nr?

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  OK I just simulated it in my lab.  It works like a charm.  I spun up two nodes: pf1 on 192.168.1.1/24 and pf2 on 192.168.1.2/24.  pf1 also had OPT1 at 192.168.10.1/24.  Spun up two Lubuntu clients on pf1 OPT1 and pf2 LAN.  Lubuntu2 @ 192.168.1.10 could not ping Lubuntu1 @ 192.168.10.10.  After adding 192.168.1.1 as a gateway for pf2, I added the static route and then I could ping (see image).

                  staticroute.png
                  staticroute.png_thumb

                  1 Reply Last reply Reply Quote 0
                  • G
                    gjaltemba
                    last edited by

                    I put a packet capture on pf1 lan and see traffic coming from pf2 but then nothing. There must be something wrong with the way I have the network wired up.

                    Thank you for your help with my routing problem.

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