Information
You can use the config system interface command to disable unused protocols that attackers may attempt to use to gather information about a FortiGate unit. Many of these protocols are disabled by default. Using the config system interface command you can see the current configuration of each of these options for the selected interface and then choose to disable them if required.
Solution
To disable the port on the wan1 interface, use the following CLI command:
config system interface
edit wan1
set ident-accept disable
end