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

    NAT, SIP and same port problems

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 2.1k 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.
    • B
      ben.suffolk
      last edited by

      Hi,

      Today I had problems when I powered up a second cisco 7940G VoIP phone. It would not authenticate against my asterisk server. When I checked the states, what I saw was that NAT had allocated port 5060 to my first IP phone, as you would expect.

      I would have assumed that the second phone would simple have been allocated a different random port on pfSense but what was happening from the looks of the state table, was that it was also sending its packets from 5060, but the replies would of course be going back to the first phone.

      I fixed the problem by enabling advanced outbound NAT and setting a static port for one of the phones.

      However whilst its possible to do this manually, should NAT not have know that port 5060 was already in use, and just allocated a different one?

      Regards

      Ben

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        You will want to enable static port for the entire subnet… Not just one phone.

        1 Reply Last reply Reply Quote 0
        • B
          ben.suffolk
          last edited by

          Cheers,

          I made that change, and I think I understand a little more about NAT now into the bargain.

          Thanks

          Ben

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