Navigation

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

    udp fragmentation of sip packages over pppoe

    General pfSense Questions
    3
    7
    21
    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.
    • B
      Beleggrodion last edited by

      Hi,

      I have a short question to following situation:

      1. Internet Access over Fiber (Fiber to RJ45 Adapter at WAN side) but with a PPPoE to the Provider.
      2. A FreePBX Behind the Firewall in the LAN
      3. Two SIP VoIP Trunks (SIP UDP) from two different SIP Providers (One is the same as the Internet Provider) on the PBX.

      The problem is now that one of the two SIP Providers send SIP Invites (incoming call) to the PBX but the udp packages are fragmented because the udp package is 1496 bytes but because of pppoe the max size is 1492. The SIP Provider told me he cannot do anything from his side to minimize the packages. Is their something that i can do on the pfSense ?

      Greetings
      Beleggrodion

      JKnott 1 Reply Last reply Reply Quote 0
      • JKnott
        JKnott @Beleggrodion last edited by

        @Beleggrodion

        That seems a bit large. What does the other provider send? UDP doesn't have the same mechanism as TCP to reassemble fragments. Does that provider not have other customers that use PPPoE?

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

          How does the problem actually present? The PBX just drops the fragments?

          Steve

          1 Reply Last reply Reply Quote 0
          • B
            Beleggrodion @JKnott last edited by

            @JKnott
            As i can see the other provider sends smaller UDP packages. Both send a SIP INVITE Package. In the bigger SIP Package their are also multiple "Via:" and "Record-Route:" which are missing on the other provider. So their is more data.

            I don't know if the other provider has customers with PPPoE. (I don't know which is the common way in germany for internet providers, because im here in switzerland) . But because the sip provider use's his own PBX product the most customers, i think, use this and not their own PBX like FreePBX.

            @stephenw10
            It's look like the firewall drops the fragments and nothing reaches the PBX. If the package is smaller it reaches the PBX and all works as expected.

            wireshark firewall dump

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

              You have pfscrub disabled in System > Advanced > Firewall & NAT?

              We can see the details there but that looks like the original packets are very large. Like all three of those fragments combined? In which case it would not pass on any connection.

              Steve

              B 1 Reply Last reply Reply Quote 0
              • B
                Beleggrodion @stephenw10 last edited by

                @stephenw10

                Yes i have pfscrub disabled on this system.

                When i look into the packages in wireshark the fragments are not combined. Each of them begins with the SIP INVITE Header and other stuff and and at the end its cut off on

                ...
                CSeq: 13522 INVITE
                Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
                Supported: replaces, norefersub
                Max-Forwards: 67
                Content-Type: application/sdp
                Content-Length:   442
                
                v=0
                o=- 1351058843 1351058843 IN IP4 xxx.x.xx.xx
                s=sipgate VoIP GW
                c=IN IP4 xxx.xx.xx.xxx
                t=0 0
                m=audio 28186 RTP/AVP 9 8 0 107 112 3 97 18 101
                a=maxptime:20
                a=rtpmap:9 G722/8000
                a=rtpmap:8 PCMA/8000
                a=rtpmap:0 PCMU/8000
                a=rtpmap:107 opus/48000/2
                a=rtpmap:112 G726-32/8000
                a=rtpmap:3 GSM/8000
                a=rtpmap:97 iLBC/8000
                a=rtpmap:18 G729/8000
                a=rtpmap
                

                And then cut off. But it shoul'd more look like

                ...
                CSeq: 14057 INVITE
                Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER
                Supported: replaces, norefersub
                Max-Forwards: 67
                Content-Type: application/sdp
                Content-Length:   351
                
                v=0
                o=- 2051997395 2051997395 IN IP4 xxx.xx.xx.xx
                s=sGW
                c=IN IP4 xxx.xx.xx.xxx
                t=0 0
                m=audio 16540 RTP/AVP 8 107 9 0 18 101
                a=maxptime:20
                a=rtpmap:8 PCMA/8000
                a=rtpmap:107 opus/48000/2
                a=rtpmap:9 G722/8000
                a=rtpmap:0 PCMU/8000
                a=rtpmap:18 G729/8000
                a=rtpmap:101 telephone-event/8000
                a=fmtp:101 0-16
                a=sendrecv
                a=rtcp:16541
                a=ptime:20
                

                I currently also contacted the support of the internet connection, because i think the missing udp package fragment with the last part don't reach the firewall over pppoe, but i'm not sure because i'm not expert in udp package analysis.

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

                  Then enable pfscrub. That is required for fragment re-assembly.

                  Steve

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  Products

                  • Platform Overview
                  • TNSR
                  • pfSense Plus
                  • Appliances

                  Services

                  • Training
                  • Professional Services

                  Support

                  • Subscription Plans
                  • Contact Support
                  • Product Lifecycle
                  • Documentation

                  News

                  • Media Coverage
                  • Press
                  • Events

                  Resources

                  • Blog
                  • FAQ
                  • Find a Partner
                  • Resource Library
                  • Security Information

                  Company

                  • About Us
                  • Careers
                  • Partners
                  • Contact Us
                  • Legal
                  Our Mission

                  We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                  Subscribe to our Newsletter

                  Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                  © 2021 Rubicon Communications, LLC | Privacy Policy