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

    PFSense adding a tonne to the header

    Scheduled Pinned Locked Moved General pfSense Questions
    34 Posts 6 Posters 3.2k 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.
    • Y
      youcangetholdofjules @johnpoz
      last edited by

      @johnpoz Give or take. 1472 is the normal with a 28 bit header. Compared with my paltry 1324 its pretty good!!

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

        Are both of your connections over the same WAN?

        Is either over a VPN? PPPoE? GRE/GIF tunnel?

        Y 1 Reply Last reply Reply Quote 0
        • Y
          youcangetholdofjules @stephenw10
          last edited by

          @stephenw10 only 1 is ever active at one time, and 99% of the time its over PFsense box, I jury rigged the other connection up to test and for when Teams is completely borked and I have important meetings blah blah blah.

          The pipe out of the house is a 900Mbps PPPoE connection, so it terms of raw bandwidth this shouldn't pose any issues. And even if I got the MTU size wrong and it starts fragmeting the packets there is still enough headroom to accomodate this. It does seem more stable adjusting the MTU size down however.

          Something else may be at play here though, and I just don't know the nuts and guts of PFSense internals to figure out whats going on.

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

            OK so both setups share the same PPPoE WAN? Is the PPPoE modem direct to pfSense?

            If not can you ping that other router through pfSense with full size frames?

            PPPoE will reduce the MTU slightly unless you have mini-jumbo frames (1508B) upstream. Nothing like the restriction you're seeing though.

            Y 1 Reply Last reply Reply Quote 0
            • Y
              youcangetholdofjules @stephenw10
              last edited by

              @stephenw10 here's a pcap of what I think is the problem.

              755cb538-9e44-4725-8900-4a7128d90f1f-image.png

              I see a few of those pop up from time to time, quite often corresponding to the dropout in my VM.

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

                @youcangetholdofjules what a fin,ack and the RST... That is the IP saying this connection is done, an RST is hard waying of saying I am done talking to you..

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

                  Yeah, isn't necessarily any sort of problem. You can follow the TCP stream to see if it look correct, assuming you have a big enough pcap.

                  Nothing but small packets in that small sample. What I'd expect to see with an MTU issue is a bunch of out-of-order TCP packets where Wireshark shows 'previous packet unseen' followed by re-transmissions.

                  Steve

                  Y 1 Reply Last reply Reply Quote 1
                  • Cool_CoronaC
                    Cool_Corona
                    last edited by

                    what about the quality of the connection?? Latency issues??

                    Y 1 Reply Last reply Reply Quote 0
                    • Y
                      youcangetholdofjules @stephenw10
                      last edited by

                      @stephenw10 Thanks a lot for the response.
                      I'm forever seeing things in terms of 4G LTE messaging protocols and I can tell what looks like a problem there for things that end in a dropped call say, but for TCP related issues I am not too sure of where to start - I can see a lot of retransmission going on in the lead up to the VM dropping, usually about every 0.2 second there would be a retrans. Unsure of how significant this is or what timers there maybe around this (I am familiar with the IETF specs as I have been working a bit with them recently on repurposing some of their work for the mobile world. I digress - I'll have a dig in there and see what the parameterisation looks like), but as always the drop is only the symptom of the real problem which is contained in the data preceding.
                      In terms of retrans and OoO packet sequencing - what sort of thresholds are there for a VM session to drop?

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

                        Something like voice or video streams are almost always UDP because latency is all important. So if you're seeing TCP failures I'd guess it's in the surrounding control protocol and that's probably also why it drops the session rather than just producing bad quality.

                        It should work fine over a reduced MTU connection. The fact it isn't implies more that something is breaking the PMTU detection somehow. If you actually set the interface MTU to 1324 does the session remain connected?

                        Can you test through pfSense to something local, like the modem, with full sized frames and see replies?

                        Steve

                        Y 1 Reply Last reply Reply Quote 0
                        • Y
                          youcangetholdofjules @stephenw10
                          last edited by youcangetholdofjules

                          @stephenw10 said in PFSense adding a tonne to the header:

                          Something like voice or video streams are almost always UDP because latency is all important. So if you're seeing TCP failures I'd guess it's in the surrounding control protocol and that's probably also why it drops the session rather than just producing bad quality.

                          Yep, makes sense.

                          It should work fine over a reduced MTU connection. The fact it isn't implies more that something is breaking the PMTU detection somehow. If you actually set the interface MTU to 1324 does the session remain connected?

                          No - even that is unstable now

                          Can you test through pfSense to something local, like the modem, with full sized frames and see replies?

                          Yeah I am about to test that

                          1 Reply Last reply Reply Quote 0
                          • Y
                            youcangetholdofjules @Cool_Corona
                            last edited by

                            @cool_corona the messaging I get back from the VM says that the connection is great right up until the moment it drops - so its a step change there somewhere before it comes right. Sometimes the VM drops altogether, sometimes it just pauses. Equal;ly eas irritating when your trying to hold a meeting.

                            johnpozJ Cool_CoronaC 2 Replies Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @youcangetholdofjules
                              last edited by johnpoz

                              @youcangetholdofjules what if you use teams on a NON VM.. Like just your phone or something, or a tablet..

                              Trying to understand why anyone would run teams on a vm in the first place to be honest? I work from home, and while teams isn't first choice - depending its used. Mostly zoom or webex..

                              But curious why would someone do teams on some VM... If having issues with the work vpn, or teams having a fit - just fire it up on the phone, etc.

                              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
                              • Cool_CoronaC
                                Cool_Corona @youcangetholdofjules
                                last edited by Cool_Corona

                                @youcangetholdofjules How do you get the VM IP?

                                Can you do me a favour and set the MTU to 1472 and MSS to 1432 on your WAN interface and test again?

                                And set the same values on the vswitch of the WAN/LAN on the virtual server.

                                Y 1 Reply Last reply Reply Quote 0
                                • Y
                                  youcangetholdofjules @Cool_Corona
                                  last edited by

                                  @cool_corona I can try that but there is a bit of new info come to light. Speaking to my IT manager he tells me the connection is reset by the VM as the heartbeat message is not being received. It looks like this is being intercepted by pfsense somehow.

                                  Does this sound feasible?

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

                                    The heartbeat message in the Teams connection?

                                    That would have to be something over a connection the client opens. pfSense would allow all outbound traffic by default so it wouldn't block it unless you have additional outbound filtering in place. Or something dynamic like Snort or pfBlocker, potentially.

                                    Y 1 Reply Last reply Reply Quote 0
                                    • Y
                                      youcangetholdofjules @stephenw10
                                      last edited by

                                      @stephenw10 I have fixed it. Now this may not be anything related but sure as hell made the performance of the whole system improve - unbeknownst to me one should never run power and ethernet cables side by side.
                                      I fixed that and have not had a problem since. Touch wood.

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

                                        Mmm, that should not really be a problem unless you're at the very edge of the capability. Trying to run 10G over cat5e for example. Seeing mains interference is probably because the cable is wired incorrectly. If one of the twisted pairs in the cable is not wired as a twisted pair (would have to be two pairs with wires swapped) you will see far worse common mode rejection.

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

                                          @stephenw10 I concur have never really seen power next to runs be an issue. Worked in a production plant for many years - and we had all kinds of high electrical noise sorts of equipment and lots of power runs everwhere. I mean we never on purpose ran next to power lines for any serious lengths of a run - but many places where they shared same space and never saw any sort of issues.

                                          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
                                          • Y
                                            youcangetholdofjules @stephenw10
                                            last edited by

                                            @stephenw10 Yes 100% agree. I doubt my setup should have affected this except for a 0.5m run of ethernet and 240V AC. And yes I know (a bit) about common mode rejection. Electronics 204 if memory serves correctly, my electronics lecturer was a real spanner which is why I remember - but hey - problem gone!!

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