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

problems unblocking my sip provider

Scheduled Pinned Locked Moved General pfSense Questions
76 Posts 6 Posters 11.0k 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.
  • S
    stephenw10 Netgate Administrator
    last edited by Mar 12, 2019, 8:45 PM

    With a 1:1 rule all ports are forwarded. All incoming traffic will be sent to the SIP device. All outgoing traffic will leave using the same source ports the SIP device sets. That eliminates a number of possible problems.

    1:1 NAT rules do not automatically open firewall rules though so you need to add a rule to pass what you need. As a test I suggest just passing everything.

    However that will not help if, for example,m the SIP device is using it's private IP is SIP packets as the response address. Only looking at those packets will tell you that. If it is SIProxd could help.

    Steve

    1 Reply Last reply Reply Quote 0
    • R
      randomaustralian
      last edited by Mar 15, 2019, 10:54 PM

      Is there a nice guide for setting up siproxy?
      as this is my second dabble with connecting sip devices i really have no idea what i am doing

      2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
      1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
      1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
      1x Dell Power Edge R510
      2x Dell Power Edge R610

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Mar 16, 2019, 1:54 PM

        Not other than this: https://docs.netgate.com/pfsense/en/latest/packages/siproxd-package.html

        That really doesn't tell you much but generally it is discouraged.

        The 1:1 NAT did nit help at all? Did you still see blocked traffic?

        Have you tried looking at the SIP packets yet to see what IPs the device is sending?

        Steve

        1 Reply Last reply Reply Quote 0
        • R
          randomaustralian
          last edited by Mar 19, 2019, 6:16 AM

          i haven't tried the 1:1 NAT because the incoming IP address in not static, and at one point i had added so many rules added into the firewall that there was nothing appearing in the logs.

          i still have the issue were outgoing calls drop after 15 minutes too

          2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
          1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
          1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
          1x Dell Power Edge R510
          2x Dell Power Edge R610

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Mar 19, 2019, 1:52 PM

            Might need to review at this point. What exactly do you have in place right now in terms of port forwards and firewall rules and SIProxd?

            What VoIP issues are you now seeing?

            Steve

            1 Reply Last reply Reply Quote 0
            • R
              randomaustralian
              last edited by randomaustralian Mar 19, 2019, 10:06 PM Mar 19, 2019, 10:05 PM

              I have tried to open incoming traffic from telstra's entire sub net range.

              the 5060-5065, 5004, 3487 ports are all allowed in firewall rules and NAT rules to forward them to my telstra sip device. i have included up to 5065 because i noticed in the logs that the incoming calls didn't only seem to come from 5060.

              i had installed snort so I have tried removing it again.

              Incoming calls almost never work and outgoing calls always get cut after about 15 minutes.

              It can't be a double NAT issue and my mobile/cell phone uses the telstra device for its WiFi hot spot and it works fine.

              I did not have these issues with the previous software firewall/gateway i used and all it took was to port forward the same ports i have currently configured into pfSense.

              2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
              1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
              1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
              1x Dell Power Edge R510
              2x Dell Power Edge R610

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Mar 19, 2019, 11:30 PM

                Ok, well there are two possibilities. It requires some static source NAT outbound that the old router provided. It requires a SIP ALG which the old router provided.

                Just using 1:1 NAT and opening the phone up completely will test theory one.

                To test theory two I would capture the SIP traffic and check the contents to see what's actually happening. Then deploy SIProxd if it's appropriate.

                Steve

                1 Reply Last reply Reply Quote 0
                • R
                  randomaustralian
                  last edited by Mar 20, 2019, 8:04 AM

                  c316b0db-e650-43ef-9621-6935fb804b24-image.png

                  Just taking a complete guess at this.

                  i never specified a nat source for outbound previously, nor a SIP ALG. i just forwarded the ports

                  2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                  1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                  1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                  1x Dell Power Edge R510
                  2x Dell Power Edge R610

                  1 Reply Last reply Reply Quote 0
                  • R
                    randomaustralian
                    last edited by Mar 20, 2019, 8:08 AM

                    3d4c4ad7-2996-4761-aa75-19c3e11aa9e9-image.png

                    2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                    1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                    1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                    1x Dell Power Edge R510
                    2x Dell Power Edge R610

                    1 Reply Last reply Reply Quote 0
                    • R
                      randomaustralian
                      last edited by Mar 20, 2019, 8:11 AM

                      ecdbd704-ae63-4c16-8db8-17657689a16e-image.png

                      I'm sure THIS is why its not working... even when i managed to get that to stop showing up it still seems to be blocking it

                      2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                      1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                      1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                      1x Dell Power Edge R510
                      2x Dell Power Edge R610

                      1 Reply Last reply Reply Quote 0
                      • R
                        randomaustralian
                        last edited by randomaustralian Mar 20, 2019, 8:22 AM Mar 20, 2019, 8:20 AM

                        i also can't list a nat rule like this

                        8485a2f5-aee6-4e51-89ff-ce9e4519eb47-image.png

                        it requires me to put a redirected port in.. but the source it transmitting from port 5060 to 44780.

                        a0419300-3bc6-4d55-962d-d6fd56ede355-image.png

                        i cant just specify any port recieved from the source port of 5060 to forward it

                        2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                        1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                        1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                        1x Dell Power Edge R510
                        2x Dell Power Edge R610

                        1 Reply Last reply Reply Quote 0
                        • R
                          randomaustralian
                          last edited by Mar 20, 2019, 8:39 AM

                          am i reading these logs wrong.. it looks like my provider is trying to send sip packets from port 5060 to a random port on my gateway, where pfSense seem to want to to come from a random port from the source and arrive at port 5060

                          2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                          1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                          1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                          1x Dell Power Edge R510
                          2x Dell Power Edge R610

                          1 Reply Last reply Reply Quote 0
                          • R
                            randomaustralian
                            last edited by Mar 20, 2019, 9:02 AM

                            What i have right now is :

                            9ecf1d78-c152-4ae3-b877-dee2fc81cd4f-image.png

                            625d43ea-a4a2-4052-bc48-24b268fac319-image.png

                            out of maybe 30 attempted incoming calls one worked... is there some kind of auto closing of established connections that could be going on?

                            2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                            1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                            1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                            1x Dell Power Edge R510
                            2x Dell Power Edge R610

                            1 Reply Last reply Reply Quote 0
                            • R
                              randomaustralian
                              last edited by Mar 20, 2019, 9:25 AM

                              looking at the out going packets from a out going call it seems to be normal.

                              the packets are being sent from my local device port 5065 to a receiving port of 5060.

                              7140899a-2502-49c2-a3de-e46bd5ad28c2-image.png

                              2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                              1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                              1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                              1x Dell Power Edge R510
                              2x Dell Power Edge R610

                              1 Reply Last reply Reply Quote 0
                              • R
                                randomaustralian
                                last edited by randomaustralian Mar 20, 2019, 9:39 AM Mar 20, 2019, 9:38 AM

                                incomming packet sniff

                                7c3a2efa-dff9-4f1f-8781-b8304a5d018c-image.png

                                2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                                1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                                1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                                1x Dell Power Edge R510
                                2x Dell Power Edge R610

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Mar 20, 2019, 12:07 PM

                                  The external IP should be the WAN IP address in that 1:1 NAT rule.

                                  Setting the destination as Telstras subnet there means it will only applky to traffic to or from that. So if they are using other IPs it won't pass it. I would leave that as 'any' as a test.

                                  The reason traffic comes back to a random port is because it's replying to traffic the p[hone sent out and pfSense will randomise source ports for security. That should not be a problem. However the fact it's showing as blocked means that firewall state has closed so replies are not getting back to the phone.
                                  You did set the firewall optimisation to conservative earlier? It might require exceptionally long timeouts there.

                                  The working 1:1 NAT rule will by-pass that though as traffic will be allowed back in even if the state has expired and source ports will not be changed.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    randomaustralian
                                    last edited by randomaustralian Mar 21, 2019, 11:43 AM Mar 21, 2019, 11:42 AM

                                    I cant do a 1:1 NAT rule on my wan IP address because i do not currently have a static IP address. there isn't an option to just specify "wan address" like there has been for many other options.

                                    Is there a way i can put in a request for this option?

                                    2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                                    1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                                    1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                                    1x Dell Power Edge R510
                                    2x Dell Power Edge R610

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      randomaustralian
                                      last edited by randomaustralian Mar 24, 2019, 8:26 PM Mar 21, 2019, 11:46 AM

                                      another idea i had now that i'm thinking of it, can i put the telstra device in a dmz on its own vlan and just tell pfsense to forward anything to that single ip address. that would mean anything that didn't originate from my internal lan would get forwarded to the tesltra device, and if it got hacked, its in its own vlan, so they cant do anything anyways.

                                      2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                                      1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                                      1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                                      1x Dell Power Edge R510
                                      2x Dell Power Edge R610

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Mar 24, 2019, 11:31 AM

                                        Hmm, interesting I hadn't considered that. Just as a test you can add you current IP as the destination though. You don't want to have that open on all ports permanently. If it works we can look at why it worked and how to replicate that woth port forwards.

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          randomaustralian
                                          last edited by Apr 1, 2019, 9:04 PM

                                          sorry i took so long to reply. was sick for like 6 days and had no motivation to look at something with i'm already too frustrated with.

                                          373e0aa9-0091-48ba-b08c-c7c6cd4ab650-image.png

                                          i tried both of these, neither have worked. did i not set it up the way you meant?

                                          i get the occasional incoming call but i think it has more to do with the timing of my sip device re-establishing a connection before it getting dropped out after 15 minutes.

                                          2 x UP board, 4GB RAM + 64 GB eMMC w/ vesa case (http://up-shop.org/)
                                          1x UP^2 Pentium Quad Core, 8GB RAM, 128GB eMMC w/ vesa case (pfSense)
                                          1x UP Core Plus E3950, 8GB RAM, 64GB EMMC+ Net Plus i210-IT
                                          1x Dell Power Edge R510
                                          2x Dell Power Edge R610

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]