It will also be used if captive portal or authentication on a policy is enabled.
# config system global- Disable captive portal on the interface (replace with correct port name):
set auth-keepalive disable
edit “PortName "- Disable any form of web authentication on the FortiGate.
set security-mode captive-portal
# config firewall policyOf course, the authentication keepalive page will not work anymore, but TCP 1000 will be closed.
edit <ID> >>>>> Need to replace with correct ID
# config firewall service customThen, create the policy (replace 'PortName' with desired port)
set tcp-portrange 1000
# config firewall local-in-policy
set intf “PortName”
set srcaddr "all"
set dstaddr "all"
set service "TCP/1000"
set schedule "always"