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

Does pfSense 2 have a SIP ALG?

General pfSense Questions
8
19
12.5k
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.
  • A
    AndrewZ
    last edited by Jan 1, 2013, 1:46 PM

    @jimp:

    The only thing not considered a bug by developers are vague problem reports with no concrete/substance. I personally have put a lot of work into state clearing on 2.1 to make sure it happens in more scenarios than ever when a WAN goes down/back up, and I know Ermal has done even more work than that.

    There may be some issues out there still but without more solid evidence/troubleshooting than a few "it's still broken!" messages, it'll never get solved.

    jimp, fully agree with you, users should be always more specific.
    Are you saying that it's not necessary to manually clear sates in 2.1? If yes - that's great. I'm still on 2.0 (2.0.2), so I will probably wait for 2.1 release.
    Thank you.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 1, 2013, 2:56 PM

      @AndrewZ:

      jimp, fully agree with you, users should be always more specific.
      Are you saying that it's not necessary to manually clear sates in 2.1? If yes - that's great. I'm still on 2.0 (2.0.2), so I will probably wait for 2.1 release.
      Thank you.

      2.1 tries a bit harder to clear states, but there are some people who still say it's broken (check the ticket linked earlier in this thread) but they haven't given any details to support their claim that I've seen.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • D
        dhatz
        last edited by Jan 1, 2013, 9:59 PM Jan 1, 2013, 9:56 PM

        @AndrewZ:

        @dhatz:

        What version are you using? In recent versions, pfSense tries quite a bit to flush NAT states upon WAN IP change.

        I'm on 2.0.2 now and [historically] using the flushing script based on the one from 1.2.3 package.

        Please clarify: Does the "flushing script" solve the stale SIP NAT state issue, whereas stock 2.0.2/2.1-BETA don't ? And in that case, could you compare the actions taken by the script with 2.0.2's /usr/local/sbin/ppp-linkup / ppp-linkdown?

        /usr/local/sbin/ppp-linkdown: /sbin/pfctl -k 0.0.0.0/0 -k $3/32
        /usr/local/sbin/ppp-linkdown: /sbin/pfctl -k $3/32
        /usr/local/sbin/ppp-linkdown: pfctl -K $3/32
        /usr/local/sbin/ppp-linkdown: /sbin/pfctl -b 0.0.0.0/32 -b ${OLD_ROUTER}/32
        /usr/local/sbin/ppp-linkup: /sbin/pfctl -b 0.0.0.0/32 -b ${OLD_ROUTER}/32

        1 Reply Last reply Reply Quote 0
        • K
          koukobin
          last edited by Jan 2, 2013, 6:02 PM

          Try to use "Manual mode" for outbound NAT and enable "Static Port" option.

          I running 3 years now a SIP PBX behind pfsense without a single problem. My PBX also accept SIP registrations from outside perfectly.

          1 Reply Last reply Reply Quote 0
          • D
            dhatz
            last edited by Jan 2, 2013, 8:54 PM

            koukobin the "static port" NAT option may sometimes help, but there are so many other parameters that can play a role in a SIP setup, that makes it very hard to offer "generic" advice.

            1 Reply Last reply Reply Quote 0
            • A
              AndrewZ
              last edited by Jan 4, 2013, 9:13 AM Jan 2, 2013, 10:19 PM

              @dhatz:

              Please clarify: Does the "flushing script" solve the stale SIP NAT state issue, whereas stock 2.0.2/2.1-BETA don't ? And in that case, could you compare the actions taken by the script with 2.0.2's /usr/local/sbin/ppp-linkup / ppp-linkdown?

              /usr/local/sbin/ppp-linkdown: /sbin/pfctl -k 0.0.0.0/0 -k $3/32
              /usr/local/sbin/ppp-linkdown: /sbin/pfctl -k $3/32
              /usr/local/sbin/ppp-linkdown: pfctl -K $3/32
              /usr/local/sbin/ppp-linkdown: /sbin/pfctl -b 0.0.0.0/32 -b ${OLD_ROUTER}/32
              /usr/local/sbin/ppp-linkup: /sbin/pfctl -b 0.0.0.0/32 -b ${OLD_ROUTER}/32

              "Flushing script" does help with the stale UDP (SIP) NAT state issue. I'm using DHCP, not PPP, so I'm not sure that the scripts mentioned are relevant to me. Anyway, I temporary removed my script and will check the states in a few hours. I cannot obtain the new WAN IP manually.
              In my script I'm using:
              /sbin/pfctl -F state

              EDIT: after removing my flushing script I faced the stale entries issue again (2.0.2, DHCP)

              1 Reply Last reply Reply Quote 0
              • D
                dhatz
                last edited by Jan 2, 2013, 11:15 PM

                @AndrewZ:

                "Flushing script" does help with the stale UDP (SIP) NAT state issue. I'm using DHCP, not PPP, so I'm not sure that the scripts mentioned are relevant to me.

                In your case, the/etc/rc.newwanip script may be relevant, but I'll leave it for jimp/ermal to comment …

                1 Reply Last reply Reply Quote 0
                • N
                  needclues
                  last edited by Jul 6, 2013, 11:22 PM

                  @dhatz:

                  koukobin the "static port" NAT option may sometimes help, but there are so many other parameters that can play a role in a SIP setup, that makes it very hard to offer "generic" advice.

                  laying out various  use cases in the pfsense wiki would help so many [soho] users.  It would help people become informed enough to generate useful bug reports

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Jul 7, 2013, 12:32 AM

                    All of the most common SIP troubleshooting items are already on the wiki.

                    http://doc.pfsense.org/index.php/VoIP_Configuration

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • N
                      needclues
                      last edited by Jul 7, 2013, 10:55 PM Jul 7, 2013, 10:42 PM

                      @jimp:

                      All of the most common SIP troubleshooting items are already on the wiki.

                      http://doc.pfsense.org/index.php/VoIP_Configuration

                      yeah I've already searched the wiki, and read the topics found. I was hoping for rules examples and voip usage not-using a [lan] pbx

                      this not voip wiki entry lays out rules examples http://doc.pfsense.org/index.php/Blocking_DNS_queries_to_external_resolvers

                      The rules examples will help home users of voip providers of lan ata, lan ip phones and whatnot.

                      Respectfully, I have some questions raised by the voip wiki.

                      When to use siproxd and when not?   I use half a dozen voip providers.  siproxd requires ONE outbound proxy.  that doesn't seem like it will play well with different providers.

                      Disable source port rewriting - by default, pfSense rewrites the source port on all outbound traffic. This is necessary for proper NAT in some circumstances such as having multiple SIP phones behind a single public IP registering to a single external PBX.

                      such as having multiple SIP phones behind a single public IP

                      yes

                      registering to a single external PBX.

                      no

                      Could the latter be made true by using SIPsorcery?   RentPBX and similar is crazy needless costly overkill for me I've discovered.

                      [default] rewriting the source port of RTP can cause one way audio.

                      it's not doing that thankfully

                      In that case, you want to use manual outbound NAT and Static Port on all UDP traffic potentially with the exclusion of UDP 5060.

                      when outbound NAT rules are not auto-created what responsibility have I assumed?  is there a wiki on manually creating rules now that auto is disabled?

                      potentially with the exclusion of UDP 5060

                      why?    Whatever is fiddling with 5060 can I add my voip providers alternate ports  (5080 42872)?

                      In very rare circumstances, scrubbing needs to be disabled under System > Advanced.

                      there are only two mentions of scrubbing on the wiki neither provide helpful context.

                      siproxd package enables multiple phones to connect to a single outside server.

                      What's the suggested solution for multiple phones (and ATA) connecting to multiple outside servers?

                      The problems I'm having are (1) understanding how to wield pfsense better (2) ip phones unable to fetch confirm via tftp making them costly paperweights – which I'm sure comes back to pfsense ignorance.

                      ![hoping for rules examples.png](/public/imported_attachments/1/hoping for rules examples.png)
                      ![hoping for rules examples.png_thumb](/public/imported_attachments/1/hoping for rules examples.png_thumb)

                      1 Reply Last reply Reply Quote 0
                      • chpalmerC
                        chpalmer
                        last edited by Jul 7, 2013, 11:59 PM

                        When to use siproxd and when not?  I use half a dozen voip providers.  siproxd requires ONE outbound proxy.  that doesn't seem like it will play well with different providers.

                        Quote
                        Disable source port rewriting - by default, pfSense rewrites the source port on all outbound traffic. This is necessary for proper NAT in some circumstances such as having multiple SIP phones behind a single public IP registering to a single external PBX.

                        such as having multiple SIP phones behind a single public IP

                        My multiple ATA's connect to multiple external SIP servers.

                        Triggering snowflakes one by one..
                        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jimp Rebel Alliance Developer Netgate
                          last edited by Jul 8, 2013, 2:01 AM

                          You only need siproxd if ALL of these are true:

                          • You have multiple phones connecting to a remote PBX, or multiple PBXs
                          • More than one of the phones connects to the same remote PBX
                          • The PBX requires that the source port be 5060 for the phone's SIP traffic (this is not very common these days)

                          In most cases multiple phones work fine now with zero adjustments so long as the PBX doesn't assume/enforce a 5060 client source port.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

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