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

    Issue with SIP client behind the pfsense

    NAT
    3
    3
    904
    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.
    • W
      will_vsilva
      last edited by

      I have a sip client registered on a public SIP server.
      My SIP client is behind of a pfsense, when I make calls, they connect, but the audio connection isn't established.

      I sniffed the traffic on a server and I noticed that the pfsense is sending the packet with the internal media IP.

      Is it a NAT problem?
      How can I fix it?

      Thanks for your time.

      1 Reply Last reply Reply Quote 0
      • G
        GomezAddams
        last edited by

        SIP isn't NAT friendly for just the reason you describe. There are a couple of ways to fix the problem.

        1. Tell your sip client to send the IP address of pfsense's WAN interface. Asterisk can do this, but I don't know of any other sip software that can.

        2. Tell your sip provider to configure your connection so that they ignore the ip address in the connection packet and instead use the actual source ip address of the connection.

        3. Use STUN, which is an automated way of performing option 1 above.

        1 Reply Last reply Reply Quote 0
        • chpalmerC
          chpalmer
          last edited by

          4. use the siproxd package.

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.