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

    Two pfsense boxes walk into a bar...

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 4 Posters 2.3k Views 4 Watching
    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.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator @EveningStarNM
      last edited by johnpoz

      @eveningstarnm Your traffic flow is asymmetrical

      asymetrical.jpg

      You should connect your 2 pfsense via transit network.

      transit.jpg

      If your going to nat on your downstream router, then you would use port forwarding and anything you want to access on the downstream network wouldn't be routed, your 172 devices would access your 192 devices by hitting the 172.16.0.13 address and be port forwarded.

      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

      EveningStarNME 1 Reply Last reply Reply Quote 2
      • EveningStarNME Offline
        EveningStarNM @EveningStarNM
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • EveningStarNME Offline
          EveningStarNM @johnpoz
          last edited by

          @johnpoz Yes, the traffic is asymetrical. LAN1 accepts inbound internet traffic. LAN2 does not. It is a client of LAN1, with access in both directions filtered through LAN2's pfsense. It's a common configuration, which is often described as a LAN with a DMZ and an auxiliary ISP. Our network was designed to fit our use-case. The problem you solved was for a different network, and wasn't related to ours.

          The cause of the problem turned out to be an ethernet cable that had one wire with exceptionally high resistance. I hadn't noticed the high latency because I had disabled monitoring of the LAN1 gateway by LAN2. I keep forgetting Step One: Check the cables.

          A johnpozJ 2 Replies Last reply Reply Quote 0
          • A Offline
            aduzsardi @EveningStarNM
            last edited by

            @eveningstarnm said in Two pfsense boxes walk into a bar...:

            The cause of the problem turned out to be an ethernet cable that had one wire with exceptionally high resistance. I hadn't noticed the high latency because I had disabled monitoring of the LAN1 gateway by LAN2. I keep forgetting Step One: Check the cables.

            can you please elaborate on that ? i'm curious about how did you came to this conclusion and what does "exceptionally high resistance" mean
            thank you!

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

              @eveningstarnm said in Two pfsense boxes walk into a bar...:

              Yes, the traffic is asymetrical. It's a common configuration,

              No its not - not if you want stuff to work..

              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
              • stephenw10S Offline
                stephenw10 Netgate Administrator
                last edited by

                Yes, I would expect to see problems with an asymmetric network like that. You would need, at a minimum, a bunch of work-around rules to allow the traffic to pass.
                Using a transit subnet between the two routers is much nicer configuration.

                Steve

                johnpozJ EveningStarNME 2 Replies Last reply Reply Quote 0
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator @stephenw10
                  last edited by johnpoz

                  @stephenw10 said in Two pfsense boxes walk into a bar...:

                  a bunch of work-around rules

                  Exactly.. Sure you could run a downstream router/firewall like your doing. But you would either need to host route on every device in the transit network 172.16/16 in your case so your not bouncing downstream destined traffic off pfsense 1 and creating asymmetrical flow with a state that will never see any return traffic.

                  Or you need to nat at the downstream and port forward at pfsense2 and access resources in the downstream network via hitting 172.16.0.13.. So now pfsense 1 never sees the traffic and is not involved in those conversations.

                  You might be able to get away with doing some sort of source nat at pfsense1 and sending the traffic on to pfsense2 looking like it came from pfsense 1 IP..

                  There is also the problem with traffic initiated by the downstream network to a 172.16.x.x host where pfsense would never see the syn, so not state and when the device answers back sending traffic to pfsense (syn,ack) this would be denied.

                  When you connect routers, they should be connected with a transit network (no hosts on this network).. Now no host routing, no work a rounds.. Just simple basic routing and firewall rules and no concerns of asymmetrical flow.

                  I get that such a configuration might be "common" - but its borked..

                  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
                  • EveningStarNME Offline
                    EveningStarNM @aduzsardi
                    last edited by

                    @aduzsardi During, my tests, as I was reconfiguring parts of the ethernet network, I noticed the insulation on one cable attached to the pfsense box had pulled out of the CAT-5 connector. I replaced the cable, and everything started working. Immediately. A connection should have been lost a few seconds later, then reconnected, but there were no problems at all, even though nothing else I did had made a dent in the problems. So, delighted to have a semi-legitimate reason to fire up my Fluke 8808A, I tested each wire in the cable. Blue tested something in megaohms. It was an old cable.

                    1 Reply Last reply Reply Quote 0
                    • EveningStarNME Offline
                      EveningStarNM @stephenw10
                      last edited by

                      @stephenw10 Have you ever seen a private network connected as a client to another?

                      I really don't understand why this configuration appears to be so strange to some. Perhaps if I'd re-arranged the figures, it would have been more recognizable as an exercise in some CS200-level class.

                      johnpozJ stephenw10S 2 Replies Last reply Reply Quote 0
                      • johnpozJ Offline
                        johnpoz LAYER 8 Global Moderator @EveningStarNM
                        last edited by

                        @eveningstarnm said in Two pfsense boxes walk into a bar...:

                        really don't understand why this configuration appears to be so strange to some.

                        I showed you in the picture! It is asymmetrical!

                        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

                        EveningStarNME 1 Reply Last reply Reply Quote 0
                        • stephenw10S Offline
                          stephenw10 Netgate Administrator @EveningStarNM
                          last edited by

                          @eveningstarnm said in Two pfsense boxes walk into a bar...:

                          @stephenw10 Have you ever seen a private network connected as a client to another?

                          Many times and quite often using a similar setup to this. And usually it's when people open a ticket with us to determine why they are seeing connection issues. It almost always because of asymmetric traffic being blocked in 'pfSense 1' in your diagram because it only sees half the TCP conversation.
                          You would find it connectivity comes in and out as the first firewall sends an ICMP redirect the host allowing it to work for a short time until it expires. Typically ~30s. It fits what you initially described perfectly.
                          The only we to avoid that without using a transport subnet (which is the correct way to do it) is to add specially configured firewall rules:
                          https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.html#manual-fix

                          Steve

                          EveningStarNME 1 Reply Last reply Reply Quote 0
                          • EveningStarNME Offline
                            EveningStarNM @johnpoz
                            last edited by EveningStarNM

                            @johnpoz Yes, it's asymetrical. One network is a client of another. IT'S SUPPOSED TO BE THAT WAY. But I won't explore here the myriad use cases in which such a design is not only employed but expected.

                            johnpozJ 1 Reply Last reply Reply Quote 0
                            • EveningStarNME Offline
                              EveningStarNM @stephenw10
                              last edited by

                              @stephenw10 They're different networks with different purposes. They are not peers. In fact, not every device from the two networks are allowed to talk to each other. In that regard, it's kind of like the entire internet.

                              One network is a client of another. If you want to solve a different problem, you should start your own thread. The one you know how to solve isn't related to this one.

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

                                @eveningstarnm said in Two pfsense boxes walk into a bar...:

                                IT'S SUPPOSED TO BE THAT WAY

                                Says who - you? It is NOT suppose to be that way.. Already went over all the hoops you have to go through to use it like that..

                                If you want to run such setup - have fun with it. Couple of minutes to actually create a valid transit network and you wouldn't have to.

                                You know who runs networks like that - people that don't know any better..

                                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

                                EveningStarNME 1 Reply Last reply Reply Quote 0
                                • EveningStarNME Offline
                                  EveningStarNM @johnpoz
                                  last edited by EveningStarNM

                                  @johnpoz Dude. Please avoid my threads. I see no indication that you could be at all helpful to me. You insist on telling me how our networks should be designed when you don't even know how they're related or what they're used for. Those networks don't even have the same TLD. They're different networks with different purposes, and they are not related the way you want them to be. If they were, they would not suit our needs. One is simply using a service that the other provides.

                                  I described the problem. I even found the solution. Your comments have been irrelevant and a total waste of time. I'm blocking you again. The years I spent here not seeing your comments were good ones.

                                  Update: As it turns out, I can't re-block you. I should never have unblocked you.

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

                                    @eveningstarnm good luck! I don't care how you want to use or or intend to use it. Using a network with hosts on it as transit, which is any network that connects routers together.. Is not the proper way to do it.. Sorry but its not..

                                    Can you do it sure - but if you plan on talking to these hosts on this transit - its going to be problematic without the work arounds given, natting or host routing. You were even given a pretty picture showing how traffic will be asymmetrical. But clearly you know better..

                                    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

                                    EveningStarNME 1 Reply Last reply Reply Quote 0
                                    • EveningStarNME Offline
                                      EveningStarNM @johnpoz
                                      last edited by

                                      @johnpoz I don't need luck. I solved the problem, and it's working great. Nothing that you said was helpful.

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S Offline
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Reviewing this I assume that, effectively, pfSense 2 in your diagram is using pfSense 1 as second WAN?

                                        If it's only using it for that it will work fine. Hosts behind pfSense 2 would be able to access hosts on the pfSense 1 LAN as long as pfSense 2 is outbound NATing the traffic, which removes the route asymmetry. But that obviously obscures the source IP.

                                        Using a transport subnet between the two firewalls is a far more flexible setup and I would certainly recommend doing that if configuring a network where it's possible. But if you know you will never need to route the other way it will work without.

                                        Steve

                                        EveningStarNME 1 Reply Last reply Reply Quote 0
                                        • EveningStarNME Offline
                                          EveningStarNM @stephenw10
                                          last edited by

                                          @stephenw10 You are safe in assuming that, since that's what I said in my original post.

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S Offline
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Yeah, I originally read that as two separate things and the symptoms from the bad cable were exactly what I expect to see from an asymmetry issue throwing me into the weeds! 🙄

                                            Anyway, moving on....

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