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

    pfSense 2.7.2 causes unexpected behaviour from Samba 4.16.

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 4 Posters 485 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @scilek
      last edited by

      @scilek what cable are you unplugging? If the traffic between your devices were being routed and you pulled the cable on the router then your devices wouldn't be able to talk to each other.

      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

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

        With more than one thing multihomed there you could be hitting asymmetric routing. If the client attempts to access the NAS at 172.16.50.4, for example, it will be routed through pfSense but replies will go back directly. You would see traffic through pfSense in the traffic graphs though. Until it stops!

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

          @stephenw10 yeah the output of his nas says its multihomed

          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
          • S
            scilek @johnpoz
            last edited by scilek

            @johnpoz
            The traffic between the devices is not being routed. The issue is no that they cannot talk to each other, they definitely can, as pinging continues non-stop. It is just the copy operation that halts, that is, for about 15 seconds, after about 1GB of data has been copied from the NAS.

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

              @scilek said in pfSense 2.7.2 causes unexpected behaviour from Samba 4.16.:

              The traffic between the devices is not being routed

              If the devices your moving files between are not routed through pfsense, then pfsense has zero to do with their file copy..

              your output from nas shows its got legs in both your .50 and .51 network.. So doing a file copy from either of those networks to the nas would have zero to do with pfsense.. if your doing a copy from a .50 device to a .51 IP on the nas then your asymetrical and yeah could have all kinds of weirdness..

              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

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

                Yup but ping works fine and TCP traffic doesn't is a classic symptom of asymmetric routing.

                Do you see anything blocked in the firewall logs.

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

                  @johnpoz
                  While digging, I realised that the server was somewhat misconfigured:

                  [NAS][root ~] > cat /etc/rc.conf | grep defaultrouter
                  defaultrouter="172.16.51.1"
                  

                  I corrected it then rebooted:

                  [NAS][root ~] > cat /etc/rc.conf | grep defaultrouter
                  defaultrouter="172.16.50.1"
                  

                  I was hoping that would fix the problem, but it did not.

                  Then I thought something might change if I blocked the traffic between LAN_PCs and LAN_MAN:
                  2405a57a-d815-4482-b6bc-42fbc06dc66f-image.png

                  That definitely did help! But why? How? Can I change the default routing behaviour on the router?

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

                    Because clients are opening connections to the NAS in he other subnet as I speculated.

                    If they are connecting by hostname how is that resolving?

                    But the one way to be sure is don't use multihoming on the NAS,

                    S 1 Reply Last reply Reply Quote 1
                    • S
                      scilek @stephenw10
                      last edited by

                      @stephenw10 said in pfSense 2.7.2 causes unexpected behaviour from Samba 4.16.:

                      Because clients are opening connections to the NAS in he other subnet as I speculated.

                      Well, yes. Appreciated.

                      @stephenw10 said in pfSense 2.7.2 causes unexpected behaviour from Samba 4.16.:

                      But the one way to be sure is don't use multihoming on the NAS

                      I kind of have to. I have similar setups that work flawlessly; but none are v2.7.2.

                      @stephenw10 said in pfSense 2.7.2 causes unexpected behaviour from Samba 4.16.:

                      If they are connecting by hostname how is that resolving?

                      That is the question on my mind.

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

                        You could add floating rules to just pass the traffic even if it is asymmetric:
                        https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.html

                        But I prefer to avoid that if at all possible though. It almost inevitably ends up with other issues in the future. It will be confusing to anyone else looking at it later.

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