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

    Pfsense being the gateway for another pfsense device

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    19 Posts 4 Posters 1.3k 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.
    • T
      templateunheard @KOM
      last edited by

      @KOM The internet is working in all its glory, back to the segregation rules.Pfsense main's client can't access the pfsense secondary device however the second pfsense's clients can access the main pfsense. is there any way I could deny that? I followed the rule above. screenshot:
      alt text

      (LAN of the main Pfsense device)

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

        Move your block rule above your VPN rule, and then go to Diagnostics - States - Reset States and reset them. Existing states aren't affected by a rule change.

        Actually hold on. Why do you have two different networks showing in your rule list? The Source for these rules should always be the network of the interface it's connected to.

        T 1 Reply Last reply Reply Quote 0
        • T
          templateunheard @KOM
          last edited by

          @KOM I've reset the table, here's the rules now:

          alt text

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

            Rules are evaluated top-down, first match wins, so rule order is important. You almost always want to put block rules above allow rules.

            T 1 Reply Last reply Reply Quote 0
            • T
              templateunheard @KOM
              last edited by

              @KOM I can still ping it from the client, does it have anything to do with the fact that it has to connect to the main pfsense device as a WAN that means I can't block it? or am I still missing something?

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

                Did you reset your states like I told you to?

                T 1 Reply Last reply Reply Quote 0
                • T
                  templateunheard @KOM
                  last edited by

                  @KOM Yeah, I did.

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

                    If you are trying to prevent users of pfsense2 LAN from accessing pfsense1 LAN/pfsense2 WAN, you need to put the rules on pfsense2's LAN tab, not pfsense1.

                    This would be less confusing if I had a clue about your network configuration details for WAN and LAN on pfsense1 and 2. I did ask for them earlier but you didn't reply.

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

                      So you have this

                      setup.png

                      Not sure which network you have were exactly..

                      But if you don't want 192.168.2/24 (bottom network) from talking to 192.168.1 you would block it on the lan interface of pfs2

                      You would have allow rule to talk to pfs2 lan addres for dns, ping for example on the pfs2 lan rules
                      Then you would have a block rule to 192.168.1/24
                      Then you would have a any rule to allow clients to talk to the internet.. Blocking 192.168.2 on pfs1 lan would be completely pointless and never happen, since pfs2 is directly connected to it.

                      edit: Ah @KOM beat me too it, but he didn't draw a pretty picture like I did ;) heheheh

                      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

                      NogBadTheBadN 1 Reply Last reply Reply Quote 1
                      • NogBadTheBadN
                        NogBadTheBad @johnpoz
                        last edited by

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