Skip to content

Enabling Quality of Service (QoS) on a FortiGate Firewall for VoIP

← Network & Firewall

Enabling Quality of Service (QoS) on a FortiGate Firewall for VoIP

Section titled “Enabling Quality of Service (QoS) on a FortiGate Firewall for VoIP”

QoS (Quality of Service) ensures that VoIP traffic is prioritized over lower-priority traffic such as file downloads or streaming video. Without QoS, bandwidth saturation can cause choppy audio, jitter, and dropped calls — even when total bandwidth appears sufficient.

This guide covers enabling QoS for SIP VoIP traffic on FortiGate firewalls.

Step 1: Log into the FortiGate Web Interface

Section titled “Step 1: Log into the FortiGate Web Interface”
  1. Open a browser and navigate to your FortiGate management IP.
  2. Log in with administrator credentials.

Traffic shapers define bandwidth limits and priorities for specific traffic classes.

  1. Navigate to Policy & Objects → Traffic Shapers.
  2. Click Create New.
  3. Configure:
SettingValue
NameVoIP-Priority
TypeShared
Traffic PriorityHigh
Maximum BandwidthSet based on your available upload bandwidth
Guaranteed BandwidthReserve bandwidth for expected concurrent calls
DSCP MarkingEnabled — set to EF (Expedited Forwarding, DSCP 46)
  1. Click OK to save.
  1. Navigate to Policy & Objects → Traffic Shaping Policy.
  2. Click Create New.
  3. Configure the match criteria:
SettingValue
SourceInternal LAN address or VoIP device group
Destinationall (or SIPSTACK IP subnets if known)
ServiceSIP (port 5060) and ALL for RTP (1000065535 UDP)
Application ShaperVoIP-Priority (created above)
Reverse ShaperVoIP-Priority (for inbound audio)
  1. Place this policy above any general internet shaping policies in the list.
  2. Click OK.
  1. Navigate to Policy & Objects → IPv4 Policy (or IPv6 as appropriate).
  2. Edit the policy governing VoIP traffic (typically LAN → WAN).
  3. Under Security Profiles, ensure the traffic shaping profile is enabled.
  4. Save the policy.
  1. Navigate to Dashboard → Network and observe traffic graphs during a test call.
  2. Or use FortiView → Traffic to inspect per-application bandwidth usage.
  3. Under Monitor → Traffic Shaping Monitor, confirm the VoIP class is showing traffic with expected priority.
DSCP ClassHexDecimalUse Case
EF (Expedited Forwarding)0x2E46VoIP audio — highest priority
AF410x2234VoIP signaling (SIP)
BE (Best Effort)0x000General internet traffic