Skip to main content
acp
Staff
Staff
July 4, 2016

Technical Tip: How to adjust the Maximum Transmission Unit (MTU) value

  • July 4, 2016
  • 0 replies
  • 105989 views

Description


This article describes how to adjust the Maximum Transmission Unit (MTU) value on a FortiGate interface.


Scope

 

FortiGate.

Solution

 

The MTU is the largest physical packet size, measured in bytes, that a network can transmit. Any packets larger than the MTU are divided into smaller packets before they are sent. The default MTU is 1500 on a FortiGate interface.

 

The MTU value can only be changed through CLI.

To change the value from the CLI (For example, on WAN2):
 
config system interface
    edit "wan2"
       set vdom "root"
       set mtu-override enable
       set mtu 9000
    next
end
 
To verify the interface MTU from CLI:
 
diagnose netlink interface list <interface-name>
diagnose hardware deviceinfo nic <interface-name>
fnsysctl ifconfig <interface-name>

Note:
Changing the MTU value may affect internet access for a period of time. Hence, it is suggested to change the value by taking a downtime.
 

Standard Values for Common Scenarios:

  • 1500: Standard Ethernet (Default).
  • 1492: PPPoE connections (DSL).
  • 1400-1450: Common for IPsec VPN tunnels (to compensate for encryption overhead).
  • 9000: Jumbo Frames (Data Centers / SAN / Backups), requires switch support.

 

SSL VPN v7.6.1+:

 

Before FortiOS version 7.6.1, the MTU on the virtual SSL VPN interface could not be modified. This functionality has now been added and works like any other interface:

 

config system interface

    edit "ssl.root"

        set vdom "root"
        set type tunnel
        set alias "SSL VPN interface"
        set snmp-index 3
        set mtu-override enable
        set mtu 1300

    next

end

 

  • Adjust MTU/MSS in an IPsec VPN:

This configuration will help to improve traffic running through an IPsec VPN:

config system interface
    edit <IPSEC_interface_name>
        set mtu-override enable
        set mtu 1400 # Start low, increase gradually

        set tcp-mss 1360
    next
end

 

  • Add MSS clamping in firewall policy:

 

config firewall policy
    edit <vpn_policy_number>
        set tcp-mss-sender 1360
        set tcp-mss-receiver 1360
        set auto-asic-offload disable
    next
end

 

Related documents:

Technical Tip: Finding the MTU of the FortiGate interface
Checking that traffic is offloaded by NP processors

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!