Skip to main content
JHelio
Staff
Staff
February 24, 2023

Technical Tip: Use multiple ports at the same time for SIP inspection in FortiGate

  • February 24, 2023
  • 0 replies
  • 3302 views
Description

This article describes how to add more than one UDP or TCP port for SIP inspection at FortiGate.

Scope FortiGate.
Solution

By default, FortiGate will use only UDP port 5060 for SIP inspection with proxy-based SIP ALG:

 

config system setting

    set default-voip-alg-mode proxy-based       <----- SIP ALG enabled.

end

 

However, upon checking the default port used for SIP, it becomes apparent that only port 5060 is configured:

 

config system setting

    set sip-udp-port 5060      <- SIP ALG port configured by default.

    set gui-voip-profile enable

end

 

Some customers need FortiGate to have more than one VoIP solution using different UDP ports, where SIP inspection is required for each. To accomplish this, add additional UDP ports in the CLI.

 

The following example shows a configuration that adds UDP port 5070:

 

config system settings

    set sip-udp-port 5060 5070  <----- SIP ALG listen on two ports 5060 and 5070.

    set gui-voip-profile enable

end

 

udp.PNG

 

If TCP is being used for reliable and ordered delivery of SIP messages,  typically on port 5060 (or 5061 for TLS), the SIP TCP port can be edited using the commands below:

config system settings

    set sip-tcp-port 5060 5070 

    set gui-voip-profile enable

end

 

This configuration makes it possible to set SIP inspection for UDP or TCP ports 5060 and 5070 at the same time.

 

To revert to the original configuration, use the following command to set only UDP port 5060 as active by default:

 

config system settings

    unset sip-udp-port

    unset sip-tcp-port    <--- If using SIP TCP.

end

 

Setting more than one UDP port for SIP inspection allows for the existence of multiple VoIP solutions working through FortiGate at the same time.