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

    Is pfSense a SBC, or is there a package for SBC?

    Scheduled Pinned Locked Moved General pfSense Questions
    23 Posts 8 Posters 3.8k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Urgh. ๐Ÿ˜Ÿ

      Good luck. Open threads for failover WAN or VPNs or whatever you need. ๐Ÿ‘

      Steve

      1 Reply Last reply Reply Quote 0
      • T
        totalimpact
        last edited by

        I know its been a few months.... but thought I would chime in since someone told me I "need an sbc to do voip" - that may have been true 20 years ago, today we are blessed with a firewall that can do it right-

        1. Create Firewall>Alias to your trunk IPs - if your trunk provider has 1 IP get a better provider. Also make alias for your PBX ip.

        2. Go to Firewall>NAT Forward UDP 5060 to the PBX alias, restricting the source from the Trunk alias (this should keep you fairly secure)

        3. For RTP (audio) Forward 10,000-20,000 udp to the PBX, many trunk providers may not send RTP from the same IP as the signaling, in fact they may have dozens of audio media gateways, so it may not be possible to limit source traffic there.

        4. Then in Freepbx, (depending on your version) go to Advanced SIP Settings (may need to install this module), and make sure your local LAN subnet and public IP are entered there. Or if you have a newer version, I think its v14+, you will have to decide between Chan_SIP, or PJ_SIP driver, and adjust the advanced settings there-
          https://community.freepbx.org/t/additional-sip-settings-under-freepbx-14/52782/6

        If the above doesnt get you working, your provider sending TCP instead of UDP? Or you need to fix outbound NAT:

        1. In Pf go to Firewall>NAT>Outbound, set it to Hybrid, and add a rule:
          Interface: WAN
          Protocol: UDP
          Source: PBX alias
          Dest: Any
          Port or Range: Static Port checked

        Flush the firewall state table, and that will probably cover everything.

        1 Reply Last reply Reply Quote 0
        • NollipfSenseN
          NollipfSense
          last edited by NollipfSense

          I used these two references to create no problems for my FreePBX ...

          https://www.youtube.com/watch?v=QFk5jX-oeSo

          https://docs.netgate.com/pfsense/en/latest/nat/configuring-nat-for-a-voip-pbx.html
          The only difference I made from the above is I used a WAN floating rule.

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          1 Reply Last reply Reply Quote 0
          • NollipfSenseN NollipfSense referenced this topic on
          • NollipfSenseN NollipfSense referenced this topic on
          • NollipfSenseN NollipfSense referenced this topic on
          • N netblues referenced this topic on
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.