Skip to content

Enabling QoS for VoIP on UniFi Gateways and Routers

← How-To Guides

Enabling QoS for VoIP on UniFi Gateways and Routers

Section titled “Enabling QoS for VoIP on UniFi Gateways and Routers”

Configuring QoS on your UniFi gateway or router ensures VoIP traffic receives priority over general internet use, maintaining call quality during periods of high network utilization.

Measure your upload and download speeds using a tool such as speedtest.net. Test at multiple times of day to capture peak and off-peak performance.

Allocate approximately 100 Kbps per concurrent call.

Concurrent CallsRecommended Allocation
5500 Kbps
101 Mbps
252.5 Mbps
505 Mbps

Open a browser, navigate to your UniFi controller’s IP address, and log in.

  1. Go to Settings → Networks.
  2. Select Edit Network for the network handling VoIP traffic.
  3. Scroll to Advanced Options and locate User Groups.
  4. Create a new user group:
    • Set Rate Limiting to your calculated VoIP bandwidth.
    • Assign a higher priority if the option is available.
  5. Assign this user group to the devices or VLANs that carry VoIP traffic.

Configure Firewall Rules for VoIP Ports (Optional)

Section titled “Configure Firewall Rules for VoIP Ports (Optional)”

For more granular control:

  1. Go to Settings → Routing & Firewall.
  2. Under Firewall, create port groups for:
    • SIP: port 5060 (TCP)
    • RTP: ports 10000–60000 (UDP)
  3. Create firewall rules to prioritize or permit traffic for these port groups.

Monitor VoIP performance through the UniFi Controller after applying the configuration. Look for packet loss or quality dips. Adjust the bandwidth allocation for the VoIP user group as call volumes change.