Fortigate Cli Ref 54
Fortigate Cli Ref 54
FortiOS - CLI Reference
VERSION 5.4.4
FORTINET DOCUMENT LIBRARY
http://docs.fortinet.com
FORTINET VIDEO GUIDE
http://video.fortinet.com
FORTINET BLOG
https://blog.fortinet.com
CUSTOMER SERVICE & SUPPORT
https://support.fortinet.com
http://cookbook.fortinet.com/how-to-work-with-fortinet-support/
FORTIGATE COOKBOOK
http://cookbook.fortinet.com
FORTINET TRAINING SERVICES
http://www.fortinet.com/training
FORTIGUARD CENTER
http://www.fortiguard.com
FORTICAST
http://forticast.fortinet.com
FEEDBACK
Email: [email protected]
May 3, 2017
FortiOS - CLI Reference
01-544-99686-20170503
TABLE OF CONTENTS
Change Log 12
Introduction 13
How this guide is organized 13
Availability of commands and options 13
Managing Firmware with the FortiGate BIOS 15
Accessing the BIOS 15
Navigating the menu 15
Loading firmware 15
Configuring TFTP parameters 16
Initiating TFTP firmware transfer 16
Booting the backup firmware 17
Using the CLI 18
Connecting to the CLI 18
Connecting to the CLI using a local console 18
Enabling access to the CLI through the network (SSH or Telnet) 19
Connecting to the CLI using SSH 20
Connecting to the CLI using Telnet 21
Command syntax 22
Terminology 22
Indentation 23
Notation 23
Sub-commands 25
Example of table commands 27
Permissions 29
Tips 29
config 38
antivirus 40
antivirus heuristic 40
antivirus profile 41
antivirus quarantine 43
antivirus settings 45
application 46
application casi profile 46
application custom 47
application internet-service-custom 47
application list 48
application name 51
application rule-settings 51
dlp 51
dlp filepattern 52
dlp fp-doc-source 53
dlp fp-sensitivity 54
dlp sensor 55
dlp settings 57
endpoint-control 58
endpoint-control forticlient-registration-sync 58
endpoint-control profile 58
endpoint-control settings 58
firewall 58
firewall address | address6 58
firewall addrgrp | addgrp6 67
firewall policy | policy6 71
firewall schedule group 99
firewall schedule onetime 101
firewall service category 103
firewall service custom 105
firewall vip 113
ips 126
ips custom 126
ips global 128
ips rule 130
ips sensor 132
log 134
log custom-field 134
log eventfilter 134
log gui-display 136
log threat-weight 136
system 138
system admin 139
system central-management 142
system csf 144
system dhcp_server 145
system dns 149
system global 150
reset-sessionless-tcp {enable | disable} 162
system ha 167
system ha-monitor 181
system interface 182
l2forward {enable | disable} 186
system link-monitor 199
system np6 201
system npu 205
system password-policy 206
system sms-server 207
system wccp 207
Router mode 208
Client mode 209
user 210
user adgrp 210
user device 211
user device-access-list 212
user device-category 213
user device-group 213
user fortitoken 214
user fsso 214
user fsso-polling 215
user group 216
user krb-keytab 219
user ldap 220
user local 223
user password-policy 225
user peer 226
user peergrp 228
user pop3 228
user radius 228
user security-exempt-list 234
user setting 234
user tacacs+ 237
vpn 238
vpn certificate 238
vpn ssl 269
wanopt 285
wanopt auth-group 285
auth-method {cert | psk} 285
wanopt peer 286
wanopt profile 287
wanopt settings 290
wanopt storage 290
wanopt webcache 291
web-proxy 293
web-proxy debug-url 293
web-proxy explicit 294
web-proxy forward-server 297
web-proxy forward-server-group 298
web-proxy global 299
web-proxy profile 301
web-proxy url-match 302
web-proxy wisp 303
wireless-controller 303
wireless-controller ap-status 303
wireless-controller global 304
wireless-controller setting 306
wireless-controller timers 306
wireless-controller vap 307
eap-reauth {enable | disable} 313
wireless-controller vap-group 316
wireless-controller wids-profile 317
wireless-controller wtp 321
wireless-controller wtp-group 327
wireless-controller wtp-profile 328
execute 337
backup 337
batch 340
bypass-mode 341
carrier-license 341
central-mgmt 341
cfg reload 342
cfg save 343
clear system arp table 343
cli check-template-status 343
cli status-msg-only 344
client-reputation 344
date 344
disk 345
disk raid 346
disk scan 347
dhcp lease-clear 347
dhcp lease-list 347
disconnect-admin-session 348
enter 348
erase-disk 348
factoryreset 349
factoryreset2 349
formatlogdisk 349
forticarrier-license 349
forticlient 349
FortiClient-NAC 350
fortiguard-log 350
fortitoken 351
fortitoken-mobile 352
fsso refresh 352
ha disconnect 352
ha ignore-hardware-revision 353
ha manage 353
ha synchronize 354
interface dhcpclient-renew 355
interface pppoe-reconnect 355
log backup 355
log client-reputation-report 355
log convert-oldlogs 357
log delete-all 357
log delete-oldlogs 357
log detail 357
log display 358
log downgrade-log 358
log filter 358
log fortianalyzer test-connectivity 359
log list 360
log rebuild-sqldb 360
log recreate-sqldb 361
log-report reset 361
log restore 361
log roll 361
log shift-time 362
log upload-progress 362
modem dial 362
modem hangup 362
modem trigger 362
mrouter clear 363
netscan 363
pbx 364
ping 366
ping-options, ping6-options 366
ping6 368
policy-packet-capture delete-all 368
reboot 368
report 369
report-config reset 369
restore 369
revision 373
router clear bfd session 374
router clear bgp 374
router clear ospf process 375
router restart 375
send-fds-statistics 375
sensor detail 376
sensor list 376
set system session filter 377
set-next-reboot 379
sfp-mode-sgmii 379
shutdown 379
ssh 380
sync-session 380
system custom-language import 380
system fortisandbox test-connectivity 381
tac report 381
telnet 381
time 381
traceroute 382
tracert6 382
update-av 383
update-geo-ip 383
update-ips 383
update-list 384
update-now 384
update-src-vis 384
upd-vd-license 384
upload 385
usb-device 385
usb-disk 386
vpn certificate ca 386
vpn certificate crl 387
vpn certificate local export 388
vpn certificate local generate 389
vpn certificate local import 391
vpn certificate remote 392
vpn ipsec tunnel down 392
vpn ipsec tunnel up 393
vpn sslvpn del-all 393
vpn sslvpn del-tunnel 393
vpn sslvpn del-web 393
vpn sslvpn list 394
webfilter quota-reset 394
wireless-controller delete-wtp-image 394
wireless-controller list-wtp-image 394
wireless-controller reset-wtp 395
wireless-controller restart-acd 395
wireless-controller restart-wtpd 395
wireless-controller upload-wtp-image 395
get 396
application internet-service status 396
application internet-service-summary 396
certificate 396
extender modem-status 397
extender sys-info 398
firewall dnstranslation 398
firewall iprope appctrl 398
firewall iprope list 398
firewall proute, proute6 399
firewall service custom 399
firewall shaper 400
grep 401
gui console status 401
hardware cpu 402
hardware memory 403
hardware nic 403
hardware npu 404
hardware status 407
ips decoder status 407
ips rule status 408
ips session 408
ips view-map 409
ipsec tunnel 409
mgmt-data status 410
pbx branch-office 410
pbx dialplan 410
pbx did 411
pbx extension 411
pbx ftgd-voice-pkg 411
pbx global 412
pbx ringgrp 412
pbx sip-trunk 413
pbx voice-menu 413
router info bfd neighbor 414
router info bgp 414
router info isis 416
router info kernel 416
router info multicast 417
router info ospf 418
router info protocols 420
router info rip 421
router info routing-table 421
router info vrrp 422
router info6 bgp 422
router info6 interface 423
router info6 kernel 424
router info6 ospf 424
router info6 protocols 424
router info6 rip 424
router info6 routing-table 425
switch-controller poe 425
system admin list 425
system admin status 426
system arp 427
system auto-update 427
system central-management 427
system checksum 428
system cmdb status 428
system fortianalyzer-connectivity 429
system fortiguard-log-service status 429
system fortiguard-service status 430
system ha-nonsync-csum 430
system ha status 430
system info admin status 433
system info admin ssh 434
system interface physical 434
system ip-conflict status 435
system mgmt-csum 435
system performance firewall 435
system performance status 436
system performance top 437
system session list 438
system session status 439
system session-helper-info list 439
system session-info 440
system source-ip 441
system startup-error-log 442
system stp list 442
system status 442
test 443
user adgrp 445
vpn certificate 445
vpn ike gateway 446
vpn ipsec tunnel details 446
vpn ipsec tunnel name 446
vpn ipsec tunnel summary 446
vpn ipsec stats crypto 446
vpn ipsec stats tunnel 447
vpn ssl monitor 447
vpn status l2tp 448
vpn status pptp 448
vpn status ssl 448
webfilter categories 448
webfilter ftgd-statistics 449
webfilter status 451
wireless-controller client-info 451
wireless-controller rf-analysis 451
wireless-controller scan 452
wireless-controller spectral-info 452
wireless-controller status 453
wireless-controller vap-status 453
wireless-controller wlchanlistlic 453
wireless-controller wtp-status 455
tree 457
Change Log
Change Log
September 19, 2017 The following changes have been made under config system interface:
Introduction
This document describes FortiOS 5.4 CLI commands used to configure and manage a FortiGate unit from the
command line interface (CLI).
This document is a work in progress and is not complete. Our focus is on documenting the most commonly used
CLI commands or the commands that require more explanation. Now that we have published the first version you
can expect to see updates as more commands and more features are added to the document. We will also have
an HTML version up soon and all of this information will be accessible from http://cli.fortinet.com.
If you have comments on this content or requests for commands that are not included contact us at
[email protected].
Managing Firmware with the FortiGate BIOS describes how to change firmware at the console during FortiGate
unit boot-up.
Using the CLI describes how to connect to the CLI and some basics of how it works.
config describes the commands for each configuration branch of the FortiOS CLI. This section is a work in
progress with more content to be added in future versions.
Some FortiOS™ CLI commands and options are not available on all FortiGate units. The CLI displays an error
message if you attempt to enter a command or option that is not available. You can use the question mark ‘?’ to
verify the commands and options that are available.
Commands and options may not be available for the following reasons:
FortiGate model
All commands are not available on all FortiGate models. For example, low-end FortiGate models do not support
the aggregate interface type option of the config system interface command.
Hardware configuration
For example, some AMC module commands are only available when an AMC module is installed.
Commands for extended functionality are not available on all FortiGate models. The CLI Reference includes
commands only available for FortiWiFi units, FortiOS Carrier, and FortiGate Voice units.
FortiGate units are shipped with firmware installed. Usually firmware upgrades are performed through the web-
based manager or by using the CLI execute restore command. From the console, you can also interrupt the
FortiGate unit’s boot-up process to load firmware using the BIOS firmware that is a permanent part of the unit.
The BIOS menu is available only through direct connection to the FortiGate unit’s Console port. During boot-up,
“Press any key” appears briefly. If you press any keyboard key at this time, boot-up is suspended and the BIOS
menu appears. If you are too late, the boot-up process continues as usual.
Enter C,R,T,F,I,B,Q,or H:
Typing the bracketed letter selects the option. Input is case-sensitive. Most options present a submenu. An
option value in square brackets at the end of the “Enter” line is the default value which you can enter simply by
pressing Return. For example,
Enter image download port number [WAN1]:
In most menus, typing H re-lists the menu options and typing Q returns to the previous menu.
Loading firmware
The BIOS can download firmware from a TFTP server that is reachable from a FortiGate unit network interface.
You need to know the IP address of the server and the name of the firmware file to download.
The downloaded firmware can be saved as either the default or backup firmware. It is also possible to boot the
downloaded firmware without saving it.
Non-DHCP steps
[I]: Set local IP address.
Enter local IP address [192.168.1.188]:
This is a temporary IP address for the FortiGate unit network interface. Use a unique address on the same
subnet to which the network interface connects.
[S]: Set local subnet mask.
Enter local subnet mask [255.255.252.0]:
[G]: Set local gateway.
The local gateway IP address is needed if the TFTP server is on a different subnet than the one to which the
FortiGate unit is connected.
MAC: 00:09:0f:b5:55:28
##########################################################
Image Received.
Checking image... OK
Save as Default firmware/Backup firmware/Run image without
saving:[D/B/R]?
After you choose any option, the FortiGate unit reboots. If you choose [D] or [B], there is first a pause while the
firmware is copied:
Programming the boot device now.
................................................................
................................................................
You can reboot the FortiGate unit from the backup firmware, which then becomes the default firmware.
The command line interface (CLI) is an alternative configuration tool to the web-based manager. While the
configuration of the GUI uses a point-and-click method, the CLI requires typing commands or uploading batches
of commands from a text file, like a configuration script.
This section also explains common CLI tasks that an administrator does on a regular basis and includes the
topics:
l Locally with a console cable — Connect your computer directly to the FortiGate unit’s console port. Local access is
required in some cases:
l If you are installing your FortiGate unit for the first time and it is not yet configured to connect to your network,
you may only be able to connect to the CLI using a local serial console connection, unless you reconfigure your
computer’s network settings for a peer connection.
l Restoring the firmware utilizes a boot interrupt. Network access to the CLI is not available until after the boot
process has completed, making local CLI access the only viable option.
l Through the network — Connect your computer through any network attached to one of the FortiGate unit’s
network ports. The network interface must have enabled Telnet or SSH administrative access if you will connect
using an SSH/Telnet client, or HTTP/HTTPS administrative access if you will connect using the CLI Console
widget in the web-based manager.
l Locally with FortiExplorer — Connect your computer directly to the FortiGate unit’s USB management port.
FortiExplorer provides direct access to the FortiOS setup wizard, Web-based Manager, and CLI console.
1. Using the null modem or RJ-45-to-DB-9 cable, connect the FortiGate unit’s console port to the serial
communications (COM) port on your management computer.
2. On your management computer, start HyperTerminal.
3. For the Connection Description, enter a Name for the connection, and select OK.
4. On the Connect using drop-down list box, select the communications (COM) port on your management
computer you are using to connect to the FortiGate unit.
5. Select OK.
6. Select the following Port settings and select OK.
Data bits 8
Parity None
Stop bits 1
If you do not want to use an SSH/Telnet client and you have access to the web-based
manager, you can alternatively access the CLI through the network using the CLI
Console widget in the web-based manager.
You must enable SSH and/or Telnet on the network interface associated with that physical network port. If your
computer is not connected directly or through a switch, you must also configure the FortiGate unit with a static
route to a router that can forward packets from the FortiGate unit to your computer. You can do this using either a
local console connection or the web-based manager.
Requirements
l A computer with an available serial communications (COM) port and RJ-45 port
l Terminal emulation software such as HyperTerminal for Microsoft Windows
To enable SSH or Telnet access to the CLI using a local console connection
1. Using the network cable, connect the FortiGate unit’s network port either directly to your computer’s network port,
or to a network through which your computer can reach the FortiGate unit.
2. Note the number of the physical network port.
3. Using a local console connection, connect and log into the CLI.
4. Enter the following command:
config system interface
edit <interface_str>
set allowaccess <protocols_list>
end
where:
l <interface_str> is the name of the network interface associated with the physical network port and
containing its number, such as port1
l <protocols_list> is the complete, space-delimited list of permitted administrative access protocols, such
as https ssh telnet
For example, to exclude HTTP, HTTPS, SNMP, and PING, and allow only SSH and Telnet
administrative access on port1:
config system interface
edit port1
set allowaccess ssh telnet
end
5. To confirm the configuration, enter the command to display the network interface’s settings.
show system interface <interface_str>
The CLI displays the settings, including the allowed administrative access protocols, for the network
interfaces.
Secure Shell (SSH) provides both secure authentication and secure communications to the CLI. FortiGate units
support 3DES and Blowfish encryption algorithms for SSH.
Before you can connect to the CLI using SSH, you must first configure a network interface to accept SSH
connections. The following procedure uses PuTTY. Steps may vary with other SSH clients.
The SSH client may display a warning if this is the first time you are connecting to the FortiGate unit
and its SSH key is not yet recognized by your SSH client, or if you have previously connected to the
FortiGate unit but used a different IP address or SSH key. This is normal If your management
computer is directly connected to the FortiGate unit with no network hosts between them.
6. Click Yes to verify the fingerprint and accept the FortiGate unit’s SSH key. You will not be able to log in until you
have accepted the key.
7. The CLI displays a login prompt.
8. Type a valid administrator account name (such as admin) and press Enter.
9. Type the password for this administrator account and press Enter.
The FortiGate unit displays a command prompt (its host name followed by a #. You can now enter
CLI commands.
If three incorrect login or password attempts occur in a row, you will be disconnected.
If this occurs, wait one minute, then reconnect to attempt the login again.
Telnet is not a secure access method. SSH should be used to access the CLI from the
Internet or any other untrusted network.
Before you can connect to the CLI using Telnet, you must first configure a network interface to accept Telnet
connections.
If three incorrect login or password attempts occur in a row, you will be disconnected.
If this occurs, wait one minute, then reconnect to attempt the login again.
Command syntax
When entering a command, the command line interface (CLI) requires that you use valid syntax and conform to
expected input constraints. It will reject invalid commands.
Fortinet documentation uses the conventions below to describe valid command syntax.
Terminology
Each command line consists of a command word that is usually followed by words for the configuration data or
other specific item that the command uses or affects:
get system admin
To describe the function of each word in the command line, especially if that nature has changed between
firmware versions, Fortinet uses terms with the following definitions.
l command — A word that begins the command line and indicates an action that the FortiGate unit should perform
on a part of the configuration or host on the network, such as config or execute. Together with other words,
such as fields or values, that end when you press the Enter key, it forms a command line. Exceptions include
multiline command lines, which can be entered using an escape sequence.
Valid command lines must be unambiguous if abbreviated. Optional words or other command line permutations are
indicated by syntax notation.
l sub-command — A kind of command that is available only when nested within the scope of another command.
After entering a command, its applicable sub-commands are available to you until you exit the scope of the
command, or until you descend an additional level into another sub-command. Indentation is used to indicate levels
of nested commands.
Not all top-level commands have sub-commands. Available sub-commands vary by their containing scope.
l object — A part of the configuration that contains tables and / or fields. Valid command lines must be specific
enough to indicate an individual object.
l table — A set of fields that is one of possibly multiple similar sets which each have a name or number, such as an
administrator account, policy, or network interface. These named or numbered sets are sometimes referenced by
other parts of the configuration that use them.
l field — The name of a setting, such as ip or hostname. Fields in some tables must be configured with values.
Failure to configure a required field will result in an invalid object configuration error message, and the FortiGate
unit will discard the invalid table.
l value — A number, letter, IP address, or other type of input that is usually your configuration setting held by a field.
Some commands, however, require multiple input values which may not be named but are simply entered in
sequential order in the same command line. Valid input types are indicated by constraint notation.
l option — A kind of value that must be one or more words from of a fixed set of options.
Indentation
Indentation indicates levels of nested commands, which indicate what other sub-commands are available from
within the scope. For example, the edit sub-command is available only within a command that affects tables,
and the next sub-command is available only from within the edit sub-command:
config system interface
edit port1
set status up
end
Notation
Brackets, braces, and pipes are used to denote valid permutations of the syntax. Constraint notations, such as
<address_ipv4>, indicate which data types or string patterns are acceptable value input.
Convention Description
[verbose {1 | 2 | 3}]
indicates that you may either omit or type both the verbose word and its
accompanying option, such as verbose 3.
Convention Description
Convention Description
indicates that you must enter either enable or disable, but must not
enter both.
Sub-commands
Each command line consists of a command word that is usually followed by words for the configuration data or
other specific item that the command uses or affects:
get system admin
Sub-commands are available from within the scope of some commands. When you enter a sub-command level,
the command prompt changes to indicate the name of the current command scope. For example, after entering:
config system admin
Applicable sub-commands are available to you until you exit the scope of the command, or until you descend an
additional level into another sub-command.
For example, the edit sub-command is available only within a command that affects tables; the next sub-
command is available only from within the edit sub-command:
config system interface
edit port1
set status up
next
end
Available sub-commands vary by command. From a command prompt within config, two types of sub-
commands might become available:
clone <table> Clone (or make a copy of) a table from the current object.
clone 27 to 30
• edit the settings for the default admin administrator account by typing
edit admin.
• add a new administrator account with the name newadmin and edit
newadmin‘s settings by typing edit newadmin.
edit changes the prompt to reflect the table you are currently editing.
Save the changes to the current object and exit the config command.
end
This returns you to the top-level command prompt.
• In objects, get lists the table names (if present), or fields and their
values.
• In a table, get lists the fields and their values.
For example, in config user local, you could type get to see the list
of user names, then type purge and then y to confirm that you want to
delete all users.
The CLI acknowledges the new table, and changes the command prompt to show that you are now within the
admin_1 table:
new entry 'admin_1' added
(admin_1)#
abort Exit both the edit and/or config commands without saving the fields.
end Save the changes made to the current table or object fields, and exit the config
command. (To exit without saving, use abort instead.)
move Move an object within a list, when list order is important. For example, rearranging
security policies within the policy list.
Save the changes you have made in the current table’s fields, and exit the edit
command to the object prompt. (To save and exit completely to the root prompt, use
end instead.)
next
next is useful when you want to create or edit several tables in the same object,
without leaving and re-entering the config command each time.
next is only available from a table prompt; it is not available from an object prompt.
For example, if a group contains members A, B, C, and D and you remove all users
except for B, use the command select member B.
For example, in config system admin, after typing edit admin, you could
type set password newpass to change the password of the admin administrator
set <field>
to newpass.
<value>
Note: When using set to change a field containing a space-delimited list, type the
whole new list. For example, set <field> <new-value> will replace the list with
the <new-value> rather than appending <new-value> to the list.
show Display changes to the default configuration. Changes are listed in the form of
configuration commands.
For example, in config system admin, after typing edit admin, typing unset
password resets the password of the admin administrator account to the default (in
this case, no password).
to assign the value my1stExamplePassword to the password field. You might then enter the next
command to save the changes and edit the next administrator’s table.
Permissions
Access profiles control which CLI commands an administrator account can access. Access profiles assign either
read, write, or no access to each area of the FortiGate software. To view configurations, you must have read
access. To make changes, you must have write access. So, depending on the account used to log in to the
FortiGate unit, you may not have complete access to all CLI commands
Unlike other administrator accounts, the admin administrator account exists by default and cannot be deleted.
The admin administrator account is similar to a root administrator account. This administrator account always
has full permission to view and change all FortiGate configuration options, including viewing and changing all
other administrator accounts. Its name and permissions cannot be changed. It is the only administrator account
that can reset another administrator’s password without being required to enter that administrator’s existing
password.
Set a strong password for the adminadministrator account, and change the password
regularly. By default, this administrator account has no password. Failure to maintain
the password of the admin administrator account could compromise the security of
your FortiGate unit.
For complete access to all commands, you must log in with the administrator account named admin.
Tips
Basic features and characteristics of the CLI environment provide support and ease of use for many CLI tasks.
Help
To display brief help during command entry, press the question mark (?) key.
l Press the question mark (?) key at the command prompt to display a list of the commands available and a
description of each command.
l Type a word or part of a word, then press the question mark (?) key to display a list of valid word completions or
subsequent words, and to display a description of each.
Action Keys
If multiple words could complete your entry, display all possible completions with
helpful descriptions of each.
Down arrow, or
Recall the next command.
Ctrl + N
Move the cursor left or right within the command line. Left or Right arrow
Abort current interactive commands, such as when entering multiple lines. Ctrl + C
If you are not currently within an interactive command such as config or edit, this
closes the CLI connection.
For each line that you want to continue, terminate it with a backslash ( \ ). To complete \ then Enter
the command line, terminate it by pressing the spacebar and then the Enter key,
without an immediately preceding backslash.
Command abbreviation
You can abbreviate words in the command line to their smallest number of non-ambiguous characters.
For example, the command get system status could be abbreviated to g sy stat.
However, there are additional commands which can be used instead of set for changing options in a list.
For example, append member would add user D to a user group while all previous
group members are retained
For example, unselect member A would remove member A from a group will all
previous group members are retained.
Environment variables
The CLI supports the following environment variables. Variable names are case-sensitive.
Environment variables
$USERFROM The management access type (ssh, telnet, jsconsole for the CLI Console
widget in the web-based manager, and so on) and the IP address of the administrator
that configured the item.
$USERNAME The account name of the administrator that configured the item.
For example, the FortiGate unit’s host name can be set to its serial number.
config system global
set hostname $SerialNum
end
Special characters
The characters <, >, (,), #, ', and “ are not permitted in most CLI fields. These characters are special characters,
also known as reserved characters.
You may be able to enter special character as part of a string’s value by using a special command, enclosing it in
quotes, or preceding it with an escape sequence — in this case, a backslash ( \ ) character.
In other cases, different keystrokes are required to input a special character. If you need to enter ? as part of
config, you first need to input CTRL-V. If you enter the question mark (?) without first using CTRL-V, the question
mark has a different meaning in CLI: it will show available command options in that section.
Character Keys
? Ctrl + V then ?
'
\'
(to be interpreted as part of a string value,
not to end the string)
" \"
\ \\
Use the following command to display the MAC address of the FortiGate unit internal interface:
get hardware nic internal | grep Current_HWaddr
Current_HWaddr 00:09:0f:cb:c2:75
Use the following command to display all TCP sessions in the session list and include the session list line number
in the output
get system session list | grep -n tcp
Use the following command to display all lines in HTTP replacement message commands that contain URL
(upper or lower case):
show system replacemsg http | grep -i url
The option -f is also available to support Fortinet contextual output, in order to show the complete
configuration. The following example shows the difference in output when -f option is used versus when it is not.
Using -f:
show | grep -f ldap-group1
config user group
edit "ldap-group1"
set member "pc40-LDAP"
next
end
config firewall policy
edit 2
set srcintf "port31"
set dstintf "port32"
set srcaddr "all"
set action accept
set identity-based enable
set nat enable
config identity-based-policy
edit 1
set schedule "always"
set groups "ldap-group1"
set dstaddr "all"
set service "ALL"
next
end
next
end
Input is stored using Unicode UTF-8 encoding but is not normalized from other encodings into UTF-8 before it is
stored. If your input method encodes some characters differently than in UTF-8, your configured items may not
display or operate as expected.
Regular expressions are especially impacted. Matching uses the UTF-8 character values. If you enter a regular
expression using another encoding, or if an HTTP client sends a request in an encoding other than UTF-8,
matches may not be what you expect.
For example, with Shift-JIS, backslashes ( \ ) could be inadvertently interpreted as the symbol for the Japanese
yen ( ¥ ) and vice versa. A regular expression intended to match HTTP requests containing money values with a
yen symbol therefore may not work it if the symbol is entered using the wrong encoding.
HTTP clients may send requests in encodings other than UTF-8. Encodings usually
vary by the client’s operating system or input language. If you cannot predict the
client’s encoding, you may only be able to match any parts of the request that are in
English, because regardless of the encoding, the values for English characters tend to
be encoded identically. For example, English words may be legible regardless of
interpreting a web page as either ISO 8859-1 or as GB2312, whereas simplified
Chinese characters might only be legible if the page is interpreted as GB2312.
If you configure your FortiGate unit using other encodings, you may need to switch language settings on your
management computer, including for your web browser or Telnet/SSH client. For instructions on how to configure
your management computer’s operating system language, locale, or input method, see its documentation.
If you choose to configure parts of the FortiGate unit using non-ASCII characters, verify that all systems
interacting with the FortiGate unit also support the same encodings. You should also use the same encoding
throughout the configuration if possible in order to avoid needing to switch the language settings of the web-
based manager and your web browser or Telnet/SSH client while you work.
Similarly to input, your web browser or CLI client should usually interpret display output as encoded using UTF-8.
If it does not, your configured items may not display correctly in the web-based manager or CLI. Exceptions
include items such as regular expressions that you may have configured using other encodings in order to match
the encoding of HTTP requests that the FortiGate unit receives.
1. On your management computer, start your web browser and go to the URL for the FortiGate unit’s web-based
manager.
2. Configure your web browser to interpret the page as UTF-8 encoded.
3. Log in to the FortiGate unit.
4. Go to System > Dashboard > Status.
5. In title bar of the CLI Console widget, click Edit (the pencil icon).
6. Enable Use external command input box.
7. Select OK.
8. The Command field appears below the usual input and display area of the CLI Console widget.
9. In Command, type a command.
You may need to surround words that use encoded characters with single quotes ( ' ).
Depending on your Telnet/SSH client’s support for your language’s input methods and for sending
international characters, you may need to interpret them into character codes before pressing Enter.
Screen paging
You can configure the CLI to pause after displaying each page’s worth of text when displaying multiple pages of
output. When the display pauses, the last line displays --More--. You can then either:
Baud rate
You can change the default baud rate of the local console connection.
Editing the configuration on an external host can be timesaving if you have many changes to make, especially if
your plain text editor provides advanced features such as batch changes.
1. Use execute backup to download the configuration file to a TFTP server, such as your management
computer.
2. Edit the configuration file using a plain text editor that supports Unix-style line endings.
Do not edit the first line. The first line(s) of the configuration file (preceded by a #
character) contains information about the firmware version and FortiGate model. If
you change the model number, the FortiGate unit will reject the configuration file
when you attempt to restore it.
3. Use execute restore to upload the modified configuration file back to the FortiGate unit.
The FortiGate unit downloads the configuration file and checks that the model information is correct.
If it is, the FortiGate unit loads the configuration file and checks each command for errors. If a
command is invalid, the FortiGate unit ignores the command. If the configuration file is valid, the
FortiGate unit restarts and loads the new configuration.
config
The command branches and commands are in alphabetical order. The information in this section has been
extracted and formatted from FortiOS source code. The extracted information includes the command syntax,
command descriptions (extracted from CLI help) and default values. This is the first version of this content
produced in this way. You can send comments about this content to [email protected].
antivirus
antivirus heuristic
antivirus profile
antivirus quarantine
antivirus settings
application
application casi profile
application custom
application internet-service-custom
application list
application name
application rule-settings
dlp
dlp filepattern
dlp fp-doc-source
dlp fp-sensitivity
dlp sensor
dlp settings
endpoint-control
endpoint-control forticlient-registration-sync
endpoint-control profile
endpoint-control settings
firewall
firewall address | address6
firewall addrgrp | addgrp6
firewall policy | policy6
firewall schedule group
firewall schedule onetime
firewall service category
firewall service custom
firewall vip
ips
ips custom
ips global
ips rule
ips sensor
log
log custom-field
log eventfilter
log gui-display
log threat-weight
system
system admin
system central-management
system csf
system dhcp_server
system dns
system global
reset-sessionless-tcp {enable | disable}
system ha
system ha-monitor
system interface
system link-monitor
system np6
system npu
system password-policy
system sms-server
system wccp
Router mode
Client mode
user
user adgrp
user device
user device-access-list
user device-category
user device-group
user fortitoken
user fsso
user fsso-polling
user group
user krb-keytab
user ldap
user local
user password-policy
user peer
user peergrp
user pop3
user radius
user security-exempt-list
user setting
user tacacs+
vpn
vpn certificate
vpn ssl
wanopt
wanopt auth-group
auth-method {cert | psk}
wanopt peer
wanopt profile
wanopt settings
wanopt storage
wanopt webcache
web-proxy
web-proxy debug-url
web-proxy explicit
web-proxy forward-server
web-proxy forward-server-group
web-proxy global
web-proxy profile
web-proxy url-match
web-proxy wisp
wireless-controller
wireless-controller ap-status
wireless-controller global
wireless-controller setting
wireless-controller timers
wireless-controller vap
eap-reauth {enable | disable}
wireless-controller vap-group
wireless-controller wids-profile
wireless-controller wtp
wireless-controller wtp-group
wireless-controller wtp-profile
antivirus
Use antivirus commands to configure antivirus scanning for services, quarantine options, and to enable or disable
grayware and heuristic scanning.
antivirus heuristic
antivirus profile
Create and configure antivirus profiles that can be applied to firewall policies.
comment <string>
Add a comment to the profile.
replacemsg-group <group-name>
Set a replacement message group to use with antivirus scanning.
l proxy: Scanning reconstructs content passing through the FortiGate unit and inspects the content for security
threats.
l flow-based: Scanning takes a snapshot of content packets and uses pattern matching to identify security threats
in the content.
The default is proxy. For more information, see Inspection Modes.
ftgd-analytics {disable}
Choose which files are sent to FortiSandbox for further inspection. Select between the following options:
config nac-quar
Configure the quarantine settings for this profile.
expiry <duration>
Set the duration of the quarantine in the days, hours, minutes format <###d##h##m>. The default is 5 minutes.
This option only appears if infected is set to quar-src-ip.
l quick: This mode uses a compact antivirus database and advanced techniques to improve performance.
l full: In this mode, content packets are buffered while simultaneously being sent to their destination.
The default is full. These options are only available when inspection-mode is set to flow-based.
antivirus quarantine
Configure the antivirus quarantine options. Note: MM1, MM3, MM4, and MM7 traffic types supported only in
FortiOS Carrier.
agelimit <int>
Set the age limit for how long files are kept in quarantine. 0 means files are kept forever. The default is 0. This
option appears when destination is not set to NULL.
maxfilesize <int>
Specify, in MB, the maximum file size to quarantine. 0 means unlimited. The default is 0.
quarantine-quota <int>
Set the antivirus quarantine quota in MB, which is the amount of disk space to reserve for quarantining files. 0
means unlimited. The default is 0.
drop-infected {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Drop infected files found in traffic for the specified protocols. By default, no files are dropped.
store-infected {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Quarantine virus infected files found in traffic for the specified protocols. By default, all protocols are specified.
drop-blocked {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Drop blocked files found in traffic for the specified protocols. By default, no files are dropped.
store-blocked {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Quarantine blocked files found in traffic for the specified protocols. By default, all protocols are specified.
drop-heuristic {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Drop files found by heuristic scanning in traffic for the specified protocols. By default, no files are dropped.
store-heuristic {imap | smtp | pop3 | http | ftp | nntp | imaps | smtps | pop3s | https | ftps |
mapi | mm1 | mm3 | mm4 | mm7}
Quarantine files found by heuristic scanning in traffic for the specified protocols. By default, all protocols are
specified.
drop-intercepted {imap | smtp | pop3 | http | ftp | mm1 | mm3 | mm4 | mm7}
For FortiOS Carrier, drop intercepted files found in traffic for the specified protocols. By default, no files are
dropped.
store-intercepted {imap | smtp | pop3 | http | ftp | mm1 | mm3 | mm4 | mm7}
For FortiOS Carrier, quarantine intercepted files found in traffic for the specified protocols. By default, all
protocols are specified.
lowspace {drop-new | ovrw-old}
Select the method for handling additional quarantined files when the FortiGate hard disk is running out of space.
Select from the following options:
antivirus settings
l normal: use the normal virus database, which includes viruses that are "in the wild," including the commonly seen
viruses. For regular antivirus protection, it is sufficient to use this database.
l extended: use the extended virus database, which includes both "in the wild" viruses and a large collection of "in
the zoo" viruses. It is suitable for an enhanced security environment.
l extreme: use the extreme virus database, which includes both "in the wild" viruses and all available "in the zoo"
viruses. It is suitable for an enhanced security environment.
The default is normal.
application
comment <string>
Add a comment to the CASI profile.
replacemsg-group <group-name>
Set a replacement message group to use with CASI scanning.
config entries
Configure application entries for scanning.
application <ID>
Chose which application to apply the profile to. Type set application ? to view all available options.
application custom
comment <string>
Add a comment to the custom application.
signature <string>
Set the application signature. For information about custom application signatures, see Custom Application &
IPS Signatures.
category <ID>
Set the category ID. Type set category ? to view all available options.
protocol <ID>
Set the protocol ID. Type set protocol ? to view all available options.
technology <ID>
Set the technology ID. Type set technology ? to view all available options.
vendor <ID>
Set the vendor ID. Type set vendor ? to view all available options.
application internet-service-custom
master-service-id <ID>
Set the Internet service database application ID for the service. Type set master-service-id ? to view all
available options.
comment <string>
Add a comment to the service.
application list
comment <string>
Add a comment to the control list.
replacemsg-group <group-name>
Select a replacement message group to use for the control list.
config entries
Configure entries on the application control list.
risk <level>
Set the risk level for the applications. Select from the following options:
l 1: Low
l 2: Elevated
l 3: Medium
l 4: High
l 5: Critical
category <ID>
Set the application category. Type set category ? to view all options.
sub-category <ID>
Set the application sub-category. Type set sub-category ? to view all options. Enter all to include all sub-
categories.
application <ID>
Set which applications are allowed. Type set application ? to view all options.
protocols <ID>
Set which protocols are allowed. Type set protocols ? to view all options. The default is all.
vendor <ID>
Set which application vendors are allowed. Type set vendor ? to view all options. The default is all.
technology {all | 0 | 1 | 2 | 4}
Select the technologies involved in these applications. Select from the following options:
popularity {1 | 2 | 3 | 4 | 5}
Enter the popularity levels of this application, with 1 being the least popular and 5 being the most popular. The
default is 1 2 3 4 5.
tags <string>
Assign object tags.
session-ttl <int>
Set the Session TTL. The default is 0.
application name
Use this command to view the application category and ID of each application. This command is read only and
cannot be used to change application settings.
get
Use get to view information about the application.
application rule-settings
tags <tag-name>
The tags for the rule settings entry.
dlp
dlp filepattern
Use this command to add, edit or delete the file patterns used for DLP file blocking and to set which protocols to
check for files to block.
edit <filepattern_list_int>
A unique integer to identify the file pattern list. edit ? displays existing file pattern lists and their names.
Range: 0 - 4294967295.
name <string>
Name of table containing the file pattern list.
comment <string>
Enter optional comment. The comment appears in the DLP sensor list and can remind you of the details of the
sensor.
config entries
Configure file patterns used by DLP blocking.
edit <filepattern_str>
The name of the file pattern being configured. This can be any character string.
l pattern: filter based on the file name. The pattern may include wildcards (*). For example, blocking *.scr will
stop all files with an .scr file extension.
l type: filter based on examination of the file contents, regardless of the file name. If you block the file type Archive
(zip), all zip archives are blocked even if named with a different file extension.
file-type <string>
This command is only available and valid when filter-type is set to type . set file-type ? displays all
available options.
This file type filter will examine the file contents to determine the type of file and look for a match to the file-
type specified. The file name and file extension are ignored. Because of the way the file type filter works,
renaming files to make them appear to be of a different type will not allow them past the FortiGate unit without
detection.
l unknown: to configure a rule affecting every file format the file type filter unit does not recognize. Unknown
includes every file format not available in the file-type command.
l ignored: to configure a rule affecting traffic the FortiGate unit typically does not scan. This includes primarily
streaming audio and video.
dlp fp-doc-source
Use this command to add fingerprinting document sources including the server and filepath for the source files.
edit <name_string>
Identify the server to which DLP will be applied.
server-type {samba}
Enter the type of DLP server. Currently only Samba (SMB) servers are supported.
server <string>
The IPv4 or IPv6 address of the server.
username <string>
Samba server login username.
password <password>
Samba server login password.
file-path <string>
Path to file on the server.
file-pattern <string>
The file pattern to match when using DLP blocking. Can include wildcards and should include file type. For
example,you would enter set file-pattern "*fortinet.xls" to match all files that end in fortinet.xls.
sensitivity <string>
Sensitivity labels must be created with config dlp fp-sensitivity before using this command. Specify a
sensitivity label to apply to source files. set sensitivity ? displays all available labels.
tod-hour <integer>
Time of day to run scans. Enter the hour only and use 24-hour clock. Only appears if the period is set to daily,
weekly, or monthly. Default is 1.
tod-min <integer>
Time of day to run scans. Enter the minute only. This will only appear if the period is set to daily, weekly, or
monthly. Default is 0.
date <integer>
Date of the month to run scans. This will only appear if the period is set to monthly. Range: 1 - 31. Default is 1.
dlp fp-sensitivity
Use this command to add fingerprinting sensitivity labels that can be applied to document sources and DLP rules.
edit <name_string>
Enter a self-explanatory string for DLP sensitivity level. It will be used when setting sensitivity
under config fp-doc-source. edit ? displays all existing sensitivity levels.
dlp sensor
Use this command to create a DLP sensor. The DLP sensor includes settings such as action, archive, and severity
for each rule or compound rule. A number of preconfigured sensors are provided with your FortiGate. These can
be edited to more closely match your needs. Consult the Handbook's discussion of data leak prevention concepts
for more detail.
comment <string>
Enter an optional description of the DLP sensor. Descriptions with spaces must be enclosed in quotes.
replacemsg-group <group_name>
Specify which replacement message group to use.
config filter
Configure DLP filters.
edit <id_integer>
Specify ID of filter to be configured. Range: 0-4294967295. edit ? displays all existing filter IDs.
l credit-card: preconfigured sensor that logs the traffic, both files and messages, that contain credit card
numbers in the formats used by American Express, MasterCard and Visa.
l ssn: preconfigured sensor that logs the traffic containing Social Security numbers with the exception of WebEx
invitation emails.
l watermark: Match defined file watermarks. Fortinet provides a Linux-based utility that applies a digital
watermark to files. The utility adds a small (approx. 100 byte) pattern to the file that is recognized by the DLP
watermark filter. The pattern is invisible to the end user. Consult the Handbook's discussion of data leak prevention
concepts for more detail.
l encrypted: Look for encrypted files. The filter is a binary one. If the files going through the policy is encrypted,
the action is triggered.
regexp <string>
The FortiGate checks network traffic for the regular expression specified in this regular expression filter. The
regular expression library used by Fortinet is a variation of a library called PCRE (Perl Compatible Regular
Expressions). Option appears when type is set to file and filter-by is set to regexp.
file-type <integer>
File pattern table. Option appears when type is set to file and filter-by is set to file-type. Range: 0 -
4294967295.
file-size <integer>
Set the file size in KB. Files over this size will match with the filter. Option appears when type is set to file and
filter-by is set to file-size. Range: 0-4294967295. Default is 0.
fp-sensitivity
Match against a fingerprint sensitivity. Option appears when type is set to file and filter-by is set to
fingerprint or watermark. Fingerprinting must be configured in the CLI. See also fp-doc-source and fp-
sensitivity. Consult the Handbook's discussion of data leak prevention concepts for more detail.
match-percentage <integer>
Percentage of chunks required to constitute a match. Option appears when type is set to file and filter-
by is set to fingerprint. Range: 0-100. Default is 0.
company-identifier
Company identifier for watermarking. Option appears when type is set to file and filter-by is set to
watermark. Ensures that you are only blocking watermarks that your company has placed on the files, not
watermarks with the same name but place by other companies.
l allow: no action is taken even if the patterns specified in the filter are matched.
l log-only: the FortiGate will take no action on network traffic matching a rule with this action. The filter match is
logged
l block: traffic matching a filter with the block action will not be delivered.
l quarantine-ip : block access through the FortiGate unit for any IP address that sends traffic matching a sensor
with this action. The IP address is added to the Banned User list for a duration of time that is determined by set
expiry.
expiry <###d##h##m>
Set the duration of the quarantine in the days, hours, minutes format dddhhmm ###d##h##m. Only appears if
action is set to quarantine-ip. Range: 0d0h1m -364d23h59m. Default is 5m.
dlp settings
Use this command to designate logical storage settings for the DLP fingerprinting database.
size <integer>
Enter the maximum total size of files in storage in MB. Default is 16.
l remove-modified-then-oldest: remove oldest chunks first, and then remove oldest file entries.
l remove-oldest: just remove the oldest files first.
l stop-adding: don't remove files, just stop adding to database.
cache-mem-percent <integer>
Enter the maximum percentage of available memory allocated to caching. Range: 1 - 15 %. Default is 2.
chunk-size <integer>
Maximum fingerprint chunk size.
Changing the chunk size will flush the entire database. Document source fingerprints will repopulate with the next
scan. Only manually updated fingerprints will be lost. Range: 100 - 100000. Default is 2800. Smaller chunks
allow for greater precision, but at the cost of increased processing, database size, and lookups.
endpoint-control
Use endpoint-control commands to configure the following parts of the Endpoint NAC feature:
endpoint-control forticlient-registration-sync
endpoint-control profile
endpoint-control settings
firewall
Use firewall commands to configure firewall policies and the data they use.
Use this command to configure firewall addresses used in firewall policies. An IPv4 firewall address is a set of one
or more IP addresses, represented as a domain name, an IP address and a subnet mask, or an IP address range.
An IPv6 firewall address is an IPv6 address prefix. Addresses, address groups, and virtual IPs must have unique
names to avoid confusion in firewall policies. If an address is selected in a policy, it cannot be deleted until it is
deselected from the policy.
Syntax
config firewall {address | address6}
{edit|delete|rename|get|show} <name_str>
edit
Used to select which individual address object to configure or edit values.
edit <address_name>
To get a list of all of the existing address objects, type the command:
Command Prompt (address) # edit ?
or
Command Prompt (address6) # edit ?
If you are creating a new address object, just type the name you wish to used after the edit command. If there
are spaces in the name, use quotation marks.
delete
Used to delete an existing address object
delete <address_name>
purge
Used delete all of the existing address or address6 objects. It deletes all of the values within the table that holds
the information about address or address6 objects within the VDOM.
purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
rename
Used to change the name of the address object.
rename <address_name> to <new_address_name>
name
This field is a unique name given to represent the address object. This setting is for both IPv4 and IPv6. This
setting is first defined when using the edit command to edit an address object that does not currently exist. This
setting is available for both address and address6. The name field of an address object cannot be changed
from within the object. It can be changed by using the rename command in the config firewall address
or config firewall address6 context.
uuid
Each address has a Universally Unique Identifier (UUID) that is automatically assigned. It is a 128 bit value
written in hexadecimal. It can be edited. This setting is available for both address and address6.
Syntax:
set uuid <uuid>
Example:
config firewall address
edit example.com
set uuid d38e0dca-b80c-51e6-1180-6863e1b9ea9a
end
subnet
The IP address and subnet mask of the address. By using different subnet masks a single IP address can be
defined or a group of addresses. This setting is only available for address. This option is available only if the
type option is set to ipmask.
Syntax:
set subnet <ipv4-classnet-any>
Example:
config firewall address
edit example.com
set type ipmask
set subnet 192.168.1.1 255.255.255.255
or ...
set subnet 192.168.1.1/32
end
type
This field sets the type of address object. There are two sets of types for addresses. The first is for IPv4
addresses the second is for IPv6.
IPv4 types
Syntax:
set type {ipmask | iprange | fqdn | geography | wildcard | wildcard-fqdn}
Example:
config firewall address
edit example.com
set type ipmask
end
ip6
This is for the IPv6 address prefix. This setting is only available for address6.
Syntax:
set ip6 <ipv6-network>
Example:
config firewall address6
edit example.com
set ip6 2001:db8:a0b:12f0::1/64
end
start-ip
The first IP address (inclusive) in the range for the address. This setting is available for both address and
address6. This option is available only if the type option is set to iprange.
Syntax:
set start-ip <ipv4-address-any>
Default value: ::
Example:
config firewall address
edit example.com
set type iprange
set start-ip 192.168.1.43
or ...
config firewall address6
edit example.com
set type iprange
set start-ip 2001:db8:a0b:12f0::1
end-ip
The final IP address (inclusive) in the range for the address. This setting is available for both address and
address6. This option is available only if the type option is set to iprange.
Syntax:
set end-ip <ipv4-address-any>
Default value: ::
Example:
config firewall address
edit example.com
set type iprange
set end-ip 192.168.1.201
or ...
config firewall address6
edit example.com
set type iprange
set end-ip 2001:db8:a0b:12f0::89
fqdn
This setting defines a Fully qualified domain name which is normally translated to an IP address by a DNS server.
This setting is only available for address. This option is available only if the type option is set to fqdn.
Syntax:
set fqdn <string>
Example:
config firewall address
edit example.com
set type fqdn
set fqdn example.com
end
country
This field is used to set the country and all of its IP addresses. This setting is only available for address. This
option is available only if the type option is set to geography. The options in this field are 2 character country
code that represent different countries or other options. To get a listing type the command set country ?. An
example of some of the available options are:
ZZ Reserved
A1 Anonymous Proxy
A2 Satellite Provider
O1 Other Country
AD Andorra
.
.
.
ZW Zimbabwe
Syntax:
set country <2 character string>
Example:
config firewall address
edit example.com
set type geography
set country US
end
wildcard-fqdn
A Fully Qualified Domain Name, but using wildcard symbols in place of some of the characters. This setting is
only available for address. This option is available only if the type option is set to wildcard-fqdn.
Syntax:
set wildcard-fqdn <string>
Example:
config firewall address
edit example.com
set wildcard-fqdn *.example.com
end
cache-ttl
This setting defines the minimal TTL (time to live) of individual IP addresses in FQDN cache. The TTL is
measured in seconds. This setting is only available for address. This option is available only if the type option
is set to fqdn.
Syntax:
set cache-ttl <integer>
wildcard
This setting defines an IP address and a wildcard netmask. This setting is only available for address. This
option is available only if the type option is set to wildcard.
Syntax:
set wildcard <ipv4-classnet-any>
Example:
config firewall address
edit example.com
set wildcard 192.168.0.0 255.255.0.64
end
comment
Field used to store descriptive information about the address. The field is limited to 63 characters. Enclose the
string in single quotes to enter special characters or spaces. This setting is available for both address and
address6.
Syntax:
set comment <var-string>
Example:
config firewall address
edit example.com
set comment "Address for the Example Company website"
end
visibility
Enables or disables the ability to see the address in the GUI. This setting is available for both address and
address6.
Syntax:
set visibility {enable | disable}
Example:
config firewall address
edit example.com
set visibility disable
end
associated-interface
Use this option to associate the address to a specific interface on the FortiGate. The address will only be
available for selection if the associated interface is associated to the policy. The option to choose any interface is
also available. This setting is only available for address.
Syntax:
set associated-interface <string>
Example:
config firewall address
edit example.com
set associated-interface wan1
end
color
This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set
the color to default which is color number 1. This setting is available for both address and address6.
Syntax:
set color <integer>
Default value: 0
Example:
config firewall address
edit example.com
set color 15
end
tags
Used to assign a custom tag to the address object. The tags need to be preconfigured in config system
object-tag and the same list of tags can be used anywhere that the tag setting is available. To see what tags
are available for use, use the command set tags ?. This setting is available for both address and
address6. Separate multiple values with a space.
Syntax:
{set|append|clear} tags <name_of_tag>
Example:
config system object-tag
edit example-tag1
next
edit example-tag2
next
edit "example tag 3"
next
end
allow-routing
Enable/disable use of this address in the static route configuration. This setting is only available for address.
Syntax:
set allow-routing {enable | disable}
Example:
config firewall address
edit example.com
Use this command to configure firewall address groups used in firewall policies. You can organize related firewall
addresses into firewall address groups to simplify firewall policy configuration. For example, rather than creating
three separate firewall policies for three firewall addresses, you could create a firewall address group consisting of
the three firewall addresses, then create one firewall policy using that firewall address group. Addresses, address
groups, and virtual IPs must all have unique names to avoid confusion in firewall policies. If an address group is
selected in a policy, it cannot be deleted unless it is first deselected in the policy. An address group can be a
member of another address group.
Syntax
config firewall {addrgrp | addrgrp6}
{edit|delete|purge|rename|get|show} <name_str>
edit
Used to select which individual policy to configure or edit values.
edit <address_group>
To get a list of all of the existing address objects, type the command:
Command Prompt (addrgrp) # edit ?
or
Command Prompt (addrgrp6) # edit ?
If you are creating a new address object, just type the name you wish to used after the edit command. If there
are spaces in the name, use quotation marks.
delete
Used to delete an existing address object
delete <address_group>
purge
Used delete all of the existing addrgrp or addrgrp6 objects. It deletes all of the values within the table that holds
the information about addrgrp or addrgrp6 objects within the VDOM.
purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
rename
Used to change the name of the addrgrp or addrgrp6 object.
rename <address_group> to <new_address_group>
name
This field is a unique name given to represent the address group object. This settings is for both IPv4 and IPv6.
This setting is first defined when using the edit command to edit an address group object that does not currently
exist. The name field of an address object cannot be changed from within the object. It can be changed by using
the rename command in the config firewall addrgrp or config firewall addrgrp6 context.
uuid
Each address has a Universally Unique Identifier (UUID) that is automatically assigned. It is a 128 bit value
written in hexadecimal. It can be edited. This settings is for both IPv4 and IPv6.
Syntax:
set uuid <uuid>
Example:
config firewall addrgrp
edit example_group
set uuid d38e0dca-b80c-51e6-1180-6863e1b9ea9a
end
member
Defines the address objects that are members of the address group. The value is a <string> that should be the
name of one of the existing address objects configured on the device. A group cannot contain both IPv4 and IPv6
address objects. Separate multiple interfaces with a space.
Syntax:
{set|append} members <name of address object> [<name of address object> ...]
Example:
config firewall addrgrp
edit example_group
set member example_address1
or ...
set member example_address1 example_address2
or ...
append example_address3
end
comment
Field used to store descriptive information about the address group. The field is limited to 63 characters. Enclose
the string in single quotes to enter special characters or spaces. This settings is for both IPv4 and IPv6.
Syntax:
set comment <var-string>
Example:
config firewall addrgrp
edit example.com
set comment "Addresses for Vendor Websites"
end
visibility
Enables or disables the ability to see the address group in the GUI. This settings is for both IPv4 and IPv6.
Syntax:
set visibility {enable | disable}
Example:
config firewall addrgrp
edit example_group
set visibility disable
end
color
This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set
the color to default which is color number 1. This settings is for both IPv4 and IPv6.
Syntax:
set color <integer>
Default value: 0
Example:
config firewall addrgrp
edit example_group
set color 7
end
tags
Used to assign a custom tag to the address group object. The tags need to be preconfigured in config
system object-tag and the same list of tags can be used anywhere that the tag setting is available. To see
what tags are available for use, use the command set tags ?. This settings is for both IPv4 and IPv6.
Separate multiple values with a space.
Syntax:
{set|append|clear} tags <name_of_tag>
Example:
config system object-tag
edit example-tag1
next
edit example-tag2
next
edit "example tag 3"
next
end
allow-routing
Enable/disable use of this address group in the static route configuration. This option is only available for IPv4.
Syntax:
set allow-routing {enable | disable}
Example:
config firewall addrgrp
edit example_group
set allow-routing enable
end
Used to change firewall policies or their individual configurations. In addition to editing an existing policy, policies
can be added, deleted, moved or cloned. It is also possible to purge all of the policy content from the table that
holds them.
edit
Used to select which individual policy to configure or edit values.
Syntax:
edit <policyid>
l Chosing 0 as the <policyid> will add a new policy using the next available number as the <policyid>. While
first editing the policy the context at the command prompt will indicate that the <policyid> is 0 but subsequent
editing will require going to the new <policyid>.
delete
Used to delete an existing firewall policy
Syntax:
delete <policyid>
purge
Used delete all of the existing firewall policies. It deletes all of the values within the table that holds the
information about firewall policies within the VDOM.
Syntax:
purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
move
Used to move the position of a policy, relative to another policy, in the sequence order of how policies are applied.
Syntax:
move <policyid> {after | before} <policyid>
clone
Used to copy all of the attributes of an existing policy to another policy.
Syntax:
clone <policyid> to <policyid>
name
A unique name given to the policy. By default, this is a required field but the requirement can be disabled.
Syntax:
set name <string>
Examples:
config firewall policy
edit 0
set name example
or..
set name "example policy name"
end
uuid
Each policy has a Universally Unique Identifier (UUID) that is automatically assigned. It is a 128 bit value written
in hexadecimal. It can be edited.
Syntax:
set uuid <uuid_value>
Example:
config firewall policy
edit 0
set uuid a3c9ccb8-a84a-51e6-d72c-6a5189cadb83
end
srcintf
Sets the source interface of the traffic that the policy will manage. The value is a <string> that should be the
name of one of the existing interfaces configured on the device. Separate multiple interfaces with a space.
Syntax:
{set|append} srcintf <name_of_interface> [<name_of_interface> ...]
Example:
config firewall policy
edit 0
set srcintf port1
or ...
set srcintf port2 port3
or ...
append srcintf port4
end
dstintf
Sets the destination interface of the traffic that the policy will manage. The value is a <string> that should be the
name of one of the existing interfaces configured on the device. Separate multiple interfaces with a space.
Syntax:
{set|append} dstintf <name_of_interface> [<name_of_interface> ...]
Example:
config firewall policy
edit 0
set dstintf port11
or ...
set dstintf port12 port13
or ...
append distintf port14
end
srcaddr
Sets the source address object(s), whose traffic will be managed by this policy. More than once object can be
assigned to this option. Separate multiple addresses with a space.
Syntax:
{set|append} srcaddr <address_object> [<address_object> ...]
Examples:
config firewall policy
edit 0
set srcaddr example_address1
or ...
set srcaddress "example address2" "example_address3"
or ...
append srcaddr example_address4
end
dstaddr
Sets the destination address object(s), whose traffic will be managed by this policy. More than once object can be
assigned to this option. Separate multiple addresses with a space.
Syntax:
{set|append} dstaddr <address_object> [<address_object> ...]
Examples:
config firewall policy
edit 0
set dstaddr example_address1
or ...
set dstaddr "example address2" "example_address3"
or ...
append dstaddr example_address4
end
rtp-nat
Enables or disables the application of source NAT to RTP packets received by the firewall policy. This field is used
for redundant SIP configurations. If rtp-nat is enabled you must add one or more firewall addresses to the
rtp-addr field.
Syntax:
set rtp-nat {enable|disable}
rtp-addr
Used to enter one or more RTP firewall addresses for the policy. This field is only available when rtp-nat is
enabled. Separate multiple addresses with a space.
Syntax:
{set|append} rtp-addr <address_object> [<address_object> ...]
Examples:
config firewall policy
edit 0
set rtp-addr example_address1
or ...
set rtp-addr "example address 2" "example_address3
or ...
append example_address4
end
learning-mode
Enables or disables a specialized action option that monitors and logs traffic based on hard coded security
profiles. See Make it a policy to learn before configuring policies. Enabling learning-mode will make the
action setting unavailable.
Syntax:
set learning-mode {enable|disable}
action
Sets the action that the FortiGate unit will perform on traffic matching this firewall policy.
l accept — Allow packets that match the firewall policy. Optionally, also enable nat to make this a NAT policy
(NAT/Route mode only).
l deny — Deny packets that match the firewall policy.
l ipsec — Allow and apply IPSec VPN. You must specify the vpntunnel attribute. You may also enable or disable
the inbound, outbound, natoutbound, and natinbound attributes and/or specify a natip value.
Limitations:
l If learning-mode is enabled the action setting will not be available
l For IPv6 policies, only accept and deny options are available.
Syntax:
set action [accept|deny|ipsec]
Examples:
config firewall policy
edit 0
set action accept
end
send-deny-packet
Enables or disables the ability to send a packet in reply to denied TCP, UDP or ICMP traffic. When
deny-tcp-with-icmp is enabled in system settings, a Communication Prohibited ICMP packet is sent. Otherwise,
Syntax:
set send-deny-packet {enable|disable}
firewall-session-dirty
Used to determine whether changes to a firewall policy affect all sessions or just new ones.
Syntax:
set firewall-session-dirty [check-all|check-new]
Examples:
config firewall policy
edit 0
set firewall-session-dirty check-new
end
status
Enables or disables a policy.
Syntax:
set status {enable|disable}
schedule
Sets the schedule used by the policy. The variable is the name of the existing one-time or reoccurring schedule,
or schedule group.
Syntax:
set schedule <schedule_object>
Examples:
config firewall policy
edit 0
schedule-timeout
When enabled, sessions are forced to end when the schedule's end time is reached. If disabled, sessions can go
past the schedule's end time, but no new sessions can start.
Syntax:
set schedule-timeout {enable|disable}
service
Used to set the services matched by the policy. The variable can be one or more services or service groups.
Separate multiple services with a space.
Syntax:
{set|append} service <service_object> [<service_object> ...]
Examples:
config firewall policy
edit 0
set service http
or ...
set service http "Email Access"
or ...
append service ftp
end
utm-status
Enables or disables adding security profiles on the firewall policy. If enabled, at least one profile must be added to
the policy. This setting is not available until the source and destination parameters of the policy have been
configured.
Syntax:
set utm-status {enable|disable}
profile-type
Sets whether or not to use individual UTM profiles or a UTM profile group to the firewall policy.
Syntax:
set profile-type {single | group}
Examples:
config firewall policy
edit 0
set profile-type group
end
profile-group
Determines the name of a UTM profile group in the firewall policy. This option is available if profile-type is
set to group.
Syntax:
set profile-group <string>
Examples:
config firewall policy
edit 0
set profile-group example_profile_group
end
av-profile
Sets the name of the antivirus profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set av-profile <string>
Examples:
config firewall policy
edit 0
set av-profile default_av_profile
end
webfilter-profile
Sets the name of the webfilter profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set webfilter-profile <string>
Example:
config firewall policy
edit 0
dnsfilter-profile
Sets the name of the DNS filter profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set dnsfilter-profile <string>
Examples:
config firewall policy
edit 0
set dnsfilter-profile dns_for_developers
end
spamfilter-profile
Sets the name of the spam filter profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set spamfilter-profile <string>
Examples:
config firewall policy
edit 0
set spamfilter-profile spam-filter1
end
dlp-sensor
Sets the name of the DLP sensor profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set dlp-sensor <string>
Examples:
config firewall policy
edit 0
set dlp-sensor dlp-classified
end
ips-sensor
Sets the name of the IPS profile associated with the firewall policy. This field is available only if utm-status is
enabled.
Syntax:
set ips-sensor <string>
Examples:
config firewall policy
edit 0
set ips-sensor production_ips
end
application-list
Sets the name of the pre-packaged list of applications associated with the firewall policy. This field is available
only if utm-status is enabled.
Syntax:
set application-list <string>
Examples:
config firewall policy
edit 0
set application-list allowed-apps
end
casi-profile
Sets the name of the CASI profile associated with the firewall policy. This field is available only if utm-status is
enabled.
Syntax:
set casi-profile <string>
Examples:
config firewall policy
edit 0
set casi-profile casi-default
end
voip-profile
Sets the name of the VoIP profile associated with the firewall policy. This field is available only if utm-status is
enabled.
Syntax:
set voip-profile <string>
Examples:
config firewall policy
edit 0
set voip-profile voip-example
end
icap-profile
Sets the name of the ICAP profile associated with the firewall policy. This field is available only if utm-status is
enabled.
Syntax:
set icap-profile <string>
Examples:
config firewall policy
edit 0
set icap-profile icap-test
end
waf-profile
Sets the name of the WAF profile associated with the firewall policy. This field is available only if utm-status is
enabled.
Syntax:
set waf-profile <string>
Examples:
config firewall policy
edit 0
set waf-profile waf-profile1
end
profile-protocol-options
Sets the name of the protocol options profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set profile-protocol-options <string>
Examples:
config firewall policy
edit 0
set profile-protocol-options company_default
end
ssl-ssh-profile
Sets the name of the SSL/SSH profile associated with the firewall policy. This field is available only if utm-
status is enabled.
Syntax:
set ssl-ssh-profile <string>
Examples:
config firewall policy
edit 0
set ssl-ssh-profile default-profile
end
logtraffic
Used to set how traffic logs are recorded for this policy.
Syntax:
set logtraffic {all | utm | disable}
Example:
config firewall policy
edit 0
set logtraffic utm
end
logtraffic-start
Enables or disables the ability to log session starts and stops.
Syntax:
set logtraffic-start {enable|disable}
capture-packet
Enables or disables the packet capture feature. This is available if the logtraffic setting is all or utm.
Syntax:
set capture-packet {enable|disable}
auto-asic-offload
Enables or disables offloading policy traffic to CP processors.
Syntax:
set auto-asic-offload {enable|disable}
wanopt
Enables or disables the use the the WAN optimization feature on this policy. This feature is only available if the
action setting is accept.
Syntax:
set wanopt {enable|disable}
wanopt-detection
Used to select the wanopt peer auto-detection mode.
Syntax:
set wanopt-detection {active | passive | off}
Example:
config firewall policy
edit 0
set wanopt-detection active
end
wanopt-passive-opt
Used to set passive WAN Optimization policy address translation behavior.
l default - Use the transparent setting in the WAN Optimization profile added to the active policy (client-side
configuration).
l transparent - Impose transparent mode (override the active policy transparent mode setting). Packets exiting
the FortiGate keep their original source addresses.
l non-transparent - Impose non-transparent mode (override the active policy transparent mode setting).
Packets exiting the FortiGate have their source address changed to the address of the server-side FortiGate unit
interface that sends the packets to the servers.
Syntax:
set wanopt-passive-opt {default | transparent | non-transparent}
Example:
config firewall policy
edit 0
set wanopt-passive-opt transparent
end
wanopt-profile
Sets the name of the WAN optimization profile associated with the firewall policy.
Syntax:
set wanopt-profile <string>
Example:
config firewall policy
edit 0
set wanopt-profile "Company default WANopt"
end
wanopt-peer
Used to set the WAN optimization peer.
Syntax:
set wanopt-peer <string>
webcache
Enables or disables the WAN optimization web caching for HTTP traffic accepted by the firewall policy. This
option is available only on FortiGate units that support WAN Optimization and web caching.
Syntax:
set webcache {enable|disable}
webcache-https
Sets the level of webcaching for HTTPS traffic.
Syntax:
set webcache-https {disable| enable}
Example:
config firewall policy
edit 0
set webcache enable
set webcache-https enable
end
traffic-shaper
Select a traffic shaper for the policy. A traffic shaper controls the bandwidth available to, and sets the priority of
the traffic processed by, the policy.
Syntax:
set traffic-shaper <string>
traffic-shaper-reverse
Select a reverse traffic shaper. For example, if the traffic direction that a policy controls is from port1 to port2,
select this option will also apply the policy shaping configuration to traffic from port2 to port1.
Syntax:
set traffic-shaper-reverse <string>
per-ip-shaper
Enter the name of the per-IP traffic shaper to associate with this policy. For information about per-IP traffic
shapers, see firewall shaper per-ip-shaper.
Syntax:
set per-ip-shaper <string>
nat
Enables or disables the use of Network Address Translation (NAT)
Syntax:
set nat {enable|disable}
permit-any-host
Enables or disables the ability to accept UDP packets from any host. This can help support the FaceTime
application on NAT’d iPhones.
Syntax:
set permit-any-host {enable|disable}
permit-stun-host
Enables or disables the ability to accept UDP packets from any Session Traversal Utilities for NAT (STUN) host.
This can help support the FaceTime application on NAT’d iPhones.
Syntax:
set permit-stun-host {enable|disable}
fixedport
Enables or disables the ability to preserve packets’ source port number, which may otherwise be changed by a
NAT policy. Some applications do not function correctly if the source port number is changed, and may require
this option. If fixedport is enable, you should usually also enable IP pools; if you do not configure an IP pool
for the policy, only one connection can occur at a time for this port.
Syntax:
set fixedport {enable|disable}
ippool
Enables or disables the use of ippools for NAT. When the action is set to accept and NAT is enabled, the
ippool function allows a NAT policy to translate the source address to an address randomly selected from the
first IP pool added to the destination interface of the policy.
Syntax:
set ippool {enable|disable}
poolname
The name of the IP pool to be used for NAT. To use this option requires that ippool be enabled. Separate
multiple addresses with a space.
Syntax:
{set|append} poolname <ippool> [<ippool> ...]
Example:
config firewall policy
edit 0
set poolname testpool1
or ...
append poolname "testpool 1" "testpool2"
or ...
clear poolname
end
session-ttl
Used to set the timeout value in the policy to override the global timeout setting defined by using config
system session-ttl. When it is on default value, it will not take effect. Value is in seconds.
Syntax:
set session-ttl <integer>
Default value: 0
Example:
config firewall policy
edit 0
set session-ttl 3600
end
vlan-cos-fwd
Used to set the VLAN forward direction user priority, CoS. Range 0 (lowest) to 7 (highest), 255 for passthrough.
Syntax:
set vlan-cos-fwd <integer>
Example:
config firewall policy
edit 0
set vlan-cos-fwd 7
end
vlan-cos-rev
Used to set the VLAN reverse direction user priority, CoS. Range 0 (lowest) to 7 (highest), 255 for passthrough.
Syntax:
set vlan-cos-rev <integer>
Example:
config firewall policy
edit 0
set vlan-cos-rev 3
end
inbound
When action is set to ipsec, this setting enables or disables traffic from computers on the remote private
network to initiate an IPSec VPN tunnel.
Syntax:
set inbound {enable | disable}
outbound
When action is set to ipsec, this setting enables or disables traffic from computers on the local private
network to initiate an IPSec VPN tunnel.
Syntax:
set outbound {enable | disable}
natinbound
Enables or disables the function of translating the source addresses IP packets emerging from an IPsec tunnel
into the IP address of the FortiGate unit’s network interface to the local private network. This option appears only
if action is ipsec.
Syntax:
set natinbound {enable | disable}
natoutbound
Enables or disables the function of translating the source addresses of outbound encrypted packets into the IP
address of the FortiGate unit’s outbound interface. Enable this attribute in combination with the natip attribute
to change the source addresses of IP packets before they go into the tunnel. This option appears only if attribute
to change the source addresses of IP packets before they go into the tunnel. This option appears only if action
is ipsec.
Syntax:
set natoutbound {enable | disable}
wccp
Enables or disables Web Cache Coordination Protocol (WCCP). If enabled, the traffic accepted by this policy is
sent to a configured WCCP server as configured by the config system wccp command.
Syntax:
set wccp {enable|disable}
ntlm
Enables or disables Directory Service authentication via NTLM. If you enable this option, you must also define the
user groups. This field is available only if the groups or users fields are specified.
Syntax:
set ntlm {enable|disable}
ntlm-guest
Enables or disables NTLM guest user access.
Syntax:
set ntlm-guest {enable|disable}
ntlm-enabled-browsers
Sets the value for the HTTP-User-Agent of supported browsers. Enclose each string in quotes and separate
strings with a space. Browsers with non-matching strings get guest access.
Syntax:
{set|append|clear} ntlm-enabled-browsers <user_agent_string>
fsso
Enables or disables Fortinet Single Sign On. This field is available when groups is populated.
Syntax:
set fsso {enable|disable}
wsso
Enables or disables WiFi Single Sign On.
Syntax:
set wsso {enable|disable}
rsso
Enables or disables RADIUS-based single sign-on (SSO) for this policy.
Syntax:
set rsso {enable|disable}
fsso-agent-for-ntlm
Specify FSSO agent for NTLM authentication.
Syntax:
set fsso-agent-for-ntlm <string>
groups
A listing of the names of the user groups allowed to use this policy. Separate multiple groups with a space.
Syntax:
{set|append} groups <user-group_object> [<user-group_object> ...]
Examples:
config firewall policy
edit 0
set groups group1
or ...
set groups group2 "Group 3"
or ...
append groups group4
end
users
A listing of the names of the users allowed to use this policy. Separate multiple users with a space.
Syntax:
{set|append} users <user_object> [<user_object> ...]
Examples:
config firewall policy
edit 0
set users adam
or ...
set users burt "Charlie C"
or ...
append users david
end
devices
A listing of of the names of devices or device categories that apply to this policy. Separate multiple devices with a
space.
Syntax:
{set|append} devices <device_object> [<device_object> ...]
Examples:
config firewall policy
edit 0
set devices "adams pc"
or ...
set user bob-pc linux-pc
or ...
append user windows-pc
end
auth-path
Enables or disables authentication-based routing. You must also specify a RADIUS server, and the RADIUS
server must be configured to supply the name of an object specified in config router auth-path. For
details on configuring authentication-based routes, see router auth-path. This field is available only when
the FortiGate unit is operating in NAT mode and the groups or users fields are specified.
Syntax:
set auth-path {enable|disable}
disclaimer
Enables or disables the display of the authentication disclaimer page, which is configured with other replacement
messages. The user must accept the disclaimer to connect to the destination.
Syntax:
set disclaimer {enable|disable}
vpntunnel
Sets the name of a Phase 1 IPSec VPN configuration to apply to the IPsec tunnel. This field is available only if
action is ipsec.
Syntax:
set vpntunnel <string>
Example:
config firewall policy
edit 0
set vpntunnel "TunnelA Phase 1"
end
natip
Used to specify the source IP address and subnet mask to apply to outbound clear text packets before they are
sent through the tunnel. If you do not specify a natip value when natoutbound is enabled, the source
addresses of outbound encrypted packets are translated into the IP address of the FortiGate unit’s external
interface. When a natip value is specified, the FortiGate unit uses a static subnetwork-to-subnetwork mapping
scheme to translate the source addresses of outbound IP packets into corresponding IP addresses on the
subnetwork that you specify. For example, if the source address in the firewall encryption policy is 192.168.1.0/24
and the natip value is 172.16.2.0/24, a source address of 192.168.1.7 will be translated to 172.16.2.7. This
field is available only if ipsec and natoutbound is enabled.
Syntax:
set natip <IP_address> <IPv4mask>
match-vip
Enables or disables the function of matching DNATed packets. If you want to explicitly drop a packet that is not
matched with a firewall policy and write a log message when this happens, you can add a general policy (source
and destination address set to ANY) to the bottom of a policy list and configure the firewall policy to DENY
packets and record a log message when a packet is dropped. In some cases, when a virtual IP performs
destination NAT (DNAT) on a packet, the translated packet may not be accepted by a firewall policy. If this
happens, the packet is silently dropped and therefore not matched with the general policy at the bottom of the
policy list. To catch these packets, enable match-vip in the general policy. Then the DNATed packets that are
not matched by a VIP policy are matched with the general policy where they can be explicitly dropped and logged.
Syntax:
set match-vip {enable|disable}
diffserv-forward
Enables or disables application of the differentiated services code point (DSCP) value to the DSCP field of
forward (original) traffic. If enabled, diffservcode-forward also needs to be configured.
Syntax:
set diffserv-forward {enable|disable}
diffserv-reverse
Enables or disables application of the differentiated services code point (DSCP) value to the DSCP field of
reverse (reply) traffic. If enabled, diffservcode-rev also needs to be configured.
Syntax:
set diffserv-reverse {enable | disable}
diffservcode-forward
Used to set the differentiated services code point (DSCP) value that the FortiGate unit will apply to the field of
originating (forward) packets. The value is 6 bits binary. The valid range is 000000-111111. This option appears
only if diffserv-forward is enabled.
Syntax:
set diffservcode-forward <binary>
Example:
config firewall policy
edit 0
set diffservcode-forward 001001
end
diffservcode-rev
Used to set the differentiated services code point (DSCP) value that the FortiGate unit will apply to the field of
reply (reverse) packets. The value is 6 bits binary. The valid range is 000000-111111. This option appears only if
diffserv-rev is enabled.
Syntax:
set diffservcode-rev <binary>
tcp-mss-sender
Used to set the TCP Maximum Segment Size (MSS) number for the sender. When a FortiGate unit is configured
to use PPPoE to connect to an ISP, certain web sites may not be accessible to users. This occurs because a
PPPoE frame takes an extra 8 bytes off the standard Ethernet MTU of 1500. When the server sends the large
packet with DF bit set to 1, the ADSL provider’s router either does not send an “ICMP fragmentation needed”
packet or the packet is dropped along the path to the web server. In either case, the web server never knows
fragmentation is required to reach the client. Used to set the TCP Maximum Segment Size (MSS) number for the
sender. When a FortiGate unit is configured to use PPPoE to connect to an ISP, certain web sites may not be
accessible to users. This occurs because a PPPoE frame takes an extra 8 bytes off the standard Ethernet MTU of
1500. When the server sends the large packet with DF bit set to 1, the ADSL provider’s router either does not
send an “ICMP fragmentation needed” packet or the packet is dropped along the path to the web server. In either
case, the web server never knows fragmentation is required to reach the client.
Syntax:
set tcp-mss-sender <integer>
tcp-mss-receiver
Used to set the TCP MSS number for the receiver.
Syntax:
set tcp-mss-receiver <integer>
Default value: 0
comments
Field to store descriptive information about the policy such as its intended purpose and targets. The field is
limited to 63 characters. Enclose the string in single quotes to enter special characters or spaces.
Syntax:
set comments <string>
Default value: 0
Example:
config firewall policy
edit 0
set comments "Default outgoing traffic policy for corporate users"
end
label
Used to set a label for this policy. The label is visible in the GUI in Section View.
Syntax:
set label <string>
global-label
Puts policy in the named subsection in the web-based manager. Subsection is created if it does not already exist.
Syntax:
set global-label <string>
auth-cert
Used to select an HTTPS server certificate for policy authentication. self-sign is the built-in, self-signed
certificate; if you have added other certificates, you may select them instead. This field is available only if the
groups or users fields are specified.
Syntax:
set auth-cert <string>
auth-redirect-addr
Used to set the IP address or domain name to redirect user HTTP requests after accepting the authentication
disclaimer. The redirect URL could be to a web page with extra information (for example, terms of usage). To
prevent web browser security warnings, this should match the CN field of the specified auth-cert, which is
usually a fully qualified domain name (FQDN). This field is available only if the groups or users fields are
specified.
Syntax:
set auth-redirect-addr <string>
redirect-url
Set the URL, if any, that the user is redirected to after authenticating and/or accepting the user authentication
disclaimer. This field is available only if disclaimer is set to enable.
Syntax:
set redirect-url <string>
identity-based-route
Used to specify an identity-based route to be associated with the policy. Identity-based routes are defined in
firewall identity-based-route.
Syntax:
set identity-based-route <string>
block-notification
Enables or disables the feature that displays the Fortinet Bar in the browser when a site is blocked and provides a
block page via HTTP/HTTPS.
Syntax:
set block-notification {enable|disable}
custom-log-fields
Used to enter log field index numbers to append one or more custom log fields to the log message for this policy.
This option takes effect only if logging is enabled for the policy, and requires that you first define custom log
fields. Separate multiple values with a space.
Syntax:
{set|append|clear} custom-log-fields <string> [<string> ...]
tags
Used to assign a custom tag to the firewall policy. The tags need to be preconfigured in config system
object-tag and the same list of tags can be used anywhere that the tag setting is available. To see what tags
are available for use, use the command set tags ?. Separate multiple values with a space.
Syntax:
{set|append|clear} tags <name_of_tag>
Example:
config system object-tag
edit example-tag1
next
edit example-tag2
next
edit "example tag 3"
next
end
replacemsg-override-group
Used to select a replacement message override group from the available configured groups. This will override the
default replacement message for this policy.
Syntax:
set replacemsg-override-group <string>
srcaddr-negate
Enables or disables the negate source address match function. When enabled, this causes the srcaddr field to
specify what the source address must not be.
Syntax:
set srcaddr-negate {enable|disable}
dstaddr-negate
Enables or disables the negate destination address match function. When enabled, this causes the dstaddr
field to specify what the destination address must not be.
Syntax:
set dstaddr-negate {enable|disable}
service-negate
Enables or disables the negate service match function. When enabled, this causes the service field to specify
what the service traffic must not be.
Syntax:
set service-negate {enable|disable}
timeout-send-rst
Enables or disables the sending of RST packet upon TCP session expiration.
Syntax:
set timeout-send-rst {enable|disable}
captive-portal-exempt
Enables or disables the exemption of users of this policy from the captive portal interface.
Syntax:
set captive-portal-exempt {enable|disable}
ssl-mirror
Enables or disables the SSL mirror function. This feature sends a copy of traffic decrypted by SSL inspection to
one or more FortiGate interfaces so that it can be collected by raw packet capture tool for archiving and analysis.
This feature is only available if the inspection mode is set do flow-based. Enables or disables the SSL mirror
function. This feature sends a copy of traffic decrypted by SSL inspection to one or more FortiGate interfaces so
that it can be collected by raw packet capture tool for archiving and analysis. This feature is only available if the
inspection mode is set do flow-based.
Syntax:
set ssl-mirror {enable|disable}
ssl-mirror-intf
Used to set the name of the SSL interface mirror. The value must be one of the existing interface names.
Syntax:
{set|append|clear} ssl-mirror-intf <string> [<string> ...]
Example:
config firewall policy
edit 0
set ssl-mirror-intf port11
or ...
set ssl-mirror-intf port12 port13
or ...
append ssl-mirror-intf port14
end
scan-botnet-connections
Sets the scanning level traffic for connections to Botnet servers.
Syntax:
set scan-botnet-connections {disable | block | monitor}
dsri
Enables or disables Disable Server Response Inspection (DSRI) which is used to assist performance when only
using URL filtering as it allows the system to ignore the HTTP server responses.
Syntax:
set dsri {enable|disable}
delay-tcp-npu-sessoin
Enables or disables the TCP NPU session delay in order to guarantee packet order of 3-way handshake.
Syntax:
set delay-tcp-npu-sessoin {enable|disable}
Syntax
config firewall schedule group {edit|delete|purge|rename|get|show}
edit
Used to select which individual schedule group to configure or edit values.
edit <schedule group>
To get a list of all of the existing schedule group objects, type the command:
Command Prompt (group) # edit ?
If you are creating a new schedule group object, just type the name you wish to used after the edit command. If
there are spaces in the name, use quotation marks.
delete
Used to delete an existing schedule object
delete
purge
Used delete all of the existing schedule group objects. It deletes all of the values within the table that holds the
information about schedule group objects within the VDOM.
purge
There are no options, parameters or qualifiers. Just use the enter key after entering the command This command
has a serious impact. Use cautiously.
rename
Used to change the name of the schedule group object.
rename <schedule group> to <schedule group>
name
This field is a unique name given to represent the schedule group object. This setting is first defined when using
the edit command to edit a category that does not currently exist. The name field of a schedule group object
cannot be changed from within the object. It can be changed by using the rename command in the config firewall
schedule group context.
member
Defines the schedule objects that are members of the schedule group. The value is a that should be the name of
one of the existing schedule objects configured on the device. A group cannot contain other groups Separate
multiple interfaces with spaces.
Syntax:
{set|append} members <schedule group>[ ...]
Example:
config firewall schedule group
edit example_group
set member example_schedule1
or ...
set member example_schedule1 example_schedule2
or ...
append example_schedule3
end
color
This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set
the color to default which is color number 1.
Syntax:
set color <integer>
Default value: 0
Example:
config firewall schedule group
edit generic-schedule group-name
set color 15
end
Schedule objects are used to control when policies are active or inactive. The one-time schedule is for policies
that are effective once for a specified period of time and then not used again.
Syntax
config firewall schedule onetime {edit|delete|purge|rename|get|show}
edit
Used to select which individual schedule to configure or edit values.
edit <onetime schedule>
To get a list of all of the existing service group objects, type the command:
Command Prompt (onetime) # edit ?
If you are creating a new onetime schedule object, just type the name you wish to used after the edit command.
If there are spaces in the name, use quotation marks.
delete
Used to delete an existing onetime schedule
delete <onetime schedule>
purge
Used delete all of the existing onetime schedule objects. It deletes all of the values within the table that holds
the information about service group objects within the VDOM.
purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
rename
Used to change the name of the onetime schedule object.
rename <onetime schedule> to <new_onetime_schedule>
name
This field is a unique name given to represent the onetime schedule object. This setting is first defined when
using the edit command to edit a category that does not currently exist. The name field of a onetime schedule
object cannot be changed from within the object. It can be changed by using the rename command in the
config firewall schedule onetime context.
start
This field is for specifying the starting date and time of the schedule object.
Syntax:
<hh:mm> <yyyy/mm/dd>
end
Enter the ending day and time of the schedule.
Syntax:
<hh:mm> <yyyy/mm/dd>
color
This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set
the color to default which is color number 1.
Syntax
set color <integer>
Default value: 0
Example:
config firewall schedule onetime
edit schedule1
set color 15
end
expiration-days
This field specifies how many days before the expiration of the schedule an event log will be generated in order to
warn of the impending cancellation of the schedule. The content of the field is an integer. To generate an event,
the range is 1 to 100 days. To disable the generation of the event log, enter 0.
Example
config firewall schedule onetime
edit schedule1
set expiration-days 5
end
Default value: 3
Use this command to create new categories or add comments to firewall service categories. To assign services to
categories, use the firewall service custom command. The adding or editing the name of a service
category are the most common tasks when using the config firewall service category command
but some commands affect the address objects as a whole.
edit
Used to add an additional category or select which individual category to edit.
Syntax:
edit <category_name>
To create a new service category, just type the category_name you wish to use after the edit command. A new
category will be created using the category_name supplied. If you require spaces in the name you can:
delete
Used to delete an existing category
Syntax:
delete <category_name>
purge
Used delete all of the existing categories. It deletes all of the values within the table that holds the categories.
Syntax:
purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
rename
Used to change the name of the category.
Syntax:
rename <category_name> to <new_category_name>
move
Used to move the position of a category, relative to another category, in the order of their listing.
Syntax:
move <category_name> {after | before} <category_name>
clone
Used to copy all of the attributes of an existing category to a new category.
Syntax:
clone <category_name> to <category_name>
name
This field is a unique name given to represent the address object. This setting is first defined when using the edit
command to edit a category that does not currently exist. The name field of an address object cannot be changed
from within the object. It can be changed by using the rename command in the config firewall service
category context.
comment
Field used to store descriptive information about the category such as the type of services that should be included
in the category. Enclose the string in quotes to enter special characters or spaces.
Syntax:
set comment <string>
Example:
config firewall service category
edit "Custom Category"
set comment "For services that are propietory to the company."
end
Managing service objects
The configuration of specific service is the most common activity when using the firewall policy command but
some commands affect the service objects as a whole.
edit
Used to select which individual service to configure or edit values.
Syntax:
config firewall service custom
(custom) # edit <service>
l To get a list of all of the existing address objects, type the command:
(custom) # edit ?
If you are creating a new service object, just type the name you wish to used after the edit command. If there are
spaces in the name, use quotation marks.
delete
Used to delete an existing service
Syntax:
config firewall service custom
(custom) # delete <service>
purge
Used to delete all of the existing firewall policies. It deletes all of the values within the table within the VDOM.
Syntax:
config firewall service custom
(custom) # purge
l There are no options, parameters or qualifiers. Just use the enter key after entering the command
l This command has a serious impact. Use cautiously.
rename
Used to change the name of the service object.
config firewall service custom
(custom) # rename <service_name> to <new_service_name>
explicit-proxy
Enable to configure this service as an explicit web proxy service. The service will be available to explicit proxy
firewall policies but not to regular firewall policies.
Syntax
set explicit-proxy {enable | disable}
category
Assign the service to a service category. These categories are created and managed using the command
firewall service.
Syntax
set category <category_name>
Example
config firewall services custom
(custom) # edit sample_service
protocol
Select the protocol used by the service. These protocols are available when explicit-proxy is disabled. If
you select TCP/UDP/SCTP you must specify the tcp-portrange, udp-portrange, or sctp-portrange.
Syntax
set protocol {ICMP | ICMP6 | IP | TCP/UDP/SCTP}
Default value: TCP/UDP/SCTP A different set of protocols are available when explicit-proxy is enabled.
set protocol {ALL | CONNECT | FTP | HTTP | SOCKS-TCP | SOCKS-UDP}
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set explicit-proxy enable
(sample-service) # set protocol FTP
(sample-service) # end
iprange
Enter an IP address or address range for this service.
Syntax
set iprange <ip_address[-<ip_address>]>
Default value: 0.0.0.0
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set iprange 192.168.0.64-192.168.0.128
(sample-service) # end
fqdn
Enter a fully-qualified domain name (FQDN) for this service.
Syntax
set fqdn <fqdn_str>
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set fqdn example.com
(sample-service) # end
protocol-number (0,4294967295)
For an IP service, enter the IP protocol number. For information on protocol numbers, see
http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml.
Syntax
set protocol-number <protocol_int>
Default value: 0
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set protocol-number 6
(sample-service) # end
icmptype
Enter the ICMP type number. The range for type_int is from 0-255. Find ICMP type and code numbers at Enter
the ICMP type number. The range for type_int is from 0-255. Find ICMP type and code numbers
at http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-types.
Syntax
set icmptype <type_int>
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set icmptype 8
(sample-service) # end
icmpcode
Enter the ICMP code number. Find ICMP type and code numbers at http://www.iana.org/assignments/icmp-
parameters/icmp-parameters.xhtml#icmp-parameters-types.
Syntax
set icmpcode <code_int>
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set icmpcode 13
(sample-service) # end
tcp-portrange
For TCP services, enter the destination and source port ranges.
Syntax
set tcp-portrange <dstportlow_int>[-<dstporthigh_int>: <srcportlow_int>-<src-
porthigh_int>]
Example
config firewall service custom
(custom) # edit sample-service
(sample-service) # set tcp-portrange 100-150:1100-1150
(sample-service) # end
udp-portrange
For UDP services, enter the destination and source port ranges.
Syntax
set udp-portrange <dstportlow_int>[-<dstporthigh_int>: <srcportlow_int>-<src-
porthigh_int>]
sctp-portrange
For SCTP services, enter the destination and source port ranges.
Syntax
set sctp-portrange <dstportlow_int>[-<dstporthigh_int>: <srcportlow_int>-<src-
porthigh_int>]
tcp-halfclose-timer (0,86400)
Enter how many seconds the FortiGate unit should wait to close a session after one peer has sent a FIN packet
but the other has not responded. The valid range is from 1 to 86400 seconds. Enter 0 to use the global setting
defined in system global. This is available when protocol is TCP/UDP/SCTP.
Syntax
set tcp-halfclose-timer <seconds>
Default value: 0
Example:
config firewall service custom
(custom) # edit sample-service
(sample-service) # set tcp-halfclose-timer 3600
(sample-service) # end
tcp-halfopen-timer (0,86400)
Enter how many seconds the FortiGate unit should wait to close a session after one peer has sent an open
session packet but the other has not responded. The valid range is from 1 to 86400 seconds. Enter 0 to use the
global setting defined in system global. This is available when protocol is TCP/UDP/SCTP.
Syntax
set tcp-halfopen-timer <seconds>
Default value: 0
tcp-timewait-timer
Set the length of the TCP TIME-WAIT state in seconds. As described in RFC 793, the “TIME-WAIT state
represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its
connection termination request”. Reducing the time of the TIME-WAIT state means the FortiGate unit can close
terminated sessions faster which means more new sessions can be opened before the session limit is reached.
The valid range is 0 to 300 seconds. A value of 0 sets the TCP TIME-WAIT to 0 seconds Enter 0 to use the global
setting defined in system global. This is available when protocol is TCP/UDP/SCTP.
Syntax
set tcp-timewait-timer <seconds_int>
Default value: 0
Example:
config firewall service custom
(custom) # edit sample-service
(sample-service) # set tcp-timewait-timer 60
(sample-service) # end
udp-idle-timer
Enter the number of seconds before an idle UDP connection times out. The valid range is from 1 to 86400
seconds. Enter 0 to use the global setting defined in system global. This is available when protocol is
TCP/UDP/SCTP.
Syntax
set udp-idle-timer <seconds>
Default value: 0
session-ttl
Enter the default session timeout in seconds. The valid range is from 300 - 604,800 seconds. Enter 0 to use either
the per-policy session-ttl or per-VDOM session-ttl, as applicable. This is available when protocol is
TCP/UDP/SCTP.
Syntax
set session-ttl <seconds>
Default value: 0
Example:
config firewall service custom
(custom) # edit sample-service
(sample-service) # set session-ttl 3600
(sample-service) # end
check-reset-range
Configure ICMP error message verification.
l disable — The FortiGate unit does not validate ICMP error messages.
l strict — If the FortiGate unit receives an ICMP error packet that contains an embedded IP(A,B) | TCP(C,D)
header, then if FortiOS can locate the A:C->B:D session it checks to make sure that the sequence number in the
TCP header is within the range recorded in the session. If the sequence number is not in range then the ICMP
packet is dropped. If log-invalid-packet is enabled the FortiGate unit logs that the ICMP packet was
dropped. Strict checking also affects how the anti-replay option checks packets.
l default — Use the global setting defined in system global.
This field is available when protocol is TCP/UDP/SCTP. This field is not available if explicit-proxy is enabled.
Syntax
set check-reset-range {disable | strict | default}
comment
Field to store descriptive information about the service such as its intended purpose.
Syntax
set comment <string>
color
This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set
the color to default which is color number 1. This setting determines the color of the icon in the GUI. There are 32
defined colors numbered 1 to 32. 0 will set the color to default which is color number 1.
Syntax
set color <integer>
Default value: 0
Example:
config firewall service custom
edit generic-custom-service
set color 15
end
visibility
Enable visibility to include this service in firewall policy service selection.
Syntax
set visibility {enable | disable}
firewall vip
Configure firewall virtual IPs (VIPs) and their associated addresses and port mappings (NAT). Use VIPs to
configure destination NAT and server load balancing. For information about FortiOS Firewall VIPs in general, see
Virtual IPs. For information about server load balancing with FortiOS Firewal VIPs see Server Load Balancing.
uuid
Each VIP has a Universally Unique Identifier (UUID) that is automatically assigned. It is a 128 bit value written in
hexadecimal. It can be edited.
comment <comment>
Add a comment about the VIP.
first-alive Always directs requests to the first alive real server. In this case “first” refers to the order of the
real servers in the virtual server configuration. For example, if you add real servers A, B and C in that order, then
traffic always goes to A as long as it is alive. If A goes down then traffic goes to B and if B goes down the traffic
goes to C. If A comes back up, traffic goes to A. Real servers are ordered in the virtual server configuration in the
order in which you add them, with the most recently added real server last. If you want to change the order you
must delete and re-add real servers as required.
http-host Load balance HTTP requests by the contents of the HOST header.
least-rtt Directs requests to the real server with the least round trip time. The round trip time is determined
by a Ping monitor and is defaulted to 0 if no Ping monitors are defined.
least-session Directs requests to the real server that has the least number of current connections. This
method works best in environments where the real servers or other equipment you are load balancing have
similar capabilities.
round-robin Directs request to the next real server, and treats all real servers as equals regardless of
response time or number of connections. Unresponsive real servers are avoided. A separate real server is
required.
static (the default) Distributes sessions evenly across all real servers according to the session source IP
address. This load balancing method provides some persistence because all sessions from the same source
address would always go to the same server. However, the distribution is stateless, so if a real server is added or
removed (or goes up or down) the distribution is changed so persistence will be lost. Separate real servers are not
required. (the default) Distributes sessions evenly across all real servers according to the session source IP
address. This load balancing method provides some persistence because all sessions from the same source
address would always go to the same server. However, the distribution is stateless, so if a real server is added or
removed (or goes up or down) the distribution is changed so persistence will be lost. Separate real servers are not
required.
weighted Real servers with a higher weight value receive a larger percentage of connections at any one time.
Server weights can be set in config realservers set weight.
dns-mapping-ttl
Enter time-to-live for DNS response. Range 0 to 604 800. Available when type is dns-translation. Default is
0 which means use the DNS server's response time.
extip <address>[-<address>]
Enter the IP address or address range on the external interface that you want to map to an address or address
range on the destination network. If type is static-nat and mappedip is an IP address range, the FortiGate
unit uses extip as the first IP address in the external IP address range, and calculates the last IP address
required to create an equal number of external and mapped IP addresses for one-to-one mapping. To configure a
dynamic virtual IP that accepts connections destined for any IP address, set extip to 0.0.0.0.
extintf <name>
Enter the name of the interface connected to the source network that receives the packets that will be forwarded
to the destination network. The interface name can be any FortiGate network interface, VLAN subinterface,
IPSec VPN interface, or modem interface.
l http load balance only HTTP sessions with destination port number that matches the extport setting. Change
extport to match the destination port of the sessions to be load balanced (usually port 80 for HTTP sessions).
You can also configure httpmultiplex. You can also set persistence to http-cookie and configure http-
cookiedomain, http-cookie-path, http-cookiegeneration, http-cookie-age, and
httpcookie-share settings for cookie persistence.
l https load balance only HTTPS sessions with destination port number that matches the extport setting.
Change extport to match the destination port of the sessions to be load balanced (usually port 443 for HTTPS
sessions). You can also configure httpmultiplex and set persistence to httpcookie and configure the same
http-cookie options as for http virtual servers plus the httpscookie-secure option. You can also set
persistence to ssl-session-id. You can also configure the SSL options such as ssl-mode and ssl-
certificate and so on. https is available on FortiGate units that support SSL acceleration.
l imaps load balance only IMAPS sessions with destination port number that matches the extport setting.
Change extport to match the destination port of the sessions to be load balanced (usually port 993 for IMAPS
sessions).
l ip load balance all sessions accepted by the firewall policy that contains this server load balance virtual IP. Since
all sessions are load balanced you don’t have to set the extport.
l pop3s load balance only POP3S sessions with destination port number that matches the extport setting.
Change extport to match the destination port of the sessions to be load balanced (usually port 995 for POP3S
sessions).
l smtps load balance only SMTPS sessions with destination port number that matches the extport setting.
Change extport to match the destination port of the sessions to be load balanced (usually port 465 for SMTPS
sessions).
l ssl load balance only SSL sessions with destination port number that matches the extport setting. Change
extport to match the destination port of the sessions to be load balanced. You can also configure the SSL
options such as ssl-mode and ssl-certificate and so on.
l tcp load balance only TCP sessions with destination port number that matches the extport setting. Change
extport to match the destination port of the sessions to be load balanced.
l udp load balance only UDP sessions with destination port number that matches the extport setting. Change
extport to match the destination port of the sessions to be load balanced.
configure persistence if . If the session has an HTTP cookie or an SSL session ID, the FortiGate unit sends all
subsequent sessions with the same HTTP cookie or SSL session ID to the same real server. Persistence is
disabled by default. You can configure persistence if server-type is set to http, https, or ssl.
l none No persistence. Sessions are distributed solely according to the ldb-method. Setting ldbmethod to
static (the default) results in behavior equivalent to persistence.
l http-cookie all HTTP or HTTPS sessions with the same HTTP session cookie are sent to the same real server.
http-cookie is available if server-type is set to https or ssl. If you select this option you can also
configure httpcookie-domain, http-cookie-path, httpcookie- generation, http-cookie-age,
and http-cookie-share for HTTP and these settings plus https-cookie-secure for HTTPS.
l ssl-session-id all sessions with the same SSL session ID are sent to the same real server. sslsession-id
is available if server-type is set to https or ssl.
Disable to use the actual IP address of the server (or the FortiGate destination interface if using NAT) as the
source address of connections from the server that pass through the FortiGate unit.
extport <port-number>
External port number range that you want to map to a port number range on the destination network.
This option only appears if portforward is enabled. If portforward is enabled and you want to configure a
static NAT virtual IP that maps a range of external port numbers to a range of destination port numbers, set
extport to the port number range. Then set mappedport to the start and end of the destination port range.
When using port number ranges, the external port number range corresponds to a mapped port number range
containing an equal number of port numbers, and each port number in the external range is always translated to
the same port number in the mapped range.
If type is server-load-balance, extport is available unless server-type is ip. The value of extport
changes to 80 if server-type is http and to 443 if server-type is https.
config realservers
The following are the options for config realservers, and are available only if type is server-load-
balance.
ip <server-ip>
Enter the IP address of a server in this server load balancing cluster.
port
Enter the port used if port forwarding is enabled.
l active The FortiGate unit may forward traffic to the server unless its health check monitors determine that the
server is unresponsive, at which time the FortiGate unit temporarily uses a server whose status is standby. The
healthcheck monitor will continue to monitor the unresponsive server for the duration of holddown-interval. If
this server becomes reliably responsive again, it will be restored to active use, and the standby server will revert to
standby.
l disable The FortiGate unit does not forward traffic to this server, and does not perform health checks. You might
use this option to conserve server load balancing resources when you know that a server will be unavailable for a
long period, such as when the server is down for repair.
l standby If a server whose status is active becomes unresponsive, the FortiGate temporarily uses a responsive
server whose status is standby until the server whose status is active again becomes reliably responsive. If
multiple responsive standby servers are available, the FortiGate selects the standby server with the greatest
weight. If a standby server becomes unresponsive, the FortiGate selects another responsive server whose status is
standby.
holddown-interval <interval>
Enter the amount of time in seconds that the health check monitor continues to monitor the status of a server
whose status is active after it has been detected to be unresponsive. Default is 300 seconds. If the server is
detected to be continuously responsive during this interval, a server whose status is standby is be removed from
current use and replaced with this server, which is then used by server load balanced traffic. In this way, server
load balancing prefers to use active servers, if they are responsive. If the server is detected to be unresponsive
during the first holddown interval, the server remains out of use for server load balanced traffic, the health check
monitor will double the holddown interval once, and continue to monitor the server for the duration of the doubled
holddown interval. The health check monitor continues to monitor the server for additional iterations of the
doubled holddown interval until connectivity to the server becomes reliable, at which time the holddown interval
revert to the configured interval, and the newly responsive active server replaces the standby server in the pool of
servers currently in use. In effect, if the status of a server is active but the server is habitually unresponsive, the
health check monitor is less likely to restore the server to use by server load balanced traffic until the server’s
connectivity becomes more reliable. This option applies only to real servers whose status is active, but have been
detected to be unresponsive or down.
max-connections <number>
Enter the limit on the number of active connections directed to a real server. If the maximum number of
connections is reached for the real server, the FortiGate unit will automatically switch all further connection
requests to another server until the connection number drops below the specified limit. The default of 0 means
unlimited connections.
Use the client-ip option if you have multiple real servers in a server load balance VIP and you want to control
which clients use which real server according to the client’s source IP address. Different real servers in the same
virtual server can have the same or overlapping IP addresses and ranges. If an overlap occurs, sessions from the
overlapping source addresses are load balanced among the real servers with the overlapping addresses. If you do
not specify a client-ip all clients can use the real server.
weight <weight>
Enter the weight value of a specific server. Servers with a greater weight receive a greater proportion of forwarded
connections, or, if their status is standby, are more likely to be selected to temporarily replace servers whose
status is active , but that are unresponsive. Valid weight values are between 1 and 255. Default is 1. This
option is available only if ldb-method is weighted.
mappedport <port>
Enter the port number range on the destination network to which the external port number range is mapped. You
can also enter a port number range to forward packets to multiple ports on the destination network.
gratuitous-arp-interval <time>
Configure sending of gratuitous ARP packets by a virtual IP. You can set the time interval between sending the
packets. The default is 0, which disables this feature.
http-cookie-domain <domain>
Configure HTTP cookie persistence to restrict the domain that the cookie should apply to. Enter the domain name
to restrict the cookie to. This option is available when type is server-loadbalance, server-type is
http or https and persistence is http or https.
http-cookie-path <path>
Configure HTTP cookie persistence to limit the cookies to a particular path, for example /new/path. This option
is available when type is server-loadbalance, server-type is http or https and persistence is
http or https.
http-cookie-generation <generation>
Configure HTTP cookie persistence to invalidate all cookies that have already been generated. The exact value of
the generation is not important, only that it is different from any generation that has already been used. This
option is available when type is server-loadbalance, server-type is http or https and
persistence is http or https.
http-cookie-age <age>
Configure HTTP cookie persistence to change how long the browser caches the cookie. Enter an age in minutes
or set the age to 0 to make the browser keep the cookie indefinitely. The range is 0 to 525600 minutes. The
default age is 60 seconds. This option is available when type is server-loadbalance, server-type is
http or https and persistence is http or https.
http-ip-header-name <name>
In an HTTP multiplex configuration, if you enable http-ip-header you can use the http-ip-header-
name option to add the original client IP address to a custom http header. Use this option to specify the name of
the header to add the IP address to. The destination server extracts the original client IP address from this header
to record log messages that include client IP addresses. If you leave this option blank (the default) the original
client IP address is added to the XForwarded-For header. This option appears only if type is server-
load-balance, server-type is http or https and http-multiplex is enabled and http-ip-
header is enabled.
l half (the default) apply SSL acceleration only between the client and the FortiGate. The segment between the
FortiGate and the server is clear text. This results in better performance, but cannot be used in failover
configurations where the failover path does not have an SSL accelerator.
l full apply SSL acceleration to both parts of the connection: the segment between the client and the FortiGate,
and the segment between the FortiGate and the server. The segment between the FortiGate and the server is
encrypted, but the handshakes are accelerated. This results in performance which is less than if ssl-mode is set
to half, but still improved over no SSL acceleration, and can be used in failover configurations where the failover
path does not have an SSL accelerator. If the server is already configured to use SSL, this also enables SSL
acceleration without requiring changes to the server’s configuration. If this option is set to full then several ssl-
server options appear and you can apply different SSL features (such as encryption levels) to the client
connection and to the server connection.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps.
ssl-certificate <name>
The name of the SSL certificate to use for SSL acceleration. This option appears only if type is server-
loadbalance and server-type is ssl, https, imaps, pop3s, or smtps. If ssl-mode is set to full,
the same certificate is used for client and server communication.
ssl-dh-bits <bits>
Enter the number of bits used in the Diffie-Hellman exchange for RSA encryption of the SSL connection. Larger
prime numbers are associated with greater cryptographic strength. Default is 2048. Values include 768, 1024,
1536, 2048, 3072, and 4096. This option appears only if type is server-loadbalance and server-type
is ssl, https, imaps, pop3s, or smtps. If ssl-mode is set to full, the ssl-dh-bits setting is used for
client and server communication.
l high (the default) permit only high encryption algorithms: AES or 3DES.
l medium permit high (AES, 3DES) or medium (RC4) algorithms.
l low permit high (AES, 3DES), medium (RC4), or low (DES) algorithms.
l custom only allow some cipher suites to be used. Use config ssl-cipher-suites to select the cipher
suites that are allowed.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps. If ssl-mode is set to full and ssl-server-algorithm is set to client, the ssl-
algorithm setting applies to both client and server communication. If ssl-server-algorithm is not set to
client, the ssl-algorithm setting only applies to client communication. You can use the ssl-server-
algorithm option to select different algorithms for server communication.
config ssl-cipher-suites
Choose one or more SSL cipher suites to use for SSL sessions. Only available if ssl-algorithm is set to
custom. You can also use this command to list the supported SSL cipher suites available to all FortiOS SSL
encryption/decryption applications.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps. If ssl-mode is set to full and ssl-server-algorithm is set to client, the
configured setting applies to both client and server communication.
cipher <cipher-suite-name>
Set the cipher suite name to use. Use ? to list the available cipher suite names.
l high (the default) permit only high encryption algorithms: AES or 3DES.
l medium permit high (AES, 3DES) or medium (RC4) algorithms.
l low permit high (AES, 3DES), medium (RC4), or low (DES) algorithms.
l custom only allow some cipher suites to be used. Use config ssl-server-cipher-suites to select the
cipher suites that are allowed.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps, and ssl-mode is full.
config ssl-server-cipher-suites
Choose one or more SSL cipher suites to use for SSL server sessions. Only available if ssl-server-
algorithm is set to custom. You can also use this command to list the supported SSL cipher suites available
to all FortiOS SSL encryption/decryption applications.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps, ssl-mode is full, and ssl-server-algorithm is custom.
cipher <cipher-suite-name>
Set the cipher suite name to use. Use ? to list the available cipher suite names.
l allow allow use of any cipher suite so PFS may or may not be used depending on the cipher suite selected.
l deny allow only non-Diffie-Hellman cipher-suites, so PFS is not applied.
l require allow only Diffie-Hellman cipher-suites, so PFS is applied.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps, and ssl-algorithm is not set to custom.
l both (the default) expire SSL session states when either ssl-client-session-state-max or ssl-
client-session-state-timeout is exceeded, regardless of which occurs first.
l count expire SSL session states when ssl-client-session-state-max is exceeded.
l disable expire all SSL session states.
l time expire SSL session states when ssl-client-session-state-timeout is exceeded.
This option appears only if type is server-loadbalance and server-type is ssl, https, imaps,
pop3s, or smtps.
ssl-client-session-state-timeout <timeout>
The number of minutes to keep the SSL session states for the segment of the SSL connection between the client
and the FortiGate unit. Default is 30 minutes. Range is 1 to 14400. This option appears only if type is server-
loadbalance and server-type is ssl, https, imaps, pop3s, or smtps.
ssl-client-session-state-max <states>
The maximum number of SSL session states to keep for the segment of the SSL connection between the client
and the FortiGate unit. Default is 1000. Range is 0 to 100000. This option appears only if type is server-
loadbalance and server-type is ssl, https, imaps, pop3s, or smtps.
l both (the default) expire SSL session states when either ssl-server-session-state-max or ssl-
server-session-state-timeout is exceeded, regardless of which occurs first.
l count expire SSL session states when ssl-server-session-state-max is exceeded.
l disable expire all SSL session states.
l time expire SSL session states when ssl-server-session-state-timeout is exceeded.
This option appears only if ssl-mode is full.
ssl-server-session-state-timeout <time>
The number of minutes to keep the SSL session states for the segment of the SSL connection between the server
and the FortiGate . Default is 30 minutes. Range is 1 to 14400. This option appears only if ssl-mode is is full.
ssl-server-session-state-max
The maximum number of SSL session states to keep for the segment of the SSL connection between the client
and the FortiGate unit. Default is 1000. Range is 0 to 100000. This option appears only if ssl-mode is full.
monitor <name>
The name of the health check monitor for use when polling to determine a virtual server’s connectivity status.
max-embryonic-connections <number>
The maximum number of partially established SSL or HTTP connections. This should be greater than the
maximum number of connections you want to establish per second. Default is 1000. Range is 0 to 100000. This
option appears only if type is server-loadbalance and server-type is http, ssl, https, imaps,
pop3s, or smtps.
color <integer>
The color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. To see the colors available, you
can edit the VIP from the GUI. 1 is the default color which is black. 0 sets the color to the default color.
ips
Use ips commands to configure IPS sensors to define which signatures are used to examine traffic and what
actions are taken when matches are discovered. DoS sensors can also be defined to examine traffic for
anomalies.
ips custom
The IPS sensors use signatures to detect attacks. The FortiGate's predefined signatures cover common attacks.
These signatures can be listed with the config ips rule ? command. Details about the default settings of
each signature can be displayed with the get command. If an unusual application or platform is being used, add
custom signatures based on the security alerts released by the application and platform vendors. Custom
signatures can be used to block or allow specific traffic and provide the power and flexibility to customize
FortiGate Intrusion Protection for diverse network environments. You can only edit custom IPS signatures. A
single custom signature can be used in multiple sensors with different settings in each.
signature <signature_str>
The custom signature enclosed in single quotes. For more information, see Custom IPS Signature Syntax Guide.
comment <comment_str>
Description of the custom IPS signature. Appears in the profile list. Descriptions with spaces must be enclosed in
quotes.
ips global
l continuous after an anomaly is detected, allow the configured number of packets per second.
l periodical block all packets once an anomaly is detected. Overrides individual anomaly settings.
l accurate accurately count the concurrent sessions. This option requires more resources than the default
heuristics method
l heuristic uses heuristics to estimate concurrent sessions. Results may be less accurate but acceptable in most
cases.
socket-size <ips_buffer_size>
Intrusion protection buffer size in MB. Default varies by model depending on available physical memory. Can be
changed to tune performance.
engine-count {integer}
Number of intrusion protection engines to run. Default is 0. Multi-processor FortiGate units can more efficiently
process traffic with multiple engines running. When set to the default value of 0, the FortiGate unit determines
the optimal number of intrusion protection engines.
np-accel-mode {none | basic}
Acceleration mode for IPS processing by NPx processors.
skype-client-public-ipaddr <IP_addr_list>
Specify the public IP addresses of your network that receive Skype sessions. This will help the FortiGate unit
identify Skype sessions properly in the Sessions dashboard widget and when attempting to detect/block them.
Separate IP addresses with commas, not spaces.
deep-app-insp-timeout <seconds>
Sets number of seconds after which inactive application database entries are deleted. Range 1 - 2147483647.
Default is 0, and sets recommended value.
deep-app-insp-db-limit <entries_int>
Set the maximum number of application database entries. Range: 1 - 2147483647. Default is 0, and sets
recommended value.
ips rule
The IPS sensors use signatures to detect attacks. The FortiGate's predefined signatures cover common attacks.
These signatures can be listed with the config ips rule ? command. Details about the default settings of
each signature can be displayed with the get command. If an unusual application or platform is being used, add
custom signatures based on the security alerts released by the application and platform vendors. Custom
signatures can be used to block or allow specific traffic and provide the power and flexibility to customize
FortiGate Intrusion Protection for diverse network environments. You can only edit custom IPS signatures. A
single custom signature can be used in multiple sensors with different settings in each.
signature <signature_str>
The custom signature enclosed in single quotes. For more information, see Custom IPS Signature Syntax Guide.
comment <comment_str>
Description of the custom IPS signature. Appears in the profile list. Descriptions with spaces must be enclosed in
quotes.
ips sensor
The IPS sensors use signatures to detect attacks. IPS sensors are made up of filters and override rules. Each
filter specifies a number of signature attributes and all signatures matching all the specified attributes are
included in the filter.
comment <comment_str>
Enter an optional comment to describe the sensor. This description will appear in the ISP sensor list. Descriptions
with spaces must be enclosed in quotes.
replacemsg-group <replacemsg_str>
Specify the replacement message group.
config entries
tags <tag_str>
Assign a custom tag filter to the IPS sensor. Tag must first be configured by using config system object-
tag. To see what tags are available for use, use the command set tags ?. Separate multiple values with a
space.
l default enables the filter and only use filters with default status of enable. Filters with default status of disable
will not be used.
l default enable logging for only the filters with a default logging status of enable. Filters with a default logging
status of disable will not be logged.
You can download the packets in pcap format for diagnostic use. This feature is only available in FortiGate units
with internal hard drives.
l attacker blocks all traffic sent from attacker’s IP address. The attacker’s IP address is also added to the banned
user list. The target’s address is not affected.
config exempt-ip
This subcommand is available after rule has been set.
edit <exempt-ip_id>
Enter the ID number of an exempt-ip entry. For a list of the exempt-ip entries in the IPS sensor, enter ?
instead of an ID. Enter a new ID to create a new exempt-ip.
dst-ip <ip4mask>
src-ip <ip4mask>
log
Use the config log commands to set the logging type, the logging severity level, and the logging location for the
FortiGate unit.
log custom-field
Use log custom-field to create custom fields that will be included with log messages. Note: 'id' will not
appear in log messages, it is only used for database purposes.
edit <id>
A table value for custom fields in log messages. Edit to create new and configure the custom fields using the
following entries:
name <name>
The name of the field, which will appear in log messages.
value <value>
The content of the field, which will appear in log messages.
log eventfilter
Use log eventfilter to select which Event log messages will be recorded.
Note: event must be enabled for any of the other options to appear. Disabling it overrides all other enabled log
types in this category.
ha {enable | disable}
Enable or disable logging of all HA activity and state change events.
log gui-display
Use log gui-display to customize which logging content is visible in the GUI.
log threat-weight
Use log threat-weight to enable and customize the threat-weight feature, which assigns logs a threat
score based on configurable factors.
Note: status must be enabled for the rest of the options to be available.
config level
Use the below subcommands to set the scores for the four levels of threats.
config ips
Use the following subcommands to set the threat score assigned to IPS events at different severity levels:
l set info-severity {disable | low | medium | high | critical}
l set low-severity {disable | low | medium | high | critical}
l set medium-severity {disable | low | medium | high | critical}
l set high-severity {disable | low | medium | high | critical}
l set critical-severity {disable | low | medium | high | critical}
config web
Specific FortiGuard Web Filtering Categories that might appear in logs can be assigned a threat score, using the
below commands:
edit <id>
A table value for custom threat score assignments for Categories. Edit to create new and configure the custom
assignments using the following commands:
category <value>
The Category that will have a threat score assigned to it. You can view a list of Categories by entering set
category ?.
config geolocation
Specific geographic locations that might appear in logs can be assigned a threat score, using the below
commands:
edit <id>
A table value for custom threat score assignments for countries. Edit to create new and configure the custom
assignments using the following commands:
The country that will have a threat score assigned to it. You can view a list of country codes by entering set
country ?.
config application
Specific FortiGuard Application categories that might appear in logs can be assigned a threat score, using the
below commands:
edit <id>
A table value for custom threat score assignments for categories. Edit to create new and configure the custom
assignments using the following commands:
category <value>
The application category that will have a threat score assigned to it. You can view a list of categories by entering
set category ?.
system
Use system commands to configure options related to the overall operation of your FortiGate.
system admin
remote-group <name>
Group name used for remote authentication. This option only appears when remote-auth is enabled.
password <string>
Set the password for the administrator account.
peer-group <name>
Group name for peer authentication. This option only appears when peer-auth is enabled.
accprofile <profile-name>
Set the access profile (also known as admin profile) for the account. Access profiles control administrator access
to FortiGate features. Two default profiles are available: prof_admin and super_admin.
comments <string>
Add comments.
vdom <vdom-name>
Select the virtual domain(s) that the administrator can access.
ssh-certificate <certificate-name>
Set a certificate for PKI authentication of the administrator.
schedule <schedule-name>
Set a schedule for the account.
password-expire
Enter the date and time that this administrator’s password expires. Enter zero values for no expiry (this is set by
default). Date format is YYYY-MM-DD. Time format is HH:MM:SS. This is available only if config system
password-policy is enabled.
email-to <email-address>
Set an email address to use for two-factor authentication.
sms-server <server>
Set provider to use to send SMS messages for two-factor authentication. This list of available providers is
configured using config system sms-server.
sms-phone <phone-number>
Set a phone number to use for two-factor authentication.
guest-usergroups <group-name>
Set the user group(s) to be used for guest user accounts created by this administrator account. This option only
appears when the account is restricted to guest account provisioning.
guest-lang <language>
Select a language to use for the guest management portal.
system central-management
Use this command to configure central management for your FortiGate unit. Central management uses a remote
location to backup, restore, and monitor the FortiGate unit's configuration. This can be either a FortiManager or
the FortiCloud network.
l normal: manage and configure the connected FortiGate devices from the FortiManager GUI.
l backup: backup the FortiGate configurations to the FortiManager, but configure each FortiGate locally.
fmg <fmg_ipv4>
Specify the IP address or FQDN of the remote FortiManager server. Appears only when type is set to
fortimanager.
fmg-source-ip <address_ipv4>
Specify the source IPv4 address to use when connecting to FortiManager. Appears only when type is set to
fortimanager.
fmg-source-ip6
Specify the source IPv6 address to use when connecting to FortiManager. Appears only when type is set to
fortimanager.
vdom <name_str>
Optional. Specify name of virtual domain (VDOM) to use when communicating with FortiManager. Default is
root.
config server-list
server-address <ipv4>
Specify the override server's IPv4 address.
server-address6 <ipv6>
Specify the override server's IPv6 address.
system csf
upstream-ip <ip-address>
The IP address of the upstream FortiGate.
upstream-port <port-number>
The port used by the upstream FortiGate for communication within the security fabric. The default is 8013.
group-name <name>
The name of the security fabric.
group-password <password>
The password for the security fabric.
l default: Traffic is logged if it has not already been logged by another FortiGate
l local: All traffic logging is done according to the FortiGate's local settings
The default is default.
management-ip <ip-address>
The management IP address of this FortiGate.
system dhcp_server
Configure DHCP servers used to assign IP settings, including IP addresses, to devices connected to a FortiGate
interface.
lease-time <integer>
Lease time in seconds, value between 300 and 8640000 ( 5 minutes to almost 100 days), 0 for unlimited lease
time, default is 604800.
l assign allow the DHCP server to assign IP settings to a client on the MAC address control list.
l block block the DHCP from assigning IP settings to a client on the MAC address control list.
l local IP address of the interface the DHCP server is added to becomes the client's DNS server IP address.
l default IP addresses of the DNS servers added to the FortiGate configuration become the client's DNS server IP
addresses.
l specify specify up to 3 DNS servers in the DHCP server configuration.
dns-server1 <ip>
Set the IP address of DNS server(s) which will be used by DHCP clients, up to three DNS servers (dns-server1,
dns-server2, and dns-server3).
wifi-ac1 <ip>
Set the IP address of up to three WiFi Access Controller(s) (wifi-ac1, wifi-ac2, and wifi-ac3). For DHCP option 138
to use DHCP to send WiFi access controller IP addresses to Wireless Termination Points (WTPs) (RFC 5417).
l local IP address of the interface the DHCP server is added to becomes the client's NTP server IP address.
l default IP addresses of the NTP servers added to the FortiGate configuration become the client's NTP server IP
addresses.
l specify specify up to 3 NTP servers in the DHCP server configuration.
ntp-server1 <ip>
Set the IP address of NTP server(s), up to three NTP servers (ntp-server1, ntp-server2, and ntp-server3).
domain <string>
Domain name suffix for the IP addresses that the DHCP server assigns to clients.
wins-server1 <ip>
Set the IP address of WINS server(s), up to two WINS servers (wins-server1, and wins-server2).
default-gateway <ip>
The default gateway IP address that will be used by DHCP clients as their default gateway.
next-server <ip>
The IP address of the next bootstrap server. Add an IP address if you are using a secondary DHCP server to
assign IP configuration options.
netmask <netmask>
The netmask assigned by the DHCP server
interface <interface-name>
The DHCP server can assign IP configurations to DHCP clients connected to this interface.
config ip-range
DHCP IP range configuration.
start-ip <ip>
The first IP of the range.
end-ip <ip>
The last IP of the range.
timezone <timezone-number>
Select the time zone that the DHCP server assigns to DHCP clients. Available if timezone-option is set to
specify.
tftp-server <string>
Hostname or IP address of the TFTP server.
filename <string>
The file name on the tftp server.
config options
The DHCP options configuration.
code <integer>
The option's code for DHCP, see RFC 2132 for more details.
value <string>
The value is specified as a single octet. Values are available per option, see RFC 2132 for more details.
conflicted-ip-timeout <integer>
The time in seconds to wait after a conflicted IP address is removed from the DHCP range before it can be
reused. Value between 60 to 8640000 seconds (1 minute to 100 days), default is 1800.
vci-string <strings>
One or more VCI strings in quotes and separated by spaces.
config exclude-range
DHCP exclude range configuration.
start-ip <ip>
The first IP of the excluded range.
end-ip <ip>
The last IP of the excluded range.
config reserved-address
How the DHCP server assigns IP settings to specific MAC addresses.
ip <ip>
The IP address to be reserved for the client with the MAC address. Only valid if action is set to reserved.
mac <mac-address>
MAC address of the client to be configured by the DHCP server according to the action.
l assign the DHCP server treats the client with this MAC address like any other client.
l block block the DHCP server from assigning IP settings to the client with this MAC address.
l reserved assign the reserved IP address to the client with this MAC address.
description <string>
Optionally describe the client with this MAC address.
system dns
Configure DNS settings used to resolve domain names to IP addresses, so devices connected to a FortiGate
interface can use it.
primary <ip>
The primary DNS server IP address, default is 208.91.112.53, a FortiGuard server.
secondary <ip>
The secondary DNS server IP address, default is 208.91.112.52, a FortiGuard server.
domain <string>
The domain name suffix for the IP addresses of the DNS server.
ip6-primary <ipv6>
The primary DNS server IPv6 address.
ip6-secondary <ipv6>
The secondary DNS server IPv6 address.
dns-cache-limit <integer>
The number of records in the DNS cache, value between 0 and 4294967295, default is 5000.
dns-cache-ttl <integer>
The duration, in seconds, that the DNS cache retains information, value between 60 and 86400, default is 1800.
source-ip <ip>
The IP address used by DNS server as it's source IP.
system global
Use this command to configure global settings that affect FortiGate systems and configurations.
admin-console-timeout <secs_int>
Specify a console login timeout that overrides the admintimeout value. Range: 15 - 300 seconds (15 seconds
to 5 minutes). Zero value disables the timeout. Default is 0.
l enable: allows admin user to log in by providing a valid certificate if PKI is enabled for HTTPS administrative
access.
l disable: allows admin users to log in by providing a valid certificate or password.
admin-lockout-duration <time_int>
Set the administration account’s lockout duration in seconds for the firewall. Repeated failed login attempts will
enable the lockout. Use admin-lockout-threshold to set the number of failed attempts that will trigger the
lockout. Default is 60.
admin-lockout-threshold <failed_int>
Set the number of failed attempts before the account is locked out for the admin-lockout-duration.
Default is . Default is 3.
admin-login-max <int>
Set the maximum number administrators who can be logged in at same time. Range: 1 - 100. Default is 80.
admin-port <port_number>
Specify the administrative access port for HTTP. Range: 1 - 65535. Default is 80.
admin-sport <port_number>
Specify the administrative access port for HTTPS. Range: 1 - 65535. Default is 443.
admin-ssh-grace-time <time_int>
Specify the maximum time in seconds permitted between making an SSH connection to the FortiGate unit and
authenticating. Range: 10 - 3600 seconds (10 seconds to one hour). Default is 120.
admin-ssh-port <port_number>
Specify the administrative access port for SSH. Range: 1 - 65535. Default is 22.
admin-telnet-port <port_number>
Specify the administrative access port for TELNET. Range: 1 - 65535. Default is 23.
admintimeout <admin_timeout_minutes>
Specify the number of minutes before an idle administrator times out. The maximum admintimeout interval is
480 minutes (8 hours). Default is 5. To improve security keep the idle timeout at the default value.
alias <alias_str>
Identify an alias for your FortiGate unit.
arp-max-entry <int>
Specify the maximum number of dynamically learned MAC addresses that can be added to the ARP table.
Range: 131072 - 2147483647. If set to 0, kernel holds 131072 entries. Default is 0.
auth-cert <cert-name>
Identify the HTTPS server certificate for policy authentication. Default is self-sign. Self-sign is the built-in
certificate but others will be listed as you add them.
auth-http-port <http_port>
Set the HTTP authentication port. Range: 1 - 65535. Default is 1000.
auth-https-port <https_port>
Set the HTTPS authentication port. Range: 1 - 65535. Default is 1003.
av-affinity <string>
Specify the CPU affinity setting for AV scanning (64-bit hexadecimal value in the format of xxxxxxxxxxxxxxxx).
Setting CPU affinity, where a process will execute on a specific CPU, can be used to conserve resources. Default
is 0.
l idledrop: drop connections based on the clients that have the most connections open. This is most useful for
Windows applications, and can prevent malicious bots from keeping an idle connection open to a remote server.
l off: stop accepting new AV sessions when entering conserve mode, but continue to process current active
sessions.
l one-shot: bypass the antivirus system when memory is low. You must enter off or pass to restart antivirus
scanning.
l pass: bypass the antivirus system when memory is low. Antivirus scanning resumes when the low memory
condition is resolved
block-session-timer <int>
Set the time duration in seconds for blocked sessions. Range: 1 - 300 seconds (1 second to 5 minutes). Default
is 30.
br-fdb-max-entry <int>
Specify the maximum number of bridge forwarding database (FDB) entries. Used when operating in Transparent
mode, the FDB (or MAC) table is used by a Layer 2 device (switch/bride) to store MAC addresses that have been
learned and the ports that each MAC address was learned on. If the FDB has a large number of entries,
performance may be impacted. Range: 8192 - 2147483647. If set to 0, kernel holds 8192 entries. Default is 0.
cert-chain-max <int>
Set the maximum number of certificates that can be traversed in a certificate chain. The list of certificates, from
the root certificate to the end-user certificate, represents the certificate chain. Default is 8.
l loose: the FortiGate unit performs basic header checking to verify that a packet is part of a session and should be
processed. Basic header checking includes verifying that the layer- 4 protocol header length, the IP header length,
the IP version, the IP checksum, IP options are correct, etc.
l strict: the FortiGate unit does the same checking as above plus it verifies that ESP packets have the correct
sequence number, SPI, and data length. Note: this setting disables hardware acceleration.
If the packet fails header checking it is dropped by the FortiGate unit and logged if log-invalid-packet is
enabled.
l disable: the FortiGate unit does not validate ICMP error messages.
l strict — If the FortiGate unit receives an ICMP error packet that contains an embedded IP(A,B) |TCP(C,D)
header and if FortiOS can locate the A:C->B:D session, it checks to make sure that the sequence number in the
TCP header is within the range recorded in the session. If the sequence number is not in range, then the ICMP
packet is dropped. If log-invalid-packet is enabled, the FortiGate unit logs that the ICMP packet was
dropped. Strict checking also affects how the anti-replay option checks packets
compliance-check-time <HH:MM:SS>
Specify the PCI DSS compliance check time. Default is 00:00:00.
device-identification-active-scan-delay <int>
Indicate how many seconds to passively scan a device before performing an active scan. Range: 20 - 3600
seconds (20 seconds to 1 hour). Default is 90.
device-idle-timeout <int>
Specify time in seconds that a device must be idle in order to automatically log user out. Range: 30 - 31536000
seconds (30 seconds to 1 year). Default is 300.
endpoint-control-portal-port
Specify the endpoint control portal port. Range: 1 - 65535. Default is 8009.
explicit-proxy-auth-timeout <int>
Specify authentication timeout in seconds for idle sessions in explicit web proxy. Default is 300.
fds-statistics-period <int>
Indicate the FortiGuard statistics update period in minutes. Range: 1 - 1440 minutes (1 minute to 24 hours).
Default is 60.
fortiextender-data-port <port_int>
Specify Fortiextender controller data port. Range: 1024 - 49150. Default is 25246.
fortiservice-port <port_int>
Specify the FortiService port number. Default is 8013. Starting with FortiClient 5.4, endpoint compliance (EC)
registration will use port 8013 by default. To register to FortiOS 5.0 or 5.2, the user must specify port 8010 with
the IP address, separated by a colon. For example, <IP_Address>:8010. FortiOS 5.4 will listen on port 8013. If
registering from FortiClient 5.4 to FortiOS 5.4, the default ports will match. Specifying the port number with the
IP address is then optional. For more information, refer to FortiClient 5.4.0 Release Notes which is available in
the Fortinet Document Library.
gui-device-latitude <string>
Identify the latitude coordinate of your FortiGate.
gui-device-longitude <string>
Identify the longitude coordinate of your FortiGate.
gui-lines-per-page <gui_lines>
Specify number of lines to display per page for web administration. Default is 50.
hostname <unithostname>
Specify FortiGate unit hostname. Default is FortiGate serial number.
A hostname can only include letters, numbers, hyphens, and underlines. No spaces allowed.
While the hostname can be longer than 24 characters, if it is longer than 24 characters it will be truncated by a "~".
The trailing 3-characters preceded by the "~" truncation character and the first N-3 characters are shown. This
shortened hostname will be displayed in the CLI, and other locations the hostname is used. Some models
support hostnames up to 35 characters
ip-src-port-range <start_port>-<end_port>
Specify the IP source port range used for traffic originating from the FortiGate unit. Range: 1-65535. Default is
1024-499. You can use this setting to avoid problems with networks that block some ports, such as FDN ports.
ips-affinity <string>
Affinity setting for IPS (64-bit hexadecimal value in the format of xxxxxxxxxxxxxxxx; allowed CPUs must be less
than total number of IPS engine daemons).
ipv6-accept-dad {0 | 1 | 2}
Enable/disable acceptance of IPv6 DAD (Duplicate Address Detection). 0: Disable DAD; 1: Enable DAD (default);
2: Enable DAD, and disable IPv6 operation if MAC-based duplicate link-local address has been found.
language <string>
Identify the GUI display language. set language ? lists available languages. trach = Traditional Chinese.
simch = Simplified Chinese. Default is English.
ldapconntimeout <integer>
LDAP connection time-out in milliseconds. Range: 0 - 4294967295.
management-vdom <domain>
Management virtual domain name. Default is root.
max-route-cache-size <int>
Specify the maximum number of IP route cache entries. Range: 0 - 2 147483647. Default is 0.
miglog-affinity
Affinity setting for logging (64-bit hexadecimal value in the format of xxxxxxxxxxxxxxxx).
miglogd-children <int>
Specify the number of miglogd processes to run. A higher number can affect performance, and a lower number
can affect log processing time, although no logs will be dropped or lost if the number is decreased. If you are
suffering from performance issues, you can alter the number of logging daemon child processes. Range: 0 - 15.
Default is 0.
ndp-max-entry <int>
Specify the maximum number of Neighbor Discovery Protocol (NDP) table entries. Set to 65,536 or higher; if set
to 0, kernel holds 65,536 entries. Default is 0. Specify the maximum number of Neighbor Discovery Protocol
(NDP) table entries. Set to 65,536 or higher; if set to 0, kernel holds 65,536 entries. Default is 0.
optimize {antivirus}
DO NOT USE THIS COMMAND. It was originally added to early NP4 platforms but is no longer supported.
policy-auth-concurrent <limit_int>
Limit the number of concurrent logins from the same user. Range: 1 - 100. Default is 0 and means no limit.
proxy-worker-count <count_int>
Specify the number of proxy worker processes. Range: 1 - 8. Default is 4.
radius-port <radius_port>
Specify the port for RADIUS traffic. Default is 1812. If your RADIUS server is using port 1645, you can use the CLI
to change the RADIUS port on your FortiGate unit.
refresh <refresh_seconds>
Specify the Automatic Refresh Interval, in seconds, for GUI statistics. Range: 0-4294967295. Default is 0, or no
automatic refresh.
remoteauthtimeout <timeout_sec>
Specify the number of seconds that the FortiGate unit waits for responses from remote RADIUS, LDAP, or
TACACS+ authentication servers. Range: 0-300 seconds, 0 means no timeout. Default is 5. To improve security
keep the remote authentication timeout at the default value of 5 seconds. However, if a RADIUS request needs
to traverse multiple hops or several RADIUS requests are made, the default timeout of 5 seconds may not be
long enough to receive a response.
scanunit-count <count_int>
Tune the number of scanunits. The range and the default depend on the number of CPUs. Only available on
FortiGate units with multiple CPUs. Recommended for advanced users.
sslvpn-max-worker-count <count_int>
Specify the maximum number of SSL VPN processes. The upper limit for setting this value is the number of CPUs
and depends on the model.
disable. Enable to use strong encryption and only allow strong ciphers (AES, 3DES) and digest (SHA1) for
HTTPS/SSH admin access. When strong encryption is enabled, HTTPS is supported by the following web
browsers: Netscape 7.2, Netscape 8.0, Firefox, and Microsoft Internet Explorer 7.0 (beta). In addition, some low-
crypto options are not available. Note that Microsoft Internet Explorer 5.0 and 6.0 are not supported in strong
encryption. Default is disable.
switch-controller-reserved-network <ipv4mask>
Enable reserved network subnet for controlled switches. This is available when the switch controller is enabled.
Default: 169.254.0.0 255.255.0.0
syncinterval <ntpsync_minutes>
Specify how often, in minutes, the FortiGate unit should synchronize its time with the Network Time Protocol
(NTP) server. Range: 1 - 1440 minutes (1 day). Setting to 0 disables time synchronization. Default is 0.
sys-perf-log-interval <int>
Set the time in minutes between updates of performance statistics logging. Range: 1 - 15 minutes. 0 disables
performance logging. Default is 5.
tcp-halfclose-timer <seconds>
Enter how many seconds the FortiGate unit should wait to close a session after one peer has sent a FIN packet
but the other has not responded. Range: 1 - 86400 seconds (1 day). Default is 120.
tcp-halfopen-timer <seconds>
Enter how many seconds the FortiGate unit should wait to close a session after one peer has sent an open
session packet but the other has not responded.Range: 1 - 86400 seconds (1 day). Default is 10.
tcp-timewait-timer <seconds_int>
Set the length of the TCP TIME-WAIT state in seconds. As described in RFC 793, the “TIME-WAIT state
represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its
connection termination request”. Reducing the time of the TIME-WAIT state means the FortiGate unit can close
terminated sessions faster which means more new sessions can be opened before the session limit is reached.
Range: 0 - 300 seconds. Default is 1.
timezone <timezone_number>
The number corresponding to your time zone from 00 to 86. Enter set timezone ? to view the list of time
zones and the numbers that represent them. Default is 00, which is equivalent to GMT +12.
two-factor-email-expiry <seconds_int>
Set the timeout period for email-based two-factor authentication. Two-factor email authentication sends a
randomly generated six-digit numeric code to a specified email address. The recipient must enter that code when
prompted and that code is only valid for the time period set by this command. Range: 30 - 300 seconds (5
minutes). Default is 60.
two-factor-fac-expiry <seconds_int>
Set the timeout period for FortiAuthenticator token authentication. A FortiAuthenticator provides RADIUS, LDAP
and 802.1X wireless authentication, certificate management, and Fortinet Single Sign-on (FSSO).
FortiAuthenticator is compatible with FortiToken to provide two-factor authentication with multiple FortiGates
and third party devices. Range: 10 - 3600 seconds (1 hour). Default is 60.
two-factor-ftk-expiry <seconds_int>
Set the timeout period for FortiToken authentication. Range: 60 - 600 seconds (10 minutes). Default is 60.
FortiToken is a disconnected one-time password (OTP) generator. It is a small physical device with a button that
when pressed displays a six digit authentication code. This code is entered with a user’s username and password
as two-factor authentication. The code displayed changes at the end of the timeout period set by this command.
two-factor-ftm-expiry <hours_int>
Set the timeout period for FortiToken Mobile provision. Range: 1 - 168 hours (7 days). Default is 72. FortiToken
Mobile performs much the same function as the FortiToken except the physical device is replaced by a mobile
phone application and the timeout period is set in hours, not seconds.
two-factor-sms-expiry <seconds_int>
Set the timeout period for SMS-based two-factor authentication. Range 30 - 300 seconds. Default is 60. SMS
two-factor authentication sends the token code in an SMS text message to the mobile device indicated when this
user attempts to logon. This token code is valid only for the time period set by this command. SMS two-factor
authentication has the benefit of not requiring email service before logging on. A potential issue is if the mobile
service provider does not send the SMS text message before the life of the token expires.
udp-idle-timer <seconds>
Enter the number of seconds before an idle UDP connection times out. This command can be useful in managing
unit CPU and memory resources. Range: 1 - 86400 seconds (1 day). Default is 180.
user-server-cert <cert_name>
Select the certificate to use for https user authentication. Default setting is Fortinet_Factory, if available,
otherwise self-sign.
l restricted: the FortiGate unit sends ARP packets for only the first 8192 addresses in a VIP range.
l unlimited: the FortiGate unit sends ARP packets for every address in the VIP range.
virtual-server-count <integer>
Enter the number of virtual server processes to create. The maximum is the number of CPU cores. This is not
available on single-core CPUs.
wad-worker-count <int>
Set the number of explicit proxy WAN optimization daemon (WAD) processes. By default WAN optimization,
explicit proxy and web caching is handled by half of the CPU cores in a FortiGate unit. For example, if your
FortiGate unit has 4 CPU cores, by default two will be used for WAN optimization, explicit proxy and web caching.
You can use the Set the number of explicit proxy WAN optimization daemon (WAD) processes. By default WAN
optimization, explicit proxy and web caching is handled by half of the CPU cores in a FortiGate unit. For example,
if your FortiGate unit has 4 CPU cores, by default two will be used for WAN optimization, explicit proxy and web
caching. You can use the wad-worker-count command to change the number of CPU cores that are used.
Range: 1 to the number of CPU cores.
wifi-ca-certificate <ca_cert-name>
Select the CA certificate that verifies the WiFi certificate.
wifi-certificate <cert-name>
Select the certificate to use for WiFi authentication.
wireless-controller-port <port_int>
Select the port used for the control channel in wireless controller mode (wireless-mode is ac). The data
channel port is the control channel port number plus one. Range: 1024 - 49150. Default is 5246.
system ha
Enable and configure FortiGate FGCP high availability (HA) and virtual clustering. Some of these options are also
used for FGSP HA and content clustering.
l override
l priority (including the secondary-vcluster priority)
l ha-mgmt-interface-gateway
l ha-mgmt-interface-gateway6
l cpu-threshold, memory-threshold, http-proxy-threshold, ftp-proxy-threshold, imap-
proxy-threshold, nntp-proxy-threshold, pop3-proxy-threshold, smtp-proxy-threshold
l The ha-priority setting of the config system link-monitor command
l The config system interface settings of the FortiGate interface that becomes an HA
reserved management interface
l The config system global hostname setting.
group-id <id>
The HA group ID, same for all members, from 0 to 255. The group ID identifies individual clusters on the network
because the group ID affects the cluster virtual MAC address. All cluster members must have the same group ID.
If you have more than two clusters on the same network they must have different Group IDs.
group-name <name>
The HA group name, same for all members. Max 32 characters. The HA group name identifies the cluster. All
cluster members must have the same group name. Can be blank if mode is standalone.
password <password>
The HA cluster password, must be the same for all cluster units. The maximum password length is 15 characters.
By default two interfaces are configured to be heartbeat interfaces and the priority for both these interfaces is set
to 50. The heartbeat interface priority range is 0 to 512.
You can select up to 8 heartbeat interfaces. This limit only applies to FortiGate units with more than 8 physical
interfaces.
You can use the append command to add more entries. The default depends on the FortiGate model.
session-sync-dev <interface>
Select one or more FortiGate interfaces to use for synchronizing sessions as required for session pickup.
Normally session synchronization occurs over the HA heartbeat link. Using this HA option means only the
selected interfaces are used for session synchronization and not the HA heartbeat link. If you select more than
one interface, session synchronization traffic is load balanced among the selected interfaces.
Moving session synchronization from the HA heartbeat interface reduces the bandwidth required for HA heartbeat
traffic and may improve the efficiency and performance of the cluster, especially if the cluster is synchronizing a
large number of sessions. Load balancing session synchronization among multiple interfaces can further improve
performance and efficiency if the cluster is synchronizing a large number of sessions.
Session synchronization packets use Ethertype 0x8892. The interfaces to use for session synchronization must
be connected together either directly using the appropriate cable (possible if there are only two units in the
cluster) or using switches. If one of the interfaces becomes disconnected the cluster uses the remaining
interfaces for session synchronization. If all of the session synchronization interfaces become disconnected,
session synchronization reverts back to using the HA heartbeat link. All session synchronization traffic is between
the primary unit and each subordinate unit.
Since large amounts of session synchronization traffic can increase network congestion, it is recommended that
you keep this traffic off of your network by using dedicated connections for it.
route-ttl <ttl>
Control how long routes remain in a cluster unit's routing table. The time to live range is 5 to 3600 seconds (3600
seconds is one hour). The default time to live is 10 seconds.
The time to live controls how long routes remain active in a cluster unit routing table after the cluster unit
becomes a primary unit. To maintain communication sessions after a cluster unit becomes a primary unit, routes
remain active in the routing table for the route time to live while the new primary unit acquires new routes.
By default, route-ttl is set to 10 which may mean that only a few routes will remain in the routing table after a
failover. Normally keeping route-ttl to 10 or reducing the value to 5 is acceptable because acquiring new
routes usually occurs very quickly, especially if graceful restart is enabled, so only a minor delay is caused by
acquiring new routes.
If the primary unit needs to acquire a very large number of routes, or if for other reasons there is a delay in
acquiring all routes, the primary unit may not be able to maintain all communication sessions.
You can increase the route time to live if you find that communication sessions are lost after a failover so that the
primary unit can use synchronized routes that are already in the routing table, instead of waiting to acquire new
routes.
route-wait <wait>
The amount of time in seconds that the primary unit waits after receiving routing updates before sending the
updates to the subordinate units. For quick routing table updates to occur, set route-wait to a relatively short
time so that the primary unit does not hold routing table changes for too long before updating the subordinate
units.
The route-wait range is 0 to 3600 seconds. The default route-wait is 0 seconds. Normally, because the is
0 seconds.
Normally, because the route-wait time is 0 seconds the primary unit sends routing table updates to the
subordinate units every time its routing table changes.
Once a routing table update is sent, the primary unit waits the route-hold time before sending the next
update.
Usually routing table updates are periodic and sporadic. Subordinate units should receive these changes as soon
as possible so route-wait is set to 0 seconds. route-hold can be set to a relatively long time because
normally the next route update would not occur for a while.
In some cases, routing table updates can occur in bursts. A large burst of routing table updates can occur if a
router or a link on a network fails or changes. When a burst of routing table updates occurs, there is a potential
that the primary unit could flood the subordinate units with routing table updates. Flooding routing table updates
can affect cluster performance if a great deal of routing information is synchronized between cluster units. Setting
route-wait to a longer time reduces the frequency of additional updates are and prevents flooding of routing
table updates from occurring.
route-hold <hold>
The amount of time in seconds that the primary unit waits between sending routing table updates to subordinate
units. The route hold range is 0 to 3600 seconds. The default route hold time is 10 seconds.
To avoid flooding routing table updates to subordinate units, set route-hold to a relatively long time to prevent
subsequent updates from occurring too quickly. Flooding routing table updates can affect cluster performance if a
great deal of routing information is synchronized between cluster units. Increasing the time between updates
means that this data exchange will not have to happen so often.
hb-interval <interval>
The time between sending heartbeat packets. The heartbeat interval range is 1 to 20 (100*milliseconds). The
default is 2.
A heartbeat interval of 2 means the time between heartbeat packets is 200 ms. Changing the heartbeat interval
to 5 changes the time between heartbeat packets to 500 ms (5 * 100ms = 500ms).
HA heartbeat packets consume more bandwidth if the heartbeat interval is short. But if the heartbeat interval is
very long, the cluster is not as sensitive to topology and other network changes.
The heartbeat interval combines with the lost heartbeat threshold to set how long a cluster unit waits before
assuming that another cluster unit has failed and is no longer sending heartbeat packets. By default, if a cluster
unit does not receive a heartbeat packet from a cluster unit for 6 * 200 = 1200 milliseconds or 1.2 seconds the
cluster unit assumes that the other cluster unit has failed.
You can increase both the heartbeat interval and the lost heartbeat threshold to reduce false positives. For
example, increasing the heartbeat interval to 20 and the lost heartbeat threshold to 30 means a failure will be
assumed if no heartbeat packets are received after 30 * 2000 milliseconds = 60,000 milliseconds, or 60 seconds.
hb-lost-threshold <threshold>
The number of consecutive heartbeat packets that are not received from another cluster unit before assuming
that the cluster unit has failed. The default value is 6, meaning that if the 6 heartbeat packets are not received
from a cluster unit then that cluster unit is considered to have failed. The range is 1 to 60 packets.
If the primary unit does not receive a heartbeat packet from a subordinate unit before the heartbeat threshold
expires, the primary unit assumes that the subordinate unit has failed.
If a subordinate unit does not receive a heartbeat packet from the primary unit before the heartbeat threshold
expires, the subordinate unit assumes that the primary unit has failed. The subordinate unit then begins
negotiating to become the new primary unit.
The lower the hb-lost-threshold the faster a cluster responds when a unit fails. However, sometimes
heartbeat packets may not be sent because a cluster unit is very busy. This can lead to a false positive failure
detection. To reduce these false positives you can increase the hb-lost-threshold.
hello-holddown <timer>
The number of seconds that a cluster unit waits before changing from the hello state to the work state. The
default is 20 seconds and the range is 5 to 300 seconds.
The hello state hold-down time is the number of seconds that a cluster unit waits before changing from hello state
to work state. After a failure or when starting up, cluster units operate in the hello state to send and receive
heartbeat packets so that all the cluster units can find each other and form a cluster. A cluster unit should change
from the hello state to work state after it finds all of the other FortiGate units to form a cluster with. If for some
reason all cluster units cannot find each other during the hello state then some cluster units may be joining the
cluster after it has formed. This can cause disruptions to the cluster and affect how it operates.
One reason for a delay in all of the cluster units joining the cluster could be the cluster units are located at
different sites of if for some other reason communication is delayed between the heartbeat interfaces.
If cluster units are joining your cluster after it has started up or if it takes a while for units to join the cluster you can
increase the time that the cluster units wait in the hello state.
In most cases you would want to send gratuitous ARP packets because its a reliable way for the cluster to notify
the network to send traffic to the new primary unit. However, in some cases, sending gratuitous ARP packets may
be less optimal. For example, if you have a cluster of FortiGate units in Transparent mode, after a failover the
new primary unit will send gratuitous ARP packets to all of the addresses in its Forwarding Database (FDB). If the
FDB has a large number of addresses it may take extra time to send all the packets and the sudden burst of traffic
could disrupt the network.
If you choose to disable sending gratuitous ARP packets you must first enable the link-failed-signal
setting. The cluster must have some way of informing attached network devices that a failover has occurred.
arps <number>
The number of times that the primary unit sends gratuitous ARP packets. Gratuitous ARP packets are sent when
a cluster unit becomes a primary unit (this can occur when the cluster is starting up or after a failover). The default
is 5 packets, the range is 1 to 60.
Usually you would not change the default setting of 5. In some cases, however, you might want to reduce the
number of gratuitous ARP packets. For example, if your cluster has a large number of VLAN interfaces and virtual
domains and because gratuitous ARP packets are broadcast, sending a higher number gratuitous ARP packets
may generate a lot of network traffic. As long as the cluster still fails over successfully, you could reduce the
number of gratuitous ARP packets that are sent to reduce the amount of traffic produced after a failover.
If failover is taking longer that expected, you may be able to reduce the failover time by increasing the number
gratuitous ARP packets sent.
arps-interval <interval>
The number of seconds to wait between sending gratuitous ARP packets. When a cluster unit becomes a primary
unit (this occurs when the cluster is starting up or after a failover) the primary unit sends gratuitous ARP packets
immediately to inform connected network equipment of the IP address and MAC address of the primary unit. The
default is 8 seconds, the range is 1 to 20 seconds.
Normally you would not need to change the time interval. However, you could decrease the time to be able send
more packets in less time if your cluster takes a long time to failover.
There may also be a number of reasons to set the interval higher. For example, if your cluster has a large number
of VLAN interfaces and virtual domains and because gratuitous ARP packets are broadcast, sending gratuitous
ARP packets may generate a lot of network traffic. As long as the cluster still fails over successfully you could
increase the interval to reduce the amount of traffic produced after a failover.
Enable session-pickup so that if the primary unit fails, all sessions are picked up by the new primary unit. If you
enable session pickup the subordinate units maintain session tables that match the primary unit session table. If
the primary unit fails, the new primary unit can maintain most active communication sessions.
If you do not enable session pickup the subordinate units do not maintain session tables. If the primary unit fails
all sessions are interrupted and must be restarted when the new primary unit is operating.
Many protocols can successfully restart sessions with little, if any, loss of data. For example, after a failover,
users browsing the web can just refresh their browsers to resume browsing. Since most HTTP sessions are very
short, in most cases they will not even notice an interruption unless they are downloading large files. Users
downloading a large file may have to restart their download after a failover.
Other protocols may experience data loss and some protocols may require sessions to be manually restarted. For
example, a user downloading files with FTP may have to either restart downloads or restart their FTP client.
FortiOS session helpers keep track of the communication of Layer-7 protocols such as FTP and SIP that have
control sessions and expectation sessions. Usually the control sessions establish the link between server and
client and negotiate the ports and protocols that will be used for data communications. The session helpers then
create expectation sessions through the FortiGate for the ports and protocols negotiated by the control session.
The expectation sessions are usually the sessions that actually communicate data. For FTP, the expectation
sessions transmit files being uploaded or downloaded. For SIP, the expectation sessions transmit voice and video
data. Expectation sessions usually have a timeout value of 30 seconds. If the communication from the server is
not initiated within 30 seconds the expectation session times out and traffic will be denied.
session-sync-daemon-number <number>
The number of processes used by the HA session sync daemon. Increase the number of processes to handle
session packets sent from the kernel efficiently when the session rate is high. Intended for ELBC clusters, this
feature only works for clusters with two members. The default is 1, the range 1 to 15.
If you choose to disable sending gratuitous ARP packets (by setting gratuitous-arps to disable) you must
first enable link-failed-signal. The cluster must have some way of informing attached network devices
that a failover has occurred.
ha-mgmt-interface <interface_name>
The FortiGate interface to be the reserved HA management interface. You can configure the IP address and
other settings for this interface using the config system interface command. When you enable the reserved
management interface feature the configuration of the reserved management interface is not synchronized by
the FGCP.
ha-mgmt-interface-gateway <gateway_IP>
The default route for the reserved HA management interface (IPv4). This setting is not synchronized by the
FGCP.
ha-mgmt-interface-gateway6 <gateway_IP>
The default route for the reserved HA management interface (IPv6). This setting is not synchronized by the
FGCP.
ha-eth-type <type>
The Ethertype used by HA heartbeat packets for NAT/Route mode clusters. <type> is a 4-digit number. Default is
8890.
hc-eth-type <type>
The Ethertype used by HA heartbeat packets for Transparent mode clusters. <type> is a 4-digit number. Default
is 8891.
l2ep-eth-type <type>
The Ethertype used by HA telnet sessions between cluster units over the HA link. <type> is a 4-digit number.
Default is 8893.
ha-uptime-diff-margin <margin>
The cluster age difference margin (grace period). This margin is the age difference ignored by the cluster when
selecting a primary unit based on age. Normally the default value of 300 seconds (5 minutes) should not be
changed. However, for demo purposes you can use this option to lower the difference margin. The range is 1 to
65535 seconds.
You may want to reduce the margin if during failover testing you don’t want to wait the default age difference
margin of 5 minutes. You may also want to reduce the margin to allow uninterruptible upgrades to work.
You may want to increase the age margin if cluster unit startup time differences are larger than 5 minutes.
During a cluster firmware upgrade with uninterruptible-upgrade enabled (the default configuration) the
cluster should not select a new primary unit after the firmware of all cluster units has been updated. But since the
age difference of the cluster units is most likely less than 300 seconds, age is not used to affect primary unit
selection and the cluster may select a new primary unit.
During failover testing where cluster units are failed over repeatedly the age difference between the cluster units
will most likely be less than 5 minutes. During normal operation, if a failover occurs, when the failed unit rejoins
the cluster its age will be very different from the age of the still operating cluster units so the cluster will not select
a new primary unit. However, if a unit fails and is restored in a very short time the age difference may be less than
5 minutes. As a result the cluster may select a new primary unit during some failover testing scenarios.
When multiple VDOMs are enabled, virtual cluster 2 is enabled by default. When virtual cluster 2 is enabled you
can use config secondary-vcluster to configure virtual cluster 2.
Disable virtual cluster 2 to move all virtual domains from virtual cluster 2 back to virtual cluster 1.
Enabling virtual cluster 2 enables override for virtual cluster 1 and virtual cluster 2.
vcluster-id
Indicates the virtual cluster you are configuring. You can't change this setting. You can use the config
secondary-vcluster command to edit vcluster 2.
Disabled by default. Automatically enabled when you enable virtual cluster 2. This setting is not synchronized to
other cluster units.
In most cases you should keep override disabled to reduce how often the cluster negotiates. Frequent
negotiations may cause frequent traffic interruptions. However, if you want to make sure that the same cluster
unit always operates as the primary unit and if you are less concerned about frequent cluster negotiation you can
set its device priority higher than other cluster units and enable override.
priority <priority>
The device priority of the cluster unit. Each cluster unit can have a different device priority. During HA negotiation,
the cluster unit with the highest device priority becomes the primary unit. The device priority range is 0 to 255.
The default is 128. This setting is not synchronized to other cluster units. The device priority of the cluster unit.
Each cluster unit can have a different device priority. During HA negotiation, the cluster unit with the highest
device priority becomes the primary unit. The device priority range is 0 to 255. The default is 128. This setting is
not synchronized to other cluster units.
override-wait-time <seconds>
Delay renegotiating when override is enabled and HA is enabled or the cluster mode is changed or after a cluster
unit reboots. You can add a time to prevent negotiation during transitions and configuration changes. Range 0 to
3600 seconds.
l hub load balancing if the cluster interfaces are connected to hubs. Traffic is distributed to cluster units based on the
Source IP and Destination IP of the packet.
l ip load balancing according to IP address.
l ipport load balancing according to IP address and port.
l leastconnection least connection load balancing.
l none no load balancing. Use when the cluster interfaces are connected to load balancing switches.
l random random load balancing.
l round-robin round robin load balancing. If the cluster units are connected using switches, use round-robin to
distribute traffic to the next available cluster unit.
l weight-round-robin weighted round robin load balancing. Similar to round robin, but you can assign
weighted values to each of the units in the cluster.
minimum-worker-threshold <threshold>
Available on FortiSwitch-5203Bs or FortiController-5902Ds only in inter-chassis content-cluster mode. In inter-
chassis mode the system considers the number of operating workers in a chassis when electing the primary
chassis. A chassis that has less than the minimum-worker-threshold of workers operating is ranked lower
than a chassis that meets or exceeds the minimum-worker-threshold. The default value of 1 effectively
disables the threshold. The range is 1 to 11.
Enter the names of the interfaces to monitor. Use a space to separate each interface name. Use append to add
an interface to the list. If there are no monitored interfaces then port monitoring is disabled.
You can monitor physical interfaces, redundant interfaces, and 802.3ad aggregated interfaces but not VLAN
interfaces, IPSec VPN interfaces, or switch interfaces.
You can monitor up to 64 interfaces. In a multiple VDOM configuration you can monitor up to 64 interfaces per
virtual cluster.
Use a space to separate each interface name. Use append to add an interface to the list.
pingserver-failover-threshold <threshold>
The HA remote IP monitoring failover threshold. The failover threshold range is 0 to 50. Setting the failover
threshold to 0 (the default) means that if any ping server added to the HA remote IP monitoring configuration fails
an HA failover will occur.
Set the priority for each remote IP monitoring ping server using the ha-priority option of the config
system link-monitor command. Increase the priority to require more remote links to fail before a failover
occurs.
The primary unit starts remote IP monitoring again. If the remote link is restored the cluster continues to operate
normally. If, however, the remote link is still down, remote link failover causes the cluster to failover again. This
will repeat each time the flip timeout expires until the failed remote link is restored.
You can use the pingserver-slave-force-reset option to control this behavior. By default this option is
enabled and the behavior described above occurs. The overall behavior is that when the remote link is restored
the cluster automatically returns to normal operation after the flip timeout.
If you disable pingserver-slave-force-reset after the initial remote IP monitoring failover nothing will
happen after the flip timeout (as long as the new primary unit doesn't experience some kind of failover). The
result is that repeated failovers no longer happen. But it also means that the original primary unit will remain the
subordinate unit and will not resume operating as the primary unit.
pingserver-flip-timeout <timeout>
The HA remote IP monitoring flip timeout in minutes. If HA remote IP monitoring fails on all cluster units because
none of the cluster units can connect to the monitored IP addresses, the flip timeout stops a failover from
occurring until the timer runs out. The range is 6 to 2147483647 minutes. The default is 60 minutes.
The flip timeout reduces the frequency of failovers if, after a failover, HA remote IP monitoring on the new
primary unit also causes a failover. This can happen if the new primary unit cannot connect to one or more of the
monitored remote IP addresses. The result could be that until you fix the network problem that blocks
connections to the remote IP addresses, the cluster will experience repeated failovers. You can control how often
the failovers occur by setting the flip timeout.
The flip timeout stops HA remote IP monitoring from causing a failover until the primary unit has been operating
for the duration of the flip timeout. If you set the flip timeout to a relatively high number of minutes you can find
and repair the network problem that prevented the cluster from connecting to the remote IP address without the
cluster experiencing very many failovers. Even if it takes a while to detect the problem, repeated failovers at
relatively long time intervals do not usually disrupt network traffic.
The flip timeout also causes the cluster to renegotiate when it expires unless you have disabled pingserver-
slave-force-reset.
Proxy-based security profile processing that is load balanced includes proxy-based virus scanning, proxy-based
web filtering, proxy-based email filtering, and proxy-based data leak prevention (DLP) of HTTP, FTP, IMAP,
IMAPS, POP3, POP3S, SMTP, SMTPS, IM, and NNTP, sessions accepted by security policies. Other features
enabled in security policies such as Endpoint security, traffic shaping and authentication have no effect on active-
active load balancing.
You can enable load-balance-all to have the primary unit load balance all TCP sessions. Load balancing
TCP sessions increases overhead and may actually reduce performance so it is disabled by default.
This content clustering option is available for the FortiSwitch-5203B and FortiController-5902D.
weight {0 | 1 | 2 | 3} <weight>
The weighted round robin load balancing weight to assign to each unit in an active-active cluster. The weight is
set according to the priority of the unit in the cluster. An FGCP cluster can include up to four FortiGates
(numbered 0 to 3) so you can set up to 4 weights. The default weights mean that the four possible units in the
cluster all have the same weight of 40. The weight range is 0 to 255. Increase the weight to increase the number
of connections processed by the FortiGate with that priority.
Weights are assigned to individual FortiGates according to their priority in the cluster. The priorities are assigned
when the cluster negotiates and can change every time the cluster re-negotiates.
You enter the weight for each FortiGate separately. For example, if you have a cluster of three FortiGate units
you can set the weights for the units as follows:
set weight 0 5
set weight 1 10
set weight 2 15
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
This option is available when mode is a-a and schedule is weight-round-robin. Default low and high
watermarks of 0 disable the feature. The default weight is 5.
This setting is not synchronized by the FGCP so you can set separate weights for each cluster unit.
config secondary-vcluster
Configure virtual cluster 2. You must first enable vcluster2. Use the following syntax.
config secondary-vcluster
set vcluster-id 2
set override {disable | enable}
set priority <priority>
set override-wait-time <time>
{set | append} monitor <interface-name> [<interface-name>...]
{set | append} pingserver-monitor-interface <interface-name> [<interface-name>...]
set pingserver-failover-threshold <threshold>
set pingserver-slave-force-reset {disable | enable}
{set | append} vdom <vdom-name> [<vdom-name>...]
end
system ha-monitor
If the FortiGates in acluster have VLAN interfaces, you can use this command to monitor all VLAN interfaces and
write a log message if one of the VLAN interfaces is found to be down. Once configured, this feature works by
verifying that the primary unit can connect to the subordinate unit over each VLAN. This verifies that the switch
that the VLAN interfaces are connected to is configured correctly for each VLAN. If the primary unit cannot
connect to the subordinate unit over one of the configured VLANs the primary unit writes a link monitor log
message indicating that the named VLAN went down (log message id 20099).
config system ha-monitor
edit <name_str>
set monitor-vlan {enable | disable}
set vlan-hb-interval <integer>
set vlan-hb-lost-threshold <integer>
end
vlan-hb-interval <integer>
The time between sending VLAN heartbeat packets over the VLAN. The VLAN heartbeat range is 1 to 30
seconds. The default is 5 seconds.
vlan-hb-lost-threshold <integer>
The number of consecutive VLAN heartbeat packets that are not successfully received across the VLAN before
assuming that the VLAN is down. The default value is 3, meaning that if 3 heartbeat packets sent over the VLAN
are not received then the VLAN is considered to be down. The range is 1 to 60 packets. A VLAN heartbeat interval
of 5 means the time between heartbeat packets is five seconds. A VLAN heartbeat threshold of 3 means it takes
5 x 3 = 15 seconds to detect that a VLAN is down.
system interface
vdom <string>
Vdom name to which this interface belong, default is root.
distance <integer>
The administrative distance for routes learned through PPPoE or DHCP, lower distance indicates preferred route
for the same destination, value between 1 to 255.
priority <integer>
The priority of routes using this interface, lower priority indicates preferred route for the same destination, value
between 0 to 4294967295, available when mode set to DHCP or PPPoE.
dhcp-relay-ip <ip>
The IP of DHCP relay server.
dhcp-client-identifier <string>
Used to override the default DHCP client ID created by the FortiGate.
fail-alert-method {link-failed-signal | link-down}
Select link-failed-signal or link-down method to alert about a failed link.
ipunnumbered <ip>
The Unnumbered IP used for PPPoE interfaces for which no unique local address is provided. If you have been
assigned a block of IP addresses by your ISP you can add any of these IP.
username <string>
The username of the PPPoE account, provided by your ISP.
password <passwd>
The PPPoE account's password.
idle-timeout <integer>
Idle time in seconds after which the PPPoE session is disconnected, 0 for no timeout.
disc-retry-timeout <integer>
The time in seconds to wait before retrying to start a PPPoE discovery, 0 to disable this feature.
padt-retry-timeout <integer>
PPPoE Active Discovery Terminate (PADT) timeout in seconds used to shut down the PPPoE session if it is idle
for this number of seconds. PADT must be supported by your ISP.
service-name <string>
Set a name for this PPPoE service.
ac-name <string>
Set the PPPoE server name.
lcp-echo-interval <integer>
The time in seconds between PPPoE Link Control Protocol (LCP) echo requests, default is 5.
lcp-max-echo-fails <integer>
Maximum number of missed LCP echoes before the PPPoE link is disconnected, default is 3.
dns-server-override {enable | disable}
Disable to prevent this interface from using a DNS server acquired via DHCP or PPPoE, default is enable.
pptp-client {enable | disable}
Enable or disable the use of point-to-point tunneling protocol (PPTP) client, available in static mode only, default
is disable.
pptp-user <string>
PPTP end user name.
pptp-password <passwd>
PPTP end user password.
pptp-server-ip <ip>
PPTP server's IP address.
pptp-timeout <integer>
Idle timeout in minutes to shut down the PPTP session, values between 0 to 65534 (65534 minutes is 45 days),
0 for disabled, default is 0.
broadcast-forward {enable | disable}
Enable or disable automatic forwarding of broadcast packets, default is disable.
priority-override {enable | disable}
Enable or disable fail back to higher priority port once recovered. Once enabled, priority-override on
redundant interfaces gives greater priority to interfaces that are higher in the member list.
vlanforward {enable | disable}
Enable or disable traffic forwarding between VLANs on this interface, default is disable.
l rpl-all-ext-id: Replace all root and bridge extension IDs, the default mode.
l rpl-bridge-ext-id : Replace the bridge extension ID only.
l rpl-nothing: Do not replace any thing.
l enable: Block FortiSwitch port-to-port traffic on the VLAN, only permitting traffic to and from the FortiGate.
l disable: Allow normal VLAN traffic.
ipmac {enable | disable}
Enable or disable IP/MAC binding for the specified interface, default is disable. More information available in
config firewall ipmacbinding setting command.
subst {enable | disable}
Enable to always send packets from this interface to the same destination MAC address. Use substitite-
dst-mac to set the destination MAV address. Disabled by default.
macaddr <mac>
Override the factory MAC address of this interface by specifying a new MAC address.
substitute-dst-mac <mac>
The destination MAC address that all packets are sent to from this interface if subst is enabled.
Enter a space and a “?” after the speed field to display a list of speeds available for your model and interface.
If you stop a physical interface, associated virtual interfaces such as VLAN interfaces will also stop.
wins-ip <ip>
The IP address of a WINS server to which NetBIOS broadcasts is forwarded.
type <interface-type>
Enter set type ? to see a list of the interface types that can be created.
mtu-override {enable | disable}
Select enable to use custom MTU size instead of default 1 500.
mtu <integer>
Set a new MTU value.
wccp {enable | disable}
Enable or disable Web Cache Communication Protocol (WCCP) on this interface, default is disable.
drop-overlapped-fragment {enable | disable}
Enable or disable dropping overlapped packet fragments, default is disable.
sample-rate <integer>
The sample rate defines the average number of packets to wait between samples, value between 10 to
99999. For example, the default sample-rate of 2000 samples 1 of every 2000 packets.
The lower the sample-rate the higher the number of packets sampled. Sampling more packets increases the
accuracy of the sampling data but also increases the CPU and network bandwidth required to support sFlow. The
default sample-rate of 2000 provides high enough accuracy in most cases.
polling-interval <integer>
The amount of time in seconds that the sFlow agent waits between sending collected data to the sFlow collector,
value between 1 to 255.
A higher polling-interval means less data is sent across the network but also means that the sFlow collector’s
picture of the network may be out of date, default is 20.
sample-direction {tx | rx | both}
Configure the sFlow agent to sample traffic received by the interface (rx) or sent from the interface (tx) or both.
explicit-web-proxy {enable | disable}
Enable or disable explicit Web proxy on this interface, default is disable.
explicit-ftp-proxy {enable | disable}
Enable or disable explicit FTP proxy on this interface, default is disable.
tcp-mss <integer>
The Maximum Size Segment (mss) for TCP connections, it is used when there is an MTU mismatch or DF (Don't
Fragment) bit is set.
inbandwidth <integer>
The limit of ingress traffic, in Kbit/sec, on this interface, default is 0 which indicate unlimited.
outbandwidth <integer>
The limit of egress traffic, in Kbit/sec, on this interface, default is 0 which indicate unlimited.
spillover-threshold <integer>
Egress Spillover threshold in kbps used for load balancing traffic between interfaces, range from 0 to 16776000,
default is 0.
ingress-spillover-threshold <integer>
Ingress Spillover threshold in kbps, range from 0 to 16776000, default is 0.
weight <integer>
Set the default weight for static routes on this interface. This applies when the route has no weight configured.
external {enable | disable}
Enable or disable identifying if this interface is connected to external side.
config managed-device
Available when fortilink is enabled, used for managed devices through fortilink interface.
edit <name>
The identifier of the managed device.
description <string>
Optionally describe this interface.
alias <string>
Optionally set an alias which will be displayed with the interface name to make it easier to distinguish.
security-external-web <string>
The URL of an external authentication web server, available when security-mode is set to captive-
portal.
security-external-logout <string>
The URL of an external authentication logout server, available when security-mode is set to captive-
portal.
replacemsg-override-group <group-name>
Specify replacement message override group name, this is for captive portal messages when security-mode
is set to captive-portal.
security-redirect-url <string>
Specify URL redirection after captive portal authentication or disclaimer.
security-groups <user-group>
Optionally, enter the groups that are allowed access to this interface.
security-exempt-list <name>
Optionally specify the members will bypass the captive portal authentication.
device-identification {enable | disable}
Enable or disable passive gathering of identity information about source hosts on this interface.
device-identification-active-scan {enable | disable}
Enable or disable active gathering of identity information about source hosts on this interface.
device-access-list <name>
Specify the device access list to use which is configured in config user device-access-list .
endpoint-compliance {enable | disable}
Enable or disable endpoint compliance enforcement, default is disabled.
estimated-upstream-bandwidth <integer>
Estimated maximum upstream bandwidth in kbps, used to estimate link utilization.
estimated-downstream-bandwidth <integer>
Estimated maximum downstream bandwidth in kbps, used to estimate link utilization.
vrrp-virtual-mac {enable | disable}
Enable or disable the Virtual Router Redundancy Protocol (VRRP) virtual MAC addresses for the VRRP routers
added to this interface, default is disable. See RFC3768 For more information about VRRP.
config vrrp
vrgrp <integer>
VRRP group id.
vrip <ip>
IP of the virtual router.
priority <integer>
Virtual router's priority, value between 1 to 255, default is 100.
adv-interval <integer>
Advertisement interval in seconds, value between 1 to 255
start-time <integer>
Startup time in seconds, value between 1 to 255, default is 3.
vrdst <ip>
Monitor the route to this destination.
status {enable | disable}
Enabled by default.
snmp-index <integer>
Optionally set a permanent SNMP Index of this interface.
config secondaryip
ap-discover {enable | disable}
Enable or disable automatic registration of unknown FortiAP devices, default is disable.
fortilink {enable | disable}
Enable or disable FortiLink on this interface to manage other Fortinet devices such as FortiSwitch.
fortilink-stacking {enable | disable}
Enable or disable FortiLink switch-stacking on this interface.
config ipv6
ip6-address <ipv6>
Primary IPv6 address prefix of this interface.
config ip6-extra-addr
edit <prefix>
When disabled (by default), and autoconf is enabled, the FortiGate unit acts as a stateless address auto-
configuration client (SLAAC).
ip6-manage-flag {enable | disable}
Enable or disable the managed address configuration flag in router advertisements, default is enable.
ip6-other-flag {enable | disable}
Enable or disable the other stateful configuration flag in router advertisements, default is enable.
ip6-max-interval <integer>
The maximum time interval, in seconds, between sending unsolicited multicast router advertisements from the
interface, value between 4 to 1800, default is 600.
ip6-min-interval <integer>
The minimum time interval, in seconds, between sending unsolicited multicast router advertisements from the
interface, value between 3 to 1350, default is 198.
ip6-link-mtu <integer>
The link MTU to be added to the router advertisements options field, 0 means that no MTU options are sent.
ip6-reachable-time <integer>
The time, in milliseconds, to be added to the reachable time field in the router advertisements, value between 0
to 3600000, default is 0 which mean no reachable time is specified.
ip6-retrans-time <integer>
The number, in milliseconds, to be added to the Retrans Timer field in the router advertisements, default is 0
which mean that the Retrans Timer is not specified.
ip6-default-life <integer>
The time, in seconds, to be added to the Router Lifetime field of router advertisements sent from the interface,
default is 1800.
config ip6-prefix-list
edit <prefix>
autonomous-flag {enable | disable}
Set the state of the autonomous flag for this IPv6 prefix, default is disable.
onlink-flag {enable | disable}
Set the state of the on-link flag in this IPv6 prefix, default is disable.
valid-life-time <integer>
The valid lifetime in seconds for this IPv6 prefix, default is 2592000 (30 days).
preferred-life-time <integer>
config ip6-delegated-prefix-list
edit <prefix-id>
upstream-interface <interface>
Set the state of the autonomous flag for this IPv6 delegated prefix, default is disable.
onlink-flag {enable | disable}
Set the state of the on-link flag in this IPv6 delegated prefix, default is disable.
subnet <ipv6_net>
ip6-hop-limit <integer>
The number to be added to the Cur Hop Limit field in the router advertisements sent out this interface, default
is 0 which mean no hop limit is specified.
dhcp6-relay-service {disable | enable}
Enable or disable DHCP relay service for IPv6.
dhcp6-relay-type {regular}
Regular DHCP relay.
dhcp6-relay-ip <ipv6>
The IPv6 of one or more DHCP relays.
dhcp6-prefix-delegation {disable | enable}
Enable or disable DHCPv6 prefix delegation, default is disable.
dhcp6-prefix-hint <ipv6_net>
DHCPv6 prefix that will be used as a hint to the upstream DHCPv6 server.
dhcp6-prefix-hint-plt <integer>
DHCPv6 prefix hint preferred life time in seconds, default is 604800 (7 days).
dhcp6-prefix-hint-vlt <integer>
DHCPv6 prefix hint valid life time in seconds, default is 2592000 (30 days).
config l2tp-client-settings
user <string>
L2TP user name.
Password <passwd>
L2TP password.
peer-host <string>
The host name.
peer-mask <netmask>
The netmask.
peer-port <integer>
The port used to connect to L2TP peers, default is 1701.
mtu <integer>
The Maximum Transmission Unit (MTU), value between 40 and 65535, default is 1460.
distance <integer>
The administration distance of learned routes, value between 1 to 255, default is 2.
priority <integer>
The routes priority learned through L2TP.
system link-monitor
Use this command to add link health monitors that are used to determine the health of an interface. Link health
monitors can also be used for FGCP HA remote link monitoring.
srcintf <interface>
The name of the interface to add the link health monitor to.
monitor to monitor more than one IP address from a single interface. If you add multiple IP addresses, the health
checking will be with all of the addresses at the same time. The link monitor only fails when no responses are
received from all of the addresses.
gateway-ip <address>
The IP address of the remote gateway that the link monitor must communicate with to contact the server. Only
required if there is no other route on for this communication.
source-ip <address>
Optionally add a source address for the monitoring packets. Normally the source address is the address of the
source interface. You can add a different source address if required.
interval <interval>
The time between sending link health check packets. Default is 5 seconds. Range is 1 to 3600 seconds.
timeout <timeout>
The time to wait before receiving a response from the server. Default is 1 second. Range is 1 to 255 seconds.
failtime <failover-threshold>
The number of times that a health check can fail before a failure is detected (the failover threshold). Default is 5.
Range is 1 to 10.
recoverytime <recovery-threshold>
The number of times that a health check must succeed after a failure is detected to verify that the server is back
up. Default is 5. Range is 1 to 10.
ha-priority <priority>
The priority of this link health monitor when the ling health monitor is part of an FGCP remote link monitor
configuration. Default is 1. Range is 1 to 50.
system np6
Configure a wide range of settings for your FortiGate's NP6 processors including enabling/disabling fastpath and
low latency, enabling session accounting and adjusting session timeouts. As well you can set anomaly checking
for IPv4 and IPv6 traffic. You can also configure different settings for each NP6 processor. The settings that you
configure for an NP6 processor with the config system np6 command apply to traffic processed by all interfaces
connected to that NP6 processor. This includes the physical interfaces connected to the NP6 processor as well as
all subinterfaces, VLAN interfaces, IPsec interfaces, LAGs and so on associated with the physical interfaces
connected to the NP6 processor.
session-collector-interval <interval>
Set the expired or garbage session collector time interval in seconds. The range is 1 to 100 seconds. The default
is 64 seconds.
session-timeout-interval <interval>
Set the timeout for inactive sessions. The range is 0 to 1000 seconds. The default is 40 seconds.
session-timeout-random-range <range>
Set the random timeout for inactive sessions. The range is 0 to 1000 seconds. The default is 8 seconds.
config fp-anomaly-v4
Configure how the NP6 processor does IPv4 traffic anomaly protection. You can configure the NP6 processor to
allow or drop the packets associated with an attack or forward the packets that are associated with the attack to
FortiOS (called trap-to-host). Selecting trap-to-host turns off NP6 anomaly protection for that
anomaly. If you require anomaly protection you can enable it with a DoS policy but the anomaly protection is done
by the CPU instead of the NP6.
config fp-anomaly-v6
Configure how the NP6 processor does IPv6 traffic anomaly protection. You can configure the NP6 processor to
allow or drop the packets associated with an attack or forward the packets that are associated with the attack to
FortiOS (called “trapto- host”). Selecting “trap-to-host” turns off NP6 anomaly protection for that anomaly. If you
require anomaly protection you can enable it with a DoS policy.
system npu
Configure Network Processor (NP) options for FortiGates with NP6 and NP4 network processors.
cases out of order ESP packets can cause problems if multiple IPsec engines are running. To resolve this problem
you can configure all of the NP6 processors to use fewer IPsec engines.
system password-policy
Configure a password policy to be used for administrator accounts and/or IPsec VPN pre-shared keys.
minimum-length <int>
Set the minimum number of characters required for a password. The default is 8.
min-lower-case-letter <int>
Set the minimum number of lower case letters that must be used in a password. The default is 0.
min-upper-case-letter <int>
Set the minimum number of upper case letters that must be used in a password. The default is 0.
min-non-alphanumeric <int>
Set the minimum number of non-alphanumeric characters that must be used in a password. The default is 0.
min-number <int>
Set the minimum number of numbers that must be used in a password. The default is 0.
expire-day <int>
Set the number of days after which a password expires. The default is 90. This option only appears when
expire-status is enabled.
system sms-server
Configure a cellphone service provider to send SMS text messages as part of two-factor authentication.
mail-server <server_name>
Set the domain name of the email-to-SMS server.
system wccp
Use this command to configure various settings for Web Cache Communication Protocol (WCCP). Before you
can do this however, you must first configure the FortiGate as either a WCCP router or client: FortiGate as
WCCP router: Intercepts HTTP and HTTPS sessions and forwards them to a web caching engine, caches web
pages, and returns cached content to the web browser. FortiGate as WCCP client: Accepts and
forwards WCCP sessions and uses firewall policies to apply NAT, UTM, and more security features. Note that
FortiGates may only operate as clients while in NAT/Route mode (not in Transparent mode). To assign either role
to the FortiGate, use the following command:
config system settings
set wccp-cache-engine {enable | disable}
end
Set this command to disable (by default) for the FortiGate to operate as a WCCP router. Set this command to
enable for the FortiGate to operate as a WCCP client. When enabled, an interface named w.root is added to
the FortiGate (shown under config system interfaces). All WCCP sessions received by the FortiGate —
operating as a WCCP client — are considered to be received at this interface, where you can enter firewall
policies for WCCP traffic. Note: All WCCP entries created, whether for router or client, must be numbered within
the range of 0-255. The default is set to 1. Use 0 for HTTP. [toc]
Router mode
The entries below are available when the FortiGate has been configured as a WCCP router.
router-id <ip-address>
IP address known to all cache engines, and identifies an interface on the FortiGate to the cache engines. If
all cache engines connect to the same FortiGate interface, use the default address of 0.0.0.0. However, if the
cache engines can connect to different FortiGate interfaces, you must set router-id to a specific IP address,
which must then be added to the configuration of the cache engines that connect to that interface.
group-address <multicast-address>
IP multicast address used by the cache routers. The default, 0.0.0.0, means the FortiGate will ignore multicast
WCCP traffic. Otherwise, set the address between 244.0.0.0 to 239.255.255.255.
password <password>
Note: This entry is only available when authentication is set to enable. Password for MD5 authentication
(maximum length of eight characters).
forward-method {GRE | L2 | any}
Defines how the FortiGate forwards traffic to cache servers:
l GRE: Encapsulates the intercepted packet in an IP GRE header with a source IP address of the WCCP server and a
destination IP address of the target WCCP client. This allows the WCCP server to be multiple Layer 3 hops away
from the WCCP client.
l L2: Rewrites the destination MAC address of the intercepted packet to equal the MAC address of the target WCCP
client. L2 forwarding requires that the WCCP server is Layer 2 adjacent to the WCCP client.
l any: Cache server determines the method.
return-method {GRE | L2 | any}
Defines how a cache server declines a redirected packet, and returns it to the FortiGate (see forward-method
above for option descriptions).
l HASH: A hash key based on any combination of the source and destination IP and port of the packet.
l MASK: A mask value specified with a maximum of 7 bits and, like the hash key, can be configured to cover both
the source and destination address space.
l any: Cache server determines the method.
Client mode
The entries below are available when the FortiGate has been configured as a WCCP client.
cache-id <ip-address>
IP address of the cache engine if its IP address is not the same as the IP address of a FortiGate interface. If the
addresses are the same, use the default address of 0.0.0.0.
group-address <multicast-address>
IP multicast address used by the cache routers. The default, 0.0.0.0, means the FortiGate will ignore multicast
WCCP traffic. Otherwise, set the address between 244.0.0.0 to 239.255.255.255.
router-list <addresses>
IP addresses of one or more WCCP routers that can communicate with a FortiGate operating as a WCCP cache
engine. Separate multiple addresses with spaces.
l auto: Transparent redirection of traffic, whereby the target URL is used to request content, and have requests
automatically redirected to a web caching engine.
l standard: Intercepts TCP port 80 (HTTP) traffic to the client.
l dynamic: Use for when the router is instructed which protocol or ports to intercept, and how to distribute the traffic.
assignment-weight <weight>
Assignment weight/ratio for the WCCP cache engine. Set the value between 0-255. The default is set to 0.
user
user adgrp
Configure or edit existing Fortinet Single Sign-On (FSSO) groups. The command below creates a group that
defines FSSO agent names and their polling ID.
server-name <name>
FSSO agent name.
polling-id <id>
FSSO polling ID. Set value between 0-4294967295. The default is set to 0.
user device
mac <mac-address>
Enter the device's MAC address.
user <name>
Enter the device owner's user name.
master-device [name]
Optionally enter a master device name.
comment [string]
Optional comments.
avatar <image-file>
Enter an image file name to be used as the user's avatar (maximum 4K base64 encoded).
tags <image-file>
Enter applied object tags.
type <device-type>
Select the device type from the following:
l android-phone
l android-tablet
l blackberry-phone
l blackberry-playbook
l forticam
l fortifone
l fortinet-device
l gaming-console
l ip-phone
l ipad
l iphone
l linux-pc
l mac
l media-streaming
l printer
l router-nat-device
l windows-pc
l windows-phone
l windows-tablet
l other-network-device
user device-access-list
Use this command to configure device lists for use on interfaces with device identification enabled.
config device-list
A configuration method to create device name entries and define their action.
device <device-group>
Enter the firewall device or device group.
user device-category
Use this command to view all available device types/categories, shown below.
l all
l android-phone
l android-tablet
l blackberry-phone
l blackberry-playbook
l collected-emails
l forticam
l fortifone
l fortinet-device
l gaming-console
l ip-phone
l ipad
l iphone
l linux-pc
l mac
l media-streaming
l other-network-device
l printer
l router-nat-device
l windows-pc
l windows-phone
l windows-tablet
user device-group
Use this command to edit or define FortiGate default or custom device groups.
member <group-member>
Enter the device group members that belong to this group, each separated by a space (see the full default list of
device categories).
comment [string]
Optional comments.
user fortitoken
status {active | lock}
Activate (by default) or lock the FortiToken.
comments [string]
Optional comments.
license <license>
Enter the FortiToken Mobile license. You can retrieve the token's license by entering get, or by using its
activation-code in the following command:
execute fortitoken-mobile import <activation-code>
activation-code <code>
Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the
activation code sent from the FortiGate to the user's email.
activation-expire <expire-time>
Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the
activation code sent from the FortiGate to the user's email. The email will tell the user by when they must activate
their token.
user fsso
Use this command to configure the FortiGate unit to receive user group information from a Directory Service
server equipped with the Fortinet Single Sign-On (FSSO) Agent. You can specify up to five computers on which
an FSSO collector agent is installed. The FortiGate unit uses these collector agents in a redundant configuration,
whereby if the first agent fails, the FortiGate unit attempts to connect to the next agent in the list, and so on.
ldap-server <server>
Enter the name of the LDAP server to be used to get group information from the Directory Service.
source-ip <server>
Enter the source IP for communications to FSSO servers.
user fsso-polling
Use this command to configure polling of servers for FSSO. Edit to define separate ID numbers for the Windows
AD server.
config adgrp
Note: This entry is not configurable.
server <name/ip>
Name or IP address of the AD server.
default-domain <domain>
This server’s default domain name.
port {port}
Server port number. Set the value between 0-65535. The default is set to 0.
user <user>
User name for the AD server.
password <password>
AD server password.
ldap-server <server>
Name of the LDAP server for group and user names.
logon-history <hours>
Amount of time in hours to maintain active logon. Set the value between 1-48 (or one hour to two days). The
default is set to 8. Set to 0 to for no time limit.
polling-frequency <frequency>
Interval time in seconds that polling occurs. Set the value between 1-30. The default is set to 10.
user group
Use this command to add or edit user groups. User groups can include defined peer users.
config guest
Note: When group-type is set to guest, guest options will become available and can be set. This
configuration method will also become available, however it is not configurable.
config match
Note: This entry is only available when group-type is set to firewall. A configuration method to specify the
user group names on the authentication servers that are members of this FortiGate user group. Note that if no
matches are specified then all users on the server can authenticate.
server-name <name>
The name of the remote authentication server.
group-name <name>
The name of the matching group on the remote authentication server.
l firewall: Those users defined in the user local, user ldap, or user radius commands
l fsso-service: Fortinet Single Sign-On (FSSO) users
l rsso: RADIUS Single Sign-On (RSSO) users
l guest: Guest users
authtimeout <timeout>
Period of time in minutes before the authentication timeout for a user group is reached. Set the value between 1-
4320 (or one minute to three days). The default is set to 0, which sets the timeout to use the global
authentication value.
sso-attribute-value <attribute>
Note: This entry is only available when group-type is set to rsso. The name of the RADIUS user group that
this local user group represents.
auth-concurrent-value <limit>
Note: This entry is only available when auth-concurrent-override is set to enable. The number of
concurrent logins permitted from the same user. Set the value between 1-100, or 0 (by default) for unlimited.
http-digest-realm <attribute>
Note: This entry is not available when group-type is set to rsso. The realm attribute for MD5-digest
authentication.
expire <seconds>
Note: This entry is only available when group-type is set to guest. The time in seconds the user account has
until it expires. Set the value between 1-31536000 (or one second to 365 days). The default is set to 14400.
max-accounts <limit>
Note: This entry is only available when group-type is set to guest. The maximum number of accounts
permitted. The maximum value that can be set depends on the platform. The default is set to 0, or unlimited.
member <member>
Note: This entry is only available when group-type is set to either firewall or fsso-service. The
names of users, peers, LDAP severs, or RADIUS servers to add to the user group, each separated by a space.
Note that, to add or remove names from the group, you must re-enter the whole list with the required additions or
deletions. . The names of users, peers, LDAP severs, or RADIUS servers to add to the user group, each
separated by a space. Note that, to add or remove names from the group, you must re-enter the whole list with
the required additions or deletions.
user krb-keytab
Use this command to configure Kerberos keytab entries. Keytab files are used to authenticate to various remote
systems using Kerberos without entering a password, and without requiring human interaction or access to
password stored in a plain-text file. The script is then able to use the acquired credentials to access files stored on
a remote system.
principal <principal>
The Kerberos service principal, e.g. HTTP/[email protected].
ldap-server <server>
The LDAP server name.
keytab <keytab>
The base64 coded keytab file containing a pre-shared key.
user ldap
Use this command to add or edit the definition of an LDAP server for user authentication. The maximum number
of remote LDAP servers that can be configured for authentication is 10. LDAP user authentication is supported for
PPTP, L2TP, IPSec VPN, and firewall authentication. With PPTP, L2TP, and IPSec VPN, PAP (Packet
Authentication Protocol) is supported, while CHAP (Challenge Handshake Authentication Protocol) is not.
append search-type
Append nested-user-group chain information.
server <name/ip>
LDAP server CN domain name or IP address. The host name must comply with RFC1035.
secondary-server [name/ip]
Optionally, enter a second LDAP server name or IP.
tertiary-server [name/ip]
Optionally, enter a third LDAP server name or IP.
source-ip [class-ip]
Optionally, enter a source IP address to be used for LDAP requests.
cnid <id>
Common name identifier for the LDAP server (maximum of 20 characters). The default is set to cn, which is the
common name identifier for most LDAP servers. However some servers use other common name identifiers such
as uid.
dn <dn>
Note: You must provide a dn value if type is set to simple. Distinguished name used to look up entries on the
LDAP server (maximum of 512 characters). The distinguished name reflects the hierarchy of LDAP database
object classes above the common name identifier. The FortiGate unit passes this distinguished name unchanged
to the server.
port <port>
Port number to be used for communication with the LDAP server. Set the value between 1-65535. The default is
set to 389.
password-renewal {enable | disable}
Enable or disable (by default) online password renewal.
member-attr <attribute-name>
Name of attribute from which to get group membership. The default is set to memberOf. Examples are shown
below: . Examples are shown below:
search-type {nested}
Retrieve the complete nested-user-group chain information of a user in a particular Microsoft AD domain.
account-key-processing {same | strip}
Account key processing operation, an option to keep or strip domain string of User Principal Name (UPN) in the
token.
account-key-name <name>
Account key name, using the UPN as the search filter.
user local
Use this command to add or edit local users and their authentication options, such as two-factor authentication.
Note: To add authentication by RADIUS, TACACS+, or LDAP server, you must first add servers using the user
radius, user tacacs+, or user ldap commands respectively.
status {enable | disable}
Enable (by default) or disable allowing the local user to authenticate with the FortiGate unit.
l password: Once set, enter a password in the passwd entry (see entry below). The FortiGate unit will verify the
password against this value.
l radius: Once set, enter the server name in the radius-server entry (see entry below). The specified
RADIUS server will verify the password.
l tacacs+: Once set, enter the server name in the tacacs+-server entry (see entry below). The specified
TACACS+ server will verify the password.
l ldap: Once set, enter the server name in the ldap-server entry (see entry below). The specified LDAP server
will verify the password.
passwd <password>
Note: This entry is only available when type is set to password. The user's password used to authenticate
themselves. It is recommended to enter an alphanumeric password of at least six characters in length.
radius-server <server>
Note: This entry is only available when type is set to radius. Enter the name of the RADIUS server with which
the user must authenticate.
tacacs+-server <server>
Note: This entry is only available when type is set to tacacs+. Enter the name of the TACACS+ server with
which the user must authenticate.
ldap-server <server>
Note: This entry is only available when type is set to ldap. Enter the name of the LDAP server with which the
user must authenticate. . Enter the name of the LDAP server with which the user must authenticate.
fortitoken <token>
Note: This entry is only available when two-factor is set to fortitoken. Two-factor recipient's FortiToken
serial number. The FortiToken must have already been added to the FortiGate unit to be set here.
email-to <address>
Two-factor recipient's email address.
sms-server {fortiguard | custom}
Send SMS through FortiGuard or other external server.
sms-custom-server <server>
Note: This entry is only available when sms-server is set to custom. Name of the custom server to use for
SMS-based two-factor authentication. Note that the server must have already been defined using the system
sms-server command.
sms-phone <number>
User's phone number to be used for SMS-based two-factor authentication.
passwd-policy [policy]
Note: This entry is only available when type is set to password. Optionally, select a password policy to apply
to this user. Use the user password-policy command to create password policies.
passwd-time
Note: This entry is only available when type is set to password. Displays the time of the last password update
in the following format: <yyyy-mm-dd hh:mm:ss>.
authtimeout <timeout>
Period of time in minutes before the authentication timeout for a user is reached. Set the value between 1-1440
(or one minute to one day). The default is set to 0, which sets the timeout to use the global authentication value.
workstation <name>
Note: This entry is only available when type is set to ldap. Name of the remote user workstation. Set this
value if you want to permit the user to authenticate only from a particular workstation.
auth-concurrent-value <limit>
Note: This entry is only available when auth-concurrent-override is set to enable. The number of
concurrent logins permitted from the same user. Set the value between 1-100, or 0 (by default) for unlimited.
user password-policy
Use this command to create password policies that warn users that their password will expire. When
a configurable number of days has been reached, the user will have the opportunity to renew their password
before the expiration day is reached. Once the policies have been created, you must then apply them to the user
with the passwd-policy entry under the user local command. Password policies can be applied to any
user (not just local users), however password policies cannot be applied to a user group.
expire-days <days>
Period of time in days before the user's password expires. Set the value between 0-999. Default is set to 180.
warn-days <days>
Period of time in days before the user is provided a password expiration warning message upon login. Set the
value between 0-30. Default is set to 15.
user peer
Use this command to add or edit peer (digital certificate holder) information. Peers that you define can be used in
the vpn ipsec phase1 command if peertype is set to peer. These peers can also be added to peer
groups in the user peergrp command. This command refers to certificates imported into the FortiGate unit.
You can import CA certificates using the vpn certificate ca command and local certificates using the vpn
certificate local command.
ca <cert-ca>
Name of the CA certificate, as returned by the execute vpn certificate ca list command.
subject [constraints]
Optionally, enter any peer certificate name constraints; the name defined here must match the certificate name
for successful authentication.
cn <cert-common-name>
Name of the peer certificate common name.
ldap-server <server>
Name of an LDAP server defined under the user ldap command. Performs client access rights check for the
defined peer.
ldap-username <name>
Login name for the LDAP server.
ldap-password <password>
Login password for the LDAP server.
l password: Authenticate through user name and password. This is set by default.
l principal-name: Authenticate through LDAP userPrincipalName attribute.
ocsp-override-server <server>
Online Certificate Status Protocol (OCSP) server used to retrieve certificates. This applies if OCSP is enabled in
the vpn certificate setting command.
passwd <password>
Note: This entry is only available when two-factor is set to enable. This peer's password for two-factor
authentication.
user peergrp
Use this command to add or edit peer groups. Peers that you define can be used in the vpn ipsec phase1
command if peertype is set to peer.
member <name>
Member names of the peer group, each separated by a space. To add or remove names from the group, you
must re-enter the whole list with the additions or deletions required.
user pop3
Use this command to configure users who authenticate on a Post Office Protocol 3 (POP3) server. Your Internet
server uses the POP3 protocol to receive and hold emails.
server <name/ip>
Domain name or IP address of the POP3 email server.
port <port>
POP3 service port number. This is set to 110 by default).
user radius
Use this command to add or edit information used for RADIUS authentication. The default port for RADIUS traffic
is 1812. If your RADIUS server uses a different port you can change the default RADIUS port here. You may set
different ports for each of your RADIUS servers, of which you can configure a maximum of ten.
Note: All RADIUS Single-Sign On (RSSO) and other SSO related entries are only available when rsso is set to
enable.
server <name/ip>
Note: This entry is only available when rsso is set to disable. RADIUS server domain name or IP address
(host name must comply with RFC1035).
secret <key>
Note: This entry is only available when rsso is set to disable. RADIUS server shared secret key. The key
should be a maximum of 16 characters in length.
timeout <timeout>
Period of time in seconds between re-sending authentication requests. Set the value between 1-300. The default
is set to 5. These requests occur during the remoteauthtimeout period set in the system global
command.
use-management-vdom {enable | disable}
Note: This entry is only available when rsso is set to disable. Enable or disable (by default) using the
management VDOM to send requests.
nas-ip <ip>
Note: This entry is only available when rsso is set to disable. IP address of FortiGate interface used to
communicate with the RADIUS server, and used as NAS-IP-Address and Called-Station-Id attribute in
RADIUS access requests (see the rsso-endpoint-attribute entry below for full list of attributes).
acct-interim-interval <seconds>
Note: This entry is only available when rsso is set to disable. Period of time in seconds between each
accounting interim update message. Set the value between 600-86400 (or ten minutes to one day). The default is
set to 0.
radius-coa {enable | disable}
Enable or disable (by default) RADIUS Change of Authorization (CoA), a mechanism that can change the
attributes of an authentication, authorization, and accounting (AAA) session after it is authenticated.
radius-port <port>
Note: This entry is only available when rsso is set to disable. RADIUS service port number. Set the value
between 0-65535. The default is set to 0.
h3c-compatibility {enable | disable}
Enable or disable (by default) compatibility with the H3C's intelligent Management Center (iMC). When enabled,
the supplicant requests 802.1X authentication and then sends a second phase security check request to the H3C
IMC server.
source-ip <ip>
Note: This entry is only available when rsso is set to disable. Source IP for communications to the RADIUS
server.
username-case-sensitive {enable | disable}
Enable or disable (by default) implementation of username case-sensitivity.
class <name>
Class attribute name(s).
password-renewal {enable | disable}
Enable or disable (by default) implementation of password renewal.
rsso {enable | disable}
Enable (or disable by default) RADIUS SSO (RSSO) to set a variety of options and configure an RSSO agent.
FortiOS will then accept connections on the port defined in the rsso-radius-server-port entry (see entry
below).
rsso-radius-server-port <port>
The connection that FortiOS listens for RADIUS Start and Stop records on this port. Set the value between 0-
65535. The default is set to 1813. If necessary, change the UDP port number used by the RADIUS accounting
server for sending RADIUS records.
rsso-secret <password>
RADIUS secret used by the RADIUS accounting server.
rsso-endpoint-attribute <attribute>
Note: All attributes listed below are also available under the rsso-endpoint-block-attribute and sso-
attribute entries. To extract the user end point identifier from the RADIUS Start record, this entry must be set
to the name of the RADIUS attribute that contains the end point identifier. The RADIUS attribute must match one
of the attributes available. Attributes are case sensitive. The default is set to Calling-Station-
IdCalling-Station-Id. Select from the table shown below:
rsso-endpoint-block-attribute <attribute>
RADIUS attribute used to block a user. See the rsso-endpoint-attribute entry for a full list of the
attributes available.
sso-attribute <attribute>
Name of the RADIUS attribute that contains the profile group name to be extracted from the RADIUS Start
record. The default is set to Class. See the rsso-endpoint-attribute entry for a full list of the attributes
available.
sso-attribute-key <key>
Key prefix for SSO group value in the SSO attribute, with a maximum length of 36 characters.
rsso-context-timeout <seconds>
Period of time in seconds before the logged on user is removed from the "user context list" of logged on users. Set
the value between 1-4294967295 (or one second to 136+ years), or 0 for users you want to remain on the list. The
default is set to 28800 (or eight hours). This timeout is only necessary if FortiOS doesn’t receive RADIUS Stop
records. However it's advisable to set a timeout in case the FortiGate unit misses a Stop record.
rsso-log-period <seconds>
Time interval in seconds that FortiOS will generate group event log messages for dynamic profile events. This is
to avoid generating groups of event log messages continuously. Each log message contains the number of
events of that type occurred. Set the value between 1-4294967295 (or one second to 136+ years), or 0 (by
default) to generate all event log messages in real time.
l protocol-error: Writes an event log message if RADIUS protocol errors occur. For example, if a RADIUS
record contains a RADIUS secret that does not match the one added to the dynamic profile.
l profile-missing: Writes an event log message whenever FortiOS cannot find a group name in a RADIUS Start
message that matches the name of an RSSO user group in FortiOS.
l accounting-stop-missed: Writes an event log message whenever a user context entry timeout expires
indicating that FortiOS removed an entry from the user context list without receiving a RADIUS Stop message.
l accounting-event: Writes an event log message when FortiOS does not find the expected information in a
RADIUS Record. For example, if a RADIUS record contains more than the expected number of addresses.
l endpoint-block: Writes an event log message whenever a user is blocked.
l radiusd-other: Writes an event log message for other events. For example, write a log message if the memory
limit for the user context list is reached and the oldest entries in the table have been dropped.
l none: Disable logging of RADIUS SSO events.
user security-exempt-list
Note: To view eligible options for the config options in the entries listed below, enter set <entry> ?.
config rule
A configuration method to create exempt rules. Edit to create new and specify the rule parameters with the
entries below.
srcaddr <src-address>
Source addresses or address groups to be exempted from Captive Portal, each separated by a space.
devices <device>
Devices or device groups to be exempted from Captive Portal, each separated by a space. These groups can be
created/edited using the user device-group command.
dstaddr <dst-address>
Destination addresses or address groups to be exempted from Captive Portal, each separated by a space.
service <dst-service>
Destination services to be exempted from Captive Portal, each separated by a space.
description [description]
Optional description for the group.
user setting
Use this command to configure per VDOM user settings such as the firewall user authentication time out
and protocol support for firewall policy authentication.
config auth-ports
A configuration method to set authentication ports and their authentication types. Edit to create new and
configure the following entries below.
port <port>
Authentication port number. Set the value between 1-65535. The default is set to 1024.
auth-cert <cert>
HTTPS server certificate for policy authentication. Select from built-in defaults or custom certificates. The built-in
Fortinet_Factory certificate is set by default.
auth-ca-cert <ca-cert>
If the built-in certificate is not used here, specify the CA certificate to use instead.
auth-timeout <minutes>
Period of time in minutes before the firewall user authentication timeout requires the user to authenticate again.
Set the value between 1-1440 (or one minute to one day). To improve security, it's recommended to keep the
auth-portal-timeout <minutes>
Period of time in minutes before the firewall Captive Portal authentication timeout requires the user to
authenticate again. Set the value between 1-30 (or one minute to half an hour). The default is set to 3.
auth-blackout-time <seconds>
When a firewall authentication attempt fails five times within one minute, the IP address (that is the source of the
authentication attempts) is denied access for this period of time in seconds. Set the value between 0-3600 (or no
denial to one hour). The default is set to When a firewall authentication attempt fails five times within one
minute, the IP address (that is the source of the authentication attempts) is denied access for this period of time
in seconds. Set the value between 0-3600 (or no denial to one hour). The default is set to 0.
auth-invalid-max <failed-attempts>
Maximum number of failed authentication attempts before the client is blocked. Set the value between 1-100.
The default is set to 5.
auth-lockout-threshold <login-attempts>
Number of login attempts before a login lockout is triggered. Set the value between 1-10. The default is set to 3.
auth-lockout-duration <seconds>
Period of time in seconds that login lockout lasts for. Set the value between 1-4294967295 (or one second to
136+ years), or 0 for no lockout.
user tacacs+
Use this command to add or edit information used for Terminal Access Controller Access-Control System
(TACACS+) authentication, a remote authentication protocol used to communicate with an authentication server.
The default port for a TACACS+ server is 49. A maximum of 10 remote TACACS+ servers can be configured, and
alternative authentication methods can be set for each server. These methods include CHAP, PAP, MS-CHAP,
and ASCII. The host name for TACACS+ servers must comply with RFC1035.
server <name/ip>
Name or IP address of the TACACS+ sever.
secondary-server <name/ip>
Name or IP address of the second sever.
tertiary-server <name/ip>
Name or IP address of the third sever.
port <port>
TACACS+ port number for this server. Set the value between 1-65535. The default is set to 49.
key <key>
Key used to access the server.
secondary-key <key>
Key used to access the second server.
tertiary-key <key>
Key used to access the third server.
l mschap: MS-CHAP
l chap: Challenge Handshake Authentication Protocol
l pap: Password Authentication Protocol
l ascii: American Standard Code for Information Interchange, a protocol that represents characters as numerical
values.
l auto: Uses PAP, MS-CHAP, and CHAP (in that order). This is set by default.
source-ip <src-ip>
Enter the source IP address for communications to the TACACS+ server.
vpn
Use vpn commands to configure options related to virtual private networking through the
vpn certificate
certificate ca
Use this command to install Certificate Authority (CA) root certificates. When a CA processes your Certificate
Signing Request (CSR), it sends you the CA certificate, the signed local certificate and the CRL.
ca <cert>
Enter or retrieve the CA certificate as a Privacy Enhanced Mail (PEM) file.
scep-url <url>
URL of the Simple Certificate Enrollment Protocol (SCEP) server.
auto-update-days <days>
Note: This entry is only available when scep-url has been set. Amount of time in days before the FortiGate
requests an updated CA certificate. Set to 0 (by default) for no auto-update.
auto-update-days-warning <days>
Note: This entry is only available when scep-url has been set. Amount of time in days before the FortiGate
generates an expiry-warning message. Set to 0 (by default) for no warning.
source-ip <ipv4-address>
IPv4 address used to verify that the request is sent from an expected IP.
crl <pem-file>
The name of the CRL in Privacy Enhanced Mail (PEM) format.
update-vdom <vdom>
Name of the VDOM for CRL update. This is set to the root VDOM by default.
ldap-server <name>
Name of the LDAP server defined in config user ldap for CRL auto-update.
ldap-username <name>
Note: This entry is only available when ldap-server has been set. LDAP login name.
ldap-password <password>
Note: This entry is only available when ldap-server has been set. LDAP login password.
http-url <url>
URL of an HTTP server used for automatic CRL certificate updates. The URL must begin with either http://
or https://.
scep-url <url>
URL of the SCEP server used for automatic CRL certificate updates. The URL must begin with either http://
or https://.
scep-cert <cert>
Local certificate used for SCEP communication for CRL auto-update. If a certificate hasn't already been set, the
default certificate used is Fortinet_CA_SSL.
update-interval <interval>
Period of time in seconds before the FortiGate unit checks for an updated CRL. Enter 0 (by default) to update the
CRL only when it expires.
source-ip <ipv4-address>
IPv4 address used to verify that the request is sent from an expected IP.
password <password>
Password in Privacy Enhanced Mail (PEM) format.
comments [string]
Optional comments.
private-key <key>
Private key in PEM format, encrypted with the password.
certificate <certificate>
Note: This is only available for local entries that have certificates assigned to them already. Certificate in PEM
format.
scep-url <url>
URL for the Simple Certificate Enrollment Protocol (SCEP) server.
auto-regenerate-days <days>
Note: This entry is only available when scep-url has been set. Number of days before expiry that the
FortiGate requests an updated local certificate. Set to 0 (by default) for no auto-update.
auto-regenerate-days-warning <days>
Note: This entry is only available when scep-url has been set. Number of days before expiry that the
FortiGate generates an expiry-warning message. Set to 0 (by default) for no warning.
scep-password <password>
Note: This entry is only available when scep-url has been set. Password for the SCEP server.
ca-identifer <name>
Note: This entry is only available when scep-url has been set. CA identifer of the CA server for signing via
SCEP.
source-ip <ipv4-addr>
Source IP address for communications to the SCEP server.
ike-localid <id>
Note: This entry is only available when ike-localid-type is set to fqdn. Local ID that the FortiGate will use
for authentication purposes as a VPN client.
ike-localid-type <type>
IKE local ID type:
url <ocsp-url>
URL of the OCSP server.
cert <name>
The OCSP server public certificate (one of the remote certificates).
secondary-url <url>
Secondary URL of the OCSP server.
secondary-cert <name>
Secondary public certificate of the OCSP server (one of the remote certificates).
source-ip <ipv4-address>
Source IP address for communications to the OCSP server.
remote <cert>
Name of the remote certificate, in PEM format.
ocsp-default-server <server>
The OCSP server to be used by default. This is one of the servers defined in config vpn certificate
ocsp-server.
strict-crl-check {enable | disable}
Enable or disable (by default) strict mode certificate revocation list (CRL) checking. If strict checking is not
enabled and a certificate is found to be on a CRL list, the certificate can be used, but a warning log message is
written. If strict checking is enabled then all authentication actions that use this certificate fail in addition to the
warning message being written.
usergroupname <name>
Enter the name of a pre-existing user group created for dialup clients.
phase2name <name>
Enter the name of the pre-existing phase 2 tunnel configuration defined for the dialup-client configuration.
You can also use manualkey to configure manual keys for IPsec tunnel-mode VPN tunnels that connect a
FortiGate unit and a remote client or gateway that is also using manual key. Because the keys are created when
you configure the tunnel, no negotiation is required for the VPN tunnel to start. However, the remote client or
gateway must use the same encryption and authentication algorithms and keys.
Note: To avoid confusion, the various similar authentication and encryption entries vary in availability, depending
on which command is used. Among others, the following authentication/encryption entries are not available
under the manualkey command:
l auth-alg
l enc-alg
l auth-key
l enc-key
l local-spi
l remote-spi
interface <name>
The name of the physical, aggregate, or VLAN interface to which the IPsec tunnel will be bound.
ip-version {4 | 6}
Enter 4 (by default) for IPv4 or 6 for IPv6 encapsulation for gateways.
addr-type {4 | 6}
Enter 4 (by default) for IPv4 or 6 for IPv6 encapsulation for IP packets.
remote-gw <ip-addr>
The IP address of the remote gateway's external interface.
local-gw [sec-ip-addr]
An optional secondary IP address of the interface selected in the interface entry used for the local end of the
VPN tunnel.
auth-alg <algorithm>
Enter one of the following authentication algorithms:
l null
l md5: Message Digest (MD) 5, the hash algorithm developed by RSA Data Security.
l sha1: Secure Hash Algorithm (SHA) 1 producing a 160-bit message digest.
l sha256: SHA 2 producing a 256-bit message digest.
l sha384: SHA 2 producing a 384-bit message digest.
l sha512: SHA 2 producing a 512-bit message digest.
Make sure to use the same algorithm at both ends of the tunnel.
enc-alg <algorithm>
Enter one of the following encryption algorithms:
l null
l des: Digital Encryption Standard (DES), a 64-bit block algorithm that uses a 56-bit key.
l 3des: Triple-DES, in which plain text is encrypted three times by three keys.
l aes128: A 128-bit block algorithm that uses a 128-bit key.
l aes192: A 128-bit block algorithm that uses a 192-bit key.
l aes256: A 128-bit block algorithm that uses a 256-bit key.
l aria128: A 128-bit Korean block algorithm that uses a 128-bit key.
l aris192: A 128-bit Korean block algorithm that uses a 192-bit key.
l aria256: A 128-bit Korean block algorithm that uses a 256-bit key.
l seed: A 128-bit Korean block algorithm that uses a 128-bit key.
The ARIA algorithm may not be available on some FortiGate models. Make sure to use the same algorithm at
both ends of the tunnel. Note: The auth-alg and enc-alg entries cannot both be null.
auth-key <key>
Note: This entry is only available when auth-alg is set to either md5, sha1, or sha256. The authentication
key in 16-digit (8-byte) segments separated by hyphens. For an MD5 key, enter a 32-digit (16-byte) hexadecimal
number: eg: 0102030405060708-090a0b0c0d0e0f10
l For a SHA1 key, enter a 40-digit (20-byte) hexadecimal number. The final segment is only 8-digits (4-bytes).
l For a SHA256 key, enter a 64-digit (32-byte) hexadecimal number.
Digits can range between 0-9 and a-f. Make sure to use the same key at both ends of the tunnel.
enc-key <key>
Note: This entry is only available when enc-alg is set to either des, 3des, aes128, aes192, or aes256.
The encryption key in 16-digit (8-byte) segments separated by hyphens.
local-spi <hex-number>
The local Security Parameter Index (SPI), a tag that helps the kernel discern between two traffic streams where
different encryption rules and algorithms may be in use. Enter an 8-digit (4-byte) hexadecimal number in the
range of 100 to FFFFFFFF. This number must be added to the remote SPI at the opposite end of the tunnel.
remote-spi <hex-number>
The remote SPI. Enter an 8-digit (4-byte) hexadecimal number in the range of 100 to FFFFFFFF. This number
must be added to the local SPI at the opposite end of the tunnel.
authentication <algorithm>
Enter one of the following authentication algorithms:
l null
l md5: Message Digest (MD) 5, the hash algorithm developed by RSA Data Security.
l sha1: Secure Hash Algorithm (SHA) 1 producing a 160-bit message digest.
l sha256: SHA 2 producing a 256-bit message digest.
l sha384: SHA 2 producing a 384-bit message digest.
l sha512: SHA 2 producing a 512-bit message digest.
Make sure to use the same algorithm at both ends of the tunnel.
encryption <algorithm>
Enter one of the following encryption algorithms:
l null
l des: Digital Encryption Standard (DES), a 64-bit block algorithm that uses a 56-bit key.
l 3des: Triple-DES, in which plain text is encrypted three times by three keys.
l aes128: A 128-bit block algorithm that uses a 128-bit key.
l aes192: A 128-bit block algorithm that uses a 192-bit key.
l aes256: A 128-bit block algorithm that uses a 256-bit key.
authkey <key>
Note: This entry is only available when authentication is set to either md5, sha1, or sha256. The
authentication key in 16-digit (8-byte) segments separated by hyphens. For an MD5 key, enter a 32-digit (16-byte)
hexadecimal number: eg: 0102030405060708-090a0b0c0d0e0f10
l For a SHA1 key, enter a 40-digit (20-byte) hexadecimal number. The final segment is only 8-digits (4-bytes).
l For a SHA256 key, enter a 64-digit (32-byte) hexadecimal number.
Digits can range between 0-9 and a-f. Make sure to use the same key at both ends of the tunnel.
enckey <key>
Note: This entry is only available when encryption is set to either des, 3des, aes128, aes192, or aes256.
The encryption key in 16-digit (8-byte) segments separated by hyphens.
localspi <hex-number>
The local Security Parameter Index (SPI), a tag that helps the kernel discern between two traffic streams where
different encryption rules and algorithms may be in use. Enter an 8-digit (4-byte) hexadecimal number in the
range of 100 to FFFFFFFF. This number must be added to the remote SPI at the opposite end of the tunnel.
remotespi <hex-number>
The remote SPI. Enter an 8-digit (4-byte) hexadecimal number in the range of 100 to FFFFFFFF. This number
must be added to the local SPI at the opposite end of the tunnel.
You can also use phase1 to add or edit IPsec tunnel-mode phase 1 configurations, which define how the
FortiGate unit and a remote VPN peer (gateway or client) authenticate themselves to each other as part of
establishing the IPsec VPN tunnel.
Note: Some entries are not available under the phase1 command, including the following:
l ip-version
l local-gw6
l remote-gw6
l monitor (and all other monitor related entries)
l add-gw-route
l auto-discovery-sender (and all other auto discovery related entries)
l encapsulation (and all other encapsulation related entries)
l childless-ike
l Use static if the remote VPN peer has a static IP address. Once set, use the remote-gw entry to specify the IP
address.
l Use dynamic if the remote VPN peer has a dynamically assigned IP address (DHCP or PPPoE).
l Use ddns if the remote VPN peer has a dynamically assigned IP address and subscribes to a dynamic DNS service.
Once set, use the remotegw-ddns entry to enter the domain name of the remote VPN peer.
Note: ddns is not available when ip-version is set to 6.
interface <out-interface>
Enter the name of the physical, aggregate, or VLAN interface to which the IPsec tunnel will be bound.
ip-version {4 | 6}
Enter 4 (by default) for IPv4 or 6 for IPv6 encapsulation for gateways.
ike-version {1 | 2}
Enter 1 (by default) for IKEv1 or 2 for IKEv2 protocol version.
local-gw [sec-addr-ipv4]
An optional secondary IPv4 IP address of the interface selected in the interface entry used for the local end of
the VPN tunnel.
local-gw6 [sec-addr-ipv6]
Note: This entry is only available when ip-version is set to 6. An optional secondary IPv6 IP address of the
interface selected in the interface entry used for the local end of the VPN tunnel.
remote-gw <addr-ipv4>
Note: This entry is only available when ip-version is set to 4 and type is set to static. The IPv4 IP
address of the remote gateway's external interface. Note that this entry is not available when type is set to
dynamic.
remote-gw6 <addr-ipv6>
Note: This entry is only available when ip-version is set to 6. The IPv6 IP address of the remote gateway's
external interface.
remotegw-ddns <domain-name>
Note: This entry is only available when ip-version is set to 4 and type is set to ddns. The identifier of the
remote peer (e.g. an FQDN). This should be used when the remote peer has a static domain name and a
dynamic IP address.
keylife <seconds>
The amount of time in seconds before the phase 1 encryption key expires, at which time a new encryption key is
generated without service interruption. Set the value between 120-172800 seconds (or two minutes to two days).
The default is set to 86400.
certificate <cert-string>
Note: This entry is only available when authmethod is set to signature. Enter the names of up to four signed
personal certificates for the FortiGate unit. The certificates must have already been installed on the FortiGate
before entering them here.
l Use psk (by default) to authenticate using a pre-shared key. Once set, use the psksecret entry to specify the
pre-shared key.
l Use signature to authenticate using a certificate. Once set, use the certificate entry to specify the name of
the certificate.
l Use aggressive mode when a remote peer or dialup client has a dynamic IP address. If this is not set, the
remote peer will be authenticated using an identifier (local ID). Identifying information is exchanged in the clear.
l Use main mode (by default) when both peers have static IP addresses. Identifying information is hidden.
l any: Accepts any remote client or peer. Peer IDs are not used for authentication purposes. This is set by default.
l one: Authenticates either a remote peer or client that has a dynamic IP address and connects using a unique
identifier over a dedicated tunnel, or more than one dialup client that connects through the same tunnel using the
same (shared) identifier. Once set, use the peerid entry to set the peer ID. If more than one dialup client will be
connecting using the same identifier, set mode to aggressive.
l peer: Authenticates one or more certificate holders based on a particular (or shared) certificate. Once set, use the
peer entry to enter the certificate name. If the remote peer has a dynamic IP address, set mode to aggressive.
l peergrp: Authenticates certificate holders that use unique certificates. In this case, you must create a group of
certificate holders for authentication purposes. Once set, use the peergrp entry to set the certificate group
name. If the remote peer has a dynamic IP address, set mode to aggressive.
l dialup: Authenticates dialup VPN clients that use unique identifiers and/or preshared-keys to connect to the VPN
through the same VPN tunnel. In this case, you must create a dialup user group for authentication purposes. Once
set, use the usrgrp entry to set the user group name. If the dialup clients use unique identifiers and preshared-
keys, set mode to aggressive. If the dialup clients use preshared-keys only, set mode to main.
Availability of these options vary depending on which remote gateway type and authmethod is used. Below is
a table to show which peertypes are available under different circumstances:
peergrp <peer-group>
Note: This entry is only available when peertype is set to peergrp. Accepts the specified peer group.
peerid <peer-id>
Note: This entry is only available when peertype is set to one. Accepts the specified peer identity.
peer <cert-name>
Note: This entry is only available when type is configured. Accepts the specified peer certificate.
default-gw <addr-ipv4>
Note: This entry is only available when type is set to dynamic and ip-version is set to 4. The IPv4 address
of the default route gateway to use for traffic exiting the interface.
default-gw-priority <priority>
Note: This entry is only available when type is set to dynamic. The priority for the default gateway router. Set
the value between 0-4294967295. Default is set to 0.
usrgrp <group-name>
Note: This entry is only available when peertype is set to dialup. The user group. You must have already
configured a user group on the FortiGate unit before entering the group's name here.
monitor [phase1]
Note: This entry is not available when type is set to dynamic. An optional IPsec interface that can act as a
backup for another (primary) IPsec interface. Enter the name of the primary interface. Once set, use the
monitor-hold-down-type entry to configure recovery timing (further configured with the monitor-hold-
down-delay, monitor-hold-down-weekday, and monitor-hold-down-time entries).
The backup interface is only used when the primary interface is unavailable. For this, dpd must be enabled (set
to either on-idle or on-timeout).
Note that a primary interface can only have one backup interface and cannot itself act as a backup for another
interface.
l Use immediate (by default) to have the primary interface be re-established immediately.
l Use delay to configure the number of seconds to wait before recovery once the primary interface is re-established
(see the monitor-hold-down-delay entry).
l Use time to configure the day of the week and/or the time of day to recover once the primary interface is re-
established (see the monitor-hold-down-weekday and monitor-hold-down-time entries).
monitor-hold-down-delay <seconds>
Note: This entry is only available when monitor-hold-down-type is set to delay. Configure the number of
seconds to wait before recovery once the primary interface is re-established. Set the value between 0-31536000
(or 0 seconds to 1 year). The default is set to 0.
monitor-hold-down-weekday <day>
Note: This entry is only available when monitor-hold-down-type is set to time. Configure the day of the
week to recover once the primary interface is re-established. Set the value to either everyday, sunday (by
default), monday, tuesday, wednesday, thursday, friday, or saturday.
monitor-hold-down-time <time>
Note: This entry is only available when monitor-hold-down-type is set to time. Configure the time of day
to recover once the primary interface is re-established. Set the hour and minute values of the day, with a colon to
separate the two (between 00:00 and 23:59). The default is set to 00:00 (or midnight).
l Use range (by default) to assign the IP address from a locally defined range.
l Use dhcp to assign the IP address via DHCP.
ipv4-start-ip <ipv4-start>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The start of
the IPv4 range.
ipv4-end-ip <ipv4-end>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The end of
the IPv4 range.
ipv4-netmask <ipv4-netmask>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The IPv4
netmask.
ipv4-dns-server1 <server1>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify an
IPv4 DNS server, of which you may specify up to three (see entries below).
ipv4-dns-server2 <server2>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify a
second IPv4 DNS server.
ipv4-dns-server3 <server3>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify a
third IPv4 DNS server.
ipv4-wins-server1 <server1>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Windows
Internet Name Service (WINS) is a central mapping of host names to network addresses. Specify a WINS server,
of which you may specify up to two (see entry below).
ipv4-wins-server2 <server2>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify a
second WINS server.
ipv4-exclude-range
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. A
configuration method to exclude IPv4 ranges. Edit to create new and specify the exclude-ranges using
the start-ip and end-ip entries.
ipv4-split-include <subnet>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The IPv4
split-include subnets. The addresses must have already been configured on the FortiGate unit before entering
their names here.
split-include-service <service>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The split-
include services. The services must have already been configured on the FortiGate unit before entering their
names here.
ipv6-start-ip <ipv6-start>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The start of
the IPv6 range.
ipv6-end-ip <ipv6-end>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The end of
the IPv6 range.
ipv6-prefix <ipv6-prefix>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The IPv6
address' prefix. Enter a value between 1-128. The default is set to 128.
ipv6-dns-server1 <server1>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify an
IPv6 DNS server, of which you may specify up to three (see entries below).
ipv6-dns-server2 <server2>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify a
second IPv6 DNS server.
ipv6-dns-server3 <server3>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. Specify a
third IPv6 DNS server.
ipv6-exclude-range
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. A
configuration method to exclude IPv6 ranges. Edit to create new and specify the exclude-ranges using
ipv6-split-include <subnet>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The IPv6
split-include subnets. The addresses must have already been configured on the FortiGate unit before entering
their names here.
domain <domain>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The default
DNS domain for Unity clients.
banner <message>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The message
that Unity clients should display after connecting.
backup-gateway <address>
Note: This entry is only available when type is set to dynamic and mode-cfg is set to enable. The backup
gateway address(es) for Unity clients.
proposal <phase1-proposal>
A minimum of one and maximum of ten encryption-message combinations for the phase 1 proposal, for
example aes128-sha256. Use a space to separate the combinations. Make sure that the remote peer is
configured to use at least one of the proposals defined. Note: This entry is not available if suite-b has been
configured. Use any of the following key encryption algorithms: has been configured. Use any of the following key
encryption algorithms:
l des: Digital Encryption Standard (DES), a 64-bit block algorithm that uses a 56-bit key.
l 3des: Triple-DES, in which plain text is encrypted three times by three keys.
l aes128: A 128-bit block algorithm that uses a 128-bit key.
l aes192: A 128-bit block algorithm that uses a 192-bit key.
l aes256: A 128-bit block algorithm that uses a 256-bit key.
l aria128: A 128-bit Korean block algorithm that uses a 128-bit key.
l aris192: A 128-bit Korean block algorithm that uses a 192-bit key.
l aria256: A 128-bit Korean block algorithm that uses a 256-bit key.
l seed: A 128-bit Korean block algorithm that uses a 128-bit key.
The ARIA and seed algorithms may not be available on some FortiGate models. Combine key encryptions
with any one of the following message digests, to check the authenticity of messages during an encrypted
session:
l md5: Message Digest (MD) 5, the hash algorithm developed by RSA Data Security.
l sha1: Secure Hash Algorithm (SHA) 1 producing a 160-bit message digest.
l sha256: SHA 2 producing a 256-bit message digest.
l sha384: SHA 2 producing a 384-bit message digest.
l sha512: SHA 2 producing a 512-bit message digest.
Note: This command is deprecated. Instead, use the dynamic-gateway {enable | disable} entry in
the config router static command.
psksecret <preshared-key>
Note: This entry is only available when authmethod is set to psk. Enter the pre-shared key. The pre-shared key
must be the same on the remote VPN gateway or client and should only be known by network administrators. The
key must consist of at least six characters. For optimum protection against currently known attacks, the key
should consist of a minimum of 16 randomly chosen alphanumeric characters.
keepalive <seconds>
Note: This entry is only available when nattraversal is set to enable. Set the NAT traversal keepalive
frequency in seconds, a period of time that specifies how frequently empty UDP packets are sent through the
NAT device to make sure that the NAT mapping does not change until phase 1 and 2 security associations (SAs)
expire. Set the value between 10-900 seconds (or ten seconds to 15 minutes). The default is set to 5.
distance <distance>
Note: This entry is only available when type is set to dynamic, or when mode-cfg is set to enable. The
distance for routes added by IKE. Set the value between 1-255. Default is set to 15.
priority <priority>
Note: This entry is only available when type is set to dynamic, or when mode-cfg is set to enable. The
priority for routes added by IKE. Set the value between 0-4294967295. Default is set to 0.
localid <local-id>
Note: If you set a local ID on a FortiGate dialup client, you must enable aggressive mode on the FortiGate dialup
server and specify the identifier as a peer ID on the FortiGate dialup server. The local ID, or unique identifier, that
the FortiGate uses as a VPN client for authentication purposes.
negotiate-timeout <seconds>
The amount of time in seconds that the FortiGate unit will wait for the IKE SA to be negotiated. Set the value
between 1-300 seconds (or one second to five minutes). The default is set to 5.
dpd-retrycount <retry-integer>
Note: This entry is only available when dpd is set to enable. The number of times that the local VPN peer
sends a DPD probe before it considers the link to be dead and tears down the SA. Set the value between 0-10.
The default is set to 3. To avoid false negatives set the retry count to a sufficiently high value for your network.
forticlient-enforcement {enable | disable}
Enable to only permit FortiClient users to connect. Disable (by default) to lift this restriction.
comments [string]
Optional comments.
npu-offload {enable | disable}
Enable (by default) or disable offloading of VPN session to a network processing unit (NPU).
dhgrp {1 2 5 14 15 16 17 18 19 20 21}
Apply one or more Diffie-Hellman (DH) group numbers, in order of preference, separated by spaces. DH groups
determine the strength of the key used in the key exchange process, with higher group numbers being more
secure, but requiring additional time to compute the key. Set the value to any one (or more) of the following: 1, 2,
5, 14, 15, 16, 17, 18, 19, 20, and 21. The default is set to 14 5. Note that at least one of the group numbers set
on the remote peer or client must be identical to one of the selections on the FortiGate unit. Note that at least
one of the group numbers set on the remote peer or client must be identical to one of the selections on the
FortiGate unit.
l Suite-B-GCM-128 applies Advanced Encryption Standard (AES) encryption with 128-bit keys and 16-octet integrity
check value (OCV) in Galois/Counter Mode (GCM), a mode of operation for symmetric key cryptographic block
ciphers. Key establishment uses DH group 19.
l Suite-B-GCM-256 applies AES encryption with 256-bit keys and 16-octet ICV in GCM. Key establishment uses DH
group 20.
wizard-type <wizard-type>
Set to one of the following GUI VPN Wizard template types:
reauth {enable | disable}
Note: This entry is only available when ike-version is set to 2. Enable or disable (by default) re-
authentication upon IKE SA lifetime expiration.
authusrgrp <group-name>
Note: This entry is only available when eap is set to enable. The authentication user group. You must have
already configured a user group on the FortiGate unit before entering the group's name here.
authusr <name>
Note: This entry is only available when xauthtype has been configured. Enter the XAuth user name.
authpasswd <password>
Note: This entry is only available when xauthtype has been configured. Enter the XAuth user's password
(maximum of 35 characters).
l Use subnet to install selector for the address group that matches traffic packets.
l Use host to install selector for the source and destination IP addresses of traffic packets.
idle-timeout {enable | disable}
Enable or disable (by default) IPsec tunnel to timeout when idle. Once enabled, use the idle-
timeoutinterval entry to set the period of time the VPN will wait before timing out (see entry below).
idle-timeoutinterval <minutes>
Note: This entry is only available when idle-timeout is set to enable. Enter the IPsec tunnel idle timeout in
minutes. Set the value between 10-43200 (or ten minutes to 30 days). The default is set to 15.
ha-sync-esp-seqno {enable | disable}
Enable (by default) or disable the Extended Sequence Number (ESP) jump ahead for IPsec HA. Enabling this
feature helps to synchronize the IPsec SA replay counters between newly active HA cluster members and the
peer (see RFC 6311, Protocol Support for High Availability of IKEv2/IPsec).
encap-local-gw4 <addr-ipv4>
Note: This entry is only available when encapsulation-address is set to ipv4. The local IPv4 address of
the GRE/VXLAN tunnel.
encap-remote-gw4 <addr-ipv4>
Note: This entry is only available when encapsulation-address is set to ipv4. The remote IPv4 address of
the GRE/VXLAN tunnel.
encap-local-gw6 <addr-ipv6>
Note: This entry is only available when encapsulation-address is set to ipv6. The local IPv6 address of
the GRE/VXLAN tunnel.
encap-remote-gw6 <addr-ipv6>
Note: This entry is only available when encapsulation-address is set to ipv6. The remote IPv6 address of
the GRE/VXLAN tunnel.
nattraversal {enable | disable}
Enable (by default) or disable NAT traversal. This should be enabled if you expect the IPsec VPN traffic to go
through a gateway that performs NAT. If not NAT device is detected, enabling NAT traversal has no effect. Once
enabled, use the keepalive entry to set the NAT traversal keepalive frequency. Note that both ends of the VPN
must have the same NAT traversal settings.
fragmentation-mtu <frag-integer>
Note: This entry is only available when ike-version is set to 2. The IKE fragmentation maximum
transmission unit (MTU). Set the value between 500-16000. The default is set to 1200.
phase1name <gateway_name>
The name of the phase 1 gateway configuration, most commonly created using the IPsec Wizard. You must have
already added the phase 1 gateway definition to the FortiGate configuration before it can be added here.
proposal <phase2_proposal>
A minimum of one and maximum of ten encryption-message combinations for the phase 2 proposal, for
example aes128-sha256. Use a space to separate the combinations. Make sure that the remote peer is
configured to use at least one of the proposals defined. Use any of the following key encryption algorithms:
l des: Digital Encryption Standard (DES), a 64-bit block algorithm that uses a 56-bit key.
l 3des: Triple-DES, in which plain text is encrypted three times by three keys.
l aes128: A 128-bit block algorithm that uses a 128-bit key.
l aes192: A 128-bit block algorithm that uses a 192-bit key.
l aes256: A 128-bit block algorithm that uses a 256-bit key.
l aria128: A 128-bit Korean block algorithm that uses a 128-bit key.
l aris192: A 128-bit Korean block algorithm that uses a 192-bit key.
l aria256: A 128-bit Korean block algorithm that uses a 256-bit key.
l seed: A 128-bit Korean block algorithm that uses a 128-bit key.
The ARIA and seed algorithms may not be available on some FortiGate models. Combine key encryptions
with any one of the following message digests, to check the authenticity of messages during an encrypted
session: The ARIA and seed algorithms may not be available on some FortiGate models. Combine key
encryptions with any one of the following message digests, to check the authenticity of messages during an
encrypted session:
l md5: Message Digest (MD) 5, the hash algorithm developed by RSA Data Security.
l sha1: Secure Hash Algorithm (SHA) 1 producing a 160-bit message digest.
l sha256: SHA 2 producing a 256-bit message digest.
l sha384: SHA 2 producing a 384-bit message digest.
l sha512: SHA 2 producing a 512-bit message digest.
dhgrp {1 2 5 14 15 16 17 18 19 20 21}
Apply one or more Diffie-Hellman (DH) group numbers, in order of preference, separated by spaces. DH groups
determine the strength of the key used in the key exchange process, with higher group numbers being more
secure, but requiring additional time to compute the key. Set the value to any one (or more) of the following: 1, 2,
5, 14, 15, 16, 17, 18, 19, 20, and 21. The default is set to 14 5.
Note that at least one of the group numbers set on the remote peer or client must be identical to one of the
selections on the FortiGate unit.
replay {enable | disable}
Enable (by default) or disable replay attack detection. When enabled, replay detection discards received packets
if they contain a sequence number before the current window, in which case they are seen as being too old, or if
they contain a sequence number which has already been received by the FortiGate unit.
keepalive {enable | disable}
Enable or disdable (by default) the NAT traversal keepalive frequency, a period of time that specifies how
frequently empty UDP packets are sent through the NAT device to make sure that the NAT mapping does not
change until phase 1 and 2 security associations (SAs) expire.
auto-negotiate {enable | disable}
Enable to keep attempting IKE SA negotiation even if the link is down. This feature is useful in cases where there
are multiple redundant tunnels but you prefer the primary connection if it can be established. This is set to
Enable to keep attempting IKE SA negotiation even if the link is down. This feature is useful in cases where there
are multiple redundant tunnels but you prefer the primary connection if it can be established. This is set
to disable by default.
keylifeseconds <seconds>
The amount of time in seconds before the phase 2 encryption key expires, at which time a new encryption key is
generated without service interruption. Set the value between 120-172800 seconds (or two minutes to two days).
The default is set to 86400.
keylifekbs <bytes>
The number of bytes before the phase 2 encryption key expires, at which point a new encryption key is generated
without service interruption. Set the value between 5120-4294967295 bytes (or 5.12KB to 4.29GB). The default is
set to 5120. While it is possible to set the value to lower than the default, it is not recommended.
l Use tunnel-mode to protect the entire inner IP packet, including the inner IP header.
l Use transport-mode to insert ESP after the IP header and before a next layer protocol, e.g. TCP, UDP, ICMP,
and so on.
comments [string]
Optional comments.
protocol <integer>
The quick mode protocol selector. Set the value between 1-255, or 0 (by default) for all.
src-port <integer>
The quick mode source port. Set the value between 1-65535, or 0 (by default) for all.
dst-port <integer>
The quick mode destination port. Set the value between 1-65535, or 0 (by default) for all.
vpn ssl
ssl settings
Use this command to configure basic SSL VPN settings including idle-timeout values and SSL encryption
preferences. If required, you can also enable the use of digital certificates for authenticating remote clients, and
specify the IP address of any DNS and/or WINS server that resides on the private network behind the FortiGate
unit.
Note: SSL VPNs and their commands are only configurable in NAT/Route mode.
config authentication-rule
A configuration method to create authentication rules for SSL VPN. Edit to create new and specify the rules using
the entries available.
SSLv3 is no longer commonly used, and it is recommended to not use this security measure.
banned-cipher <cipher>
Banned ciphers for SSL VPN. Set one or more of the following to ban the use of cipher suites using:
servercert <cert-name>
The server’s certificate used to identify the FortiGate unit during the SSL handshake with a web browser when the
web browser connects to the login page. The certificate must have already been configured on the FortiGate
before entering it here. The default is set to Fortinet_Factory.
idle-timeout <timeout>
The period of time in seconds that the SSL VPN will wait before timing out. Set the value between 1-259200 (or 1
second to 3 days), or 0 for no timeout. The default is set to 300.
auth-timeout <timeout>
The period of time in seconds that the SSL VPN will wait before re-authentication is enforced. Set the value
between 1-259200 (or 1 second 3 days), or 0 for no timeout. The default is set to 28800.
dns-suffix <string>
The DNS suffix, with a maximum length of 253 characters.
Enabling this feature is required for International Computer Security Association (ICSA) SSL VPN certification.
Note that, when enabled, bookmark details are not visible.
deflate-compression-level <integer>
Note: This entry is only available when http-compression is set to enable.
The compression level. Set the value between 1-9. Higher compression values reduce the volume of data but
requires more processing time. The default is set to 6.
deflate-min-data-size <integer>
Note: This entry is only available when http-compression is set to enable.
The minimum amount of data in bytes that will trigger compression. Set the value between 200-65535. The
default is set to 300.
port <integer>
The SSL VPN access port. Set the value between 1-65535. When VDOMs are enabled, this feature is set per
VDOM. The default value is set to 10443.
Enabled by default.
source-interface <interface>
The interface(s) to listen on for SSL clients. You must have already configured the interfaces on the FortiGate
unit before entering them here. Enter any to match any interface in the virtual domain.
default-portal <portal-name>
The name of the default SSL VPN portal, either one of the defaults (full-access, tunnel-access, or web-
access) or a custom portal created on the FortiGate unit.
http-request-header-timeout <timeout>
The amount of time in seconds before the HTTP connection disconnects if HTTP request header is not complete.
Set value between 1-60 (or one second to one minute). The default is set to 20.
http-request-body-timeout <timeout>
The amount of time in seconds before the HTTP connection disconnects if HTTP request body is not complete.
Set value between 1-60 (or one second to one minute). The default is set to 30.
Note: Host integrity checking is only possible with client computers running Microsoft Windows platforms.
config check-item-list
A configuration method to set various check item list variables. Edit to create new and configure settings using
the following entries.
l require: If the item is found, the client meets the check item condition. This is the default option.
l deny: If the item is found, the client is considered to not meet the check item condition. Use this option if it is
necessary to prevent the use of a particular security product.
l file: Looks for any file that would confirm the presence of the application, not just the application’s executable
file. This is the default option.
Once set, use the target entry below and set it to the full path to the file. Where applicable, you can use
environment variables enclosed in percent (%) marks, e.g.
%ProgramFiles%\Fortinet\FortiClient\FortiClient.exe.
l registry: Looks for a Windows Registry entry. Once set, use the target entry below and set it to the registry
item, e.g. HKLM\SOFTWARE\Fortinet\FortiClient\Misc.
l process: Looks for the application as a running process. Once set, use the target entry below and set it to the
application’s executable file name.
target <target>
Depending on what the type entry above is set to, set target as follows:
version <version>
md5s <md5s>
If type is set to file or process, this entry can be used to enter one or more known MD5 signatures for the
application’s executable file. You can use a third-party utility to calculate MD5 signatures or hashes for any file. In
addition, you can enter multiple signatures to match multiple versions of the application.
version <version-number>
Enter the software version.
guid <guid-value>
Enter the globally unique identifier (GUID) for the host check application. The value is a hexadecimal number,
usually in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx. Windows uses GUIDs to identify applications in the
Windows Registry.
The portal configuration determines what the user sees when they log in to the FortiGate. Both the administrator
and the user have the ability to customize the SSL VPN portal.
l full-access: Includes all widgets available to the user – Session Information, Connection Tool, Bookmarks, and
Tunnel Mode.
l tunnel-access: Includes Session Information and Tunnel Mode widgets.
l web-access: Includes Session Information and Bookmarks widgets.
l range use the IP addresses available for all SSL VPN users as defined by the config vpn ssl settings command.
l user-group use IP addresses associated with individual users or user groups (usually from external
authentication servers (such as RADIUS, LDAP, etc.).
{wins-server2 | ipv6-wins-server2}
Note: These entries are only available when tunnel-mode or ipv6-tunnel-mode are set to enable.
The IPv4 or IPv6 IP address of the secondary WINS server that SSL VPN clients will be able to access after a
connection has been established.
heading <message>
The portal heading message.
redir-url <url>
Note: This entry is only available when web-mode is set to enable.
The URL of the web page that enables the FortiGate to display a second HTML page when the web portal home
page is displayed. The web server for this URL must reside on the private network behind the FortiGate unit.
theme <colour>
Note: This entry is only available when web-mode is set to enable.
The web portal color scheme: blue (by default), gray, or orange.
custom-lang <langauge>
Note: This entry is only available when web-mode is set to enable.
Change the display language for this web portal. Select from the following options. The options are named
according to the config system custom-language command that you can use to customize the content of these
language files. By default the content of these language files is provided by Fortinet in the languages listed
below.
l GB2312: Simplified Chinese (using the Guojia Biaozhun (GB), or ‘national standard’ in Chinese, is the registered
character set of the People’s Republic of China used for Simplified Chinese characters.)
l big5: Traditional Chinese (using Big5, or Big-5, is a Chinese character encoding method used in Taiwan, Hong
Kong, and Macau for Traditional Chinese characters.)
l en: English (using the English character set (Caribbean).)
l euc-kr: Korean (using the Wxtended Unix Code (EUC) is a character encoding system used for Japanese,
Korean, and Simplified Chinese. This featured option is specifically for Korean.)
l fr: French (Using the French character set (Standard).)
l pg: Portuguese (Using the Proto-Germanic (PG), also called Common Germanic, character set.)
l sp: Spanish (using the Spanish character set.)
l x-sjis: Japanese (using the Shift Japanese Industrial Standards (SJIS), is a character encoding method for
Japanese.)
host-check-interval <seconds>
How often the host check function periodically verifies the host check status of endpoints. Range is 120 to 259200
seconds. Default is 0, which disables periodic host checking. If disabled host checking only happens when the
endpoint initially connects to the SSL VPN. Only available if host-check is enabled.
virtual-desktop-app-list <name>
Note: This entry is only available when virtual-desktop is set to enable.
The name of the application list to apply to the virtual desktop (for more information see the vpn ssl web virtual-
desktop-app-list command).
Note: When you edit a realm, the name entered is the URL path used to access the SSL VPN login page (do not
include http://).
max-concurrent-user <number>
The maximum number of concurrent users. Set the value between 1-65535, or 0 (by default) for unlimited users.
login-page <content>
Replacement HTML for the SSL VPN login page.
virtual-host [host-name]
The virtual host name for the realm (optional), with a maximum length of 255 characters.
config bookmarks
A configuration method to configure bookmarks to add to the user group.
apptype {citrix | ftp | portforward | rdp | smb | ssh | telnet | vnc | web}
folder <folder>
Note: This entry is only available when apptype is set to either ftp or smb.
The folder path.
host <host>
Note: This entry is only available when apptype is set to either portforward, rdp, ssh, telnet, or vnc.
The host IP address or FQDN.
listening-port <port-number>
remote-port <port-number>
url <url>
description <description>
Note: This entry is only available when apptype is set to rdp. Also note that this entry is called keyboard-
layout in FortiOS 5.2.
port <integer>
Note: This entry is only available when apptype is set to either rdp or vnc.
The remote port. Set the value between 1-65535. The default value is set to 3389.
logon-user <name>
logon-password <password>
Note: This entry is only available when apptype is set to either rdp or vnc.
The user’s password.
A Single-Sign On (SSO) bookmark that automatically enters the login credentials for the bookmark destination.
Note: This entry is only available when sso is set to either static or auto.
How the user’s credentials are submitted.
sso-username <name>
sso-password <password>
config form-data
Note: This configuration option is only available when sso is set to static.
A configuration method to set form data values. Edit to create new and specify the settings using the entry
available. When configuring an entry, as an administrator configuring bookmarks for users, enter %username%
to represent the user’s SSL VPN user name. Enter %passwd% to represent the user’s password.
l allow: Allows the applications on this list and blocks all others. This is set by default.
l block: Blocks the applications on this list and allows all others.
config apps
A configuration method of adding the name of the application(s) to be added to this application control list. This
can be any name and does not have to match the official name of the application. Edit to create new and specify
the applications.
md5s
A configuration method, within config apps, of entering one or more known MD5 signatures for the application’s
executable file. Separate each signature with a space. You can use a third-party utility to calculate MD5
signatures or hashes for any file. In addition, you can enter multiple signatures to match multiple versions of the
application. Edit to create new and specify the signatures.
wanopt
wanopt auth-group
Use this command to configure WAN optimization authentication groups, which can be used to support secure
tunneling between WAN optimization peers.
auth-method {cert | psk}
l Use cert (by default) to authenticate using a certificate. Once set, use the cert entry to specify the name of the
certificate (see below).
l Use psk to authenticate using a pre-shared key. Once set, use the psk entry to specify the pre-shared key (see
below).
cert <name>
Note: This entry is only available when auth-method is set to cert. Local certificate to be used by the peers in
this authentication group. The certificate must have already been installed on the FortiGate before entering
it here.
psk <preshared-key>
Note: This entry is only available when auth-method is set to psk. Pre-shared key to be used for the
authentication group.
peer
Note: This entry is only available when peer-accept is set to one. Name of one peer to add to this
authentication group. The peer must have already been added to the FortiGate before entering it here.
wanopt peer
Use this command to add WAN optimization peers. This command identifies the other FortiGate units, or peers,
that the local FortiGate can form WAN optimization tunnels with. When the remote FortiGate unit connects to the
local FortiGate unit to start a WAN optimization tunnel, the remote FortiGate unit local host ID is requested. If
the local host ID matches a peer added to the local FortiGate unit, then the local FortiGate unit can accept WAN
optimization tunnel from the remote FortiGate unit.
ip <ipv4-address>
IP address of the interface that the remote FortiGate unit will use to connect to the local FortiGate unit — this is
usually the interface connected to the WAN.
wanopt profile
Use this command to configure WAN optimization profiles that work in conjunction with security policies to accept
specific traffic. All sessions accepted by a firewall policy, that include a WAN optimization profile, and that match
that WAN optimization profile, are processed by WAN optimization. WAN optimization profiles must be added to
the FortiGates at each end of the tunnel. To learn more about WAN optimization, including profiles and
configuration examples, see Configuring WAN optimization on our Online Help Portal.
comments <comments>
Optional comments.
auth-group <group>
Note: Assigning an authentication group is mandatory if secure-tunnel has been enabled for the profile.
Peer authentication group to be used by this WAN optimization profile. Both client and server FortiGates must
add the same authentication group, with both the same names and pre-shared key or certificate.
byte-caching-opt ✔
prefer-chunking ✔ ✔ ✔
ssl ✔ ✔
unknown-http-version ✔
tunnel-non-http ✔
Enable or disable (by default) the use of AES-128bit-CBC SSL to encrypt and secure traffic in the WAN
optimization tunnel.
The FortiGates use FortiASIC acceleration to accelerate SSL decryption and encryption of the secure tunnel. The
secure tunnel uses the same TCP port as a non-secure tunnel (TCP port 7810).
Byte caching is a WAN optimization technique that reduces the amount of data that has to be transmitted across
a WAN by caching file data to be retrieved later, as required.
l dynamic: Dynamic data chunking preferred. Use to help detect persistent data chunks in a changed file or in an
embedded unknown protocol.
l fix: Fixed-size data chunking preferred (set by default).
Note that, while prefer-chunking is not available in tcp or mapi, TCP chunking algorithm will be dynamic,
so long as byte-caching-opt is set to mem-disk. MAPI only uses dynamic, and thus has no option.
l private: Used for profiles that accept aggressive protocols such as HTTP and FTP so as to not share tunnels with
less-aggressive protocols (set by default).
l shared: Used for profiles that accept non-aggressive and non-interactive protocols.
l express-shared: Used for profiles that accept interactive protocols, such as Telnet.
port <number>
Port used by each protocol for the profile. Only packets whose destination port number matches this port number
or port number range will be accepted by and subject to this profile.
Set the value between 1-65535 (default values vary between each protocol; see table above).
If enabled, the profile will be ready to accept SSL-encrypted traffic (HTTPS traffic) because ssl-port will
become available and is set to 443 by default (see entry below). Also, when enabled, you must add an SSL
server for each HTTP server that you want to offload SSL encryption/decryption for by using the config
wanopt ssl-server command.
ssl-port <https-ports>
Note: This entry is only available when ssl is set to enable.
Ports used for HTTPS traffic offloading. Set value between 1-65535 (default values vary between each protocol;
see table above).
wanopt settings
Use this command to enable traffic logging for WAN optimization and WAN optimization web-caching sessions.
host-id <id>
Local host ID/name (set to default-id by default). Make sure that the local host ID is also entered in the other
FortiGate's peer list.
l simple: Use the same TCP option value from SYN/SYNACK packets. Backward compatible (set by default).
l diff-req-resp: Use different TCP option value than in SYN/SYNACK packets to avoid false positive detection.
wanopt storage
Use this command to determine the maximum size of the byte-caching or web-caching database added to the
WAN optimization storage. This is determined by setting the total size and then the percentage to be allotted for
web-caching. To view the web-cache and WAN optimization cache storage sizes in megabytes instead (and not
as a percentage of the total size allotted for the storage), enter the get command. The storage sizes will be
displayed: webcache-storage-size and wan-optimization-cache-storage-size. Note that you
must have already configured storage settings using the config system storage command before you
can configure settings here. All FortiGates with hard disks include a default storage name, such as Internal.
size <mb>
Maximum total size of files within the storage. Set the value between 512-14518 (or 512MB to just over 14.5GB).
The default value depends on the partition size.
webcache-storage-percentage <percentage>
Percentage of storage available for web-caching (the rest is used for WAN optimization). Set the value between
0-100. The default value is set to 50.
wanopt webcache
Use this command to change how the WAN optimization web-cache operates. In most cases the default settings
are acceptable, however you may wish to change them to improve performance or optimize the cache for your
specific configuration.
max-object-size <kb>
Maximum cacheable object size in kB. All objects retrieved that are larger than the maximum size are delivered to
the client but are not stored in the web cache. Set value between 1-2147483 (or 1kB to just over 2GB). The
default value is set to 512000 (or 512MB).
neg-resp-time <minutes>
Period of time in minutes to cache negative responses. The default value is set to 0, meaning no negative
responses will be cached.
fresh-factor <percentage>
The fresh factor as a percentage. For cached objects that don’t have an expiry time, the web cache periodically
checks the server to see if any objects have expired. The higher the fresh factor, the less often the checks occur.
Set the value between 0-100. The default value is set to 100.
max-ttl
Maximum time-to-live period in minutes an object can stay in the web cache without checking to see if it has
expired on the server. Set the value between 1-5256000. The default value is set to 7200 (or five days).
min-ttl
Minimum time-to-live period in minutes an object can stay in the web cache without checking to see if it has
expired on the server. Set the value between 1-5256000. The default value is set to 5.
default-ttl
The default period of time in minutes before an object expires. This only applies to those objects that do not
already have an expiry time set by the web server. Set the value between 1-5256000. The default value is set to
1440 (or one day).
ignore-conditional {enable | disable}
Enable or disable (by default) controlling the behaviour of cache-control header values. HTTP 1.1 provides
additional controls to the client over the behaviour of caches concerning the staleness of the object. Depending
on various Cache-Control headers, the FortiGate can be forced to consult the OCS before serving the object from
the cache. For more information about the behaviour of cache-control header values, see RFC 2616.
ignore-pnc {enable | disable}
Enable or disable (by default) the pragma no-cache (PNC) header to be ignored. Typically, if a client sends an
HTTP GET request with a PNC header, a cache must consult the OCS before serving the content. This means
the FortiGate always re-fetches the entire object from the OCS, even if the cached copy of the object is fresh.
Because of this, PNC requests can degrade performance and increase server-side bandwidth.
Enabling ignore-pnc ignores the PNC header from the client request.
ignore-ie-reload {enable | disable}
Enable (by default) or disable the FortiGate to ignore the PNC interpretation of Internet Explorer's Accept: /
header. Some versions of Internet Explorer issue Accept: / headers instead of PNC headers when you select
Refresh. When an Accept header has only the / value, the FortiGate unit treats it as a PNC header if it is a type-N
object. Enabling ignore-ie-reload ignores this interpretation.
cache-expired {enable | disable}
Enable or disable (by default) caching of type-1 objects that are already expired upon acquisition. When this
setting is enabled, type-1 objects that are already expired at the time of acquisition are cached (if all other
conditions make the object cachable). If disabled, expired type-1 objects are considered non-cachable.
cache-cookie {enable | disable}
Enable or disable (by default) the caching of cookies. Typically, it is best to not perform cookie caching, as HTTP
responses with cookies contain specific user data.
reval-pnc {enable | disable}
Enable or disable (by default) PNC revalidation to address bandwidth concerns. The PNC header in a client's
request can affect the efficiency of the FortiGate unit from a bandwidth gain perspective. If you do not want to
completely ignore PNC in client requests (such as when using the ignore-pnc entry shown above), you can
lower the impact of the PNC by enabling reval-pnc.
always-revalidate {enable | disable}
Enable or disable (by default) the revalidation of requested cached objects, which have content on the server,
before serving it to the client.
cache-by-default {enable | disable}
Enable or disable (by default) the caching of content that lack explicit caching policies from the server.
host-validate {enable | disable}
Enable or disable (by default) the validation of Host: header with original server IP.
external {enable | disable}
Enable or disable (by default) external cache.
web-proxy
Use these commands to configure the FortiGate web proxy. You can use the FortiGate web proxy and interface
settings to enable explicit HTTP and HTTPS proxying on one or more interfaces. When enabled, the FortiGate
unit becomes a web proxy server. All HTTP and HTTPS session received by interfaces with explicit web proxy
enabled are intercepted by the explicit web proxy relayed to their destinations.
To use the explicit proxy, users must add the IP address of a FortiGate interface and the explicit proxy port
number to the proxy configuration settings of their web browsers.
web-proxy debug-url
url-pattern <string>
URL exemption pattern.
web-proxy explicit
Use this command to enable the explicit web proxy and the TCP port used by the explicit proxy.
status {enable | disable}
Enable or disable (by default) the explicit web proxy for HTTP and HTTPS sessions.
http-incoming-port <port>
Port number that HTTP traffic from client web browsers will use to connect to the explicit proxy. Set the value
between 0-65535. The default is set to 8080. Note that explicit proxy users must configure their web
browser's HTTP proxy settings to use this port.
https-incoming-port <port>
Port number that HTTPS traffic from client web browsers will use to connect to the explicit proxy. Set the value
between 0-65535. The default is set to 0, meaning it will use the same port as HTTP. Note that explicit proxy
users must configure their web browser's HTTPS proxy settings to use this port.
ftp-incoming-port <port>
Note: This entry is only available when ftp-over-http is set to enable. Port number that FTP-over-HTTP
traffic from client web browsers will use to connect to the explicit proxy. Set the value between 0-65535. The
default is set to . Port number that FTP-over-HTTP traffic from client web browsers will use to connect to the
explicit proxy. Set the value between 0-65535. The default is set to 0, meaning it will use the same port as HTTP.
Note that explicit proxy users must configure their web browser’s FTP proxy settings to use this port.
socks-incoming-port <port>
Note: This entry is only available when socks is set to enable. Port number that SOCKS traffic from client web
browsers will use to connect to the explicit proxy. Set the value between 0-65535. The default is set to 0,
meaning it will use the same port as HTTP.
pref-dns-results {ipv4 | ipv6}
Either IPv4 (by default) or IPv6 DNS result preference.
l reject: Treats the HTTP traffic as malformed and drops it (set by default; more secure option).
l best-effort: Attempts to handle the HTTP traffic as best as it can.
realm <name>
Name of the authentication realm used to identify the explicit web proxy. Text string can be up to a maximum of
63 characters. If the realm's name includes spaces, enclose it in quotes. No special characters are permitted; only
use alphanumeric characters. When a user authenticates with the explicit proxy the HTTP authentication dialog
includes the realm so users can use the realm to identify the explicit web proxy.
pac-file-server-port <port>
Note: This entry is only available when pac-file-server-status is set to enable. Port number that
PAC traffic from client web browsers will use to connect to the explicit proxy. Set the value between 0-65535. The
default is set to 0, meaning it will use the same port as HTTP. Note that explicit proxy users must configure their
web browser’s PAC proxy settings to use this port.
pac-file-name <name>
Note: This entry is only available when pac-file-server-status is set to enable. Name of the PAC file.
The default is set to . Name of the PAC file. The default is set to proxy.pac.
pac-file-data <file>
Note: This entry is only available when pac-file-server-status is set to enable. Contents of the PAC
file made available from the explicit proxy server for PAC support. Enclose the PAC file text in quotes. The
maximum PAC file size is 8192 bytes. You can also copy the contents of a PAC text file and paste the contents
into the CLI, so long as the pasted content is between two quotation marks. You can use any PAC file syntax that
is supported by your users’s browsers. The FortiGate does not parse the PAC file.
pac-file-url <url>
Note: This entry is only available to read when you enter get; you cannot use this entry to edit the PAC file URL.
The URL is made up of the values entered in both pac-file-server-port and pac-file-name entries.
Displays the PAC file URL in the following format: http://<interface-ip>:<pac-port>/<pac-name>
By default, <pac-port> references the value entered in the http-incoming-port entry (see above).
However, it will instead reference the value entered in pac-file-server-port if it is changed from its
default value. The <interface-ip> component of the URL is the interface of the explicit web proxy. If the
explicit web proxy is enabled on multiple interfaces there will be multiple PAC URLs. If you have configured an
incoming-ip (see entry above) then only one PAC file URL is listed. This URL is to be distributed to PAC
users.
web-proxy forward-server
Use this command to support explicit web proxy forwarding, also known as proxy chaining.
ip <ipv4-address>
Note: This entry is only available when addr-type is set to ip. IP address of the forwarding proxy server.
fqdn <fqdn>
Note: This entry is only available when addr-type is set to fqdn. Fully Qualified Domain Name (FQDN) of the
forwarding proxy server.
port <port>
Port number that the forwarding server expects to receive HTTP sessions on. Set the value between 1-65535.
The default is set to 3128.
monitor <url>
Note: This entry is only available when health-check is set to enable. URL to use for health check
monitoring. If the web proxy can't connect to this URL, it will assume that forwarding server is down. The default
is set to http://www.google.com.
l block: Blocks sessions until the server comes back up (set by default).
l pass: Allows sessions to connect to their destination.
comment [string]
Optional comments.
web-proxy forward-server-group
Use this command to configure a load-balanced group of web proxy forward servers.
config server-list
A configuration method to determine the load balancing weight for web proxy forwarding servers. Note: You can
only create entries if a web proxy forwarding server has already been created on the FortiGate. To do so, go to
Network > Explicit Proxy > Web Proxy Forwarding Servers and select Create New.
weight <weight>
Weight (or ratio) of this server for load balancing. Set the value between 1-100. The default is set to 10.
group-down-option {block | pass}
Action to take if all forward servers are down:
web-proxy global
Use this command to configure global web proxy settings that control how the web proxy functions and handles
web traffic. Typically, you should not have to change the default settings of this command. Also, if your FortiGate
is operating with multiple VDOMS, these settings affect all VDOMs.
proxy-fqdn <fqdn>
FQDN for the proxy for that clients use to connect. The default is set to default.fqdn.
max-request-length <kb>
Maximum length in kilobytes (kB) of the HTTP request line. Set the value between 2-64. The default is set to 4.
max-message-length <kb>
Maximum length in kB of the HTTP message, not including the body. Set the value between 16-256. The default
is set to 32.
forward-server-affinity-timeout <minutes>
Period of time in minutes before the source IP's traffic will no longer be assigned to the forward server. Set the
value between 6-60 (or six minutes to one hour). The default is set to 30.
max-waf-body-cache-length <kb>
Maximum length in kB of HTTP message processed by the Web Application Firewall (WAF). Set the value
between 10-1024 (or 10kB to just over 1MB). The default is set to 100.
webproxy-profile <name>
Web proxy profile name.
web-proxy profile
Use this command to configure web proxy profiles that control how the web proxy functions and handles web
traffic.
config headers
Use this configuration method to define HTTP forwarded requests headers for action.
name <name>
HTTP forwarded header name.
action <action>
Action to take when HTTP header is forwarded:
content <content>
Enter the HTTP header content.
web-proxy url-match
url-pattern <string>
The URL pattern.
forward-server <name>
Name of the forward server.
comment [string]
Optional comments.
web-proxy wisp
Use this command to configure web proxy Websense wireless Internet service provider (WISP) servers.
comment [string]
Optional comments.
outgoing-ip <ip-address>
WISP outgoing IP address.
server-ip <ip-address>
WISP server IP address.
server-port <port>
WISP server port. Set the value between 1-65535. The default is set to 15868.
max-connections <integer>
Maximum number of web proxy WISP connections. Set the value between 4-4096. The default is set to 64.
timeout <seconds>
Period of time in seconds before WISP requests timeout. Set the value between 1-15. The default is set to 5.
wireless-controller
Use config wireless-controller to configure virtual wireless access points that can be associated with
multiple physical wireless access points, thereby extending the range of your wireless network.
wireless-controller ap-status
Use this command to designate detected access points as either accepted, rogue, or rogue APs that are
suppressed. To see information about detected access points, use the get wireless-controller scan
command.
bssid <mac-address>
The access point's basic service set identifier (BSSID), expressed as the AP's wireless MAC address.
ssid <name>
The access point's SSID, expressed as the network name for the wireless interface.
wireless-controller global
Use this command to configure global settings for physical access points, also known as WLAN Termination
Points (WTPs), configured using the Control and Provisioning of Wireless Access Points (CAPWAP) protocol.
name <name>
Name for the wireless network.
location <location>
Location of the wireless network.
max-retransmit
Maximum number of retransmissions for tunnel packet. Set the value between 0-64. The default is set to 3.
mesh-eth-type
Mesh identifier included in packets, especially useful if debugging is required. Set the value between 0-65535.
The default is set to 8755.
fiapp-eth-type
Ethernet type for Fortinet Inter-Aceess Point Protocol (IAPP), or IEEE 802.11F, packets. Set the value between 0-
65535. The default is set to 5252.
discovery-mc-addr <multicast-address>
Multicast IP address for AP discovery. The default is set to 244.0.1.140.
max-clients <number>
Maximum number of clients that can connect simultaneously. The default is set to 0, meaning no limitation.
rogue-scan-mac-adjacency
Maximum numerical difference between an AP's Ethernet and wireless MAC values to match for rogue detection.
MAC adjacency can be used to help with rogue detection, as AP WiFi interface MAC addresses are usually in the
same range as its wired MAC address. LAN and WiFi network MAC addresses are matched when they are within
a defined numerical distance of each other. Set the value between 0-31. The default is set to 7.
ap-log-server-ip <ip>
AP log server IP address.
ap-log-server-port <port>
AP log server port number.
wireless-controller setting
Use this command to configure VDOM-specific options for the wireless controller.
account-id
FortiCloud customer account ID.
country <country>
Country of operation for your wireless network. This determines the radio channels that are available. Note that
you must set the country before you configure access point (WTP) profiles. To display all available countries,
enter set country ?. The default is set to US (United States).
wireless-controller timers
Use this command to alter global timers for physical access points, also known as WTPs configured using
CAPWAP.
echo-interval
Period of time in seconds before the WTP sends Echo Requests after joining AC. Set the value between 1-255 (or
one second to four minutes and 25 seconds). The default is set to 30.
discovery-interval
Period of time in seconds between discovery requests. Set the value between 2-180 (or two seconds to three
minutes). The default is set to 5.
client-idle-timeout
Period of time in seconds before client is considered idle and timeouts. Set the value between 20-3600 (or 20
seconds to one hour), or 0 for no timeout. The default is set to 300.
rogue-ap-log
Intervals of time in minutes for periodic logging of rogue APs. Set the value between 0-1440 (or no logging to one
day). The default is set to 0.
fake-ap-log
Intervals of time in minutes for periodic logging of fake APs. Fake APs serve to attract potential hackers and other
intruders so as to collect information about them. Set the value between 0-1440 (or no interval to one day). The
default is set to 1.
darrp-optimize
Intervals of time in seconds for Dynamic Automatic Radio Resource Provisioning (DARRP) optimization. Set the
value between 0-86400 (or no interval to one day). The default is set to 1800.
sta-stats-interval
Intervals of time in seconds between station statistic reports. Set the value between 1-255 (or one second to four
minutes and 25 seconds). The default is set to 1.
vap-stats-interval
Intervals of time in seconds between VAP statistic reports. Set the value between 1-255 (or one second to four
minutes and 25 seconds). The default is set to 15.
radio-stats-interval
Intervals of time in seconds between radio statistic reports. Set the value between 1-255 (or one second to four
minutes and 25 seconds). The default is set to 15.
sta-capability-interval
Intervals of time in seconds between station capability reports. Set the value between 1-255 (or one second to
four minutes and 25 seconds). The default is set to 30.
sta-locate-timer
Intervals of time in seconds between station presence flushes by the WTP. Set the value between 0-86400 (or no
interval to one day). The default is set to 1800.
wireless-controller vap
Use this command to configure Virtual Access Points (VAPs). The following entries have append options,
whereby you can add values without needing to retype the whole list of values:
l selected-usergroups
l broadcast-suppression
l rates-11a
l rates-11bg
l rates-11n-ss12
l rates-11n-ss34
l rates-11ac-ss12
l rates-11ac-ss34
vdom <name>
Name of the VLAN ID, if a VLAN will be used.
external-fast-roaming {enable | disable}
Enable or disable (by default) pre-authentication with external non-managed AP.
mesh-backhaul {enable | disable}
Note: This entry is only available when security is set to a WPA type or open. Enable or disable (by default) to
use this VAP as a WiFi mesh backhaul. WiFi clients cannot connect directly to this SSID.
max-clients <number>
Maximum number of clients that can connect simultaneously. The default is set to 0, meaning no limitation.
max-clients-ap <number>
Maximum number of clients that can connect simultaneously per AP radio. The default is set to 0, meaning no
limitation.
ssid <name>
IEEE 802.11 service set identifier, or network name, for the wireless interface. Users who wish to use the wireless
network must configure their computers with this network name.
broadcast-ssid {enable | disable}
Enable (by default) or disable broadcasting of the SSID. Broadcasting enables clients to connect to the wireless
network without first knowing the SSID. For better security, however, it is best to not broadcast the SSID.
l open: No security; any wireless user can connect to the network (not recommended).
l captive-portal: Users are authenticated through a captive web portal.
l wpa-personal: WPA-Personal security, WPA or WPA2.
l wpa-personal+captive-portal: WPA-Personal security, WPA only, with captive portal.
l wpa-enterprise: WPA-Enterprise security, WPA or WPA2.
l wpa2-only-personal: WPA-Personal security, WPA2 only (set by default).
l wpa2-only-personal+captive-portal: WPA-Personal security, WPA2 only, with captive portal.
l wpa2-only-enterprise: WPA-Enterprise security, WPA2 only.
pmf {enable | disable}
Enable or disable (by default) Protected Management Frames (PMF) support. PMF works by adding a Message
Integrity Check (MIC) to control packets being sent between a computer and an AP. If a control packet is being
spoofed by a malicious device, the MIC check will fail, and discard the frame. This protects users from malicious
attackers attempting to exchange encrypted traffic.
radius-mac-auth {enable | disable}
Enable or disable (by default) MAC address authentication of clients. Once enabled, use the radius-mac-
auth-server entry to specify the server (see entry below).
radius-mac-auth-server <server>
Note: This entry is only available when radius-mac-auth is set to enable. RADIUS-based MAC
authentication server.
portal-message-override-group <name>
Note: This entry is only available when security is set to a captive portal type. Replacement message group
for this VAP. For this entry to be configured, the replacement message must have already been configured using
the config system replacemsg-group command.
selected-usergroups <groups>
Note: This entry is only available when security is set to a captive portal type. Selective user groups that are
permitted to authenticate.
security-exempt-list [name]
Note: This entry is only available when security is set to a captive portal type. Optional security exempt list for
captive portal authentication, as configured under the config user security-exempt-list command.
security-redirect-url [url]
Note: This entry is only available when security is set to a captive portal type. Optional URL for user-
redirection after user passes captive portal authentication.
l TKIP-AES: Use both TKIP and AES protocols in order to provide backward compatibility for legacy devices. This
option is not recommended, however, as attackers will only need to breach the weaker encryption of the two (TKIP).
acct-interim-interval <seconds>
passphrase <psk>
Note: This entry is only available when security is set to a WPA type. Pre-shared key (PSK) for WPA. Set the
hexadecimal value between 8-63 characters in length.
intra-vap-privacy {enable | disable}
Enable or disable (by default) blocking of communication between clients of the same AP.
schedule <name>
VAP schedule name.
local-standalone {enable | disable}
Enable or disable (by default) AP local standalone.
local-bridging {enable | disable}
Enable or disable (by default) bridging of wireless and Ethernet interfaces on the FortiAP.
split-tunneling {enable | disable}
Enable or disable (by default) split tunneling. When enabled, split tunneling allows local traffic on the AP to
remain local instead of being routed through the WiFi controller.
vlanid <id>
VLAN ID, if a VLAN will be used.
dynamic-vlan {enable | disable}
Enable or disable (by default) dynamic VLAN assignment for users based on RADIUS attributes.
multicast-rate <kbps>
Multicast rate in kbps: 0 (set by default), 6000, 12000, or 24000. Higher multicast rates mean that only close,
strong signals are allowed. A high device environment will require a higher multicast rate so as to decrease the
range between devices and the router.
multicast-enhance {enable | disable}
Enable or disable (by default) conversion of multicast to unicast to improve performance.
broadcast-suppression [suppression-type]
Optional suppression of broadcast message types:
me-disable-thresh <subscribers>
Multicast enhancement threshold. Set value between 2-256 subscribers. The default is set to 32.
probe-resp-suppression {enable | disable}
Enable or disable (by default) ignoring of weak signals. When enabled, use the probe-resp-threshold entry
to define the minimum signal level required for AP response.
probe-resp-threshold <min-level>
Note: This entry is only available when probe-resp-suppression is set to enable. Minimum signal
level/threshold in dBm required for AP response to probe requests. Set the value between -95 to -20. The default
is set to -80.
vlan-pooling {wtp-group | disable}
Enable or disable (by default) VLAN pooling, allowing you to group multiple wireless controller VLANs into VLAN
pools. These pools are used to load-balance sessions evenly across multiple VLANs. When set to wtp-
group, VLAN pooling occurs with VLAN assignment by wtp-group.
gtk-rekey {enable | disable}
Note: This entry is only available when security is set to a WPA type. Enable or disable (by default) WPA re-
key interval option. When enabled, use the gtk-rekey-intv entry to set the re-key interval time.
gtk-rekey-intv <interval>
Note: This entry is only available when gtk-rekey is set to enable. WPA re-key interval in seconds. Increase
the value for those users who may require a longer time period. Set the value between 1800-864000 (or 30
minutes to 10 days).
rates-11a <data-rate>
Data rates permitted for 802.11a in Mbps:
6-basic: 6 Mbps BSS basic rate 24-basic: 24 Mbps BSS basic rate
18-basic: 18 Mbps BSS basic rate 54-basic: 54 Mbps BSS basic rate
rates-11bg <data-rate>
Data rates permitted for 802.11b/g in Mbps:
2-basic: 2 Mbps BSS basic rate 18-basic: 18 Mbps BSS basic rate
5.5-basic: 5.5 Mbps BSS basic rate 24-basic: 24 Mbps BSS basic rate
11-basic: 11 Mbps BSS basic rate 36-basic: 36 Mbps BSS basic rate
6-basic: 6 Mbps BSS basic rate 48-basic: 48 Mbps BSS basic rate
rates-11n-ss12 <data-rate>
Data rates permitted for 802.11n with 1 or 2 spatial streams:
mcs0/1: MCS index 0 with 1 spatial stream mcs8/2: MCS index 8 with 1 spatial streams
mcs1/1: MCS index 1 with 1 spatial stream mcs9/2: MCS index 9 with 1 spatial streams
mcs2/1: MCS index 2 with 1 spatial stream mcs10/2: MCS index 10 with 2 spatial streams
mcs3/1: MCS index 3 with 1 spatial stream mcs11/2: MCS index 11 with 2 spatial streams
mcs4/1: MCS index 4 with 1 spatial stream mcs12/2: MCS index 12 with 2 spatial streams
mcs5/1: MCS index 5 with 1 spatial stream mcs13/2: MCS index 13 with 2 spatial streams
mcs6/1: MCS index 6 with 1 spatial stream mcs14/2: MCS index 14 with 2 spatial streams
mcs7/1: MCS index 7 with 1 spatial stream mcs15/2: MCS index 15 with 2 spatial streams
rates-11n-ss34 <data-rate>
Data rates permitted for 802.11n with 3 or 4 spatial streams:
mcs16/3: MCS index 16 with 3 spatial streams mcs24/4: MCS index 24 with 4 spatial streams
mcs17/3: MCS index 17 with 3 spatial streams mcs25/4: MCS index 25 with 4 spatial streams
mcs18/3: MCS index 18 with 3 spatial streams mcs26/4: MCS index 26 with 4 spatial streams
mcs19/3: MCS index 19 with 3 spatial streams mcs27/4: MCS index 27 with 4 spatial streams
mcs20/3: MCS index 20 with 3 spatial streams mcs28/4: MCS index 28 with 4 spatial streams
mcs21/3: MCS index 21 with 3 spatial streams mcs29/4: MCS index 29 with 4 spatial streams
mcs22/3: MCS index 22 with 3 spatial streams mcs30/4: MCS index 30 with 4 spatial streams
mcs23/3: MCS index 23 with 3 spatial streams mcs31/4: MCS index 31 with 4 spatial streams
rates-11ac-ss12 <data-rate>
Data rates permitted for 802.11ac with 1 or 2 spatial streams:
mcs0/1: MCS index 0 with 1 spatial stream mcs0/2: MCS index 0 with 2 spatial streams
mcs1/1: MCS index 1 with 1 spatial stream mcs1/2: MCS index 2 with 2 spatial streams
mcs2/1: MCS index 2 with 1 spatial stream mcs2/2: MCS index 2 with 2 spatial streams
mcs3/1: MCS index 3 with 1 spatial stream mcs3/2: MCS index 3 with 2 spatial streams
mcs4/1: MCS index 4 with 1 spatial stream mcs4/2: MCS index 4 with 2 spatial streams
mcs5/1: MCS index 5 with 1 spatial stream mcs5/2: MCS index 5 with 2 spatial streams
mcs6/1: MCS index 6 with 1 spatial stream mcs6/2: MCS index 6 with 2 spatial streams
mcs7/1: MCS index 7 with 1 spatial stream mcs7/2: MCS index 7 with 2 spatial streams
mcs8/1: MCS index 8 with 1 spatial stream mcs8/2: MCS index 8 with 2 spatial streams
mcs9/1: MCS index 9 with 1 spatial stream mcs9/2: MCS index 9 with 2 spatial streams
rates-11ac-ss34 <data-rate>
Data rates permitted for 802.11ac with 3 or 4 spatial streams:
mcs0/3: MCS index 0 with 3 spatial streams mcs0/4: MCS index 0 with 3 spatial streams
mcs1/3: MCS index 1 with 3 spatial streams mcs1/4: MCS index 1 with 3 spatial streams
mcs2/3: MCS index 2 with 3 spatial streams mcs2/4: MCS index 2 with 3 spatial streams
mcs3/3: MCS index 3 with 3 spatial streams mcs3/4: MCS index 3 with 3 spatial streams
mcs4/3: MCS index 4 with 3 spatial streams mcs4/4: MCS index 4 with 3 spatial streams
mcs5/3: MCS index 5 with 3 spatial streams mcs5/4: MCS index 5 with 3 spatial streams
mcs6/3: MCS index 6 with 3 spatial streams mcs6/4: MCS index 6 with 3 spatial streams
mcs7/3: MCS index 7 with 3 spatial streams mcs7/4: MCS index 7 with 3 spatial streams
mcs8/3: MCS index 8 with 3 spatial streams mcs8/4: MCS index 8 with 3 spatial streams
mcs9/3: MCS index 9 with 3 spatial streams mcs9/4: MCS index 9 with 3 spatial streams
wireless-controller vap-group
comment [string]
Optional comments.
vaps <ssids>
List of SSIDs to be included in the VAP group.
wireless-controller wids-profile
comment [string]
Optional comments.
ap-scan {enable | disable}
Enable or disable (by default) rogue AP scanning. Once enabled, configure a series of AP scanning options (see
entries below).
ap-bgscan-period <seconds>
Note: This entry is only available when ap-scan is set to enable. Period of time in seconds between
background scans. Set the value between 60-3600 (or one minute to one hour). The default is set to 600 (or ten
minutes).
ap-bgscan-intv <seconds>
Note: This entry is only available when ap-scan is set to enable. Period of time in seconds between two
scanning channels. Set the range between 1-600 (or one seconds to ten minutes). The default is set to 1.
ap-bgscan-duration <milliseconds>
Note: This entry is only available when ap-scan is set to enable. Listening time in milliseconds on a scanning
channel. Set the value between 10-1000. The default is set to 20.
ap-bgscan-idle <milliseconds>
Note: This entry is only available when ap-scan is set to enable. Period of idle-time in milliseconds before
channel scanning. Set the value between 0-1000. The default is set to 0.
ap-bgscan-report-intv <seconds>
Note: This entry is only available when ap-scan is set to enable. Period of time in seconds between
background scan reports. Set the value between 15-600 (or 15 seconds to ten minutes). The default is set to 30.
ap-bgscan-disable-start <hh:mm>
Note: This entry is only available when ap-bgscan-disable-day is configured. Start time, in the format of
hh:mm, for disabling background scanning. The default is set to 00:00.
ap-bgscan-disable-end <hh:mm>
Note: This entry is only available when ap-bgscan-disable-day is configured. End time, in the format of
hh:mm, for disabling background scanning. The default is set to 00:00.
ap-fgscan-report-intv <seconds>
Note: This entry is only available when ap-scan is set to enable. Period of time in seconds between
foreground scan reports. Set the value between 15-600 (or 15 seconds to ten minutes). The default is set to 15.
wireless-bridge {enable | disable}
Enable or disable (by default)
deauth-broadcast {enable | disable}
Enable or disable (by default) detection of wireless bridge operation, used to raise awareness if your network
doesn't use a wireless bridge.
null-ssid-probe-resp {enable | disable}
Enable or disable (by default) null SSID probe response detection.
long-duration-attack {enable | disable}
Enable or disable (by default) long-duration attack detection. When enabled, use the long-duration-
thresh entry to define the threshold.
long-duration-thresh <milliseconds>
Duration of time in milliseconds for long-duration attack detection. Set the value between 1000-32767 (or one
second to over 32 seconds). The default is set to 8200 (or just over eight seconds).
invalid-mac-oui {enable | disable}
Enable or disable (by default) detection of spoofed MAC addresses. The first three bytes should indicate a known
manufacturer.
weak-wep-iv {enable | disable}
Enable or disable (by default) detection of APs using weak WEP encryption.
auth-frame-flood {enable | disable}
Enable or disable (by default) detection of authentication frame flood attacks.
assoc-frame-flood {enable | disable}
Enable or disable (by default) detection of association frame flood attacks.
spoofed-deauth {enable | disable}
Enable or disable (by default) detection of spoofed deauthentication packets.
asleap-attack {enable | disable}
Enable or disable (by default) detection of asleap attacks, attempts to crack Lightweight Extensible
Authentication Protocol (LEAP) security. LEAP is a wireless LAN authentication method that allows clients to re-
authenticate frequently, giving the client a new WEP key each time. Enable or disable (by default) detection of
asleap attacks, attempts to crack Lightweight Extensible Authentication Protocol (LEAP) security. LEAP is a
wireless LAN authentication method that allows clients to re-authenticate frequently, giving the client a new WEP
key each time.
eapol-start-flood {enable | disable}
Enable or disable (by default) detection of Extensible Authentication Protocol (EAP) over LAN (EAPoL) START
flood attacks.
eapol-logoff-flood {enable | disable}
Enable or disable (by default) detection of EAPoL LOGOFF flood attacks.
eapol-succ-flood {enable | disable}
Enable or disable (by default) detection of EAPoL SUCC flood attacks.
eapol-fail-flood {enable | disable}
Enable or disable (by default) detection of EAPoL FAIL flood attacks. When enabled, use the eapol-fail-
intv entry to define the detection interval.
eapol-fail-thresh <threshold>
Note: This entry is only available when eapol-fail-flood is set to enable. The EAPoL FAIL detection
threshold interval. Set the value between 2-100. The default is set to 10.
eapol-fail-intv <seconds>
Note: This entry is only available when eapol-fail-flood is set to enable. Interval of time in seconds
between EAP FAIL detection. Set the value between 1-3600 (or one second to one hour). The default is set to 1.
eapol-pre-succ-flood {enable | disable}
Enable or disable (by default) detection of EAPoL premature SUCC flood attacks.
eapol-pre-fail-flood {enable | disable}
Enable or disable (by default) detection of EAPoL premature FAIL flood attacks.
deauth-unknown-src-thresh <seconds>
Threshold value per second to deauthenticate unknown sources for DoS attacks. The default is set to 10. Set to 0
for no limitation.
wireless-controller wtp
Use this command to configure various wireless transaction protocol (WTP) settings, inlcuding VAP override
options and physical APs for management by the wireless controller, also known as an Access Controller (AC).
Note: Radio 2 settings are only available for FortiAP models with dual radios.
override-band {enable | disable}
Enable or disable (by default) the override of a specific AP-mode radio band. When enabled, use the band entry
to configure the band.
override-txpower {enable | disable}
Enable or disable (by default) the override of transmission power. When enabled, use the auto-power-level
and power-level entries to to configure further power level options.
auto-power-high <dBm>
Note: This entry is only available when override-txpower is set to enable and auto-power-level is
then set to enable.
Automatic transmission power high limit in decibels (dB) of the measured power referenced to one milliwatt
(mW), or dBm. Set the value between 10-17. The default is set to 17.
auto-power-low <dBm>
Note: This entry is only available when override-txpower is set to enable and auto-power-level is
then set to enable.
Automatic transmission power low limit in dBm. Set the value between 1-17. The default is set to 10.
power-level <percentage>
Note: This entry is only available when override-txpower is set to enable and auto-power-level is
then set to disable.
Radio power level as a percentage; as such, set the value between 0-100. The default is set to 100.
The maximum power level (i.e. 100%) will set to the regulatory maximum for your region, as determined by the
country entry under config wireless-controller setting.
override-vaps {enable | disable}
Enable or disable (by default) the override of VAPs. When enabled, use the vap-all and vaps entries to
configure the VAPs carried on the physical AP.
vaps <vaps>
Note: This entry is only available when override-vaps is set to enable and vap-all is then set to
disable.
Specific VAPs carried on this physical AP. Separate each value with a space to add multiple VAPs. Values can
also be added using append.
override-channel {enable | disable}
Enable or disable (by default) the override of channels. When enabled, use the channel entry to enter the
channels used by the AP.
channel {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11}
Note: This entry is only available when either override-band or override-channel are set to enable.
Wireless radio channels to override. Separate each value with a space to add multiple channels. Values can also
be added using append.
config split-tunneling-acl
Note: This configuration method is only available when split-tunneling-acl-local-ap-subnet is set
to enable.
A configuration method to set various split tunneling access control list (ACL) filter lists.
dest-ip <ipv4>
IPv4 destination address to be added to the ACL filter.
config lan
Note: This configuration method is only available when override-lan is set to enable.
A configuration method to set WTP port mode.
name <name>
Name for the AP.
location <location>
Location of the AP.
wtp-profile <profile>
Name of the WTP profile to apply to this AP, as created under config wireless-controller wtp-
profile.
override-ip-fragment {enable | disable}
Enable or disable (by default) the override of IP fragmentation. When enabled, use the ip-fragment-
preventing, tun-mtu-uplink, and tun-mtu-downlink entries to configure IP fragmentation settings.
tun-mtu-uplink <bytes>
Note: This entry is only available when override-ip-fragment is set to enable. Uplink tunnel maximum
transmission unit (MTU) in octets (eight-bit bytes). An MTU is the largest size packet or frame that can be sent in
a packet. Set the value to either 0 (by default), 576, or 1500.
tun-mtu-downlink <bytes>
Note: This entry is only available when override-ip-fragment is set to enable. Downlink tunnel MTU in
octets. Set the value to either 0 (by default), 576, or 1500.
override-split-tunnel {enable | disable}
Enable or disable (by default) to override split-tunneling. When enabled, use the split-tunneling-acl-
local-ap-subnet entry to enable/disable the configuration of ACL filter lists.
override-lan {enable | disable}
Enable or disable (by default) to override the WTP LAN port. When enabled, the lan configuration method will
become available.
override-allowaccess {enable | disable}
Enable or disable (by default) to override management-access per protocol. When enabled, use the
allowaccess entry to set the protocols permitted management-access.
override-login-passwd-change {enable | disable}
Enable or disable (by default) to override the login-password of managed APs. When enabled, use the login-
passwd-change entry to determine password-change settings.
image-download {enable | disable}
Enable (by default) or disable image download of WTP to the AP. In addition, you can use the following command
to import the WTP firmware file from a TFTP server:
execute wireless-controller upload-wtp-image tftp <filename> <TFTP server address>
coordinate-enable {enable | disable}
Enable or disable (by default) AP coordinates. When enabled, use the coordinate-x and coordinate-y
entries to set the AP's X and Y axes.
coordinate-x <string>
Note: This entry is only available when coordinate-enable is set to enable. X axis coordinate of the AP.
coordinate-y <string>
Note: This entry is only available when coordinate-enable is set to enable. Y axis coordinate of the AP.
wireless-controller wtp-group
Use this command to add FortiAP models to WTP groups. A FortiAP can belong to no more than one FortiAP
group. FortiAP Groups facilitate the application of FortiAP profiles to large numbers of FortiAPs. Through the
VLAN Pool feature, a FortiAP Group can be associated with a VLAN to which WiFi clients will be assigned.
config wtp-list
A configuration method to add member devices to WTP groups created for the model's platform type. In order to
add member devices, you must have already used the platform-type entry to add a FortiAP model, as per
the example CLI configuration below; a group called wtp-group-1 is created for a FortiAP-221C device and one
member device is added:
config wireless-controller wtp-group
edit wtp-group-1
set platform-type 221C
config wtp-list
edit FP221C3X14019926
end
end
platform-type {enable | disable}
FortiAP models to define the WTP group platform type.
223B: FAP223B 223C: FAP223C
222B: FAP222B S321C: FAPS321C
112B: FAP112B S322C: FAPS322C
320B: FAP320B S323C: FAPS3232C
11C: FAP11C S311C: FAPS311C
14C: FAP14C S313C: FAPS313C
28C: FAP28C S321CR: FAPS321CR
320C: FAP320C S322CR: FAPS322CR
221C: FAP221C S323CR: FAPS323CR
25D: FAP25D S421E: FAPS421E
222C: FAP222C S422E: FAPS422E
224D: FAP224D S423E: FAPS423E
214B: FK214B 421E: FAP421E
21D: FAP21D 423E: FAP423E
wireless-controller wtp-profile
Use this command to configure WTP profiles (or FortiAP Profiles as shown in the GUI), which define radio
settings for a particular platform/FortiAP model. FortiAP units contain two radio transceivers, making it possible
to provide both 2.4GHz 802.11b/g/n and 5GHz 802.11a/n service from the same AP. The profile also selects
which SSIDs the APs will carry.
For example, a FortiAP can be configured to carry all SSIDs on one radio, while the other only carries a specific
SSID. The radios can also be used for monitoring, used for the Rogue AP detection feature. See Monitoring
rogue APs from our Online Help portal for more details, and config wireless-controller wids-
profile for various AP detection settings.
Note: Radio 2 settings are only available for FortiAP models with dual radios.
config platform
A configuration method to assign the AP hardware type.
type <platform>
WTP platform type/model. For a full list of options, enter set type ? (or see wireless-controller
wtp-group). The default is set to 220B.
config deny-mac-list
A configuration methods to deny specific wireless MAC addresses.
mac <mac-address>
Wireless MAC address to deny.
config split-tunneling-acl
A configuration method to set various split tunneling access control list (ACL) filter lists.
dest-ip <ipv4-netmask>
IPv4 destination address to be added to the ACL filter.
l tim: Set traffic indication map (TIM) bit for client in power save mode. TIM bit mask indicates to any sleeping
listening stations if the AP has any buffered frames present.
l ac-vo: Use Access Category (AC) Voice (VO) priority to send packets in the power save queue. AC VO is one of the
highest classes/priority levels used to ensure quality of service (QoS).
l no-obss-scan: Do not put Overlapping Basic Service Set (OBSS), or high-noise (i.e. non-802.11), scan IE into a
Beacon or Probe Response frame.
l no-11b-rate: Do not send frame using 11b data rate.
l client-rate-follow: Adapt transmitted PHY rate to PHY rate received from client.
Separate each value with a space to add multiple values. Values can also be added using append.
ap-sniffer-bufsize <mb>
Note: This entry is only available when mode is set to sniffer. AP's sniffer buffer size in MB. Set the value
between 1-32. The default is set to 16.
ap-sniffer-chan <channel>
Note: This entry is only available when mode is set to sniffer. Channel on which to operate the sniffer. The
default is set to 6.
ap-sniffer-addr <mac-address>
Note: This entry is only available when mode is set to sniffer. MAC address to monitor.
ap-sniffer-mgmt-beacon {enable | disable}
Note: This entry is only available when mode is set to sniffer. Enable (by default) or disable sniffer on WiFi
management Beacon frame.
ap-sniffer-mgmt-probe {enable | disable}
Note: This entry is only available when mode is set to sniffer. Enable (by default) or disable sniffer on WiFi
management Probe frame.
ap-sniffer-mgmt-other {enable | disable}
Note: This entry is only available when mode is set to sniffer. Enable (by default) or disable sniffer on WiFi
management Other frame.
ap-sniffer-ctl {enable | disable}
Note: This entry is only available when mode is set to sniffer. Enable (by default) or disable sniffer on WiFi
Control frame.
ap-sniffer-data {enable | disable}
Note: This entry is only available when mode is set to sniffer. Enable (by default) or disable sniffer on WiFi
Data frame.
amsdu {enable | disable}
Note: This entry is only available under radio-2. Enable (by default) or disable Aggregate MAC Service Data
Unit (A-MSDU) support, allowing multiple frames to be combined into one larger frame.
coexistence {enable | disable}
Note: This entry is only available under radio-2. Enable (by default) or disable HT20/HT40 coexistence
support, where bandwidths that use 20MHz and 40MHz can be used in the same channel.
auto-power-level {enable | disable}
Enable or disable (by default) automatic power-level adjustment to prevent co-channel interference. When
enabled, use the auto-power-high and auto-power-low entries to configure the high and low limitations.
When disabled, use the power-level entry to configure the power level percentage.
auto-power-high <dBm>
Note: This entry is only available when auto-power-level is set to enable. Automatic transmission power
high limit in decibels (dB) of the measured power referenced to one milliwatt (mW), or dBm. Set the value
between 10-17. The default is set to 17.
auto-power-low <dBm>
Note: This entry is only available when auto-power-level is set to enable. Automatic transmission power
low limit in dBm. Set the value between 1-17. The default is set to 10.
power-level <percentage>
Note: This entry is only available when auto-power-level is set to disable. Radio power level as a
percentage; as such, set the value between 0-100. The default is set to 100. The maximum power level (i.e.
100%) will set to the regulatory maximum for your region, as determined by the country entry under config
wireless-controller setting.
dtim <interval>
Interval between an Delivery Traffic Indication Message (DTIM), a kind of TIM that informs clients about the
presence of buffered multicast/broadcast data on the AP. Set the value between 1-255. The default is set to 1.
beacon-interval <milliseconds>
Interval between beacon packets. AP broadcast beacons or TIMs to synchronize wireless networks. Set the value
between 40-3500 (or 40 milliseconds to 3.5 seconds). The default is set to 100 (or a tenth of a second). In an
environment with high interference, a low beacon-interval value might improve network performance. In a
location with few wireless nodes, you can increase this value.
rts-threshold <bytes>
Maximum packet size for RTS transmissions, specifying the maximum size of a data packet before RTS/CTS.
This will consume more bandwidth, therefore reducing the throughput, however the more RTS packets there are
the fewer instances of packet loss will occur. Set the value between 256-2346 (or 256 bytes to over 2kB). The
default is set to 2346, meaning that effectively it will never be used, as the maximum packet size in Ethernet
networks can only be 1518 bytes (including all headers and maximum data size).
frag-threshold <bytes>
Note: This entry is only available when band has been set. Maximum packet size that can be sent without
fragmentation. Range is 800 to 2346 bytes. Set the value between 256-2346 (or 256 bytes to over 2kB).
spectrum-analysis {enable | disable}
Enable or disable (by default) spectrum analysis, a method for finding interference that would negatively impact
wireless performance.
wids-profile
Note: This entry in only available when mode is set to either ap or monitor. WIDS profile name to assign to the
radio, as configured under the wireless-controller wids-profile command.
darrp {enable | disable}
Enable or disable (by default) Distributed Automatic Radio Resource Provisioning (DARRP), a feature
that autonomously and periodically determines the best-suited channel for wireless communication. This allows
FortiAP units to select their channel so they do not interfere with each other in large-scale deployments. You can
optimize DARRP further under the wireless-controller timers command.
max-clients <integer>
Maximum expected number of STAs supported by the radio. The default is set to 0.
max-distance <meters>
Maximum expected distance in meters between the AP and clients. This adjusts the ACK timeout to maintain
throughput at the maximum distance. Set the value between 0-54000 (or no distance to just over 33.5 miles). The
default is set to 0.
frequency-handoff {enable | disable}
Enable or disable (by default) frequency handoff of clients to other channels. When enabled, you can optimize
handoff further by using the handoff-rssi and handoff-sta-thresh entries.
ap-handoff {enable | disable}
Enable or disable (by default) handoff of clients to other APs.
vap-all {enable | disable}
Enable (by default) or disable the automatic inheritance of all VAPs.
vaps <vaps>
Specific VAPs carried on this physical AP. Separate each value with a space to add multiple VAPs. A maximum
of eight VAPs may be added. Values can also be added using append.
channel {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11}
Wireless radio channels. Separate each value with a space to add multiple channels. Values can also be added
using append.
config lbs
A configuration method to set various location based service (LBS) options.
ekahau-tag <mac-address>
WiFi frame MAC address.
erc-energy-ip <ip-address>
IP address of the Ekahau real-time location system (RTLS) controller.
er-server-port <port>
Ekahau RTLS controller UDP listening port.
aeroscout {enable | disable}
Enable or disable (by default) AeroScout support.
aeroscout-server-ip <ip-address>
AeroScout server IP address.
aeroscout-server-port <port>
AeroScout server UDP listening port.
aeroscout-mu-factor <mu-factor>
AeroScout Mobile Unit (MU) mode dilution factor. The default is set to 20.
aeroscout-mu-timeout <seconds>
AeroScout MU mode timeout in seconds. Set the value between 0-65535 (or not timeout to over 18 hours). The
default is set to 5.
fortipresence {enable | disable}
Enable or disable (by default) FortiPresence support.
fortipresence-server <ip-address>
FortiPresence server IP address.
fortipresence-port <port>
FortiPresence server UDP listening port. Set the value between 300-65535. The default is set to 3000.
fortipresence-secret <password>
FortiPresence secret password, with a maximum length of eight characters.
fortipresence-project <name>
Name of the FortiPresence project, with a maximum length of 16 characters. The default is set to
fortipresence.
fortipresence-frequency <seconds>
FortiPresence report transmit frequency in seconds. Set the value between 5-65535 (or five seconds to over 18
hours). The default is set to 30.
station-locate {enable | disable}
Enable or disable (by default) client station locating services for all clients, whether associated or not.
comment [string]
Optional comments.
max-clients <number>
The default is set to 0, meaning there is no client limitation.
handoff-rssi <rssi>
Minimum received signal strength indicator (RSSI) value for handoff. Set the value between 20-30. The default is
set to 25.
handoff-sta-thresh <threshold>
Threshold value for AP handoff. Set the value between 5-35. The default is set to 30.
ap-country <country>
Country in which this AP will operate. To display all available countries, enter set country ?. The default is
set to US (United States).
tun-mtu-uplink <bytes>
Uplink tunnel maximum transmission unit (MTU) in octets (eight-bit bytes). An MTU is the largest size packet or
frame that can be sent in a packet. Set the value to either 0 (by default), 576, or 1500.
tun-mtu-downlink <bytes>
Downlink tunnel MTU in octets. Set the value to either 0 (by default), 576, or 1500.
login-passwd <password>
Note: This entry is only available when login-passwd-change is set to yes. Login password of the managed
AP.
execute
The execute commands perform immediate operations on the FortiGate unit, including:
l Maintenance operations, such as back up and restore the system configuration, reset the configuration to factory
settings, update antivirus and attack definitions, view and delete log messages, set the date and time.
l Network operations, such as view and clear DHCP leases, clear arp table entries, use ping or traceroute to
diagnose network problems.
l Generate certificate requests and install certificates for VPN authentication.
backup
Back up the FortiGate configuration files, logs, or IPS user-defined signatures file to a TFTP or FTP server, USB
disk, or a management station. Management stations can either be a FortiManager unit, or FortiGuard Analysis
and Management Service. For more information, see "fortiguard" on page 1 or "central-management" on page 1.
When virtual domain configuration is enabled (in global, vdom-admin is enabled), the content of the backup file
depends on the administrator account that created it.
A backup of the system configuration from the super admin account contains the global settings and the settings
for all of the VDOMs. Only the super admin can restore the configuration from this file.
When you back up the system configuration from a regular administrator account, the backup file contains the
global settings and the settings for the VDOM to which the administrator belongs. Only a regular administrator
account can restore the configuration from this file.
Syntax
execute backup config flash <comment>
execute backup config ftp <filename_str> <server_ipv4[:port_int] | server_fqdn[:port_
int]> [<username_str> [<password_str>]] [<backup_password_str>]
execute backup config management-station <comment_str>
execute backup config tftp <filename_str> <server_ipv4> [<backup_password_str>]
execute backup config usb <filename_str> [<backup_password_str>]
execute backup config-with-forticlient-info usb-mode [<backup_password_str>]
execute backup config-with-forticlient-info ftp <filename_str> <server_ipv4[:port_int]
| server_fqdn[:port_int]> [<username_str> [<password_str>]] [<backup_password_str>]
execute backup config-with-forticlient-info tftp <filename_str> <server_ipv4> [<backup_
password_str>]
execute backup config-with-forticlient-info usb [<backup_password_str>]
execute backup config-with-forticlient-info usb-mode [<backup_password_str>]
execute backup full-config ftp <filename_str> <server_ipv4[:port_int] | server_fqdn
[:port_int]> [<username_str> [<password_str>]] [<backup_password_str>]
execute backup full-config tftp <filename_str> <server_ipv4> [<backup_password_str>]
execute backup full-config usb <filename_str> [<backup_password_str>]
execute backup full-config usb-mode <filename_str> [<backup_password_str>]
execute backup ipsuserdefsig ftp <filename_str> <server_ipv4[:port_int] | server_fqdn
[:port_int]> [<username_str> [<password_str>]]
execute backup ipsuserdefsig tftp tftp <filename_str> <server_ipv4>
execute backup {disk | memory} alllogs ftp <server_ipv4[:port_int] | server_fqdn[:port_
int]> [<username_str> <password_str>]
config flash <comment> Back up the system configuration to the flash disk.
Optionally, include a comment.
config usb <filename_str> Back up the system configuration to a file on a USB disk.
[<backup_password_str>] Optionally, you can specify a password to protect the
saved data.
Variable Description
full-config ftp <filename_str> Back up the full system configuration to a file on an FTP
<server_ipv4[:port_int] | server_ server. You can optionally specify a password to protect
fqdn[:port_int]> [<username_str> the saved data.
[<password_str>]] [<backup_
password_str>]
full-config tftp <filename_str> Back up the full system configuration to a file on a TFTP
<server_ipv4> [<backup_password_ server. You can optionally specify a password to protect
str>] the saved data.
full-config usb <filename_str> Back up the full system configuration to a file on a USB
[<backup_password_str>] disk. You can optionally specify a password to protect
the saved data.
ipsuserdefsig tftp tftp <filename_ Back up IPS user-defined signatures to a file on a TFTP
str> <server_ipv4> server.
{disk | memory} alllogs ftp Back up either all memory or all hard disk log files for this
<server_ipv4[:port_int] | server_ VDOM to an FTP server. The disk option is available on
fqdn[:port_int]> [<username_str> FortiGate models that log to a hard disk.
<password_str>]
The file name has the form: <log_file_name>_
<VDOM>_<date>_<time>
Back up either all memory or all hard disk log files for this
VDOM to a TFTP server. he disk option is available on
{disk | memory} alllogs tftp FortiGate models that log to a hard disk.
<server_ipv4>
The file name has the form: <log_file_name>_
<VDOM>_<date>_<time>
Variable Description
{disk | memory} alllogs usb Back up either all memory or all hard disk log files for this
VDOM to a USB disk. he disk option is available on
FortiGate models that log to a hard disk.
The file name has the form: <log_file_name>_
<VDOM>_<date>_<time>
{disk | memory} log tftp <server_ Back up the specified type of log file from either hard
ipv4> {traffic | event | ids disk or memory to a TFTP server.
| virus | webfilter | spam | dlp
| voip | app-ctrl | netscan} The disk option is available on FortiGate models that log
to a hard disk.
Example
This example shows how to backup the FortiGate unit system configuration to a file named fgt.cfg on a
TFTP server at IP address 192.168.1.23.
execute backup config tftp fgt.cfg 192.168.1.23
batch
Execute a series of CLI commands. execute batch commands are controlled by the Maintenance (mntgrp)
access control group.
Syntax
execute batch [<cmd_cue>]
where <cmd_cue> is one of:
Example
To start batch mode:
execute batch start
Enter batch mode...
bypass-mode
Use this command to manually switch a FortiGate-600C or FortiGate-1000C into bypass mode. This is available
in transparent mode only. If manually switched to bypass mode, the unit remains in bypass-mode until bypass
mode is disabled.
Syntax
execute bypass-mode {enable | disable}
carrier-license
Use this command to enter a l FortiOS Carrier license key if you have installed a FortiOS Carrier build on a
FortiGate unit and need to enter a license key to enable FortiOS Carrier functionality.
Syntax
execute carrier-license <license_key>
Variable Description
central-mgmt
Update Central Management Service account information. Also used receive configuration file updates from an
attached FortiManager unit.
Syntax
execute central-mgmt set-mgmt-id <management_id>
register-device registers the FortiGate unit with a specific FortiManager unit specified by serial number.
You must also specify the administrator name and password that the FortiManager unit uses to log on to the
FortiGate unit.
unregister-device removes the FortiGate unit from the specified FortiManager unit’s device list.
update is used to update your Central Management Service contract with your new management account ID.
This command is to be used if there are any changes to your management service account.
Example
If you are registering with the Central Management Service for the first time, and your account number is 123456,
you would enter the following:
execute central-mgmt set-mgmt-id 123456
cfg reload
Use this command to restore the saved configuration when the configuration change mode is manual or
revert. This command has no effect if the mode is automatic, the default. The set cfg-save command
in system global sets the configuration change mode.
When you reload the saved system configuration, the your session ends and the FortiGate unit restarts.
In the default configuration change mode, automatic, CLI commands become part of the saved unit
configuration when you execute them by entering either next or end.
In manual mode, commands take effect but do not become part of the saved configuration unless you execute
the execute cfg save command. When the FortiGate unit restarts, the saved configuration is loaded.
Configuration changes that were not saved are lost.
The revert mode is similar to manual mode, except that configuration changes are saved automatically if the
administrative session is idle for more than a specified timeout period. This provides a way to recover from an
erroneous configuration change, such as changing the IP address of the interface you are using for
administration. You set the timeout in system global using the set cfg-revert-timeout command.
Syntax
execute cfg reload
Example
This is sample output from the command when successful:
# execute cfg reload
configs reloaded. system will reboot.This is sample output from the command when not in
runtime-only configuration mode:
# execute cfg reload
no config to be reloaded.
cfg save
Use this command to save configuration changes when the configuration change mode is manual or revert. If
the mode is automatic, the default, all changes are added to the saved configuration as you make them and
this command has no effect. The set cfg-save command in system global sets the configuration change
mode.
In manual mode, commands take effect but do not become part of the saved configuration unless you execute
the execute cfg save command. When the FortiGate unit restarts, the saved configuration is loaded.
Configuration changes that were not saved are lost.
The revert mode is similar to manual mode, except that configuration changes are reverted automatically if
the administrative session is idle for more than a specified timeout period. This provides a way to recover from an
erroneous configuration change, such as changing the IP address of the interface you are using for
administration. To change the timeout from the default of 600 seconds, go to system global and use the
set cfg-revert-timeout command.
Syntax
execute cfg save
Example
This is sample output from the command:
# execute cfg save
config saved.
This is sample output when not in runtime-only configuration mode. It also occurs when in runtime-only
configuration mode and no changes have been made:
# execute cfg save
no config to be saved.
Syntax
execute clear system arp table
cli check-template-status
Reports the status of the secure copy protocol (SCP) script template.
Syntax
execute cli check-template-status
cli status-msg-only
Enable or disable displaying standardized CLI error output messages. If executed, this command stops other
debug messages from displaying in the current CLI session. This command is used for compatibility with
FortiManager.
Syntax
execute cli status-msg-only [enable | disable]
Variable Description Default
client-reputation
Syntax
date
Syntax
execute date [<date_str>]
date_str has the form yyyy-mm-dd, where
If you do not specify a date, the command returns the current system date. Shortened values, such as ‘06’
instead of ‘2006’ for the year or ‘1’ instead of ‘01’ for month or day, are not valid.
Example
This example sets the date to 17 September 2004:
execute date 2004-09-17
disk
Use this command to list and format hard disks installed in FortiGate units or individual partitions on these hard
disks.
Syntax
execute disk format <partition1_ref_int> [...<partitionn_ref_int>]
execute disk list
execute disk scan <ref_int>
Variable Description
List the disks and partitions and the reference number for each
list
one.
The execute disk format command formats the specified partitions or disks and then reboots the system if
a reboot is required.
In most cases you need to format the entire disk only if there is a problem with the partition. Formatting the
partition removes all data from the partition. Formatting the disk removes all data from the entire disk and creates
a single partition on the disk.
Examples
Use the following command to list the disks and partitions.
execute disk list
Disk Internal(boot) ref: 14.9GB type: SSD [ATA SanDisk SSD U100] dev: /dev/sda
partition ref: 3 14.4GB, 14.4GB free mounted: Y label: 7464A257123E07BB dev: /dev/sda3
In this example, there is only one partition and its reference number is 3.
disk raid
Use this command to view information about and change the raid settings on FortiGate units that support RAID.
Syntax
execute disk raid disable
execute disk raid enable {Raid-0 | Raid-1 | Raid-5}
execute disk raid rebuild
execute disk raid status
Variable Description
Rebuild RAID on the FortiGate unit at the same RAID level. You can only
rebuild execute this command if a RAID error has been detected. Changing the
RAID level takes a while and deletes all data on the disk array.
status Display information about the RAID disk array in the FortiGate unit.
Examples
Use the following command to display information about the RAID disk array in a FortiGate-82C.
execute disk raid status
RAID Level: Raid-1
RAID Status: OK
RAID Size: 1000GB
disk scan
Syntax
execute disk scan <ref_int>
where n is the partition "ref:" number for the disk, shown by execute disk list.
The operation requires the FortiGate unit to reboot. The command responds:
Example
# execute disk scan 3
scan requested for: 3/Internal (device=/dev/sda3)
This action requires the unit to reboot.
Do you want to continue? (y/n)
dhcp lease-clear
Syntax
For IPv4:
execute dhcp lease-clear
For IPv6
execute dhcp6 lease-clear
dhcp lease-list
Syntax
For IPv4:
execute dhcp lease-list [interface_name]
For IPv6:
execute dhcp6 lease-list [interface_name]
If you specify an interface, the command lists only the leases issued on that interface. Otherwise, the list includes
all leases issued by DHCP servers on the FortiGate unit.
If there are no DHCP leases in user on the FortiGate unit, an error will be returned.
disconnect-admin-session
Syntax
execute disconnect-admin-session <index_number>
To determine the index of the administrator that you want to disconnect, view the list of logged-in administrators
by using the following command:
execute disconnect-admin-session ?
The list of logged-in administrators looks like this:
Connected:
INDEX USERNAME TYPE FROM TIME
0 admin WEB 172.20.120.51 Mon Aug 14 12:57:23 2006
1 admin2 CLI ssh(172.20.120.54) Mon Aug 14 12:57:23 2006
Example
This example shows how to disconnect the logged administrator admin2 from the above list.
execute disconnect-admin-session 1
enter
Use this command to go from global commands to a specific virtual domain (VDOM).
Only available when virtual domains are enabled and you are in config global.
After you enter the VDOM, the prompt will not change from “(global)”. However you will be in the VDOM with
all the commands that are normally available in VDOMs.
Syntax
execute enter <vdom>
Use “?” to see a list of available VDOMs.
erase-disk
Use this command to reformat the boot device or an attached hard disk. Optionally, this command can restore
the image from a TFTP server after erasing.
Syntax
execute erase-disk <disk_name>
The <disk_name> for the boot device is boot.
factoryreset
Syntax
execute factoryreset [keepvmlicense]
If keepvmlicense is specified (VM models only), the VM license is retained after reset.
Apart from the keepvmlicense option, this procedure deletes all changes that you have made to the FortiGate
configuration and reverts the system to its original configuration, including resetting interface addresses.
factoryreset2
Reset the FortiGate configuration to factory default settings except VDOM and interface settings.
Syntax
execute factoryreset2 [keepvmlicense ]
If keepvmlicense is specified (VM models only), the VM license is retained after reset.
formatlogdisk
Syntax
execute formatlogdisk
In addition to deleting logs, this operation will erase all other data on the
disk, including system configuration, quarantine files, and databases for
antivirus and IPS.
forticarrier-license
Syntax
execute forticarrier-license <activation-code>
forticlient
Syntax
0 - IPsec
1 - SSLVPN
3 - WAN optimization
4 - Test
FortiClient-NAC
Use the following command to load a FortiClient license onto a FortiGate unit.
Syntax
execute FortiClient-NAC update-registration-license <code>
where <code> is the FortiClient registration license key/activation code.
fortiguard-log
Use this to manage FortiGuard Analysis and Management Service (FortiCloud) operation.
Syntax
To join FortiCloud
execute fortiguard-log join
fortitoken
Use these commands to activate and synchronize a FortiToken device. FortiToken devices are used in two-factor
authentication of administrator and user account logons. The device generates a random six-digit code that you
enter during the logon process along with user name and password.
Before they can be used to authenticate account logins, FortiToken devices must be activated with the
FortiGuard service. When successfully activated, the status of the FortiToken device will change from New to
Active.
Synchronization is sometimes needed due to the internal clock drift of the FortiToken device. It is not unusual for
new FortiToken units to require synchronization before being put into service. Synchronization is accomplished by
entering two sequential codes provided by the FortiToken.
Syntax
fortitoken-mobile
Use these commands to activate and synchronize a FortiToken Mobile card. FortiToken Mobile cards are used in
two-factor authentication of administrator and user account logons. The FortiGate unit sends a random six-digit
code to the mobile device by email or SMS that the user enters during the logon process along with user name
and password.
Syntax
fsso refresh
Use this command to manually refresh user group information from Directory Service servers connected to the
FortiGate unit using the Fortinet Single Sign On (FSSO) agent.
Syntax
execute fsso refresh
ha disconnect
Use this command to disconnect a FortiGate unit from a functioning cluster. You must specify the serial number
of the unit to be disconnected. You must also specify an interface name and assign an IP address and netmask to
this interface of the disconnected unit. You can disconnect any unit from the cluster even the primary unit. After
the unit is disconnected the cluster responds as if the disconnected unit has failed. The cluster may renegotiate
and may select a new primary unit.
To disconnect the unit from the cluster, the execute ha disconnect command sets the HA mode of the
disconnected unit to standalone. In addition, all interface IP addresses of the disconnected unit are set to 0.0.0.0.
The interface specified in the command is set to the IP address and netmask that you specify in the command. In
addition all management access to this interface is enabled. Once the FortiGate unit is disconnected you can use
SSH, telnet, HTTPS, or HTTP to connect to and manage the FortiGate unit.
Syntax
execute ha disconnect <cluster-member-serial_str> <interface_str> <address_ipv4>
<address_ipv4mask>
Variable Description
cluster-member-
The serial number of the cluster unit to be disconnected.
serial_str
Example
This example shows how to disconnect a cluster unit with serial number FGT5002803033050. The internal
interface of the disconnected unit is set to IP address 1.1.1.1 and netmask 255.255.255.0.
execute ha disconnect FGT5002803033050 internal 1.1.1.1 255.255.255.0
ha ignore-hardware-revision
Syntax
ha manage
Use this command from the CLI of a FortiGate unit in an HA cluster to log into the CLI of another unit in the
cluster. Usually you would use this command from the CLI of the primary unit to log into the CLI of a subordinate
unit. However, if you have logged into a subordinate unit CLI, you can use this command to log into the primary
unit CLI, or the CLI of another subordinate unit.
You can use CLI commands to manage the cluster unit that you have logged into. If you make changes to the
configuration of any cluster unit (primary or subordinate unit) these changes are synchronized to all cluster units.
Syntax
execute ha manage <cluster-index>
Variable Description
Enter ? to list the cluster indexes of the cluster units that you can
log into. The list does not show the unit that you are already
logged into.
Example
This example shows how to log into a subordinate unit in a cluster of three FortiGate units. In this example you
have already logged into the primary unit. The primary unit has serial number FGT3082103000056. The
subordinate units have serial numbers FGT3012803021709 and FGT3082103021989.
execute ha manage ?
<id> please input slave cluster index.
<0> Subsidary unit FGT3012803021709
<1> Subsidary unit FGT3082103021989
Type 0 and press enter to connect to the subordinate unit with serial number FGT3012803021709 and log in with
a valid administrator account. The CLI prompt changes to the host name of this unit. To return to the primary
unit, type exit.
From the subordinate unit you can also use the execute ha manage command to log into the primary unit or
into another subordinate unit. Enter the following command:
execute ha manage ?
<id> please input slave cluster index.
<1> Subsidary unit FGT3082103021989
<2> Subsidary unit FGT3082103000056
Type 2 and press enter to log into the primary unit or type 1 and press enter to log into the other subordinate unit
with a valid administrator account. The CLI prompt changes to the host name of this unit.
ha synchronize
Use this command from a subordinate unit in an HA cluster to manually synchronize its configuration with the
primary unit or to stop a synchronization process that is in progress.
Syntax
execute ha synchronize {start | stop}
Variable Description
interface dhcpclient-renew
Renew the DHCP client for the specified DHCP interface and close the CLI session. If there is no DHCP
connection on the specified port, there is no output.
Syntax
execute interface dhcpclient-renew <port>
Example
This is the output for renewing the DHCP client on port1 before the session closes:
# execute interface dhcpclient-renew port1
renewing dhcp lease on port1
interface pppoe-reconnect
Reconnect to the PPPoE service on the specified PPPoE interface and close the CLI session. If there is no PPPoE
connection on the specified port, there is no output.
Syntax
execute interface pppoe-reconnect <port>
log backup
Use this command to back up all logs, index files, and report databases. The files are compressed and combined
into a TAR archive.
Syntax
execute log backup <file name>
where <file name> is the name of the backup file to create.
log client-reputation-report
Syntax
log convert-oldlogs
Use this command to convert old compact logs to the new format. This command is available only if you have
upgraded from an earlier version of FortiOS and have old compact logs on your system.
Syntax
execute log convert-oldlogs
log delete-all
Use this command to clear all log entries for this VDOM in memory and current log files on hard disk. If your
FortiGate unit has no hard disk, only log entries in system memory will be cleared. You will be prompted to
confirm the command.
Syntax
execute log delete-all
log delete-oldlogs
Use this command to delete old compact logs. This command is available only if you have upgraded from an
earlier version of FortiOS and have old compact logs on your system.
Syntax
execute log delete-oldlogs
log detail
Display UTM-related log entries for traffic log entries in this VDOM.
Syntax
execute log detail <category> <utm-ref>
where <category> is one of:
2: utm-virus
3: utm-webfilter
4: utm-ips
5: utm-spam
9: utm-dlp
10: utm-app-ctrl
You can obtain <utm-ref> from the execute log display output.
log display
Use this command to display log messages for this VDOM that you have selected with the execute log
filter command.
Syntax
execute log display
The console displays the first 10 log messages. To view more messages, run the command again. You can do
this until you have seen all of the selected log messages. To restart viewing the list from the beginning, use the
commands
execute log filter start-line 1
execute log display
You can restore the log filters to their default values using the command
execute log filter reset
log downgrade-log
Use this command to downgrade existing logs to v5.0 format prior to a firmware downgrade to FortiOS v5.0.
Syntax
execute log downgrade-log
log filter
Use this command to select log messages in this VDOM for viewing or deletion. You can view one log category on
one device at a time. Optionally, you can filter the messages to select only specified date ranges or severities of
log messages. For traffic logs, you can filter log messages by source or destination IP address.
Commands are cumulative. If you omit a required variable, the command displays the current setting.
Use as many execute log filter commands as you need to define the log messages that you want to
view.
Syntax
execute log filter category <category_name>
execute log filter device {disk | memory}
execute log filter dump
execute log filter field <name> <value> [<value2>,...<valuen>] [not]
execute log filter ha-member <unitsn_str>
execute log filter reset [all | field]
execute log filter rolled_number <number>
execute log filter sortby <field> [max-sort-lines]
execute log filter start-line <line_number>
device {disk
Device where the logs are stored. disk
| memory}
No
dump Display current filter settings.
default.
sortby <field> No
Sort logs by specified field.
[max-sort-lines] default.
start-line <line_
Select logs starting at specified line number. 1
number>
Use this command to test the connection to the FortiAnalyzer unit. This command is available only when
FortiAnalyzer is configured.
Syntax
execute log fortianalyzer test-connectivity
Example
When FortiAnalyzer is connected, the output looks like this:
FortiAnalyzer Host Name: FortiAnalyzer-800B
log list
You can view the list of current and rolled log files for this VDOM on the console. The list shows the file name,
size and timestamp.
Syntax
execute log list <category>
To see a list of available categories, enter
Example
The output looks like this:
elog 8704 Fri March 6 14:24:35 2009
elog.1 1536 Thu March 5 18:02:51 2009
elog.2 35840 Wed March 4 22:22:47 2009
At the end of the list, the total number of files in the category is displayed. For example:
501 event log file(s) found.
log rebuild-sqldb
Use this command to rebuild the SQL database from log files.
If run in the VDOM context, only this VDOM’s SQL database is rebuilt. If run in the global context, the SQL
database is rebuilt for all VDOMs.
Syntax
execute log rebuild-sqldb
log recreate-sqldb
Syntax
execute log recreate-sqldb
log-report reset
Use this command to delete all logs, archives and user configured report templates.
Syntax
execute log-report reset
log restore
Use this command to restore up all logs, index files, and report databases from a backup file created with the "log
backup" on page 355 command.
This command will wipe out all existing logs and report database for the vdom. It is only available for debug
firmware builds.
Syntax
execute log restore <file name>
where <file name> is the name of the backup file to use.
log roll
Syntax
execute log roll
log shift-time
Use this command in conjunction with the "log backup" on page 355 and "log restore" on page 361 commands.
You can load a log set generated previously to do demos or testing without needing to regenerate data.
Syntax
execute log shift-time <number of hours>
log upload-progress
Use this command to display the progress of the latest log upload.
Syntax
execute log upload-progress
modem dial
The dial command dials the accounts configured in config system modem until it makes a connection or it
has made the maximum configured number of redial attempts.
Syntax
execute modem dial
modem hangup
Syntax
execute modem hangup
modem trigger
This command sends a signal to the modem daemon, which causes the state machine to re-evaluate its current
state. If for some reason the modem should be connected but isn't, then it will trigger a redial. If the modem
should not be connected but is, this command will cause the modem to disconnect.
Syntax
execute modem trigger
mrouter clear
Syntax
Clear IGMP memberships:
execute mrouter clear igmp-group {{<group-address>} <interface-name>}
execute mrouter clear igmp-interface <interface-name>
Clear multicast routes:
execute mrouter clear <route-type> {<group-address> {<source-address>}}
Clear PIM-SM RP-sets learned from the bootstrap router (BSR):
execute mrouter clear sparse-mode-bsr
Clear statistics:
execute mrouter clear statistics {<group-address> {<source-address>}}
Variable Description
Enter the name of the interface on which you want to clear IGMP
<interface-name>
memberships.
netscan
Use this command to start and stop the network vulnerability scanner and perform related functions.
Syntax
execute netscan import
execute netscan list
execute netscan start scan
execute netscan status
list List the hosts discovered on the last asset discover scan.
pbx
Use this command to view active channels and to delete, list or upload music files for when music is playing while
a caller is on hold.
Syntax
execute pbx active-call <list>
execute pbx extension <list>
execute pbx ftgd-voice-pkg {sip-trunk}
execute pbx music-on-hold {delete | list | upload}
execute pbx prompt upload ftp <file.tgz> <ftp_server_address>[:port] [<username>]
[password>]
execute pbx prompt upload tftp <file.tgz> <ftp_server_address>[:port] [<username>]
[password>]
execute pbx prompt upload usb <file.tgz> <ftp_server_address>[:port] [<username>]
[password>]
execute pbx restore-default-prompts
execute pbx sip-trunk list
Variables Description
Enter to display the status of all extensions with SIP phones that
extension <list>
have connected to the FortiGate Voice unit.
ftgd-voice-pkg
Enter to retrieve FortiGuard voice package sip trunk information.
{sip-trunk}
Enter to either delete, list or upload music on hold files. You can
music-on-hold
upload music on hold files using FTP, TFTP, or from a USB drive
{delete | list | upload}
plugged into the FortiGate Voice unit.
Variables Description
prompt upload ftp Upload new pbx voice prompt files using FTP. The voice prompt
<file.tgz> <ftp_ files should be added to a tar file and zipped. This file would
server_address> usually have the extension tgz. You must include the filename,
[:port] [<username>] FTP server address (domain name of IPv4 address) and if
[password>] required the username and password for the server.
Enter to display the status of all SIP trunks that have been added
sip-trunk list
to the FortiGate Voice configuration.
Call-From Call-To Durationed
6016 6006 00:00:46
Enter the following command to display the status of all extensions
execute pbx extension list
Extension Host Dialplan
6052 Unregister company-default
6051 Unregister company-default
6050 Unregister company-default
6022 Unregister company-default
6021/6021 172.30.63.34 company-default
6020 Unregister company-default
Enter the following command to display the status of all SIP trunks
execute pbx sip-trunk list
Name Host Username Account-Type State
Provider_1 192.169.20.1 +5555555 Static N/A
ping
Send an ICMP echo request (ping) to test the network connection between the FortiGate unit and another
network device.
Syntax
execute ping {<address_ipv4> | <host-name_str>}
<host-name_str> should be an IP address, or a fully qualified domain name.
Example
This example shows how to ping a host with the IP address 172.20.120.16.
#execute ping 172.20.120.16
ping-options, ping6-options
Set ICMP echo request (ping) options to control the way ping tests the network connection between the FortiGate
unit and another network device.
Syntax
execute ping-options data-size <bytes>
execute ping-options df-bit {yes | no}
execute ping-options pattern <2-byte_hex>
execute ping-options repeat-count <repeats>
execute ping-options source {auto | <source-intf_ip>}
execute ping-options timeout <seconds>
execute ping-options tos <service_type>
execute ping-options ttl <hops>
execute ping-options validate-reply {yes | no}
execute ping-options view-settings
Variable Description Default
data-size
Specify the datagram size in bytes. 56
<bytes>
repeat-count
Specify how many times to repeat ping. 5
<repeats>
validate-reply
Select yes to validate reply data. no
{yes | no}
No
view-settings Display the current ping-option settings.
default.
Example
Use the following command to increase the number of pings sent.
execute ping-options repeat-count 10
Use the following command to send all pings from the FortiGate interface with IP address 192.168.10.23.
ping6
Send an ICMP echo request (ping) to test the network connection between the FortiGate unit and an IPv6
capable network device.
Syntax
execute ping6 {<address_ipv6> | <host-name_str>}
Example
This example shows how to ping a host with the IPv6 address 12AB:0:0:CD30:123:4567:89AB:CDEF.
execute ping6 12AB:0:0:CD30:123:4567:89AB:CDEF
policy-packet-capture delete-all
Syntax
execute policy-packet-capture delete-all
You will be asked to confirm that you want delete the packets.
reboot
Abruptly powering off your FortiGate unit may corrupt its configuration.
Using the reboot and shutdown options here or in the web-based manager
ensure proper shutdown procedures are followed to prevent any loss of
configuration.
Syntax
execute reboot <comment “comment_string”>
<comment “comment_string”> allows you to optionally add a message that will appear in the hard disk log
indicating the reason for the reboot. If the message is more than one word it must be enclosed in quotes.
Example
This example shows the reboot command with a message included.
execute reboot comment “December monthly maintenance”
report
Syntax
To generate a report:
execute report run [<layout_name>["start-time" "end-time"]]
The start and end times have the format yyyy-mm-dd hh:mm:ss
report-config reset
Use this command to reset report templates to the factory default. Logs are not deleted.
Syntax
execute report-config reset
restore
A backup of the system configuration from the super admin account contains the global settings and the settings
for all of the VDOMs. Only the super admin account can restore the configuration from this file.
A backup file from a regular administrator account contains the global settings and the settings for the VDOM to
which the administrator belongs. Only a regular administrator account can restore the configuration from this file.
Syntax
execute restore av ftp <filename_str> <server_ipv4[:port_int] | server_fqdn[:port_int]>
[<username_str> <password_str>]
execute restore av tftp <filename_str> <server_ipv4[:port_int]>
execute restore config flash <revision>
execute restore config ftp <filename_str> <server_ipv4[:port_int] | server_fqdn[:port_
int]> [<username_str> <password_str>] [<backup_password_str>]
execute restore config management-station {normal | template | script} <rev_int>
execute restore config tftp <filename_str> <server_ipv4> [<backup_password_str>]
execute restore config usb <filename_str> [<backup_password_str>]
execute restore config usb-mode [<backup_password_str>]
execute restore forticlient tftp <filename_str> <server_ipv4>
execute restore image flash <revision>
execute restore image ftp <filename_str> <server_ipv4[:port_int] | server_fqdn[:port_
int]> [<username_str> <password_str>]
execute restore image management-station <version_int>
execute restore image tftp <filename_str> <server_ipv4>
execute restore image usb <filename_str>
execute restore ips ftp <filename_str> <server_ipv4[:port_int] | server_fqdn[:port_
int]> [<username_str> <password_str>]
execute restore ips tftp <filename_str> <server_ipv4>
execute restore ipsuserdefsig ftp <filename_str> <server_ipv4[:port_int] | server_fqdn
[:port_int]> [<username_str> <password_str>]
execute restore ipsuserdefsig tftp <filename_str> <server_ipv4>
execute restore secondary-image ftp <filename_str> <server_ipv4[:port_int] | server_
fqdn[:port_int]> [<username_str> <password_str>]
execute restore secondary-image tftp <filename_str> <server_ipv4>
execute restore secondary-image usb <filename_str>
execute restore src-vis <src-vis-pkgfile>
execute restore vcm {ftp | tftp} <filename_str> <server_ipv4>
execute restore vmlicense {ftp | tftp} <filename_str> <server_ipv4>
Variable Description
av ftp <filename_
str> <server_ipv4
[:port_int] | server_ Download the antivirus database file from an FTP server to the
fqdn[:port_int]> FortiGate unit.
[<username_str>
<password_str>]
av tftp <filename_
Download the antivirus database file from a TFTP server to the
str> <server_ipv4
FortiGate unit.
[:port_int]>
config flash Restore the specified revision of the system configuration from
<revision> the flash disk.
Variable Description
config ftp
<filename_str>
<server_ipv4[:port_ Restore the system configuration from an FTP server. The new
int] | server_fqdn configuration replaces the existing configuration, including
[:port_int]> administrator accounts and passwords.
[<username_str> If the backup file was created with a password, you must specify
<password_str>] the password.
[<backup_
password_str>]
config tftp Restore the system configuration from a file on a TFTP server.
<filename_str> The new configuration replaces the existing configuration,
<server_ipv4> including administrator accounts and passwords.
[<backup_ If the backup file was created with a password, you must specify
password_str>] the password.
If the backup file was created with a password, you must specify
the password.
image flash
Restore specified firmware image from flash disk.
<revision>
Variable Description
image ftp
<filename_str>
<server_ipv4[:port_ Download a firmware image from an FTP server to the FortiGate
int] | server_fqdn unit. The FortiGate unit reboots, loading the new firmware.
[:port_int]> This command is not available in multiple VDOM mode.
[<username_str>
<password_str>]
image tftp Download a firmware image from a TFTP server to the FortiGate
<filename_str> unit. The FortiGate unit reboots, loading the new firmware.
<server_ipv4> This command is not available in multiple VDOM mode.
image usb Download a firmware image from a USB disk to the FortiGate
<filename_str> unit. The FortiGate unit reboots, loading the new firmware.
ips tftp <filename_ Download the IPS database file from a TFTP server to the
str> <server_ipv4> FortiGate unit.
ipsuserdefsig ftp
<filename_str>
<server_ipv4[:port_
Restore IPS custom signature file from an FTP server. The file
int] | server_fqdn
will overwrite the existing IPS custom signature file.
[:port_int]>
[<username_str>
<password_str>]
ipsuserdefsig tftp
Restore an IPS custom signature file from a TFTP server. The
<filename_str>
file will overwrite the existing IPS custom signature file.
<server_ipv4>
Variable Description
secondary-image ftp
<filename_str>
<server_ipv4[:port_ Download a firmware image from an FTP server as the backup
int] | server_fqdn firmware of the FortiGate unit. Available on models that support
[:port_int]> backup firmware images.
[<username_str>
<password_str>]
src-vis <src-vis-
Download source visibility signature package.
pkgfile>
Example
This example shows how to upload a configuration file from a TFTP server to the FortiGate unit and restart the
FortiGate unit with this configuration. The name of the configuration file on the TFTP server is backupconfig.
The IP address of the TFTP server is 192.168.1.23.
execute restore config tftp backupconfig 192.168.1.23
revision
Use these commands to manage configuration and firmware image files on the local disk.
Syntax
Syntax
execute router clear bfd session <src_ip> <dst_ip> <interface>
Variable Description
Syntax
execute router clear bgp all [soft] [in | out]
execute router clear bgp as <as_number> [soft] [in | out]
execute router clear bgp dampening {ip_address | ip/netmask}
execute router clear bgp external {in prefix-filter} [soft] [in | out]
execute router clear bgp flap-statistics {ip_address | ip/netmask}
execute router clear bgp ip <ip_address> [soft] [in | out]
Variable Description
dampening {ip_
address | Clear route flap dampening information for peer or network.
ip/netmask}
Variable Description
[in | out] Optionally limit clear operation to inbound only or outbound only.
flap-statistics {ip_
address | Clear flap statistics for peer or network.
ip/netmask}
Syntax
IPv4:
execute router clear ospf process
IPv6:
execute router clear ospf6 process
router restart
Syntax
execute router restart
send-fds-statistics
Use this command to send an FDS statistics report now, without waiting for the FDS statistics report interval to
expire.
Syntax
execute send-fds-statistics
sensor detail
Use this command to provide information on the FortiGate's hardware components. This command is only
supported on select FortiGate models. For example, it does not work on the 100D or the 200D but it does work on
the 500D and the 900D.
Syntax
execute sensor detail
Example
sensor list
Use this command to provide information on the FortiGate's hardware components. This command is only
supported on select FortiGate models. For example, it does not work on the 100D or the 200D but it does work on
the 500D and the 900D.
Syntax
execute sensor list
Example
# execute sensor list
1 +3.3V alarm=0 value=3.2856 threshold_status=0
2 +5V alarm=0 value=5.0235 threshold_status=0
3 +12V alarm=0 value=12.136 threshold_status=0
4 CPU VCCP alarm=0 value=0.9609 threshold_status=0
5 CPU VTT alarm=0 value=1.0589 threshold_status=0
6 CPU PVSA alarm=0 value=0.9315 threshold_status=0
7 P1V8 alarm=0 value=1.7841 threshold_status=0
8 P1V5 alarm=0 value=1.4999 threshold_status=0
9 PCH +1.05V alarm=0 value=1.04 threshold_status=0
10 VCC 2V5 alarm=0 value=2.432 threshold_status=0
11 MAIN 12V alarm=0 value=11.904 threshold_status=0
12 VCC 1V15 alarm=0 value=1.136 threshold_status=0
13 DDR3 VTT alarm=0 value=0.736 threshold_status=0
14 RPS 12V alarm=1 value=0 threshold_status=0x7
15 NCT +3.3V alarm=0 value=3.216 threshold_status=0
16 NCT VBAT alarm=0 value=3.264 threshold_status=0
17 NCT +3.3VSB alarm=0 value=3.216 threshold_status=0
18 NCT VTT alarm=0 value=1.04 threshold_status=0
19 DTS CPU alarm=0 value=50 threshold_status=0
20 CPU Core 0 alarm=0 value=49 threshold_status=0
21 CPU Core 1 alarm=0 value=50 threshold_status=0
22 TD1 alarm=0 value=37 threshold_status=0
23 TD2 alarm=0 value=25 threshold_status=0
24 FAN_TMP_3 alarm=0 value=35 threshold_status=0
25 LM75 U72 alarm=0 value=28 threshold_status=0
26 LM75 U65 alarm=0 value=31 threshold_status=0
27 LM75 U62 alarm=0 value=32 threshold_status=0
28 FAN1 alarm=0 value=4900 threshold_status=0
29 FAN2 alarm=0 value=5000 threshold_status=0
30 FAN3 alarm=0 value=4700 threshold_status=0
Use these commands to define the session filter for get system session commands.
Syntax
To specify duration
execute set system session filter duration <duration_range>
To specify expiry
execute set system session filter expire <expire_range>
To specify protocol
execute set system session filter proto <protocol_range>
Variable Description
set-next-reboot
Use this command to start the FortiGate unit with primary or secondary firmware after the next reboot. Available
on models that can store two firmware images. By default, the FortiGate unit loads the firmware from the primary
partition.
VDOM administrators do not have permission to run this command. It must be executed by a super administrator.
Syntax
execute set-next-reboot {primary | secondary}
sfp-mode-sgmii
Change the SFP mode for an NP2 card to SGMII. By default when an AMC card is inserted the SFP mode is set
to SERDES mode by default.
If a configured NP2 card is removed and re-inserted, the SFP mode goes back to the default.
In these situations, the sfpmode-sgmii command will change the SFP mode from SERDES to SGMII for the
interface specified.
Syntax
execute sfpmode-sgmii <interface>
<interface> is the NP2 interface where you are changing the SFP mode.
shutdown
Shut down the FortiGate unit now. You will be prompted to confirm this command.
Abruptly powering off your FortiGate unit may corrupt its configuration.
Using the reboot and shutdown options here or in the web-based manager
ensure proper shutdown procedures are followed to prevent any loss of
configuration.
Syntax
execute shutdown [comment <comment_string>]
comment is optional but you can use it to add a message that will appear in the event log message that records
the shutdown. The comment message of the does not appear on the Alert Message console. If the message is
more than one word it must be enclosed in quotes.
Example
This example shows the reboot command with a message included.
execute shutdown comment “emergency facility shutdown”
An event log message similar to the following is recorded:
2009-09-08 11:12:31 critical admin 41986 ssh(172.20.120.11) shutdown User admin shutdown
the device from ssh(172.20.120.11). The reason is 'emergency facility shutdown'
ssh
Syntax
execute ssh <destination> [<port>]
<destination> - the destination in the form user@ip or user@host.
Example
execute ssh [email protected]
To end an ssh session, type exit:
FGT-6028030112 # exit
Connection to 172.20.120.122 closed.
FGT-8002805000 #
sync-session
Syntax
execute sync-session
Use this command to import a custom language file from a TFTP server.
The web-based manager provides a downloadable template file. Go to System > Config > Advanced.
Syntax
execute system custom-language import <lang_name> <file_name> <tftp_server_ip>
Syntax
execute system fortisandbox test-connectivity
tac report
Use this command to create a debug report to send to Fortinet Support. Normally you would only use this
command if requested to by Fortinet Support.
Syntax
execute tac report
telnet
Use telnet client. You can use this tool to test network connectivity.
Syntax
execute telnet <telnet_ipv4>
<telnet_ipv4> is the address to connect with.
time
Syntax
execute time [<time_str>]
time_str has the form hh:mm:ss, where
If you do not specify a time, the command returns the current system time.
You are allowed to shorten numbers to only one digit when setting the time. For example both 01:01:01 and 1:1:1
are allowed.
Example
This example sets the system time to 15:31:03:
execute time 15:31:03
traceroute
Test the connection between the FortiGate unit and another network device, and display information about the
network hops between the device and the FortiGate unit.
Syntax
execute traceroute {<ip_address> | <host-name>}
Example
This example shows how to test the connection with http://docs.forticare.com. In this example the traceroute
command times out after the first hop indicating a possible problem.
#execute traceoute docs.forticare.com
traceroute to docs.forticare.com (65.39.139.196), 30 hops max, 38 byte packets
1 172.20.120.2 (172.20.120.2) 0.324 ms 0.427 ms 0.360 ms
2 * * *
If your FortiGate unit is not connected to a working DNS server, you will not be able to connect to remote host-
named locations with traceroute.
tracert6
Test the connection between the FortiGate unit and another network device using IPv6 protocol, and display
information about the network hops between the device and the FortiGate unit.
Syntax
tracert6 [-Fdn] [-f first_ttl] [-i interface] [-m max_ttl]
[-s src_addr] [-q nprobes] [-w waittime] [-z sendwait]
host [paddatalen]
Variable Description
-d Enable debugging.
Variable Description
-f <first_ttl> Set the initial time-to-live used in the first outgoing probe packet.
update-av
Use this command to manually initiate the virus definitions and engines update. To update both virus and attack
definitions, use the execute update-now command.
Syntax
execute update-av
update-geo-ip
Use this command to obtain an update to the IP geography database from FortiGuard.
Syntax
execute update-geo-ip
update-ips
Use this command to manually initiate the Intrusion Prevention System (IPS) attack definitions and engine
update. To update both virus and attack definitions, use the execute update-now command.
Syntax
execute update-ips
update-list
Syntax
execute update-list
update-now
Use this command to manually initiate both virus and attack definitions and engine updates. To initiate only virus
or attack definitions, use the execute update-av or execute update-ids command respectively.
Syntax
execute update-now
update-src-vis
Use this command to trigger an FDS update of the source visibility signature package.
Syntax
execute update-src-vis
upd-vd-license
If you have a FortiGate- unit that supports VDOM licenses, you can purchase a license key from Fortinet to
increase the maximum number of VDOMs to 25, 50, 100 or 500. By default, FortiGate units support a maximum
of 10 VDOMs.
Available on FortiGate models that can be licensed for more than 10 VDOMs.
Syntax
execute upd-vd-license <license_key>
Variable Description
upload
Use this command to upload system configurations and firmware images to the flash disk from FTP, TFTP, or
USB sources.
Syntax
<server_fqdn[:port_
Server fully qualified domain name and optional port.
int]>
<server_ipv4[:port_
Server IP address and optional port number.
int]>
<backup_password_
Password for backup file.
str>
usb-device
Syntax
usb-disk
Syntax
execute usb-disk delete <filename>
execute usb-disk format
execute usb-disk list
execute usb-disk rename <old_name> <new_name>
Variable Description
delete <filename> Delete the named file from the USB disk.
rename <old_
name> <new_ Rename a file on the USB disk.
name>
vpn certificate ca
Use this command to import a CA certificate from a TFTP or SCEP server to the FortiGate unit, or to export a CA
certificate from the FortiGate unit to a TFTP server.
Before using this command you must obtain a CA certificate issued by a CA.
Digital certificates are used to ensure that both participants in an IPSec communications session are trustworthy,
prior to an encrypted VPN tunnel being set up between the participants. The CA certificate is the certificate that
the FortiGate unit uses to authenticate itself to other devices.
VPN peers must use digital certificates that adhere to the X.509 standard.
Digital certificates are not required for configuring FortiGate VPNs. Digital
certificates are an advanced feature provided for the convenience of system
administrators. This manual assumes the user has prior knowledge of how
to configure digital certificates for their implementation.
Syntax
execute vpn certificate ca export tftp <certificate-name_str> <file-name_str> <tftp_ip>
execute vpn certificate ca import auto <ca_server_url> <ca_identifier_str>
execute vpn certificate ca import tftp <file-name_str> <tftp_ip>
Variable Description
<certificate-name_
Enter the name of the CA certificate.
str>
Examples
Use the following command to import the CA certificate named trust_ca to the FortiGate unit from a TFTP
server with the address 192.168.21.54.
execute vpn certificate ca import trust_ca 192.168.21.54
Use this command to get a CRL via LDAP, HTTP, or SCEP protocol, depending on the auto-update configuration.
In order to use the command execute vpn certificate crl, the authentication servers must already be configured.
Digital certificates are used to ensure that both participants in an IPSec communications session are trustworthy,
prior to an encrypted VPN tunnel being set up between the participants. The CA certificate is the certificate that
the FortiGate unit uses to authenticate itself to other devices.
VPN peers must use digital certificates that adhere to the X.509 standard.
Digital certificates are not required for configuring FortiGate VPNs. Digital
certificates are an advanced feature provided for the convenience of system
administrators. This manual assumes the user has prior knowledge of how
to configure digital certificates for their implementation.
Syntax
execute vpn certificate crl import auto <crl-name>
Variable Description
Use this command to export a local certificate from the FortiGate unit to a TFTP server.
Digital certificates are used to ensure that both participants in an IPSec communications session are trustworthy,
prior to an encrypted VPN tunnel being set up between the participants. The local certificate is the certificate that
the FortiGate unit uses to authenticate itself to other devices.
VPN peers must use digital certificates that adhere to the X.509 standard.
Digital certificates are not required for configuring FortiGate VPNs. Digital
certificates are an advanced feature provided for the convenience of system
administrators. This manual assumes the user has prior knowledge of how
to configure digital certificates for their implementation.
Syntax
execute vpn certificate local export tftp <certificate-name_str> <file-name_str> <tftp_
ip>
Variable Description
Example
Use the following command to export the local certificate request generated in the above example from the
FortiGate unit to a TFTP server. The example uses the file name testcert for the downloaded file and the
Digital certificates are used to ensure that both participants in an IPSec communications session are trustworthy,
prior to an encrypted VPN tunnel being set up between the participants. The local certificate is the certificate that
the FortiGate unit uses to authenticate itself to other devices.
When you generate a certificate request, you create a private and public key pair for the local FortiGate unit. The
public key accompanies the certificate request. The private key remains confidential.
When you receive the signed certificate from the CA, use the vpn certificate local command to install it
on the FortiGate unit.
VPN peers must use digital certificates that adhere to the X.509 standard.
Digital certificates are not required for configuring FortiGate VPNs. Digital
certificates are an advanced feature provided for the convenience of system
administrators. This manual assumes the user has prior knowledge of how
to configure digital certificates for their implementation.
Syntax
Enter a name for the certificate. The name can contain numbers
<certificate-name_ (0-9), uppercase and lowercase letters (A-Z, a-z), and the special
str> characters - and _. Other special characters and spaces are not
allowed.
Variable Description
Enter 1024, 1536 or 2048 for the size in bits of the encryption
<key-length>
key.
Variable Description
Enter the name of the state or province where the FortiGate unit
<state_name_str>
is located.
Variable Description
<challenge_
Enter the challenge password for the SCEP certificate server.
password>
Example
Use the following command to generate a local certificate request with the name branch_cert, the domain
name www.example.com and a key size of 1536.
execute vpn certificate local generate branch_cert 1536 www.example.com
Use this command to import a local certificate to the FortiGate unit from a TFTP server.
Digital certificates are used to ensure that both participants in an IPSec communications session are trustworthy,
prior to an encrypted VPN tunnel being set up between the participants. The local certificate is the certificate that
the FortiGate unit uses to authenticate itself to other devices.
VPN peers must use digital certificates that adhere to the X.509 standard.
Digital certificates are not required for configuring FortiGate VPNs. Digital
certificates are an advanced feature provided for the convenience of system
administrators. This manual assumes the user has prior knowledge of how
to configure digital certificates for their implementation.
Syntax
execute vpn certificate local import tftp <file-name_str> <tftp_ip>
Variable Description
<certificate-name_
Enter the name of the local certificate.
str>
Variable Description
Example
Use the following command to import the signed local certificate named branch_cert to the FortiGate unit
from a TFTP server with the address 192.168.21.54.
execute vpn certificate local import branch_cert 192.168.21.54
Use this command to import a remote certificate from a TFTP server, or export a remote certificate from the
FortiGate unit to a TFTP server. The remote certificates are public certificates without a private key. They are
used as OCSP (Online Certificate Status Protocol) server certificates.
Syntax
execute vpn certificate remote import tftp <file-name_str> <tftp_ip>
execute vpn certificate remote export tftp <certificate-name_str> <file-name_str>
<tftp_ip>
Field/variable Description
<certificate-name_
Enter the name of the public certificate.
str>
Syntax
execute vpn ipsec tunnel down <phase2> [<phase1> <phase2_serial>]
where:
Syntax
execute vpn ipsec tunnel up <phase2> [<phase1> <phase2_serial>]
where:
Use this command to delete all SSL VPN connections in this VDOM.
Syntax
execute vpn sslvpn del-all
Syntax
execute vpn sslvpn del-tunnel <tunnel_index>
<tunnel_index> identifies which tunnel to delete if there is more than one active tunnel.
Syntax
execute vpn sslvpn del-web <web_index>
<web_index> identifies which web connection to delete if there is more than one active connection.
Syntax
execute vpn sslvpn list {web | tunnel}
webfilter quota-reset
Syntax
execute webfilter quota-reset <wf-profile> <user_ip4addr>
execute webfilter quota-reset <wf-profile> <user_name>
wireless-controller delete-wtp-image
Use this command to delete all firmware images for WLAN Termination Points (WTPs), also known as physical
access points.
Syntax
execute wireless-controller delete-wtp-image
wireless-controller list-wtp-image
Use this command to list all firmware images for WLAN Termination Points (WTPs), also known as WiFi physical
access points.
Syntax
execute wireless-controller list-wtp-image
Example output
WTP Images on AC:
ImageName ImageSize(B) ImageInfo ImageMTime
FAP22A-IMG.wtp 3711132 FAP22A-v4.0-build212 Mon Jun 6 12:26:41 2011
wireless-controller reset-wtp
If the FortiGate unit has a more recent version of the FortiAP firmware, the FortiAP unit will download and install
it. Use the command execute wireless-controller upload-wtp-image to upload FortiAP firmware to the FortiGate
unit.
Syntax
execute wireless-controller reset-wtp {<serialNumber_str> | all}
where <serialNumber_str> is the FortiWiFi unit serial number.
wireless-controller restart-acd
Syntax
execute wireless-controller restart-acd
wireless-controller restart-wtpd
Syntax
execute wireless-controller restart-wtpd
wireless-controller upload-wtp-image
Use this command to upload a FortiWiFi firmware image to the FortiGate unit. Wireless APs controlled by this
wireless controller can download the image as needed. Use the execute wireless-controller reset-wtp command
to trigger FortiAP units to update their firmware.
Syntax
FTP:
execute wireless-controller upload-wtp-image ftp <filename_str> <server_ipv4[:port_
int]> [<username_str> <password_str>]
TFTP:
execute wireless-controller upload-wtp-image tftp <filename_str> <server_ipv4>
get
The get commands retrieve information about the operation and performance of your FortiGate unit.
Syntax
get application internet-service status [<app-id>]
Example output
FG-5KD3914800284 # get application internet-service status 1245324
id: 1245324 app-name: "Fortinet-FortiGuard"
application internet-service-summary
Use this command to display information about the Internet service database.
Syntax
get application internet-service-summary
Example output
FG-5KD3914800284 # get application internet-service-summary
Version: 00002.00679
Timestamp: 201512161002
Number of Entries: 1267
certificate
Display detailed information about local and CA certificates installed on the FortiGate.This is a global level
command. At the VDOM level, use get vpn certificate.
Syntax
get certificate {local | ca} details [certificate_name]
extender modem-status
Syntax
get extender modem-status <serno>
where <serno> is the FortiExtender serial number.
Example output
physical_port: Internal
manufacture: Sierra Wireless, Incorporated
product: AirCard 313U
model: AirCard 313U
revision: SWI9200X_03.05.10.02AP R4684 CARMD-EN-10527 2012/02/25 11:58:38
imsi: 310410707582825
pin_status: READY
service: N/A
signal_strength: 73
RSSI: -68 dBm
connection_status: connected
Profile 1: broadband
Profile 2: broadband
Profile 13: wap.cingular
Profile 15: broadband
NAI: w.tp
Profile: 0 Disabled
home_addr: 127.219.10.128
primary_ha: 127.218.246.40
secondary_ha: 119.75.69.176
aaa_spi: 0
ha_spi: 4
esn_imei: 012615000227604
activation_status: Activated
roaming_status: N/A
usim_status: N/A
oma_dm_version: N/A
plmn: N/A
band: B17
signal_rsrq: N/A
signal_rsrp: N/A
lte_sinr: N/A
lte_rssi: N/A
lte_rs_throughput: N/A
lte_ts_throughput: N/A
lte_physical_cellid: N/A
modem_type:
drc_cdma_evdo: N/A
current_snr: N/A
wireless_operator:
operating_mode: N/A
wireless_signal: 73
usb_wan_mac: 16:78:f7:db:01:07
extender sys-info
Syntax
get extender sys-info
firewall dnstranslation
Syntax
get firewall dnstranslation
Use this command to list all application control signatures added to an application control list and display a
summary of the application control configuration.
Syntax
get firewall iprope appctrl {list | status}
Example output
In this example, the FortiGate unit includes one application control list that blocks the FTP application.
get firewall iprope appctrl list
app-list=app_list_1/2000 other-action=Pass
app-id=15896 list-id=2000 action=Block
Use this command to list all of the FortiGate unit iprope firewall policies. Optionally include a group number in
hexidecimal format to display a single policy. Policies are listed in FortiOS format.
Syntax
get firewall iprope list [<group_number_hex>]
Example output
get firewall iprope list 0010000c
Syntax
For IPv4 policy routes:
get firewall proute
For IPv6 policy routes:
get firewall proute6
Example output
get firewall proute
list route policy info(vf=root):
iff=5 src=1.1.1.0/255.255.255.0 tos=0x00 tos_mask=0x00 dst=0.0.0.0/0.0.0.0 protocol=80
port=1:65535
oif=3 gwy=1.2.3.4
Use this command to view the list of custom services. If you do not specify a <service_name> the command lists
all of the pre-defined services.
Syntax
get firewall service custom
This lists the services.
Example output
This is a partial output.
get firewall service custom
== [ ALL ]
name: ALL
== [ ALL_TCP ]
name: ALL_TCP
== [ ALL_UDP ]
name: ALL_UDP
== [ ALL_ICMP ]
name: ALL_ICMP
== [ ALL_ICMP6 ]
name: ALL_ICMP6
== [ GRE ]
name: GRE
== [ AH ]
name: AH
== [ ESP ]
name: ESP
== [ AOL ]
name: AOL
== [ BGP ]
name: BGP
== [ DHCP ]
name: DHCP
== [ DNS ]
name: DNS
== [ FINGER ]
name: FINGER
firewall shaper
Syntax
grep
In many cases the get and show (and diagnose) commands may produce a large amount of output. If you are
looking for specific information in a large get or show command output you can use the grep command to filter
the output to only display what you are looking for. The grep command is based on the standard UNIX grep,
used for searching text output based on regular expressions.
Information about how to use grep and regular expressions is available from the Internet. For example, see
http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html.
Syntax
{get | show| diagnose} | grep <regular_expression>
Example output
Use the following command to display the MAC address of the FortiGate unit internal interface:
get hardware nic internal | grep Current_HWaddr
Current_HWaddr 00:09:0f:cb:c2:75
Use the following command to display all TCP sessions in the session list and include the session list line number
in the output
get system session list | grep -n tcp
19:tcp 1110 10.31.101.10:1862 172.20.120.122:30670 69.111.193.57:1469 -
27:tcp 3599 10.31.101.10:2061 - 10.31.101.100:22 -
38:tcp 3594 10.31.101.10:4780 172.20.120.122:49700 172.20.120.100:445 -
43:tcp 3582 10.31.101.10:4398 172.20.120.122:49574 24.200.188.171:48726 -
Use the following command to display all lines in HTTP replacement message commands that contain URL
(upper or lower case):
show system replacemsg http | grep -i url
set buffer "<HTML><BODY>The page you requested has been blocked because it contains a
banned word. URL = %%PROTOCOL%%%%URL%%</BODY></HTML>"
config system replacemsg http "url-block"
set buffer "<HTML><BODY>The URL you requested has been blocked. URL =
%%URL%%</BODY></HTML>"
config system replacemsg http "urlfilter-err"
.
.
.
Syntax
get gui console status
Example
The output looks like this:
Preferences:
User: admin
Colour scheme (RGB): text=FFFFFF, background=000000
Font: style=monospace, size=10pt
History buffer=50 lines, external input=disabled
hardware cpu
Use this command to display detailed information about all of the CPUs in your FortiGate unit.
Syntax
get hardware cpu
Example output
get hardware npu legacy list
No npu ports are found
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E4300 @ 1.80GHz
stepping : 13
cpu MHz : 1795.545
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl tm2 est
bogomips : 3578.26
hardware memory
Use this command to display information about FortiGate unit memory use including the total, used, and free
memory.
Syntax
get hardware memory
Example output
get hardware memory
total: used: free: shared: buffers: cached: shm:
Mem: 3703943168 348913664 3355029504 0 192512 139943936 137314304
Swap: 0 0 0
MemTotal: 3617132 kB
MemFree: 3276396 kB
MemShared: 0 kB
Buffers: 188 kB
Cached: 136664 kB
SwapCached: 0 kB
Active: 22172 kB
Inactive: 114740 kB
HighTotal: 1703936 kB
HighFree: 1443712 kB
LowTotal: 1913196 kB
LowFree: 1832684 kB
SwapTotal: 0 kB
SwapFree: 0 kB
hardware nic
Use this command to display hardware and status information about each FortiGate interface. The hardware
information includes details such as the driver name and version and chip revision. Status information includes
transmitted and received packets, and different types of errors.
Syntax
get hardware nic <interface_name>
Variable Description
Example output
get hardware nic port9
Chip_Model FA2/ISCP1B-v3/256MB
FPGA_REV_TAG 06101916
Driver Name iscp1a/b-DE
Driver Version 0.1
Driver Copyright Fortinet Inc.
Link down
Speed N/A
Duplex N/A
State up
Rx_Packets 0
Tx_Packets 0
Rx_Bytes 0
Tx_Bytes 0
Current_HWaddr 00:09:0f:77:09:68
Permanent_HWaddr 00:09:0f:77:09:68
Frame_Received 0
Bad Frame Received 0
Tx Frame 0
Tx Frame Drop 0
Receive IP Error 0
FIFO Error 0
hardware npu
Use this command to display information about the network processor unit (NPU) hardware installed in a
FortiGate unit. The NPUs can be built-in or on an installed AMC module.
Syntax
get hardware npu legacy {list | session <device_name_str> | setting <device_name_str>}
get hardware npu np1 {list | status}
get hardware npu np2 {list | performance <device_id_int> | status <device_id_int>}
get hardware npu np4 {list | status <device_id_int>}
get hardware npu np6 {dce | ipsec-stats | port-list | session-stats <device_id_int> |
sse-stats <device_id_int> | synproxy-stats}
get hardware npu sp {list | status}
Example output
get hardware npu np1 list
ID Interface
0 port9 port10
-- -----
1 amc-dw2/1
ID PORTS
-- -----
2 amc-dw2/2
ISCP2 f7750000 (Neighbor 00000000) 1a29:0703 256MB Base f8aad000 DBG 0x00000000
RX SW Done 0 MTP 0x0
desc_alloc = f7216000
desc_size = 0x2000 count = 0x100
nxt_to_u = 0x0 nxt_to_f = 0x0
Total Interfaces: 4 Total Ports: 4
Number of Interface In-Use: 4
Interface f7750100 netdev 81b1e000 0 Name amc-sw1-1
PHY: Attached
LB Mode 0 LB IDX 0/1 LB Ports: f7750694, 00000000, 00000000, 00000000
Port f7750694 Id 0 Status Down ictr 4
desc = 8128c000
desc_size = 0x00001000 count = 0x00000100
nxt_to_u = 0x00000000 nxt_to_f = 0x00000000
Intf f7750100
Interface f7750264 netdev 81b2cc00 1 Name amc-sw1-2
PHY: Attached
LB Mode 0 LB IDX 0/1 LB Ports: f7750748, 00000000, 00000000, 00000000
Port f7750748 Id 1 Status Down ictr 0
desc = 81287000
desc_size = 0x00001000 count = 0x00000100
nxt_to_u = 0x00000000 nxt_to_f = 0x00000000
Intf f7750264
Interface f77503c8 netdev 81b2c800 2 Name amc-sw1-3
PHY: Attached
LB Mode 0 LB IDX 0/1 LB Ports: f77507fc, 00000000, 00000000, 00000000
Port f77507fc Id 2 Status Down ictr 0
desc = 81286000
desc_size = 0x00001000 count = 0x00000100
nxt_to_u = 0x00000000 nxt_to_f = 0x00000000
Intf f77503c8
Interface f775052c netdev 81b2c400 3 Name amc-sw1-4
PHY: Attached
LB Mode 0 LB IDX 0/1 LB Ports: f77508b0, 00000000, 00000000, 00000000
Port f77508b0 Id 3 Status Down ictr 0
desc = 81281000
desc_size = 0x00001000 count = 0x00000100
nxt_to_u = 0x00000000 nxt_to_f = 0x00000000
Intf f775052c
NAT Information:
cmdq_qw = 0x2000 cmdq = 82160000
head = 0x1 tail = 0x1
APS (Enabled) information:
Session Install when TMM TSE OOE: Disable
Session Install when TMM TAE OOE: Disable
IPS anomaly check policy: Follow config
MSG Base = 82150000 QL = 0x1000 H = 0x0
hardware status
Report information about the FortiGate unit hardware including FortiASIC version, CPU type, amount of memory,
flash drive size, hard disk size (if present), USB flash size (if present), network card chipset, and WiFi chipset
(FortiWifi models). This information can be useful for troubleshooting, providing information about your FortiGate
unit to Fortinet Support, or confirming the features that your FortiGate model supports.
Syntax
get hardware status
Example output
Model name: Fortigate-620B
ASIC version: CP6
ASIC SRAM: 64M
CPU: Intel(R) Core(TM)2 Duo CPU E4300 @ 1.80GHz
RAM: 2020 MB
Compact Flash: 493 MB /dev/sda
Hard disk: 76618 MB /dev/sdb
USB Flash: not available
Network Card chipset: Broadcom 570x Tigon3 Ethernet Adapter (rev.0x5784100)
Syntax
get ips decoder status
Example output
# get ips decoder status
decoder-name: "back_orifice"
decoder-name: "dns_decoder"
port_list: 53
decoder-name: "ftp_decoder"
port_list: 21
decoder-name: "http_decoder"
decoder-name: "im_decoder"
decoder-name: "imap_decoder"
port_list: 143
Ports are shown only for decoders with configurable port settings.
Syntax
get ips rule status
Example output
# get ips rule status
rule-name: "IP.Land"
rule-id: 12588
rev: 2.464
action: pass
status: disable
log: enable
log-packet: disable
severity: 3.high
service: All
location: server, client
os: All
application: All
rule-name: "IP.Loose.Src.Record.Route.Option"
rule-id: 12805
rev: 2.464
action: pass
status: disable
log: enable
log-packet: disable
severity: 2.medium
service: All
location: server, client
os: All
application: All
ips session
Syntax
get ips session
Example output
get ips session
SYSTEM:
memory capacity 279969792
memory used 5861008
ips view-map
Use this command to view the policies examined by IPS. This is mainly used for debugging. If there is no ips view
map, it means IPS is not used or enabled.
Syntax
get ips view-map <id>
Example output
id : 1
id-policy-id : 0
policy-id : 2
vdom-id : 0
which : firewall
Variable Description
id IPS policy ID
policy-id Policy ID
ipsec tunnel
Syntax
mgmt-data status
Syntax
get mgmt-data status
Sample output
FG100D3G12801361 # get mgmt-data status
pbx branch-office
Syntax
get pbx branch-office
Example output
== [ Branch 15 ]
name: Branch 15
== [ Branch 12 ]
name: Branch 12
pbx dialplan
Syntax
get pbx dialplan
Example output
== [ company-default ]
name: company-default
== [ inbound ]
name: inbound
pbx did
Use this command to list the configured direct inward dial (DID) numbers.
Syntax
get pbx did
Example output
== [ Operator ]
name: Operator
== [ Emergency ]
name: Emergency
pbx extension
Syntax
get pbx extension
Example output
== [ 6555 ]
extension: 6555
== [ 6777 ]
extension: 6777
== [ 6111 ]
extension: 6111
pbx ftgd-voice-pkg
Use this command to display the current FortiGate Voice service package status.
Syntax
get pbx ftgd-voice-pkg status
Example output
Status: Activated
Total 1 Packages:
Total 1 Dids:
12345678901
Total 1 Efaxs:
12345678902
Total 0 Tollfrees:
pbx global
Syntax
get pbx global
Example output
block-blacklist : enable
country-area : USA
country-code : 1
efax-check-interval : 5
extension-pattern : 6XXX
fax-admin-email : [email protected]
ftgd-voice-server : service.fortivoice.com
local-area-code : 408
max-voicemail : 60
outgoing-prefix : 9
ring-timeout : 20
rtp-hold-timeout : 0
rtp-timeout : 60
voicemail-extension : *97
pbx ringgrp
Syntax
get pbx ringgrp
Example output
== [ 6001 ]
name: 6001
== [ 6002 ]
name: 6002
pbx sip-trunk
Syntax
get pbx sip-trunk
Example output
== [ __FtgdVoice_1 ]
name: __FtgdVoice_1
pbx voice-menu
Use this command to display the current voice menu and recorder extension configuration.
Syntax
get pbx voice-menu
Example output
comment : general
password : *
press-0:
ring-group : 6001
type : ring-group
press-1:
type : voicemail
press-2:
type : directory
press-3:
type : none
press-4:
type : none
press-5:
type : none
press-6:
type : none
press-7:
type : none
press-8:
type : none
press-9:
type : none
recorder-exten : *30
Use this command to list state information about the neighbors in the bi-directional forwarding table.
Syntax
get router info bfd neighbour
Syntax
get router info bgp <keyword>
<keyword> Description
community Show all BGP routes having their COMMUNITY attribute set.
<keyword> Description
neighbors
[<address_ipv4>
| <address_ipv4>
advertised-routes
| <address_ipv4>
Show information about connections to TCP and BGP neighbors.
received prefix-filter
| <address_ipv4>
received-routes
| <address_ipv4>
routes]
network [<address_ Show general information about the configured BGP networks,
ipv4mask>] including their network addresses and associated prefixes.
network-longer- Show general information about the BGP route that you specify
prefixes <address_ (for example, 12.0.0.0/14) and any specific routes
ipv4mask> associated with the prefix.
prefix-list <name> Show all routes matching configured prefix list <name>.
Example output
get router info bgp memory
Memory type Alloc count Alloc bytes
=================================== ============= ===============
BGP structure : 2 1408
BGP VR structure : 2 104
BGP global structure : 1 56
BGP peer : 2 3440
BGP as list master : 1 24
Community list handler : 1 32
BGP Damp Reuse List Array : 2 4096
BGP table : 62 248
----------------------------------- ------------- ---------------
Syntax
get router info isis interface
get router info isis neighbor
get router info isis is-neighbor
get router info isis database
get router info isis route
get router info isis topology
Use this command to display the FortiGate kernel routing table. The kernel routing table displays information
about all of the routes in the kernel.
Syntax
get router info kernel [<routing_type_int>]
Use this command to display information about a Protocol Independent Multicasting (PIM) configuration.
Multicast routing is supported in the root virtual domain only.
Syntax
get router info multicast <keywords>
<keywords> Description
<keywords> Description
table Show the multicast routing table entries associated with the
[<group-address>] specified multicast group address and/or multicast source
[<source-address>] address.
table-count
Show statistics related to the specified multicast group address
[<group-address>]
and/or multicast source address.
[<source-address>]
Use this command to display information about the FortiGate OSPF configuration and/or the Link-State
Advertisements (LSAs) that the FortiGate unit obtains and generates. An LSA identifies the interfaces of all
OSPF-enabled routers in an area, and provides information that enables OSPF-enabled routers to select the
shortest path to a destination.
Syntax
get router info ospf <keyword>
<keyword> Description
<keyword> Description
adv-
Type adv-router <address_ipv4> to show
router
ospf Advertising Router link states for the router at
<address_
the given IP address.
ipv4>
asbr-
Type asbr-summary to show information about
summary
ASBR summary LSAs.
<target>
nssa-
Type nssa-external to show information about
external
not-so-stubby external LSAs.
<target>
opaque-
Type opaque-area <address_ipv4> to show
area
information about opaque Type 10 (area-local) LSAs
<address_
(see RFC 2370).
ipv4>
opaque-
Type opaque-link <address_ipv4> to show
link
information about opaque Type 9 (link-local) LSAs
<address_
(see RFC 2370).
ipv4>
<keyword> Description
Use this command to show the current states of active routing protocols. Inactive protocols are not displayed.
Syntax
get router info protocols
Syntax
get router info rip <keyword>
<keyword> Description
Syntax
get router info routing-table <keyword>
<keyword> Description
Syntax
get router info vrrp
Example output
Interface: port1, primary IP address: 9.1.1.2
VRID: 1
vrip: 9.1.1.254, priority: 100, state: BACKUP
adv_interval: 1, preempt: 1, start_time: 3
vrdst: 0.0.0.0
Use this command to display information about the BGP IPv6 configuration.
Syntax
get router info6 bgp <keyword>
<keyword> Description
community Show all BGP routes having their COMMUNITY attribute set.
<keyword> Description
neighbors
[<address_ Show information about connections to TCP and BGP neighbors.
ipv6mask>
network [<address_ Show general information about the configured BGP networks,
ipv6mask>] including their network addresses and associated prefixes.
network-longer- Show general information about the BGP route that you specify
prefixes <address_ (for example, 12.0.0.0/14) and any specific routes
ipv6mask> associated with the prefix.
prefix-list <name> Show all routes matching configured prefix list <name>.
Syntax
get router info6 interface <interface_name>
Example output
The command returns the status of the interface and the assigned IPv6 address.
dmz2 [administratively down/down]
2001:db8:85a3:8d3:1319:8a2e:370:7348
fe80::209:fff:fe04:4cfd
Use this command to display the FortiGate kernel routing table. The kernel routing table displays information
about all of the routes in the kernel.
Syntax
get router info6 kernel
Use this command to display information about the OSPF IPv6 configuration.
Syntax
get router info6 ospf
Use this command to display information about the configuration of all IPv6 dynamic routing protocols.
Syntax
get router info6 protocols
Syntax
get router info6 rip
Use this command to display the routes in the IPv6 routing table.
Syntax
get router info6 routing-table <item>
where <item> is one of the following:
Variable Description
switch-controller poe
Syntax
get switch-controller poe <vdom-name> <fortiswitch-id>
Syntax
get system admin list
Example output
# get system admin list
username local device remote started
admin sshv2 port1:172.20.120.148:22 172.20.120.16:4167 2006-08-09 12:24:20
admin https port1:172.20.120.148:443 172.20.120.161:56365 2006-08-09 12:24:20
admin https port1:172.20.120.148:443 172.20.120.16:4214 2006-08-09 12:25:29
Variable Description
local The protocol this session used to connect to the FortiGate unit.
View the status of the currently logged in admin and their session.
Syntax
get system admin status
Example
The output looks like this:
# get system admin status
username: admin
login local: sshv2
login device: port1:172.20.120.148:22
login remote: 172.20.120.16:4167
login vdom: root
login started: 2006-08-09 12:24:20
current time: 2006-08-09 12:32:12
Variable Description
login vdom The virtual domain the admin is current logged into.
system arp
Syntax
get system arp
Example output
# get system arp
Address Age(min) Hardware Addr Interface
172.20.120.16 0 00:0d:87:5c:ab:65 internal
172.20.120.138 0 00:08:9b:09:bb:01 internal
system auto-update
Use this command to display information about the status FortiGuard updates on the FortiGate unit.
Syntax
get system auto-update status
get system auto-update versions
Example output
get system auto-update status
FDN availability: available at Thu Apr 1 08:22:58 2010
system central-management
Syntax
get system central-management
Example
The output looks like this:
system checksum
View the checksums for global, root, and all configurations. These checksums are used by HA to compare the
configurations of each cluster unit.
Syntax
get system checksum status
Example output
# get system checksum status
global: 7a 87 3c 14 93 bc 98 92 b0 58 16 f2 eb bf a4 15
root: bb a4 80 07 42 33 c2 ff f1 b5 6e fe e4 bb 45 fb
all: 1c 28 f1 06 fa 2e bc 1f ed bd 6b 21 f9 4b 12 88
View information about cmdbsvr on the FortiGate unit. FortiManager uses some of this information.
Syntax
get system cmdb status
Example output
# get system cmdb status
version: 1
owner id: 18
update index: 6070
config checksum: 12879299049430971535
last request pid: 68
last request type: 29
last request: 78
Variable Description
The updated index shows how many changes have been made in
update index
cmdb.
system fortianalyzer-connectivity
Display connection and remote disk usage information about a connected FortiAnalyzer unit.
Syntax
get fortianalyzer-connectivity status
Example output
# get system fortianalyzer-connectivity status
Status: connected
Disk Usage: 0%
Command returns information about the status of the FortiGuard Log & Analysis Service including license and
disk information.
Syntax
get system fortiguard-log-service status
Example output
# get system fortiguard-log-service status
FortiGuard Log & Analysis Service
Expire on: 20071231
Total disk quota: 1111 MB
Max daily volume: 111 MB
Current disk quota usage: n/a
COMMAND REPLACED. Command returns information about the status of the FortiGuard service including the
name, version late update, method used for the last update and when the update expires. This information is
shown for the AV Engine, virus definitions, attack definitions, and the IPS attack engine.
Syntax
get system fortiguard-service status
Example output
NAME VERSION LAST UPDATE METHOD EXPIRE
AV Engine 2.002 2006-01-26 19:45:00 manual 2006-06-12 08:00:00
Virus Definitions 6.513 2006-06-02 22:01:00 manual 2006-06-12 08:00:00
Attack Definitions 2.299 2006-06-09 19:19:00 manual 2006-06-12 08:00:00
IPS Attack Engine 1.015 2006-05-09 23:29:00 manual 2006-06-12 08:00:00
system ha-nonsync-csum
Syntax
get system ha-nonsync-csum
system ha status
Use this command to display information about an HA cluster. The command displays general HA configuration
settings. The command also displays information about how the cluster unit that you have logged into is
operating in the cluster.
Usually you would log into the primary unit CLI using SSH or telnet. In this case the get system ha status
command displays information about the primary unit first, and also displays the HA state of the primary unit (the
primary unit operates in the work state). However, if you log into the primary unit and then use the execute ha
manage command to log into a subordinate unit, (or if you use a console connection to log into a subordinate
unit) the get system status command displays information about this subordinate unit first, and also
displays the HA state of this subordinate unit. The state of a subordinate unit is work for an active-active cluster
and standby for an active-passive cluster.
For a virtual cluster configuration, the get system ha status command displays information about how the
cluster unit that you have logged into is operating in virtual cluster 1 and virtual cluster 2. For example, if you
connect to the cluster unit that is the primary unit for virtual cluster 1 and the subordinate unit for virtual cluster 2,
the output of the get system ha status command shows virtual cluster 1 in the work state and virtual
cluster 2 in the standby state. The get system ha status command also displays additional information
about virtual cluster 1 and virtual cluster 2.
Syntax
get system ha status
The command display includes the following fields. For more information see the examples that follow.
Variable Description
Master The list of cluster units changes depending on how you log into
the CLI. Usually you would use SSH or telnet to log into the
Slave
primary unit CLI. In this case the primary unit would be at the top
the list followed by the other cluster units.
Variable Description
If virtual domains are not enabled and you connect to the primary
unit CLI, the HA state of the cluster unit in virtual cluster 1 is
work. The display lists the cluster units starting with the primary
unit.
Variable Description
Use this command to display administrators that are logged into the FortiGate unit.
Syntax
get system info admin status
Example
This shows sample output.
Index User name Login type From
0 admin CLI ssh(172.20.120.16)
1 admin WEB 172.20.120.16
Variable Description
Related topics
"system info admin ssh" on page 434
Use this command to display information about the SSH configuration on the FortiGate unit such as:
Syntax
get system info admin ssh
Example output
# get system info admin ssh
SSH v2 is enabled on port 22
SSH is enabled on the following 1 interfaces:
internal
SSH hostkey DSA fingerprint = cd:e1:87:70:bb:f0:9c:7d:e3:7b:73:f7:44:23:a5:99
SSH hostkey RSA fingerprint = c9:5b:49:1d:7c:ba:be:f3:9d:39:33:4d:48:9d:b8:49
Use this command to list information about the unit’s physical network interfaces.
Syntax
get system interface physical
The output looks like this:
# get system interface physical
== [onboard]
==[dmz1]
mode: static
ip: 0.0.0.0 0.0.0.0
status: down
speed: n/a
==[dmz2]
mode: static
ip: 0.0.0.0 0.0.0.0
status: down
speed: n/a
==[internal]
mode: static
ip: 172.20.120.146 255.255.255.0
status: up
speed: 100
==[wan1]
mode: pppoe
ip: 0.0.0.0 0.0.0.0
status: down
speed: n/a
==[wan2]
mode: static
ip: 0.0.0.0 0.0.0.0
status: down
speed: n/a
==[modem]
mode: static
ip: 0.0.0.0 0.0.0.0
status: down
speed: n/a
Syntax
get system ip-conflict status
system mgmt-csum
FortiManager uses this command to obtain checksum information from FortiGate units.
Syntax
get system mgmt-csum {global | vdom | all}
where
Use this command to display packet distribution and traffic statistics information for the FortiGate firewall.
Syntax
get system performance firewall packet-distribution
get system performance firewall statistics
Variable Description
Display a list of traffic types (browsing, email, DNS etc) and the
statistics number of packets and number of payload bytes accepted by the
firewall for each type since the FortiGate unit was restarted.
Example output
get system performance firewall packet-distribution
getting packet distribution statistics...
0 bytes - 63 bytes: 655283 packets
64 bytes - 127 bytes: 1678278 packets
128 bytes - 255 bytes: 58823 packets
256 bytes - 383 bytes: 70432 packets
384 bytes - 511 bytes: 1610 packets
512 bytes - 767 bytes: 3238 packets
768 bytes - 1023 bytes: 7293 packets
1024 bytes - 1279 bytes: 18865 packets
1280 bytes - 1500 bytes: 58193 packets
> 1500 bytes: 0 packets
Use this command to display FortiGate CPU usage, memory usage, network usage, sessions, virus, IPS attacks,
and system up time.
Syntax
get system performance status
Variable Description
Adding user, system, and nice produces the total CPU usage as
seen on the CPU widget on the web-based system status
dashboard.
Average network The average amount of network traffic in kbps in the last 1, 10
usage and 30 minutes.
The number of viruses the FortiGate unit has caught in the last 1
Virus caught
minute.
The number of IPS attacks that have been blocked in the last 1
IPS attacks blocked
minute.
Uptime How long since the FortiGate unit has been restarted.
Example output
# get system performance status
CPU states: 0% user 0% system 0% nice 100% idle
Memory states: 18% used
Average network usage: 0 kbps in 1 minute, 0 kbps in 10 minutes, 1 kbps in 30 minutes
Average sessions: 5 sessions in 1 minute, 6 sessions in 10 minutes, 5 sessions in 30
minutes
Virus caught: 0 total in 1 minute
IPS attacks blocked: 0 total in 1 minute
Uptime: 9days, 22 hours, 0 minutes
Use this command to display the list of processes running on the FortiGate unit (similar to the Linux top
command).
You can use the following commands when get system performance top is running:
• Press P to sort the processes by the amount of CPU that the processes are using.
• Press M to sort the processes by the amount of memory that the processes are using.
Syntax
get system performance top [<delay_int>] <max_lines_int>]]
Variable Description
Command returns a list of all the sessions active on the FortiGate unit. or the current virtual domain if virtual
domain mode is enabled.
Syntax
get system session list
Example output
PROTO EXPIRE SOURCE SOURCE-NAT DESTINATION DESTINATION-NAT
tcp 0 127.0.0.1:1083 - 127.0.0.1:514 -
tcp 0 127.0.0.1:1085 - 127.0.0.1:514 -
tcp 10 127.0.0.1:1087 - 127.0.0.1:514 -
tcp 20 127.0.0.1:1089 - 127.0.0.1:514 -
tcp 30 127.0.0.1:1091 - 127.0.0.1:514 -
tcp 40 127.0.0.1:1093 - 127.0.0.1:514 -
tcp 60 127.0.0.1:1097 - 127.0.0.1:514 -
tcp 70 127.0.0.1:1099 - 127.0.0.1:514 -
tcp 80 127.0.0.1:1101 - 127.0.0.1:514 -
tcp 90 127.0.0.1:1103 - 127.0.0.1:514 -
tcp 100 127.0.0.1:1105 - 127.0.0.1:514 -
tcp 110 127.0.0.1:1107 - 127.0.0.1:514 -
tcp 103 172.20.120.16:3548 - 172.20.120.133:22 -
tcp 3600 172.20.120.16:3550 - 172.20.120.133:22 -
udp 175 127.0.0.1:1026 - 127.0.0.1:53 -
tcp 5 127.0.0.1:1084 - 127.0.0.1:514 -
tcp 5 127.0.0.1:1086 - 127.0.0.1:514 -
tcp 15 127.0.0.1:1088 - 127.0.0.1:514 -
tcp 25 127.0.0.1:1090 - 127.0.0.1:514 -
tcp 45 127.0.0.1:1094 - 127.0.0.1:514 -
tcp 59 127.0.0.1:1098 - 127.0.0.1:514 -
tcp 69 127.0.0.1:1100 - 127.0.0.1:514 -
tcp 79 127.0.0.1:1102 - 127.0.0.1:514 -
Use this command to display the number of active sessions on the FortiGate unit, or if virtual domain mode is
enabled it returns the number of active sessions on the current VDOM. In both situations it will say ‘the current
VDOM.
Syntax
get system session status
Example output
The total number of sessions for the current VDOM: 3100
Use this command to list the FortiGate session helpers and the protocol and port number configured for each
one.
Syntax
get system sesion-helper-info list
Example output
list builtin help module:
mgcp
dcerpc
rsh
pmap
dns-tcp
dns-udp
rtsp
pptp
sip
mms
tns
h245
h323
ras
tftp
ftp
list session help:
help=pmap, protocol=17 port=111
help=rtsp, protocol=6 port=8554
help=rtsp, protocol=6 port=554
help=pptp, protocol=6 port=1723
help=rtsp, protocol=6 port=7070
help=sip, protocol=17 port=5060
help=pmap, protocol=6 port=111
help=rsh, protocol=6 port=512
help=dns-udp, protocol=17 port=53
help=tftp, protocol=17 port=69
help=tns, protocol=6 port=1521
help=mgcp, protocol=17 port=2727
help=dcerpc, protocol=17 port=135
help=rsh, protocol=6 port=514
help=ras, protocol=17 port=1719
help=ftp, protocol=6 port=21
help=mgcp, protocol=17 port=2427
help=dcerpc, protocol=6 port=135
help=mms, protocol=6 port=1863
help=h323, protocol=6 port=1720
system session-info
Syntax
get system session-info expectation
get system session-info full-stat
get system session-info list
get system session-info statistics
get system session-info ttl
Variable Description
Variable Description
Example output
get system session-info statistics
misc info: session_count=15 exp_count=0 clash=0 memory_tension_drop=0 ephemeral=1/32752
removeable=14
delete=0, flush=0, dev_down=0/0
firewall error stat:
error1=00000000
error2=00000000
error3=00000000
error4=00000000
tt=00000000
cont=00000000
ids_recv=00000000
url_recv=00000000
av_recv=00000000
fqdn_count=00000001
tcp reset stat:
syncqf=0 acceptqf=0 no-listener=227 data=0 ses=0 ips=0
global: ses_limit=0 ses6_limit=0 rt_limit=0 rt6_limit=0
system source-ip
Syntax
get system source-ip
Example output
# get sys source-ip status
The following services force their communication to use
a specific source IP address:
service=NTP source-ip=172.18.19.101
service=DNS source-ip=172.18.19.101
vdom=root service=RADIUS name=server-pc25 source-ip=10.1.100.101
vdom=root service=TACACS+ name=tac_plus_pc25 source-ip=10.1.100.101
system startup-error-log
Use this command to display information about system startup errors. This command only displays information if
an error occurs when the FortiGate unit starts up.
Syntax
get system startup-error-log
Syntax
get system stp list
system status
host name
operation mode
virtual domains status: current VDOM, max number of VDOMs, number of NAT and TP mode VDOMs and
VDOM status
current HA status
system time
Syntax
get system status
Example output
Version: Fortigate-620B v4.0,build0271,100330 (MR2)
Virus-DB: 11.00643(2010-03-31 17:49)
Extended DB: 11.00643(2010-03-31 17:50)
Extreme DB: 0.00000(2003-01-01 00:00)
IPS-DB: 2.00778(2010-03-31 12:55)
FortiClient application signature package: 1.167(2010-04-01 10:11)
Serial-Number: FG600B3908600705
BIOS version: 04000006
Log hard disk: Available
Hostname: 620_ha_1
Operation Mode: NAT
Current virtual domain: root
Max number of virtual domains: 10
Virtual domains status: 1 in NAT mode, 0 in TP mode
Virtual domain configuration: disable
FIPS-CC mode: disable
Current HA mode: a-p, master
Distribution: International
Branch point: 271
Release Version Information: MR2
System time: Thu Apr 1 15:27:29 2010
test
Use this command to display information about FortiGate applications and perform operations on FortiGate
applications. You can specify an application name and a test level. Enter ? to display the list of applications. The
test level performs various functions depending on the application but can include displaying memory usage,
dropping connections and restarting the application.
The test levels are different for different applications. In some cases when you enter the command and include
an application name but no test level (or an invalid test level) the command output includes a list of valid test
levels.
Syntax
get test <application_name_str> <test_level_int>
Example output
get test http
Proxy Worker 0 - http
[0:H] HTTP Proxy Test Usage
[0:H]
[0:H] 2: Drop all connections
[0:H] 22: Drop max idle connections
[0:H] 222: Drop all idle connections
[0:H] 4: Display connection stat
[0:H] 44: Display info per connection
[0:H] 444: Display connections per state
[0:H] 4444: Display per-VDOM statistics
[0:H] 44444: Display information about idle connections
[0:H] 55: Display tcp info per connection
HTTP Stat
Bytes sent 0 (kb)
Bytes received 0 (kb)
Error Count (alloc) 0
Error Count (accept) 0
Error Count (bind) 0
Error Count (connect) 0
Error Count (socket) 0
Error Count (read) 0
Error Count (write) 0
Error Count (retry) 0
Error Count (poll) 0
Error Count (scan reset) 0
Error Count (urlfilter wait) 0
Last Error 0
Web responses clean 0
Web responses scan errors 0
Web responses detected 0
Web responses infected with worms 0
Web responses infected with viruses 0
Web responses infected with susp 0
Web responses file blocked 0
Web responses file exempt 0
Web responses bannedword detected 0
Web requests oversize pass 0
Web requests oversize block 0
URL requests exempt 0
URL requests blocked 0
URL requests passed 0
URL requests submit error 0
URL requests rating error 0
URL requests rating block 0
URL requests rating allow 0
URL requests infected with worms 0
Web requests detected 0
Web requests file blocked 0
Web requests file exempt 0
POST requests clean 0
POST requests scan errors 0
POST requests infected with viruses 0
POST requests infected with susp 0
POST requests file blocked 0
POST requests bannedword detected 0
POST requests oversize pass 0
POST requests oversize block 0
Web request backlog drop 0
Web response backlog drop 0
HTTP Accounting
setup_ok=0 setup_fail=0 conn_ok=0 conn_inp=0
urlfilter=0/0/0 uf_lookupf=0
scan=0 clt=0 srv=0
user adgrp
Syntax
get user adgrp [<dsgroupname>]
If you do not specify a group name, the command returns information for all Directory Service groups. For
example:
== [ DOCTEST/Cert Publishers ]
name: DOCTEST/Cert Publishers server-name: DSserv1
== [ DOCTEST/Developers ]
name: DOCTEST/Developers server-name: DSserv1
== [ DOCTEST/Domain Admins ]
name: DOCTEST/Domain Admins server-name: DSserv1
== [ DOCTEST/Domain Computers ]
name: DOCTEST/Domain Computers server-name: DSserv1
== [ DOCTEST/Domain Controllers ]
name: DOCTEST/Domain Controllers server-name: DSserv1
== [ DOCTEST/Domain Guests ]
name: DOCTEST/Domain Guests server-name: DSserv1
== [ DOCTEST/Domain Users ]
name: DOCTEST/Domain Users server-name: DSserv1
== [ DOCTEST/Enterprise Admins ]
name: DOCTEST/Enterprise Admins server-name: DSserv1
== [ DOCTEST/Group Policy Creator Owners ]
name: DOCTEST/Group Policy Creator Owners server-name: DSserv1
== [ DOCTEST/Schema Admins ]
name: DOCTEST/Schema Admins server-name: DSserv1
If you specify a Directory Service group name, the command returns information for only that group. For example:
name : DOCTEST/Developers
server-name : ADserv1
The server-name is the name you assigned to the Directory Service server when you configured it in the user
fsae command.
vpn certificate
Display detailed information about local and CA certificates installed on the FortiGate. This is a VDOM level
command. The global command is get certificate.
Syntax
get vpn certificate {local | ca} details [certificate_name]
Use this command to display information about FortiGate IPsec VPN IKE gateways.
Syntax
get vpn ike gateway [<gateway_name_str>]
Syntax
get vpn ipsec tunnel details
Use this command to display information about a specified IPsec VPN tunnel.
Syntax
get vpn ipsec tunnel name <tunnel_name_str>
Syntax
get vpn ipsec tunnel summary
Use this command to display information about the FortiGate hardware and software crypto configuration.
Syntax
get vpn ipsec stats crypto
Example output
get vpn ipsec stats crypto
CP6 (encrypted/decrypted):
null: 0 0
des: 0 0
3des: 0 0
aes: 0 0
CP6 (generated/validated):
null: 0 0
md5: 0 0
sha1: 0 0
sha256: 0 0
SOFTWARE (encrypted/decrypted):
null: 0 0
des: 0 0
3des: 0 0
aes: 0 0
SOFTWARE (generated/validated):
null: 0 0
md5: 0 0
sha1: 0 0
sha256: 0 0
Syntax
get vpn ipsec stats tunnel
Example output
#get vpn ipsec stats tunnel
tunnels
total: 0
static/ddns: 0
dynamic: 0
manual: 0
errors: 0
selectors
total: 0
up: 0
Use this command to display information about logged in SSL VPN users and current SSL VPN sessions.
Syntax
get vpn ssl monitor
Example output
Syntax
get vpn status l2tp
Syntax
get vpn status pptp
Use this command to display SSL VPN tunnels and to also verify that the FortiGate unit includes the CP6 or
greater FortiASIC device that supports SSL acceleration.
Syntax
get vpn status ssl hw-acceleration-status
get vpn status ssl list
Variable Description
hw-
Display whether or not the FortiGate unit contains a FortiASIC
acceleration-
device that supports SSL acceleration.
status
webfilter categories
Syntax
get webfilter categories
webfilter ftgd-statistics
Use this command to display FortiGuard Web Filtering rating cache and daemon statistics.
Syntax
get webfilter ftgd-statistics
Example output
get webfilter ftgd-statistics
Rating Statistics:
=====================
DNS failures : 0
DNS lookups : 0
Data send failures : 0
Data read failures : 0
Wrong package type : 0
Hash table miss : 0
Unknown server : 0
Incorrect CRC : 0
Proxy request failures : 0
Request timeout : 0
Total requests : 0
Requests to FortiGuard servers : 0
Server errored responses : 0
Relayed rating : 0
Invalid profile : 0
Allowed : 0
Blocked : 0
Logged : 0
Errors : 0
Cache Statistics:
=====================
Maximum memory : 0
Memory usage : 0
Nodes : 0
Leaves : 0
Prefix nodes : 0
Exact nodes : 0
Requests : 0
Misses : 0
Hits : 0
Prefix hits : 0
Exact hits : 0
No cache directives : 0
Add after prefix : 0
Invalid DB put : 0
DB updates : 0
Percent full : 0%
Branches : 0%
Leaves : 0%
Prefix nodes : 0%
Exact nodes : 0%
Miss rate : 0%
Hit rate : 0%
Prefix hits : 0%
Exact hits : 0%
webfilter status
Syntax
get webfilter status [<refresh-rate_int>]
wireless-controller client-info
Syntax
get wireless-controller client-info <vfid> <interface> <client_ip>
wireless-controller rf-analysis
Use this command to show information about RF conditions at the access point.
Syntax
get wireless-controller rf-analysis [<wtp_id>]
Example output
# get wireless-controller rf-analysis
<wtp-id> wtp id
5 101 6 1 35
6 307 1 8 11
7 82 7 0 16
8 69 8 1 15
9 42 10 0 15
10 53 10 0 14
11 182 1 5 6
12 43 10 0 6
13 20 10 0 5
14 8 10 0 5
Controller: FWF60C3G11004319-0
channel rssi_total
1 418
2 109
3 85
4 64
5 101
6 307
7 82
8 69
9 42
10 53
11 182
12 43
13 20
14 8
wireless-controller scan
Use this command to view the list of access points detected by wireless scanning.
Syntax
get wireless-controller scan
Example output
CMW SSID BSSID CHAN RATE S:N INT CAPS ACT LIVE AGE WIRED
UNN 00:0e:8f:24:18:6d 64 54M 16:0 100 Es N 62576 1668 ?
UNN ftiguest 00:15:55:23:d8:62 157 130M 6:0 100 EPs N 98570 2554 ?
wireless-controller spectral-info
Syntax
get wireless-controller spectral-info
wireless-controller status
Use this command to view the numbers of wtp sessions and clients.
Syntax
get wireless-controller status
Example output
# get wireless-controller status
Wireless Controller :
wtp-session-count: 1
client-count : 1/0
wireless-controller vap-status
Syntax
get wireless-controller vap-status
Example output
# get wireless-controller vap-status
WLAN: mesh.root
name : mesh.root
vdom : root
ssid : fortinet.mesh.root
status : up
mesh backhaul : yes
ip : 0.0.0.0
mac : 00:ff:0a:57:95:ca
station info : 0/0
WLAN: wifi
name : wifi
vdom : root
ssid : ft-mesh
status : up
mesh backhaul : yes
ip : 10.10.80.1
mac : 00:ff:45:e1:55:81
station info : 1/0
wireless-controller wlchanlistlic
Use this command to display a list of the channels allowed in your region, including
the channels permitted for each wireless type (802.11n, for example)
Syntax
get wireless-controller wlchanlistlic
Sample output
country name: UNITED STATES2, country code:841, iso name:US
channels on 802.11A band without channel bonding:
channel= 36 maxRegTxPower= 23 maxTxPower= 63/2 minTxPower= 63/2
channel= 40 maxRegTxPower= 23 maxTxPower= 63/2 minTxPower= 63/2
channel= 44 maxRegTxPower= 23 maxTxPower= 63/2 minTxPower= 63/2
channel= 48 maxRegTxPower= 23 maxTxPower= 63/2 minTxPower= 63/2
channel=149 maxRegTxPower= 30 maxTxPower= 63/2 minTxPower= 63/2
channel=153 maxRegTxPower= 30 maxTxPower= 63/2 minTxPower= 63/2
channel=157 maxRegTxPower= 30 maxTxPower= 63/2 minTxPower= 63/2
channel=161 maxRegTxPower= 30 maxTxPower= 63/2 minTxPower= 63/2
channel=165 maxRegTxPower= 30 maxTxPower= 63/2 minTxPower= 63/2
wireless-controller wtp-status
Syntax
get wireless-controller wtp-status
Example output
# get wireless-controller wtp-status
tree
The tree command displays FortiOS config CLI commands in a tree structure called the configuration tree.
Each configuration command forms a branch of the tree.
Syntax
tree [branch] [sub-branch]
You can enter the tree command from the top of the configuration tree the command displays the complete
configuration tree. Commands are displayed in the order that they are processed when the FortiGate unit starts
up. For example, the following output shows the first 10 lines of tree command output:
tree
-- -- system -- [vdom] --*name (12)
+- vcluster-id (0,0)
|- <global> -- language
|- gui-ipv6
|- gui-voip-profile
|- gui-lines-per-page (20,1000)
|- admintimeout (0,0)
|- admin-concurrent
|- admin-lockout-threshold (0,0)
|- admin-lockout-duration (1,2147483647)
|- refresh (0,2147483647)
|- interval (0,0)
|- failtime (0,0)
|- daily-restart
|- restart-time
...
You can include a branch name with the tree command to view the commands in that branch:
tree user
-- user -- [radius] --*name (36)
|- server (64)
|- secret
|- secondary-server (64)
|- secondary-secret
...
|- [tacacs+] --*name (36)
|- server (64)
|- secondary-server (64)
|- tertiary-server (64)
...
|- [ldap] --*name (36)
|- server (64)
|- secondary-server (64)
|- tertiary-server (64)
|- port (1,65535)
...
You can include a branch and sub branch name with the tree command to view the commands in that sub branch:
tree user local
-- [local] --*name (36)
|- status
|- type
|- passwd
|- ldap-server (36)
|- radius-server (36)
+- tacacs+-server (36)
...
If you enter the tree command from inside the configuration tree the command displays the tree for the
current command:
config user ldap
tree
-- [ldap] --*name (36)
|- server (64)
|- cnid (21)
|- dn (512)
|- port (1,65535)
|- type
...
The tree command output includes information about field limits. These apply in both the CLI and the web-
based manager. For a numeric field, the two numbers in in parentheses show the lower and upper limits. For
example (0,32) indicates that values from 0 to 32 inclusive are accepted. For string values, the number in
parentheses is one more than the maximum number of characters permitted.