Technical Tip: Difference between multicast forwarding and multicast routing
| Description | This article describes the difference in multicast policy configuration when using multicast forwarding versus multicast routing. |
| Scope | FortiGate configured with multicast forwarding or multicast routing. |
| Solution | Multicast forwarding: Multicast forwarding is a feature that enables multicast packets to be efficiently distributed directly between multicast routers and receivers connected to the FortiGate. Once a multicast forwarding policy is configured, the FortiGate sends an IGMP Membership Query, which enables it to receive IGMP Membership Reports. IGMP Membership Reports are sent by the hosts that want to receive the multicast traffic (multicast receivers). Multicast forwarding is enabled by default, and it only requires a multicast policy to allow the traffic. The policy direction is from the interface facing the receiver to the interface facing the source, with the source IP being the receiver IP. Multicast forwarding is useful with simple setups where the multicast source and receiver are directly connected to the same FortiGate, and a multicast routing protocol is not used.
Multicast forwarding policy configuration:
config system settings set multicast-forward enable end
config router multicast set multicast-routing disable end
config firewall multicast-policy end
Note: If the destination is all, it means all multicast addresses in the range 224.0.0.0-239.255.255.255. Be aware that flooding can increase sessions and resources.
Multicast routing involves multicast routing protocols such as PIM sparse-mode and PIM dense-mode. This feature allows more control over multicast traffic, which is useful in more complex setups. Enabling multicast routing will automatically disable multicast forwarding even if it was enabled in the settings. Multicast routing policies differ from multicast forwarding policies in policy direction and source address, as seen in the example below. To verify the multicast forwarding status, the command diagnose sys vd list can be used. The example configuration below is for PIM dense-mode. The multicast policy configuration is the same for PIM sparse-mode.
Multicast routing policy configuration (FGT-01):
config system settings set multicast-forward disable end
config router multicast set multicast-routing enable config interface edit "port1" set pim-mode dense-mode set passive enable next edit "port2" set pim-mode dense-mode next end end
config firewall multicast-policy end
Multicast routing policy configuration (FGT-02):
config system settings set multicast-forward disable end
config router multicast set multicast-routing enable config interface edit "port1" set pim-mode dense-mode next edit "port2" set pim-mode dense-mode set passive enable next end end
config firewall multicast-policy end
To verify the multicast forwarding status:
FGT-01 # diagnose sys vd list |

