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

    Considering pfsense for VoIP solution

    Scheduled Pinned Locked Moved Traffic Shaping
    8 Posts 2 Posters 4.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.
    • A
      ashura
      last edited by

      I'm considering using pfsense's traffic shaping capabilities for a small business VoIP setup. The VoIP is hosted so the only LAN-side VoIP devices are 11 IP Phones. The WAN is FIOS 25/15 and it would be ONT –> pfsense --> switch --> PCs/IP Phones. I'm new to pfsense so just want to make sure what I'm planning makes sense and will work.

      I would reserve 192.168.2.64 /28 for the VoIP Phones, give the phones static IPs in that range, and create an alias in pfsense named VoIP with that network. I would then run the traffic shaping wizard, in the VoIP section enable VoIP prioritizing and plug in the VoIP alias in the red box and complete the wizard. Once that's done, I can manually go and edit the qVoIP up and down queues to have 2Mb/s up and down (way way more than enough). That will make it so that any traffic to and from the VoIP phones will always have that 2Mb/s pipe of bandwidth available and call quality should always be good.

      Am I correct in my understanding?

      1 Reply Last reply Reply Quote 0
      • D
        danswartz
        last edited by

        This sounds reasonable.  One caveat: make sure the phones are not setting any kind of ToS bits for the audio packets (specifically the low-delay bit), as that will cause pfsense to put those outbound packets in the wanacks queue instead.

        1 Reply Last reply Reply Quote 0
        • A
          ashura
          last edited by

          Gotcha, thanks Dan. Our Hosted VoIP provider is actually configuring the phones for us so I guess I'll just ask them to make sure ToS bits aren't being sent by the phones.

          1 Reply Last reply Reply Quote 0
          • A
            ashura
            last edited by

            Okay, the traffic shaper seems to be working. I maxed out my download/upload with a combo of usenet downloading and torrents for uploading and still managed to get clear, uninterrupted call quality. The weird thing though is that when I check Queues under Status, I see traffic in qVOIPUp during a call but, even though I'm getting perfect sound during heavy traffic, qVOIPDown is always 0 b/s. Why is that?

            As you suggested Dan, I disabled ToS:

            1 Reply Last reply Reply Quote 0
            • D
              danswartz
              last edited by

              Now that is odd - did you diddle anything in the shaper setup, or just use the wizard?  What release of pfsense?  What queue does the inbound show up in?

              1 Reply Last reply Reply Quote 0
              • A
                ashura
                last edited by

                @danswartz:

                Now that is odd - did you diddle anything in the shaper setup, or just use the wizard?  What release of pfsense?  What queue does the inbound show up in?

                I used the wizard and the only thing I changed, as I mentioned in the OP, was manually changing the VOIP queues to be 2MB instead of 25%. Release 1.2.3. Inbound shows up in qlanacks.

                1 Reply Last reply Reply Quote 0
                • D
                  danswartz
                  last edited by

                  Hmmm, I am wondering if somehow the inbound traffic has ToS flags?  In any event, this is not a real concern, since the only thing you can really affect is the outbound.

                  1 Reply Last reply Reply Quote 0
                  • A
                    ashura
                    last edited by

                    Gotcha, thanks for the input. I'm happy either way as I'm getting the call quality I wanted. :)

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