Você está na página 1de 764

FortiGate ™

Version 4.0 MR1


Administration Guide

Preliminary version: This version of the FortiGate Administration Guide includes fixes to a
number of bugs reported about the 24 August 2009 version of this guide. We expect to correct
more errors and omissions and release multiple versions between now and October 2009. See
the most recent FortiOS 4.0 MR1 release notes for up-to-date information about new 4.0 MR1
features. Contact techdoc@fortinet.com if you have any questions or comments about this
preliminary version of the FortiOS 4.0 MR1 FortiGate Administration Guide.

Visit http://support.fortinet.com to register your FortiGate product. By registering you can


receive product updates, technical support, and FortiGuard services.
FortiGate Administration Guide
Version 4.0 MR1
3 September 2009
01-410-89802-20090903

© Copyright 2009 Fortinet, Inc. All rights reserved. No part of this publication including text, examples,
diagrams or illustrations may be reproduced, transmitted, or translated in any form or by any means,
electronic, mechanical, manual, optical or otherwise, for any purpose, without prior written permission of
Fortinet, Inc.

Trademarks
Dynamic Threat Prevention System (DTPS), APSecure, FortiASIC, FortiBIOS, FortiBridge, FortiClient,
FortiGate®, FortiGate Unified Threat Management System, FortiGuard®, FortiGuard-Antispam,
FortiGuard-Antivirus, FortiGuard-Intrusion, FortiGuard-Web, FortiLog, FortiAnalyzer, FortiManager,
Fortinet®, FortiOS, FortiPartner, FortiProtect, FortiReporter, FortiResponse, FortiShield, FortiVoIP, and
FortiWiFi are trademarks of Fortinet, Inc. in the United States and/or other countries. The names of actual
companies and products mentioned herein may be the trademarks of their respective owners.
Contents

Contents
Introduction ............................................................................................ 23
Fortinet products .......................................................................................................... 23
About this document .................................................................................................... 24
Registering your Fortinet product............................................................................... 26
Customer service and technical support.................................................................... 26
Training .......................................................................................................................... 27
Documentation ............................................................................................................. 27
Fortinet Tools and Documentation CD ..................................................................... 27
Fortinet Knowledge Base.......................................................................................... 27
Comments on Fortinet technical documentation ..................................................... 27
Scope ............................................................................................................................. 27
Conventions .................................................................................................................. 28
IP addresses............................................................................................................. 28
Notes, Tips and Cautions ......................................................................................... 28
Typographical conventions ....................................................................................... 29
Command syntax conventions.................................................................................. 29

What’s new in FortiOS Version 4.0 MR1 .............................................. 33


New SIP ALG configuration options ........................................................................... 34
Opening and closing SIP register and non-register pinholes.................................... 34
Support for RFC 2543-compliant branch commands ............................................... 34
Easy FortiCare and FortiGuard services registration and renewal.......................... 35
Endpoint control enhancements ................................................................................. 35
Per-VDOM replacement messages.............................................................................. 35
Content archiving is now DLP archive........................................................................ 36
Topology viewer is now a custom web-based manager page .................................. 36
Usage page shows application, policy, and DLP archive usage .............................. 37
Alert Message Console enhancements ...................................................................... 37
WCCP widget................................................................................................................. 37
SSL VPN enhancements............................................................................................... 38
Single Sign-On.......................................................................................................... 38
IP address ranges are now defined as firewall addresses ....................................... 39
OS Check changes................................................................................................... 40
Client check changes................................................................................................ 40
Virtual Desktop enhancements................................................................................. 41
Virtual Desktop Application Control .......................................................................... 42
Two-factor authentication ............................................................................................ 43
Force UTF-8 login..................................................................................................... 44

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 3
http://docs.fortinet.com/ • Feedback
Contents

FortiGate wireless controller ....................................................................................... 44


Interface status detection for gateway load balancing ............................................. 44
Enhanced ECMP route failover and load balancing .................................................. 44
SCEP extensions........................................................................................................... 44
Dynamic routing for IPv6 traffic................................................................................... 47
Additions to router bgp command............................................................................. 47
router access-list6..................................................................................................... 51
router ospf6............................................................................................................... 52
router prefix-list6 ....................................................................................................... 56
router ripng ............................................................................................................... 58
get router info6 {bgp | ospf | protocols | rip} .............................................................. 62
IPv6 DNS ........................................................................................................................ 63
IPv6 transparent mode ................................................................................................. 63
IPv6 administrative access .......................................................................................... 63
Network interface changes for IPv6.......................................................................... 64
Administrator settings ............................................................................................... 65
UTM features support IPv6 traffic................................................................................ 66
HTTP basic authentication in firewall policies ........................................................... 66
VDOM dashboard .......................................................................................................... 66
IPsec protocol improvements...................................................................................... 67
Support for IKE v2 .................................................................................................... 67
Support for DH-2048 (Group 14) .............................................................................. 67
Support for SHA256.................................................................................................. 68
Auto-configuration of IPsec VPNs............................................................................... 69
IPsec Phase 1 CLI configuration for IKE Configuration Method ............................... 69
IPsec Phase 2 configuration for IKE Configuration Method...................................... 71
Integral basic DNS server............................................................................................. 72
Creating local DNS entries ....................................................................................... 72
Enabling DNS on an interface .................................................................................. 73
Per-VDOM DNS configuration...................................................................................... 74
Password policy............................................................................................................ 75
Use LDAP groups in firewall and SSL-VPN authentication ...................................... 76
Traffic shaping enhancements .................................................................................... 77
Shared traffic shaping............................................................................................... 77
Per-IP traffic shaping ................................................................................................ 77
Accounting and quota enforcement .......................................................................... 78
Logging enhancements................................................................................................ 79
Support for per-VDOM FortiAnalyzer units or syslog devices .................................. 79
SQL log format for Executive Summary reports ....................................................... 81
Antivirus changes ......................................................................................................... 82

FortiGate Version 4.0 MR1 Administration Guide


4 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Reliable syslog .............................................................................................................. 83


Web filtering combined block/exempt list .................................................................. 83
Web filtering by content header .................................................................................. 85
Safe search .................................................................................................................... 86
Data Leak Prevention supports international character sets ................................... 86
SNMPv3 enhancements................................................................................................ 87
Support for snmpEngineID ....................................................................................... 87
Authentication and privacy........................................................................................ 87
Schedule groups ........................................................................................................... 88

Web-based manager .............................................................................. 89


Common web-based manager tasks........................................................................... 90
Connecting to the web-based manager.................................................................... 90
Changing your FortiGate administrator password .................................................... 91
Changing the web-based manager language........................................................... 91
Changing administrative access to your FortiGate unit ............................................ 92
Changing the web-based manager idle timeout ....................................................... 92
Connecting to the FortiGate CLI from the web-based manager ............................... 93
Button bar features ....................................................................................................... 93
Contacting Customer Support..................................................................................... 93
Backing up your FortiGate configuration ................................................................... 94
Using FortiGate Online Help ........................................................................................ 94
Searching the online help ......................................................................................... 96
Logging out ................................................................................................................... 97
Web-based manager pages.......................................................................................... 97
Using the web-based manager menu....................................................................... 98
Using web-based manager lists................................................................................ 99
Adding filters to web-based manager lists ................................................................ 99
Using page controls on web-based manager lists .................................................. 102
Using column settings to control the columns displayed ........................................ 103
Using filters with column settings............................................................................ 104
Web-based manager icons......................................................................................... 105

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 5
http://docs.fortinet.com/ • Feedback
Contents

System Status ...................................................................................... 107


Viewing the system dashboard ................................................................................. 107
VDOM and global dashboards................................................................................ 108
Viewing the system dashboard............................................................................... 108
System Information................................................................................................. 109
License Information ................................................................................................ 110
Unit Operation......................................................................................................... 113
System Resources.................................................................................................. 114
Alert Message Console........................................................................................... 115
Log and Archive Statistics ...................................................................................... 117
CLI Console ............................................................................................................ 119
Top Sessions .......................................................................................................... 120
Viewing the current sessions list............................................................................. 122
Top Viruses............................................................................................................. 124
Top Attacks............................................................................................................. 124
Traffic History.......................................................................................................... 124
Changing system information ................................................................................... 125
Configuring system time ......................................................................................... 125
Changing the FortiGate unit host name.................................................................. 126
Changing the FortiGate firmware .............................................................................. 126
Upgrading to a new firmware version ..................................................................... 127
Reverting to a previous firmware version ............................................................... 128
Viewing operational history ....................................................................................... 129
Manually updating FortiGuard definitions ................................................................ 129
Viewing Log and Archive Statistics .......................................................................... 130
Viewing DLP Archive information on the Statistics widget...................................... 130
Viewing the Attack Log ........................................................................................... 132
Configuring AMC modules......................................................................................... 133
Auto-bypass and recovery for AMC bridge module .......................................... 134
Enabling or disabling bypass mode for AMC bridge modules ................................ 135
Viewing application, policy, and DLP archive usage data ...................................... 137
Top Application Usage............................................................................................ 137
Top Policy Usage.................................................................................................... 139
DLP Archive Usage ................................................................................................ 141
Using the topology viewer ......................................................................................... 142
Adding a subnet object ........................................................................................... 145
Customizing the topology diagram ......................................................................... 146

Managing firmware versions............................................................... 147


Backing up your configuration .................................................................................. 148
Backing up your configuration through the web-based manager ........................... 148
Backing up your configuration through the CLI....................................................... 148
Backing up your configuration to a USB key .......................................................... 149

FortiGate Version 4.0 MR1 Administration Guide


6 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Testing firmware before upgrading........................................................................... 150


Upgrading your FortiGate unit................................................................................... 151
Upgrading to FortiOS 4.0 through the web-based manager................................... 151
Upgrading to FortiOS 4.0 through the CLI .............................................................. 152
Verifying the upgrade.............................................................................................. 153
Reverting to a previous firmware image................................................................... 154
Downgrading to a previous firmware through the web-based manager ................. 154
Verifying the downgrade ......................................................................................... 155
Downgrading to a previous firmware through the CLI ............................................ 155
Restoring your configuration..................................................................................... 157
Restoring your configuration settings in the web-based manager.......................... 157
Restoring your configuration settings in the CLI ..................................................... 157

Using virtual domains.......................................................................... 159


Virtual domains ........................................................................................................... 159
Benefits of VDOMs ................................................................................................. 159
VDOM configuration settings .................................................................................. 160
Global configuration settings .................................................................................. 163
Enabling VDOMs ......................................................................................................... 164
Configuring VDOMs and global settings .................................................................. 165
VDOM licenses ....................................................................................................... 165
Creating a new VDOM............................................................................................ 166
Working with VDOMs and global settings............................................................... 167
Adding interfaces to a VDOM ................................................................................. 168
Inter-VDOM links .................................................................................................... 169
Assigning an interface to a VDOM.......................................................................... 170
Assigning an administrator to a VDOM................................................................... 171
Changing the management VDOM......................................................................... 172
Configuring VDOM resource limits ........................................................................... 172
Setting VDOM global resource limits ...................................................................... 173
Configuring resource usage for individual VDOMs................................................. 174

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 7
http://docs.fortinet.com/ • Feedback
Contents

System Network ................................................................................... 177


Configuring interfaces................................................................................................ 177
Switch Mode ........................................................................................................... 180
Interface settings .................................................................................................... 181
Creating a VLAN subinterface ................................................................................ 185
Creating a loopback interface ................................................................................. 185
Creating an 802.3ad aggregate interface ............................................................... 186
Creating a redundant interface ............................................................................... 187
Configuring DHCP on an interface ......................................................................... 188
Configuring an interface for PPPoE........................................................................ 190
Configuring Dynamic DNS on an interface ............................................................. 191
Configuring a virtual IPSec interface ...................................................................... 191
Configuring administrative access to an interface .................................................. 192
Interface status detection for gateway load balancing............................................ 193
Interface MTU packet size ...................................................................................... 195
Secondary IP Addresses ........................................................................................ 196
Adding a software switch interface ......................................................................... 197
Configuring zones....................................................................................................... 198
Configuring the modem interface.............................................................................. 199
Configuring modem settings ................................................................................... 199
Redundant mode configuration............................................................................... 201
Standalone mode configuration .............................................................................. 202
Adding firewall policies for modem connections ..................................................... 203
Connecting and disconnecting the modem............................................................. 203
Checking modem status ......................................................................................... 204
Configuring Networking Options............................................................................... 204
DNS Servers........................................................................................................... 205
Configuring FortiGate DNS services......................................................................... 205
About split DNS ...................................................................................................... 206
Configuring FortiGate DNS services....................................................................... 206
Configuring the FortiGate DNS database ............................................................... 208
Configuring the explicit web proxy ........................................................................... 210
Configuring WCCP...................................................................................................... 212
Routing table (Transparent Mode)............................................................................. 213
Transparent mode route settings............................................................................ 214

System Wireless................................................................................... 215


FortiWiFi wireless interfaces ..................................................................................... 215
Channel assignments ................................................................................................. 216
IEEE 802.11a channel numbers ............................................................................. 216
IEEE 802.11b channel numbers ............................................................................. 216
IEEE 802.11g channel numbers ............................................................................. 217

FortiGate Version 4.0 MR1 Administration Guide


8 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Wireless settings......................................................................................................... 218


Adding a wireless interface..................................................................................... 219
Wireless MAC Filter .................................................................................................... 221
Managing the MAC Filter list................................................................................... 222
Wireless Monitor ......................................................................................................... 223
Rogue AP detection .................................................................................................... 224
Viewing wireless access points .............................................................................. 224

System DHCP ....................................................................................... 227


FortiGate DHCP servers and relays .......................................................................... 227
Configuring DHCP services ....................................................................................... 228
Configuring an interface as a DHCP relay agent.................................................... 229
Configuring a DHCP server .................................................................................... 229
Viewing address leases.............................................................................................. 231
Reserving IP addresses for specific clients ............................................................ 231

System Config ...................................................................................... 233


HA ................................................................................................................................. 233
HA options .............................................................................................................. 233
Cluster members list ............................................................................................... 236
Viewing HA statistics .............................................................................................. 238
Changing subordinate unit host name and device priority...................................... 239
Disconnecting a cluster unit from a cluster ............................................................. 240
SNMP............................................................................................................................ 241
Configuring SNMP .................................................................................................. 242
Configuring an SNMP community........................................................................... 242
Fortinet MIBs .......................................................................................................... 244
Fortinet and FortiGate traps.................................................................................... 245
Fortinet and FortiGate MIB fields............................................................................ 248

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 9
http://docs.fortinet.com/ • Feedback
Contents

Replacement messages ............................................................................................. 250


VDOM and global replacement messages ............................................................. 251
Viewing the replacement messages list.................................................................. 251
Changing replacement messages .......................................................................... 252
Mail replacement messages ................................................................................... 254
HTTP replacement messages ................................................................................ 254
FTP replacement messages................................................................................... 255
NNTP replacement messages................................................................................ 256
Alert Mail replacement messages........................................................................... 256
Spam replacement messages ................................................................................ 257
Administration replacement message..................................................................... 257
Authentication replacement messages................................................................... 258
FortiGuard Web Filtering replacement messages .................................................. 259
IM and P2P replacement messages....................................................................... 260
Endpoint NAC replacement message..................................................................... 261
NAC quarantine replacement messages ................................................................ 261
Traffic quota control replacement messages.......................................................... 262
SSL VPN replacement message ............................................................................ 262
Replacement message tags ................................................................................... 262
Operation mode and VDOM management access ................................................... 263
Changing operation mode ...................................................................................... 263
Management access............................................................................................... 264

System Admin ...................................................................................... 267


Administrators............................................................................................................. 267
Viewing the administrators list ................................................................................ 269
Configuring an administrator account ..................................................................... 270
Changing an administrator account password........................................................ 272
Configuring regular (password) authentication for administrators .......................... 272
Configuring remote authentication for administrators ............................................. 272
Configuring PKI certificate authentication for administrators .................................. 278
Admin profiles ............................................................................................................. 280
Viewing the admin profiles list ................................................................................ 283
Configuring an admin profile................................................................................... 284
Central Management................................................................................................... 285
Settings ........................................................................................................................ 286
Monitoring administrators.......................................................................................... 289
FortiGate IPv6 support ............................................................................................... 289
Customizable web-based manager ........................................................................... 290

FortiGate Version 4.0 MR1 Administration Guide


10 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

System Certificates.............................................................................. 301


Local Certificates ....................................................................................................... 302
Generating a certificate request.............................................................................. 303
Downloading and submitting a certificate request .................................................. 304
Importing a signed server certificate....................................................................... 305
Importing an exported server certificate and private key ........................................ 305
Importing separate server certificate and private key files...................................... 306
Remote Certificates .................................................................................................... 306
Importing Remote (OCSP) certificates ................................................................... 307
CA Certificates ............................................................................................................ 307
Importing CA certificates......................................................................................... 308
CRL............................................................................................................................... 309
Importing a certificate revocation list ...................................................................... 309

System Maintenance............................................................................ 311


About the Maintenance menu .................................................................................... 311
Backing up and restoring........................................................................................... 312
Basic backup and restore options........................................................................... 313
Upgrading and downgrading firmware.................................................................... 316
Upgrading and downgrading firmware through FortiGuard .................................... 317
Configuring advanced options ................................................................................ 318
Managing configuration revisions............................................................................. 319
Using script files ......................................................................................................... 320
Creating script files ................................................................................................. 321
Uploading script files............................................................................................... 321
Configuring FortiGuard Services .............................................................................. 322
FortiGuard Distribution Network ............................................................................. 322
FortiGuard services ................................................................................................ 322
Configuring the FortiGate unit for FDN and FortiGuard subscription services ....... 323
Troubleshooting FDN connectivity ........................................................................... 328
Updating antivirus and attack definitions................................................................. 328
Enabling push updates............................................................................................... 330
Enabling push updates when a FortiGate unit IP address changes ....................... 330
Enabling push updates through a NAT device ....................................................... 331
Adding VDOM Licenses.............................................................................................. 333

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 11
http://docs.fortinet.com/ • Feedback
Contents

Router Static ........................................................................................ 335


Routing concepts ....................................................................................................... 335
How the routing table is built .................................................................................. 336
How routing decisions are made ........................................................................... 336
Multipath routing and determining the best route ................................................... 336
Route priority ......................................................................................................... 337
Blackhole Route...................................................................................................... 337
Static Route ................................................................................................................ 338
Working with static routes ...................................................................................... 338
Default route and default gateway ......................................................................... 340
Adding a static route to the routing table ............................................................... 343
ECMP route failover and load balancing .................................................................. 344
Configuring spill-over or usage-based ECMP......................................................... 346
Configuring weighted static route load balancing ................................................... 348
Policy Route ............................................................................................................... 351
Adding a policy route .............................................................................................. 352
Moving a policy route.............................................................................................. 354

Router Dynamic.................................................................................... 357


RIP ................................................................................................................................ 357
Viewing and editing basic RIP settings................................................................... 358
Selecting advanced RIP options............................................................................. 360
Configuring a RIP-enabled interface....................................................................... 361
OSPF ............................................................................................................................ 362
Defining an OSPF AS—Overview .......................................................................... 363
Configuring basic OSPF settings............................................................................ 364
Selecting advanced OSPF options ......................................................................... 366
Defining OSPF areas.............................................................................................. 367
Specifying OSPF networks ..................................................................................... 368
Selecting operating parameters for an OSPF interface .......................................... 369
BGP .............................................................................................................................. 370
Viewing and editing BGP settings........................................................................... 371
Multicast....................................................................................................................... 372
Viewing and editing multicast settings .................................................................... 373
Overriding the multicast settings on an interface.................................................... 374
Multicast destination NAT ....................................................................................... 374
Bi-directional Forwarding Detection (BFD) .............................................................. 375
Configuring BFD ..................................................................................................... 375

FortiGate Version 4.0 MR1 Administration Guide


12 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Customizable routing widgets ................................................................................... 377


Access List.............................................................................................................. 377
Distribute List .......................................................................................................... 378
Key Chain ............................................................................................................... 378
Offset List................................................................................................................ 379
Prefix List ................................................................................................................ 380
Route Map .............................................................................................................. 380

Router Monitor ..................................................................................... 383


Viewing routing information ...................................................................................... 383
Searching the FortiGate routing table....................................................................... 385

Firewall Policy ...................................................................................... 387


How list order affects policy matching ..................................................................... 387
Moving a policy to a different position in the policy list ........................................... 388
Enabling and disabling policies............................................................................... 389
Multicast policies ........................................................................................................ 389
Viewing the firewall policy list ................................................................................... 390
Configuring firewall policies ...................................................................................... 391
Adding authentication to firewall policies ................................................................ 396
Identity-based firewall policy options (non-SSL-VPN) ............................................ 397
IPSec firewall policy options ................................................................................... 399
Configuring SSL VPN identity-based firewall policies............................................. 400
Using DoS policies to detect and prevent attacks ................................................... 404
Viewing the DoS policy list...................................................................................... 404
Configuring DoS policies ........................................................................................ 406
Using one-arm sniffer policies to detect network attacks ...................................... 406
Viewing the sniffer policy list................................................................................... 407
Configuring sniffer policies...................................................................................... 409
How FortiOS selects unused NAT ports ................................................................... 410
Global pool.............................................................................................................. 411
Global per-protocol pool ......................................................................................... 411
Per NAT IP pool...................................................................................................... 411
Per NAT IP, destination IP, port, and protocol pool ................................................ 412
Firewall policy examples ............................................................................................ 414
Scenario one: SOHO-sized business ..................................................................... 414
Scenario two: enterprise-sized business ................................................................ 417

Firewall Address .................................................................................. 421


About firewall addresses............................................................................................ 421
Viewing the firewall address list................................................................................ 422
Configuring addresses ............................................................................................... 423
Viewing the address group list .................................................................................. 424

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 13
http://docs.fortinet.com/ • Feedback
Contents

Configuring address groups...................................................................................... 424

Firewall Service .................................................................................... 427


Viewing the predefined service list ........................................................................... 427
Viewing the custom service list................................................................................. 432
Configuring custom services..................................................................................... 433
Viewing the service group list ................................................................................... 435
Configuring service groups ....................................................................................... 435

Firewall Schedule................................................................................. 437


Viewing the recurring schedule list........................................................................... 437
Configuring recurring schedules .............................................................................. 438
Viewing the one-time schedule list ........................................................................... 438
Configuring one-time schedules ............................................................................... 439
Configuring schedule groups .................................................................................... 439

Traffic Shaping ..................................................................................... 441


Guaranteed bandwidth and maximum bandwidth ................................................... 441
Traffic priority.............................................................................................................. 442
Traffic shaping considerations.................................................................................. 442
Configuring shared traffic shapers ........................................................................... 443
Configuring Per IP traffic shaping............................................................................. 444
Accounting and quota enforcement.......................................................................... 445

Firewall Virtual IP ................................................................................. 447


How virtual IPs map connections through FortiGate units..................................... 447
Inbound connections............................................................................................... 447
Outbound connections............................................................................................ 450
VIP requirements .................................................................................................... 451
Viewing the virtual IP list............................................................................................ 451
Configuring virtual IPs................................................................................................ 452
Adding a static NAT virtual IP for a single IP address ............................................ 454
Adding a static NAT virtual IP for an IP address range .......................................... 455
Adding static NAT port forwarding for a single IP address and a single port.......... 457
Adding static NAT port forwarding for an IP address range and a port range ........ 459
Adding dynamic virtual IPs ..................................................................................... 460
Adding a virtual IP with port translation only........................................................... 461
Virtual IP Groups......................................................................................................... 462
Viewing the VIP group list .......................................................................................... 462
Configuring VIP groups.............................................................................................. 462

FortiGate Version 4.0 MR1 Administration Guide


14 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

IP pools ........................................................................................................................ 463


IP pools and dynamic NAT ..................................................................................... 464
IP Pools for firewall policies that use fixed ports..................................................... 464
Source IP address and IP pool address matching.................................................. 464
Viewing the IP pool list ............................................................................................... 465
Configuring IP Pools................................................................................................... 465
Double NAT: combining IP pool with virtual IP........................................................ 466
Adding NAT firewall policies in transparent mode .................................................. 468

Firewall Load Balance ......................................................................... 471


How load balancer works ........................................................................................... 471
Configuring virtual servers ........................................................................................ 472
Configuring real servers............................................................................................. 475
Configuring health check monitors........................................................................... 476
Monitoring the servers ............................................................................................... 478

Firewall Protection Profile................................................................... 479


What is a protection profile?...................................................................................... 479
Adding a protection profile to a firewall policy ........................................................ 480
Default protection profiles ......................................................................................... 480
Viewing the protection profile list ............................................................................. 481
SSL content scanning and inspection ...................................................................... 481
Supported FortiGate models................................................................................... 482
Setting up certificates to avoid client warnings ....................................................... 482
Configuring SSL content scanning and inspection ................................................. 484
Configuring a protection profile ................................................................................ 486
Protocol recognition options ................................................................................... 487
Anti-Virus options.................................................................................................... 489
IPS options ............................................................................................................. 492
Web Filtering options .............................................................................................. 493
FortiGuard Web Filtering options............................................................................ 495
Email Filtering options ............................................................................................ 498
Data Leak Prevention Sensor options .................................................................... 501
Application Control options ..................................................................................... 502
Logging options ...................................................................................................... 503

SIP support ........................................................................................... 505


VoIP and SIP ................................................................................................................ 505
The FortiGate unit and VoIP security ........................................................................ 507
SIP NAT.................................................................................................................. 507
How SIP support works .............................................................................................. 509

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 15
http://docs.fortinet.com/ • Feedback
Contents

Configuring SIP ........................................................................................................... 510


Enabling SIP support and setting rate limiting from the web-based manager ........ 510
Enabling SIP support from the CLI ......................................................................... 511
Enabling SIP logging .............................................................................................. 512
Enabling advanced SIP features in an application list ............................................ 512

AntiVirus ............................................................................................... 517


Order of operations..................................................................................................... 517
Antivirus tasks ............................................................................................................ 518
FortiGuard antivirus ................................................................................................ 519
Antivirus settings and controls ................................................................................. 519
File Filter ...................................................................................................................... 521
Built-in patterns and supported file types................................................................ 521
Viewing the file filter list catalog.............................................................................. 522
Creating a new file filter list..................................................................................... 522
Viewing the file filter list .......................................................................................... 523
Configuring the file filter list..................................................................................... 523
File Quarantine ............................................................................................................ 524
Viewing the AutoSubmit list .................................................................................... 525
Configuring the AutoSubmit list .............................................................................. 525
Configuring quarantine options............................................................................... 525
Selecting the virus database...................................................................................... 527
Antivirus CLI configuration........................................................................................ 528

Intrusion Protection ............................................................................. 531


About intrusion protection......................................................................................... 531
Intrusion Protection settings and controls............................................................... 532
When to use Intrusion Protection............................................................................ 532
Signatures.................................................................................................................... 532
Viewing the predefined signature list ...................................................................... 533
Using display filters................................................................................................. 534
Custom signatures...................................................................................................... 535
Viewing the custom signature list ........................................................................... 535
Creating custom signatures .................................................................................... 535
Protocol decoders....................................................................................................... 536
Viewing the protocol decoder list ............................................................................ 536
Upgrading the IPS protocol decoder list ................................................................. 537

FortiGate Version 4.0 MR1 Administration Guide


16 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

IPS sensors.................................................................................................................. 537


Viewing the IPS sensor list ..................................................................................... 537
Adding an IPS sensor ............................................................................................. 538
Configuring IPS sensors ......................................................................................... 538
Configuring filters.................................................................................................... 540
Configuring pre-defined and custom overrides....................................................... 541
Packet logging ........................................................................................................ 543
DoS sensors ................................................................................................................ 545
Viewing the DoS sensor list .................................................................................... 546
Configuring DoS sensors........................................................................................ 546
Understanding the anomalies ................................................................................. 547
Intrusion protection CLI configuration ..................................................................... 548

Web Filter.............................................................................................. 549


Order of web filtering.................................................................................................. 549
How web filtering works ............................................................................................. 550
Web filter controls....................................................................................................... 550
Web content filter........................................................................................................ 552
Viewing the web content filter list catalog ............................................................... 553
Creating a new web content filter list ...................................................................... 553
Viewing the web content filter list............................................................................ 553
Configuring the web content filter list...................................................................... 554
URL filter ...................................................................................................................... 555
Viewing the URL filter list catalog ........................................................................... 556
Creating a new URL filter list .................................................................................. 556
Viewing the URL filter list........................................................................................ 556
Configuring the URL filter list .................................................................................. 557
URL formats............................................................................................................ 558
Moving URLs in the URL filter list ........................................................................... 559
FortiGuard - Web Filter ............................................................................................... 559
Configuring FortiGuard Web Filtering ..................................................................... 560
Viewing the override list.......................................................................................... 560
Configuring administrative override rules ............................................................... 561
Creating local categories ........................................................................................ 563
Viewing the local ratings list.................................................................................... 563
Configuring local ratings ......................................................................................... 564
Category block CLI configuration ............................................................................. 565
FortiGuard Web Filtering reports .............................................................................. 565

Email filtering ....................................................................................... 567


FortiGuard Email Filtering (also called the FortiGuard Antispam Service) ........... 567
Order of email filtering ............................................................................................ 567
Email filter controls ................................................................................................. 568

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 17
http://docs.fortinet.com/ • Feedback
Contents

Banned word ............................................................................................................... 570


Viewing the banned word list catalog ..................................................................... 570
Creating a new banned word list ............................................................................ 571
Viewing the email filtering banned word list............................................................ 571
Adding words to the banned word list..................................................................... 572
IP address and email address black/white lists ....................................................... 573
Viewing the Email Filter IP address list catalog ...................................................... 573
Creating a new IP address list ................................................................................ 573
Viewing the IP address list...................................................................................... 574
Adding an IP address ............................................................................................. 575
Viewing the Email Filter email address list catalog................................................. 575
Creating a new email address list........................................................................... 576
Viewing the email address list ................................................................................ 576
Configuring the email address list........................................................................... 577
Advanced Email Filter configuration......................................................................... 577
config spamfilter mheader ...................................................................................... 577
config spamfilter dnsbl ............................................................................................ 578
Using wildcards and Perl regular expressions ........................................................ 578
Perl regular expression formats.............................................................................. 579
Example regular expressions ................................................................................. 580

Data Leak Prevention........................................................................... 583


DLP Sensors................................................................................................................ 583
Viewing the DLP sensor list .................................................................................... 583
Adding and configuring a DLP sensor .................................................................... 584
Adding or editing a rule or compound rule in a DLP sensor ................................... 585
DLP archiving .............................................................................................................. 588
Configuring DLP archiving ...................................................................................... 589
Configuring spam email message archiving ........................................................... 593
Viewing DLP archives............................................................................................. 594
DLP Rules .................................................................................................................... 594
Viewing the DLP rule list......................................................................................... 594
Adding or configuring DLP rules ............................................................................. 596
DLP Compound Rules ................................................................................................ 599
Viewing the DLP compound rule list ....................................................................... 599
Adding and configuring DLP compound rules ........................................................ 600

Application Control.............................................................................. 603


What is application control? ...................................................................................... 603
FortiGuard application control database.................................................................. 603
Viewing the application control black/white lists .................................................... 604
Creating a new application control black/white list................................................. 605
Configuring an application control black/white list................................................. 605

FortiGate Version 4.0 MR1 Administration Guide


18 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Adding or configuring an application control black/white list entry...................... 606


Application control statistics..................................................................................... 608

IPSec VPN ............................................................................................. 611


Overview of IPSec VPN configuration....................................................................... 611
Policy-based versus route-based VPNs ................................................................... 612
Auto Key ...................................................................................................................... 613
Creating a new phase 1 configuration .................................................................... 614
Defining phase 1 advanced settings....................................................................... 616
Creating a new phase 2 configuration .................................................................... 619
Defining phase 2 advanced settings....................................................................... 619
Manual Key .................................................................................................................. 622
Creating a new manual key configuration .............................................................. 622
Internet browsing configuration ................................................................................ 624
Concentrator ............................................................................................................... 625
Defining concentrator options ................................................................................. 625
Monitoring VPNs ......................................................................................................... 626

PPTP VPN ............................................................................................. 629


PPTP configuration using FortiGate web-based manager...................................... 629
PPTP configuration using CLI commands ............................................................... 631

SSL VPN................................................................................................ 633


ssl.root ......................................................................................................................... 634
Configuring SSL VPN ................................................................................................. 634
SSL VPN web portal.................................................................................................... 635
Default web portal configurations ........................................................................... 636
Configuring web portal settings .............................................................................. 638
Configuring the virtual desktop ............................................................................... 638
Configuring security control .................................................................................... 639
Configuring web portal layout ................................................................................. 640
Session Information widget..................................................................................... 641
Bookmarks widget .................................................................................................. 641
Connection Tool widget .......................................................................................... 644
Tunnel Mode widget ............................................................................................... 645
Virtual Desktop Application Control ......................................................................... 647
Host Check list ............................................................................................................ 648
SSL VPN monitor list .................................................................................................. 649

User ....................................................................................................... 651


Getting started - User authentication ........................................................................ 651

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 19
http://docs.fortinet.com/ • Feedback
Contents

Local user accounts ................................................................................................... 652


Configuring Local user accounts ............................................................................ 652
Remote ......................................................................................................................... 655
RADIUS ........................................................................................................................ 655
Configuring a RADIUS server................................................................................. 656
LDAP ............................................................................................................................ 657
Configuring an LDAP server ................................................................................... 658
TACACS+ ..................................................................................................................... 661
Configuring TACACS+ servers............................................................................... 661
Directory Service......................................................................................................... 662
Configuring a Directory Service server ................................................................... 663
PKI ............................................................................................................................... 664
Configuring peer users and peer groups ................................................................ 665
User Group .................................................................................................................. 666
Firewall user groups ............................................................................................... 667
Directory Service user groups ................................................................................ 668
SSL VPN user groups............................................................................................. 668
Viewing the User group list ..................................................................................... 669
Configuring a user group ........................................................................................ 669
Configuring FortiGuard Web filtering override options............................................ 672
Dynamically assigning VPN client IP addresses from a user group ............... 673
Options......................................................................................................................... 675
Monitor ......................................................................................................................... 676
Firewall user monitor list ......................................................................................... 676
IM user monitor list ................................................................................................. 677
NAC quarantine and the Banned User list................................................................ 678
NAC quarantine and DLP ....................................................................................... 678
NAC quarantine and DLP replacement messages ................................................. 679
Configuring NAC quarantine................................................................................... 679
The Banned User list .............................................................................................. 680

WAN optimization and web caching .................................................. 683


Configuring WAN optimization .................................................................................. 683
Moving a rule to a different position in the rule list.................................................. 685
Configuring a WAN optimization rule ....................................................................... 685
About WAN optimization addresses ....................................................................... 687
Configuring WAN optimization peers ....................................................................... 688
Configuring authentication groups ........................................................................... 689
WAN optimization monitoring.................................................................................... 690
Changing web cache settings.................................................................................... 692

FortiGate Version 4.0 MR1 Administration Guide


20 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Contents

Endpoint NAC....................................................................................... 695


Configuring Endpoint NAC overview ........................................................................ 695
Configuring FortiClient installer download and version enforcement .................. 696
Configuring application detection lists..................................................................... 697
Viewing the application list...................................................................................... 699
Configuring Endpoint NAC profiles .......................................................................... 699
Monitoring endpoints ................................................................................................. 700

Wireless Controller .............................................................................. 703


Configuration overview .............................................................................................. 703
Enabling the wireless controller................................................................................ 703
Configuring FortiWiFi units as managed access points ......................................... 704
Configuring a virtual wireless access point ............................................................. 704
Configuring a physical access point......................................................................... 705
Configuring DHCP for your wireless LAN ................................................................ 707
Configuring firewall policies for the wireless LAN .................................................. 707
Monitoring wireless clients ........................................................................................ 707
Monitoring rogue APs................................................................................................. 707

Log&Report .......................................................................................... 709


Configuring how a FortiGate unit stores logs .......................................................... 710
Remote logging to a FortiAnalyzer unit................................................................... 710
Remote logging to the FortiGuard Analysis and Management Service .................. 712
Remote logging to a Syslog server......................................................................... 713
Local logging to memory......................................................................................... 714
Local logging to disk ............................................................................................... 714
Configuring Alert Email .............................................................................................. 715
Configuring Event logging ......................................................................................... 717
Data Leak Prevention log ....................................................................................... 718
Application Control log............................................................................................ 718
Antivirus log ............................................................................................................ 719
Web filter log........................................................................................................... 719
Spam filter log......................................................................................................... 719
Attack log (IPS)....................................................................................................... 720
Accessing and viewing log messages...................................................................... 720
Accessing logs stored in memory ........................................................................... 721
Accessing logs stored on the hard disk .................................................................. 722
Accessing logs stored on the FortiAnalyzer unit..................................................... 722
Accessing logs stored on the FortiGuard Analysis and Management Service ....... 723
Customizing the display of log messages............................................................... 723
Column settings ...................................................................................................... 724
Filtering log messages............................................................................................ 725

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 21
http://docs.fortinet.com/ • Feedback
Contents

Viewing DLP Archives ................................................................................................ 725


Viewing the File Quarantine list................................................................................. 726
Configuring FortiAnalyzer report schedules ............................................................ 727
Viewing Executive Summary reports from SQL logs .............................................. 730
Viewing FortiAnalyzer reports ................................................................................... 730
Printing your FortiAnalyzer report ........................................................................... 731
Viewing basic traffic reports ...................................................................................... 731
Log severity levels ...................................................................................................... 733
Log types ..................................................................................................................... 734
Traffic log ................................................................................................................ 734
Example configuration: logging all FortiGate traffic ............................................... 735

Index...................................................................................................... 737

FortiGate Version 4.0 MR1 Administration Guide


22 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Introduction Fortinet products

Introduction
Ranging from the FortiGate®-50 series for small businesses to the FortiGate-5000 series
for large enterprises, service providers and carriers, the FortiGate line combines the
FortiOS™ security operating system with FortiASIC™ processors and other hardware to
provide a high-performance array of security and networking functions including:
• firewall, VPN, and traffic shaping
• Intrusion Prevention system (IPS)
• antivirus/antispyware/antimalware
• web filtering
• antispam
• application control (for example, IM and P2P)
• VoIP support (H.323, SIP, and SCCP)
• Layer 2/3 routing
• multiple redundant WAN interface options
FortiGate appliances provide cost-effective, comprehensive protection against network,
content, and application-level threats, including complex attacks favored by
cybercriminals, without degrading network availability and uptime. FortiGate platforms
include sophisticated networking features, such as high availability (active/active,
active/passive) for maximum network uptime, and virtual domain capabilities to separate
various networks requiring different security policies.
This chapter contains the following sections:
• Fortinet products
• About this document
• Registering your Fortinet product
• Customer service and technical support
• Training
• Documentation
• Scope
• Conventions

Fortinet products
Fortinet's portfolio of security gateways and complementary products offers a powerful
blend of ASIC-accelerated performance, integrated multi-threat protection, and constantly
updated, in-depth threat intelligence. This unique combination delivers network, content,
and application security for enterprises of all sizes, managed service providers, and
telecommunications carriers, while providing a flexible, scalable path for expansion. For
more information on the Fortinet product family, go to www.fortinet.com/products.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 23
http://docs.fortinet.com/ • Feedback
About this document Introduction

About this document


This FortiGate Version 4.0 MR1 Administration Guide provides detailed information for
system administrators about FortiGate™ web-based manager and FortiOS options and
how to use them. This guide also contains some information about the FortiGate CLI.
This section of the guide contains a brief explanation of the structure of the guide, and
gives an overview of each chapter.
The administration guide describes web-based manager functions in the same order as
the web-based manager (or GUI) menu. The document begins with several chapters that
provide an overview to help you start using the product: the FortiGate web-based
manager, System Status, Managing Firmware, and Using virtual domains. Following these
chapters, each item in the System, Router, Firewall, UTM, and VPN menus gets a
separate chapter. Then User, WAN optimization, Endpoint NAC, and Log&Report are all
described in single chapters. The document concludes with a detailed index.
VDOM and Global icons appear in this administration guide to indicate that a chapter or
section is part of either the VDOM or Global configuration. VDOM and Global
configuration settings apply only to a FortiGate unit operating with virtual domains
enabled. No distinction is made between these configuration settings when virtual
domains are not enabled.
The most recent version of this document is available from the FortiGate page of the
Fortinet Technical Documentation web site. The information in this document is also
available in a slightly different form as FortiGate web-based manager online help.
You can also find more information about FortiOS from the same FortiGate page, as well
as from the Fortinet Knowledge Base.
This administration guide contains the following chapters:
• What’s new in FortiOS Version 4.0 MR1 lists and describes some of the new features
and changes in FortiOS Version 4.0 MR1.
• Web-based manager introduces the features of the FortiGate web-based manager,
and explains how to connect to it. It also includes information about how to use the
web-based manager online help.
• System Status describes the System Status page, the dashboard of your FortiGate
unit. At a glance you can view the current system status of the FortiGate unit including
serial number, uptime, FortiGuard license information, system resource usage, alert
messages and network statistics. You can also access the CLI from this page. This
section also describes status changes that you can make, including changing the unit
firmware, host name, and system time. Finally this section describes the topology
viewer that is available on all FortiGate models except those with model numbers 50
and 60.
• Managing firmware versions describes upgrading and managing firmware versions.
You should review this section before upgrading your FortiGate firmware because it
contains important information about how to properly back up your current
configuration settings and what to do if the upgrade is unsuccessful.
• Using virtual domains describes how to use virtual domains to operate your FortiGate
unit as multiple virtual FortiGate units, which effectively provides multiple separate
firewall and routing services to multiple networks.
• System Network explains how to configure physical and virtual interfaces and DNS
settings on the FortiGate unit.
• System Wireless describes how to configure the Wireless LAN interface on a
FortiWiFi-60 unit.

FortiGate Version 4.0 MR1 Administration Guide


24 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Introduction About this document

• System DHCP explains how to configure a FortiGate interface as a DHCP server or


DHCP relay agent.
• System Config contains procedures for configuring HA and virtual clustering,
configuring SNMP and replacement messages, and changing the operation mode.
• System Admin guides you through adding and editing administrator accounts, defining
admin profiles for administrators, configuring central management using the
FortiGuard Management Service or FortiManager, defining general administrative
settings such as language, timeouts, and web administration ports.
• System Certificates explains how to manage X.509 security certificates used by
various FortiGate features such as IPSec VPN and administrator authentication.
• System Maintenance details how to back up and restore the system configuration
using a management computer or a USB disk, use revision control, enable FortiGuard
services and FortiGuard Distribution Network (FDN) updates, and enter a license key
to increase the maximum number of virtual domains.
• Router Static explains how to define static routes and create route policies. A static
route causes packets to be forwarded to a destination other than the factory configured
default gateway.
• Router Dynamic explains how to configure dynamic protocols to route traffic through
large or complex networks.
• Router Monitor explains how to interpret the Routing Monitor list. The list displays the
entries in the FortiGate routing table.
• Firewall Policy describes how to add firewall policies to control connections and traffic
between FortiGate interfaces, zones, and VLAN subinterfaces. Also describes how to
add DoS policies to apply DoS sensors to network traffic and how to add sniffer policies
to operate the FortiGate unit as an IDS appliance by sniffing packets for attacks without
actually receiving and otherwise processing the packets
• Firewall Address describes how to configure addresses and address groups for firewall
policies.
• Firewall Service describes available services and how to configure service groups for
firewall policies.
• Firewall Schedule describes how to configure one-time and recurring schedules for
firewall policies.
• Traffic Shaping how to create traffic shaping instances and add them to firewall
policies.
• Firewall Virtual IP describes how to configure and use virtual IP addresses and IP
pools.
• Firewall Load Balance describes how to use FortiGuard load balancing to intercept
incoming traffic and balance it across available servers.
• Firewall Protection Profile describes how to configure protection profiles for firewall
policies.
• SIP support includes some high-level information about VoIP and SIP and describes
how FortiOS SIP support works and how to configure the key SIP features.
• AntiVirus explains how to enable antivirus options when you create a firewall protection
profile.
• Intrusion Protection explains how to configure IPS options when a firewall protection
profile is created.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 25
http://docs.fortinet.com/ • Feedback
Registering your Fortinet product Introduction

• Web Filter explains how to configure web filter options when a firewall protection profile
is created.
• Email filtering explains how to configure email filter options when a firewall protection
profile is created.
• Data Leak Prevention explains how use FortiGate data leak prevention to prevent
sensitive data from leaving your network.
• Application Control describes how to configure the application control options
associated with firewall protection profiles.
• IPSec VPN provides information about the tunnel-mode and route-based (interface
mode) Internet Protocol Security (IPSec) VPN options available through the web-
based manager.
• PPTP VPN explains how to use the web-based manager to specify a range of IP
addresses for PPTP clients.
• SSL VPN provides information about basic SSL VPN settings.
• User describes how to control access to network resources through user
authentication.
• WAN optimization and web caching describes how to use FortiGate units to improve
performance and security of traffic passing between locations on your wide area
network (WAN) or over the Internet by applying WAN optimization and web caching.
• Endpoint NAC describes how to use FortiGate endpoint NAC to enforce the use of
FortiClient End Point Security (Enterprise Edition) in your network.
• Wireless Controller describes how to configure a FortiGate unit to act as a wireless
network controller, managing the wireless Access Point (AP) functionality of FortiWiFi
units
• Log&Report describes how to enable logging, view log files, and view the basic reports
available through the web-based manager.

Registering your Fortinet product


Before you begin, take a moment to register your Fortinet product at the Fortinet Technical
Support web site, https://support.fortinet.com.
Many Fortinet customer services, such as firmware updates, technical support, and
FortiGuard Antivirus and other FortiGuard services, require product registration.
For more information, see the Fortinet Knowledge Center article Registration Frequently
Asked Questions.

Customer service and technical support


Fortinet Technical Support provides services designed to make sure that your Fortinet
products install quickly, configure easily, and operate reliably in your network.
To learn about the technical support services that Fortinet provides, visit the Fortinet
Technical Support web site at https://support.fortinet.com.
You can dramatically improve the time that it takes to resolve your technical support ticket
by providing your configuration file, a network diagram, and other specific information. For
a list of required information, see the Fortinet Knowledge Center article What does
Fortinet Technical Support require in order to best assist the customer?

FortiGate Version 4.0 MR1 Administration Guide


26 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Introduction Training

Training
Fortinet Training Services provides classes that orient you quickly to your new equipment,
and certifications to verify your knowledge level. Fortinet provides a variety of training
programs to serve the needs of our customers and partners world-wide.
To learn about the training services that Fortinet provides, visit the Fortinet Training
Services web site at http://campus.training.fortinet.com, or email them at
training@fortinet.com.

Documentation
The Fortinet Technical Documentation web site, http://docs.fortinet.com, provides the
most up-to-date versions of Fortinet publications, as well as additional technical
documentation such as technical notes.
In addition to the Fortinet Technical Documentation web site, you can find Fortinet
technical documentation on the Fortinet Tools and Documentation CD, and on the Fortinet
Knowledge Center.

Fortinet Tools and Documentation CD


Many Fortinet publications are available on the Fortinet Tools and Documentation CD
shipped with your Fortinet product. The documents on this CD are current at shipping
time. For current versions of Fortinet documentation, visit the Fortinet Technical
Documentation web site, http://docs.fortinet.com.

Fortinet Knowledge Base


The Fortinet Knowledge Center provides additional Fortinet technical documentation,
such as troubleshooting and how-to-articles, examples, FAQs, technical notes, a glossary,
and more. Visit the Fortinet Knowledge Center at http://kb.fortinet.com.

Comments on Fortinet technical documentation


Please send information about any errors or omissions in this or any Fortinet technical
document to techdoc@fortinet.com.

Scope
This document assumes you have already successfully installed a FortiGate unit by
following the instructions in the appropriate FortiGate Installation Guide.
At this stage:
• You have administrative access to the web-based manager and/or CLI.
• The FortiGate unit is integrated into your network.
• The operation mode has been configured.
• The system time, DNS settings, administrator password, and network interfaces have
been configured.
• Firmware, FortiGuard Antivirus and FortiGuard Antispam updates are completed.
Once that basic installation is complete, you can use this document. This document
explains how to use the web-based manager to:
• maintain the FortiGate unit, including backups

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 27
http://docs.fortinet.com/ • Feedback
Conventions Introduction

• reconfigure basic items that were configured during installation


• configure advanced features
This document does not cover all commands for the command line interface (CLI). For
information on the CLI, see the FortiGate CLI Reference.
This document is intended for administrators, not end users.

Conventions
Fortinet technical documentation uses the conventions described below.

IP addresses
To avoid publication of public IP addresses that belong to Fortinet or any other
organization, the IP addresses used in Fortinet technical documentation are fictional and
follow the documentation guidelines specific to Fortinet. The addresses used are from the
private IP address ranges defined in RFC 1918: Address Allocation for Private Internets,
available at http://ietf.org/rfc/rfc1918.txt?number-1918.

Notes, Tips and Cautions


Fortinet technical documentation uses the following guidance and styles for notes, tips
and cautions.

Tip: Highlights useful additional information, often tailored to your workplace activity.

Note: Also presents useful information, but usually focused on an alternative, optional
method, such as a shortcut, to perform a step.

Caution: Warns you about commands or procedures that could have unexpected or
undesirable results including loss of data or damage to equipment.

FortiGate Version 4.0 MR1 Administration Guide


28 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Introduction Conventions

Typographical conventions
Fortinet documentation uses the following typographical conventions:
Table 1: Typographical conventions in Fortinet technical documentation

Convention Example
Button, menu, text box, From Minimum log level, select Notification.
field, or check box label
CLI input* config system dns
set primary <address_ipv4>
end
CLI output FGT-602803030703 # get system settings
comments : (null)
opmode : nat
Emphasis HTTP connections are not secure and can be intercepted by
a third party.
File content <HTML><HEAD><TITLE>Firewall
Authentication</TITLE></HEAD>
<BODY><H4>You must authenticate to use this
service.</H4>
Hyperlink Visit the Fortinet Technical Support web site,
https://support.fortinet.com.
Keyboard entry Type a name for the remote VPN peer or client, such as
Central_Office_1.
Navigation Go to VPN > IPSEC > Auto Key (IKE).
Publication For details, see the FortiGate Administration Guide.
* For conventions used to represent command syntax, see “Command syntax conventions” on
page 29.

Command syntax conventions


The command line interface (CLI) requires that you use valid syntax, and conform to
expected input constraints. It will reject invalid commands.
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.
Table 2: Command syntax notation

Convention Description
Square brackets [ ] A non-required word or series of words. For example:
[verbose {1 | 2 | 3}]
indicates that you may either omit or type both the verbose word and
its accompanying option, such as:
verbose 3

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 29
http://docs.fortinet.com/ • Feedback
Conventions Introduction

Table 2: Command syntax notation


Angle brackets < > A word constrained by data type.
To define acceptable input, the angled brackets contain a descriptive
name followed by an underscore ( _ ) and suffix that indicates the
valid data type. For example:
<retries_int>
indicates that you should enter a number of retries, such as 5.
Data types include:
• <xxx_name>: A name referring to another part of the
configuration, such as policy_A.
• <xxx_index>: An index number referring to another part of the
configuration, such as 0 for the first static route.
• <xxx_pattern>: A regular expression or word with wild cards
that matches possible variations, such as *@example.com to
match all email addresses ending in @example.com.
• <xxx_fqdn>: A fully qualified domain name (FQDN), such as
mail.example.com.
• <xxx_email>: An email address, such as
admin@mail.example.com.
• <xxx_url>: A uniform resource locator (URL) and its associated
protocol and host name prefix, which together form a uniform
resource identifier (URI), such as
http://www.fortinet./com/.
• <xxx_ipv4>: An IPv4 address, such as 192.168.1.99.
• <xxx_v4mask>: A dotted decimal IPv4 netmask, such as
255.255.255.0.
• <xxx_ipv4mask>: A dotted decimal IPv4 address and netmask
separated by a space, such as
192.168.1.99 255.255.255.0.
• <xxx_ipv4/mask>: A dotted decimal IPv4 address and CIDR-
notation netmask separated by a slash, such as such as
192.168.1.99/24.
• <xxx_ipv6>: A colon( : )-delimited hexadecimal IPv6 address,
such as 3f2e:6a8b:78a3:0d82:1725:6a2f:0370:6234.
• <xxx_v6mask>: An IPv6 netmask, such as /96.
• <xxx_ipv6mask>: An IPv6 address and netmask separated by a
space.
• <xxx_str>: A string of characters that is not another data type,
such as P@ssw0rd. Strings containing spaces or special
characters must be surrounded in quotes or use escape
sequences.
• <xxx_int>: An integer number that is not another data type,
such as 15 for the number of minutes.
Curly braces { } A word or series of words that is constrained to a set of options
delimited by either vertical bars or spaces.
You must enter at least one of the options, unless the set of options is
surrounded by square brackets [ ].

FortiGate Version 4.0 MR1 Administration Guide


30 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Introduction Conventions

Table 2: Command syntax notation

Options delimited Mutually exclusive options. For example:


by vertical bars | {enable | disable}
indicates that you must enter either enable or disable, but must
not enter both.
Options delimited Non-mutually exclusive options. For example:
by spaces {http https ping snmp ssh telnet}
indicates that you may enter all or a subset of those options, in any
order, in a space-delimited list, such as:
ping https ssh
Note: To change the options, you must re-type the entire list. For
example, to add snmp to the previous example, you would type:
ping https snmp ssh
If the option adds to or subtracts from the existing list of options,
instead of replacing it, or if the list is comma-delimited, the exception
will be noted.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 31
http://docs.fortinet.com/ • Feedback
Conventions Introduction

FortiGate Version 4.0 MR1 Administration Guide


32 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1

What’s new in FortiOS Version 4.0


MR1
This section lists and describes some of the new features and changes in FortiOS Version
4.0 MR1.

Note: This document is a work in progress. Some sections may be inaccurate or


incomplete.

• New SIP ALG configuration options


• Easy FortiCare and FortiGuard services registration and renewal
• Endpoint control enhancements
• Per-VDOM replacement messages
• Content archiving is now DLP archive
• Topology viewer is now a custom web-based manager page
• Usage page shows application, policy, and DLP archive usage
• Alert Message Console enhancements
• WCCP widget
• SSL VPN enhancements
• Two-factor authentication
• FortiGate wireless controller
• Interface status detection for gateway load balancing
• Enhanced ECMP route failover and load balancing
• SCEP extensions
• Dynamic routing for IPv6 traffic
• IPv6 DNS
• IPv6 transparent mode
• IPv6 administrative access
• UTM features support IPv6 traffic
• HTTP basic authentication in firewall policies
• VDOM dashboard
• IPsec protocol improvements
• Auto-configuration of IPsec VPNs
• Integral basic DNS server
• Per-VDOM DNS configuration
• Password policy
• Use LDAP groups in firewall and SSL-VPN authentication
• Traffic shaping enhancements

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 33
http://docs.fortinet.com/ • Feedback
New SIP ALG configuration options What’s new in FortiOS Version 4.0 MR1

• Logging enhancements
• Antivirus changes
• Reliable syslog
• Web filtering combined block/exempt list
• Web filtering by content header
• Safe search
• Data Leak Prevention supports international character sets
• SNMPv3 enhancements
• Schedule groups

New SIP ALG configuration options


The following SIP application level gateway (ALG) configuration options for have been
added to FortiOS 4.0 MR1. You can configure these options from the CLI using the
following command:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set open-register-pinhole {disable | enable}
set open-contact-pinhole {disable | enable}
set rfc2543-branch {disable | enable}
end
end

Opening and closing SIP register and non-register pinholes


You can use open-register-pinhole and open-contact-pinhole to control
whether the FortiGate unit opens register and non-register pinholes. Non-register pinholes
are usually opened for SIP invite requests.
For more information, see “Opening and closing SIP register and non-register pinholes”
on page 515.

Support for RFC 2543-compliant branch commands


The rfc2543-branch CLI keyword of the config application list command has
been added to support RFC 2543-complaint SIP calls involving branch commands that
are missing or that are valid for RFC 2543 but invalid for RFC 3261.
For more information, see “Support for RFC 2543-compliant branch commands” on
page 516.

FortiGate Version 4.0 MR1 Administration Guide


34 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Easy FortiCare and FortiGuard services registration and renewal

Easy FortiCare and FortiGuard services registration and renewal


FortiOS Version 4.0 MR1 firmware helps you to register your FortiGate unit for FortiGuard
and FortiCare services. When a new FortiGate unit is powered on, it automatically
searches for FortiGuard services. If the unit is configured for central management, it will
look for FortiGuard services on its FortiManager system. The FortiGate unit sends its
serial number to FortiGuard services, which then determines whether the FortiGate unit is
registered and has a valid contract for either a FortiGuard subscription or FortiCare
support services.
For more information, see “License Information” on page 110.

Endpoint control enhancements


Endpoint Control is now called Endpoint NAC (Network Access Control), which better
describes its role in controlling endpoint access to the network.
The configuration for required FortiClient software version is now in Endpoint NAC >
Config. Configuration options are the same as in the previous release.
FortiOS 4.0 provided only software detection on endpoints. FortiOS 4.0 MR1 can allow or
block endpoints based on detected software. The Software Detection List is now called an
Application Detection List and you can create multiple lists.
FortiGuard services provides all application signatures. You create your application
detection list entries by selecting applications from lists of categories, vendors, and
application names. Go to Endpoint NAC > Application Detection > Detection List. to create
detection lists. To view application information from FortiGuard services, go to
Endpoint NAC > Application Detection > Predefined.
Endpoint check options are no longer configured in the firewall policy. These options and
the application detection list are now selected in an Endpoint NAC profile. In the firewall
policy, you simply enable Endpoint NAC and select the Endpoint NAC profile to apply.
For more information, see “Endpoint NAC” on page 695.

Per-VDOM replacement messages


FortiOS 4.0 MR1 enables you to define replacement messages in each VDOM. In
previous releases, replacement messages were defined only at the global level. By
default, the VDOM uses the global replacement messages. You can modify any message
for your VDOM as needed, overriding the global message.
When defining replacement messages, you can optionally reset the message to its
original value. At the global level, you can reset the message to the factory default. At the
VDOM level, you can reset the message to the current global value.
In the web-based manager, each VDOM has a replacement messages configuration page
at System > Config > Replacement Messages, as exists at the global level. Modify the
messages as needed.
For more information, see “Replacement messages” on page 250.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 35
http://docs.fortinet.com/ • Feedback
Content archiving is now DLP archive What’s new in FortiOS Version 4.0 MR1

Content archiving is now DLP archive


In FortiOS 4.0 MR1 the content archiving feature has been renamed DLP archive. Just
like content archiving, administrators use DLP archiving to collect and view historical logs
that have been archived to a FortiAnalyzer unit or FortiGuard Analysis server. DLP
archiving is available for FortiAnalyzer when you add a FortiAnalyzer unit to the FortiGate
configuration. A FortiGuard Analysis server becomes available when you subscribe to the
FortiGuard Analysis and Management Service.
For more information, see “Configuring DLP archiving” on page 589.

Topology viewer is now a custom web-based manager page


The Topology page is no longer part of the default web-based manager configuration. To
access this feature, create a custom menu layout in your administrative profile and add
the Topology page. It is in the Additional content category.

FortiGate Version 4.0 MR1 Administration Guide


36 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Usage page shows application, policy, and DLP archive usage

Usage page shows application, policy, and DLP archive usage


In FortiOS 4.0 MR1, you can view statistics about application traffic passing through your
FortiGate unit.
The Usage widget has three modules:
• Top Application Usage
• Top Policy Usage
• DLP Archive Usage
By default, the Usage widget displays on the System > Status > Usage page for both
global and VDOM administrators. You can also add the Usage widget to custom web-
based manager pages.
For more information, see “Viewing application, policy, and DLP archive usage data” on
page 137.

Alert Message Console enhancements


In FortiOS 4.0 MR1, the Alert Message Console provides more types of alerts, is more
configurable, and enables you to acknowledge messages one at a time.
To view the Alert Message Console, go to System > Status.
For more information, see “Alert Message Console” on page 115.

WCCP widget
Using the FortiOS 4.0 customizeable GUI feature you can add a WCCP widget to the
web-based manager and use this widget to add WCCP entries to the FortiGate
configuration.
For more information, see “Configuring WCCP” on page 212.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 37
http://docs.fortinet.com/ • Feedback
SSL VPN enhancements What’s new in FortiOS Version 4.0 MR1

SSL VPN enhancements


Single Sign-On
With this new feature, a web bookmark can include login credentials so that the SSL VPN
automatically logs the user into the web site. This means that the user logs into the SSL
VPN and then does not have to enter any more credentials to visit preconfigured web
sites. When the administrator configures bookmarks, the web site credentials must be the
same as the user’s SSL VPN credentials. Users configuring their own bookmarks can
specify alternative credentials for the web site.

To configure Single Sign-On bookmarks - web-based manager


1 Go to VPN > SSL > Portal and select the Edit icon for the portal.
2 Select the Edit icon in the Bookmarks widget title bar.
If the Bookmarks widget is missing, select Bookmarks from the Add Widget list.
3 In the Bookmarks widget, select Add.
4 Enter the following information:

Figure 1: Configuring an SSO bookmark

Name Enter a name for the bookmark.


Type The type must be HTTP/HTTPS for an SSO bookmark.
Location Enter the bookmark location (URL without “http://” or “https://”).
Description Optionally, enter a description of the web site.
SSO Disabled — This is not an SSO bookmark.
Automatic — Use user’s SSL VPN credentials for login.
Static — Fill in the login credentials as defined below.
Field Name Enter a required login page field name, “User Name” for example.
Value Enter the value to enter in the field identified by Field Name.
If you are an administrator configuring a bookmark for users:
• enter %usrname% to represent the user’s SSL VPN user name
• enter %passwd% to represent the user’s SSL VPN password
Add Enter another Field Name / Value pair, for the password, for example.
A new set of Field Name / Value fields is added. Fill them in.

5 Select OK.
6 Select Done.

FortiGate Version 4.0 MR1 Administration Guide


38 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 SSL VPN enhancements

IP address ranges are now defined as firewall addresses


Several IP address ranges for tunnel mode SSL VPNs are defined in FortiOS 4.0 MR1
using firewall addresses and you can specify multiple ranges:

Tunnel IP ranges
In the tunnel widget configuration, the start-ip and end-ip keywords have been
removed. Instead, you specify one or more firewall addresses using the new ip-pools
keyword, like this:
config vpn ssl web portal
edit <portal_name>
config widget
edit <widget_id>
set name <name_str>
set type tunnel
set ip-pools ip_pool1 ip_pool2
end
end
You define ip_pool1 and ip_pool2 using the config firewall address
command. Only range and subnet address types are allowed.

Split tunnel IP ranges


Use the new split-tunneling-routing-address keyword to specify one or more ranges of IP
addresses that are reached through the SSL VPN, like this:
config vpn ssl web portal
edit <portal_name>
config widget
edit <widget_id>
set name <name_str>
set type tunnel
set split-tunneling enable
set split-tunneling-routing-address ip_pool1 ip_pool2
end
end
You define ip-pool1 and ip_pool2 using the config firewall address
command. Only range and subnet address types are allowed.

Tunnel mode client address ranges


In the SSL VPN settings, the tunnel-startip and tunnel-endip keywords have
been removed. Instead, use the new tunnel-ip-pools keyword to define the one or
more ranges of IP addresses reserved for remote clients:
config vpn ssl settings
set tunnel-ip-pools ip_pool1 ip_pool2
end
You define ip_pool1 and ip_pool2 using the config firewall address
command. Only range and subnet address types are allowed.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 39
http://docs.fortinet.com/ • Feedback
SSL VPN enhancements What’s new in FortiOS Version 4.0 MR1

OS Check changes
The client operating system checks are now configurable only in the CLI, but the
supported operating systems now include Windows Vista.
config vpn ssl web portal
edit <portal_name>
set os-check enable
config os-check-list {windows-2000 | windows-xp |
windows-vista}
set action {allow | check-up-to-date | deny}
set latest-patch-level {disable | 0 - 255}
set tolerance {tolerance_num}
end

Client check changes


The client check, which ensures that clients have antivirus or firewall software installed, is
now called Host Check. You no longer specify whether to check for FortiClient Endpoint
Security or third-party software. If the client computer is running any antivirus or firewall
software that the Windows Security Center recognizes, it will pass the Host Check. You
can also add applications to the FortiGate unit’s list of acceptable host check software.

To configure host check - web-based manager


1 Go to VPN > SSL > Portal.
2 Select the Edit icon for the web portal.
3 Select the Settings button.
4 Select the Security Control tab.
5 From the Host Check list, select one of the following options:
• None — no host check
• AV — antivirus software required
• FW — firewall software required
• AV-FW — antivirus and firewall software required
• Custom — check for software defined in VPN > SSL > Host Check
6 Enter the Interval, in seconds, between host checks. Or, enter 0 to disable repeated
host checks.
7 Select OK.

To configure host check - CLI


config vpn ssl web portal
edit <portal_name>
set host-check {none | av | fw | av-fw | custom}
set host-check-interval <seconds>
end

FortiGate Version 4.0 MR1 Administration Guide


40 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 SSL VPN enhancements

Variable Description Default


<portal_name> Enter the portal name. No default.
host-check Select the type of host check. none
{none | av | fw | none — no host check
av-fw | custom} av — antivirus software required
fw — firewall software required
av-fw — antivirus and firewall software required
custom — check for software defined in config
vpn ssl web host-check-software
host-check-interval Enter period between host checks, in seconds. 0
<seconds> Range 120 to 259 200. Enter 0 to disable repeated
host checks.

Virtual Desktop enhancements


In FortiOS 4.0 MR1, the virtual desktop is more configurable and can interact with
removable media, network shares, and printers.

To configure Virtual Desktop - web-based manager


1 Go to VPN > SSL > Portal.
2 Select the Edit icon for the web portal.
3 Select the Settings button.
4 Select the Virtual Desktop tab.
5 Enter the following information and select OK.

Figure 2: Configuring Virtual Desktop

Enable Virtual Desktop Enable the virtual desktop and the following settings. If this is
not enabled, user has browser access on the regular desktop.
Allow switching between By default, the regular desktop is not accessible while the
virtual desktop and regular virtual desktop is active. With this option enabled, user can
desktop switch between them.

Allow clipboard contents to Enable to allow cut-and-paste operations between the virtual
be shared with regular desktop and the regular desktop.
desktop
Allow use of removable Enable to allow the user to copy files between the virtual
media desktop and removable media such as USB drives.
Allow network share access Enable to allow the user to copy files between the virtual
desktop and network drives.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 41
http://docs.fortinet.com/ • Feedback
SSL VPN enhancements What’s new in FortiOS Version 4.0 MR1

Allow printing Enable to allow the user to use printers from the virtual
desktop.
Quit the virtual desktop and By default, the virtual desktop remains in effect even if the user
logout session when closes the browser. Enable to automatically close the virtual
browser is closed desktop and logout if the user closes the browser.

Application Control List Optionally, select an application control list. This controls which
applications the user can run on the virtual desktop. See
“Virtual Desktop Application Control”.

To configure virtual desktop - CLI


conf vpn ssl web portal
edit "portal-name"
set virtual-desktop {enable | disable}
set virtual-desktop-desktop-switch {enable | disable}
set virtual-desktop-clipboard-share {enable | disable}
set virtual-desktop-removable-media-access
{enable | disable}
set virtual-desktop-network-share-access {enable | disable}
set virtual-desktop-printing {enable | disable}
set virutal-desktop-logout-when-browser-close
{enable | disable}
set virtual-desktop-app-list <applist_name>
end
All options are disabled by default, except virtual-desktop-desktop-switch.

Virtual Desktop Application Control


You can control which applications users can run on their virtual desktop. To do this, you
create a list of either allowed or blocked applications which you then select when you
configure the virtual desktop.

To create an application control list - web-based manager


1 Go to VPN > SSL > Virtual Desktop Application Control.
2 Select Create New.
3 Enter a Name for the list.
4 Select either Allow the applications on this list and block all others or Block the
applications on this list and allow all others.
5 Select Add.
6 In the Application Signatures window, enter the Name of the application and its
MD5 Signature.
There are utilities you can use to calculate the MD5 signature of the executable file.
You can enter multiple signatures to support multiple versions of the application.
7 Select OK.
8 Repeat steps 5 through 7 to add additional applications to the list.
9 Select OK.

To create an application control list - CLI


config vpn ssl web virtual-desktop-app-list
edit <applist_name>
set action {allow | block}

FortiGate Version 4.0 MR1 Administration Guide


42 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Two-factor authentication

config apps
edit <appname_str>
set md5s <md5_str>
end
end

Variable Description Default


<applist_name> Enter a name for the application control list. No default.
action allow — Allow only the applications on this list allow
{allow | block} block — Block these applications, allow all others
<appname_str> Enter a name for the application. No default.
md5s <md5_str> Enter one or more MD5 checksums, separated by No default.
spaces.

Two-factor authentication
In FortiOS 4.0 MR1, PKI users can be required to authenticate by password in addition to
their certificate authentication, for both administrative and SSL VPN access. This provides
additional security to meet ICSA 4.0 requirements.

To enable two-factor authentication for a PKI user - web-based manager


1 Go to User > PKI.
2 Select the Edit icon for the user.
3 Expand Two-factor authentication.
4 Select Require two-factor authentication and enter the Password for this user.
5 Select OK.
6 Repeat steps 2 through 5 for each user who must use two-factor authentication.

To enable two-factor authentication for a PKI user - CLI


config user peer
edit <peer1_name>
set two-factor enable
set password <password_str>
next
edit <peer2_name>
...
end

To require two-factor authentication in an SSL VPN


conf vpn ssl settings
set force-two-factor-auth enable
end
If this option is enabled, only users with two-factor authentication can log in to the SSL
VPN.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 43
http://docs.fortinet.com/ • Feedback
FortiGate wireless controller What’s new in FortiOS Version 4.0 MR1

Force UTF-8 login


To facilitate authentication with some LDAP servers, the login credentials must use UTF-8
encoding. Enable this as follows:
config vpn ssl settings
set force-utf8-login enable
end

FortiGate wireless controller


Most FortiGate units, but not FortiWiFi models, can act as a wireless network controller,
managing the wireless Access Point (AP) functionality of FortiWiFi units. All units must be
running the most FortiOS 4.0 MR1 firmware.
For more information, see “Wireless Controller” on page 703.

Interface status detection for gateway load balancing


FortiOS 4.0 MR1 interface status detection now includes enabling up to three different
protocols to confirm that an interface can connect to the IP address of a server. Usually
the server is the next-hop router that leads to an external network or the Internet.
For more information, see “Interface status detection for gateway load balancing” on
page 193.

Enhanced ECMP route failover and load balancing


Previous versions of FortiOS provided source IP-based load balancing for ECMP routes.
FortiOS 4.0 MR1 includes three configuration options for ECMP route failover and load
balancing:

Source based The FortiGate unit load balances sessions among ECMP routes based on the
(also called source IP address of the sessions to be load balanced. This is the default load
source IP based) balancing method. No configuration changes are required to support source IP
load balancing.
Weighted (also The FortiGate unit load balances sessions among ECMP routes based on
called weights added to ECMP routes. More traffic is directed to routes with higher
weight-based) weights.

Spill-over (also The FortiGate unit distributes sessions among ECMP routes based on how busy
called the FortiGate interfaces added to the routes are.
usage-based) After selecting spill-over you add route Spillover Thresholds to interfaces added
to ECMP routes. The FortiGate unit sends all ECMP-routed sessions to the
lowest numbered interface until the bandwidth being processed by this interface
reaches its spillover threshold. The FortiGate unit then spills additional sessions
over to the next lowest numbered interface.
The Spillover Thresholds range is 0-2097000 KBps.

For more information, see “ECMP route failover and load balancing” on page 344.

SCEP extensions
FortiOS 4.0 MR1 supports automatic update of system certificates. When a certificate is
about to expire, the FortiGate unit uses SCEP to request and download a new certificate.
This applies to both Local and CA certificates. You can also configure periodic updating of
a Certificate Revocation List (CRL).

FortiGate Version 4.0 MR1 Administration Guide


44 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 SCEP extensions

Certificate auto-update is configured in the CLI:

To configure auto-update of a local certificate


config vpn certificate local
edit <certificate_name>
set scep-url <URL_str>
set scep-password <password_str>
set auto-regenerate-days <days_int>
set auto-regenerate-days-warning <days_int>
end
end

Variable Description Default


<certificate_name> The name of the local certificate. No default.
scep-url <URL_str> Enter the URL of the SCEP server. No default.
scep-password Enter the password for the SCEP server. No default.
<password_str>
auto-regenerate- Enter how many days before expiry the FortiGate 0
days <days_int> unit requests an updated local certificate. Enter 0 for
no auto-update.
auto-regenerate- Enter how many days before local certificate expiry 0
days-warning the FortiGate generates a warning message. Enter 0
<days_int> for no warning.

To configure auto-update of a CA certificate


config vpn certificate ca
edit <certificate_name>
set scep-url <URL_str>
set auto-update-days <days_int>
set auto-update-days-warning <days_int>
end
end

Variable Description Default


<certificate_name> The name of the CA certificate. No default.
scep-url <URL_str> Enter the URL of the SCEP server. No default.
auto-update-days Enter how many days before expiry the FortiGate 0
<days_int> unit requests an updated CA certificate. Enter 0 for
no auto-update.
auto-update-days- Enter how many days before CA certificate expiry 0
warning <days_int> the FortiGate generates a warning message. Enter 0
for no warning.

To configure CRL auto-update


config vpn certificate crl
edit <crl_name>
set scep-url <URL_str>
set update-interval <seconds>
end
end

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 45
http://docs.fortinet.com/ • Feedback
SCEP extensions What’s new in FortiOS Version 4.0 MR1

Variable Description Default


<crl_name> The name of the certificate revocation list. No default.
scep-url <URL_str> Enter the URL of the SCEP server. No default.
update-interval Enter how frequently, in seconds, the FortiGate unit 0
<seconds> checks for an updated CRL. Enter 0 to update the
CRL only when it expires.

FortiGate Version 4.0 MR1 Administration Guide


46 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Dynamic routing for IPv6 traffic


FortiOS Version 4.0 MR1 adds support for IPv6 dynamic routing using RIPng, BGP, or
OSPF protocols.
IPv6 dynamic routing is configurable only in the CLI. The following IPv6-related
commands were added:
• router access-list6
• router ospf6
• router prefix-list6
• router ripng
• get router info6 {bgp | ospf | protocols | rip}
IPv6-related keywords were added to the router bgp command.

Additions to router bgp command


The following syntax descriptions are for the new keywords added to support IPv6.
config router bgp
config aggregate-address6
edit <aggr_addr_id>
set as-set {enable | disable}
set prefix6 <address_ipv6mask>
set summary-only {enable | disable}
end
config neighbor
edit <neighbor_address>
set allowas-in6 <max_num_AS_integer>
set allowas-in-enable6 {enable | disable}
set attribute-unchanged6 [as-path] [med] [next-hop]
set capability-default-originate6 {enable | disable}
set capability-graceful-restart6 {enable | disable}
set capability-orf6 {both | none | receive | send}
set default-originate-routemap6
set distribute-list-in6 <access-list-name_str>
set distribute-list-out6 <access-list-name_str>
set filter-list-in6 <aspath-list-name_str>
set filter-list-out6 <aspath-list-name_str>
set maximum-prefix6 <prefix_integer>
set maximum-prefix-threshold6 <percentage_integer>
set maximum-prefix-warning-only6 {enable | disable}
set next-hop-self6 {enable | disable}
set prefix-list-in6 <prefix-list-name_str>
set prefix-list-out6 <prefix-list-name_str>
set remove-private-as6 {enable | disable}
set route-map-in6 <routemap-name_str>
set route-map-out6 <routemap-name_str>
set route-reflector-client6 {enable | disable}
set route-server-client6 {enable | disable}
set send-community6 {both | disable | extended | standard}
set soft-reconfiguration6 {enable | disable}
set unsuppress-map6 <route-map-name_str>
end

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 47
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

config network6
edit <network_id>
set backdoor {enable | disable}
set prefix6 <address_ipv6mask>
set route-map <routemap-name_str>
end
config redistribute6

Variable Description Default


config aggregate-address6 Variables
edit <aggr_addr_id> Enter an ID number for the entry. The number No default.
must be an integer.
as-set {enable | disable} Enable or disable the generation of an disable
unordered list of AS numbers to include in the
path information. When as-set is enabled, a
set-atomic-aggregate value does not
have to be specified.
prefix6 <address_ipv6mask> Set an aggregate prefix. ::/0
summary-only Enable or disable the advertising of aggregate disable
{enable | disable} routes only (the advertising of specific routes is
suppressed).
config neighbor Additional Variables
activate6 Enable or disable the address family for the enable
{enable | disable} BGP neighbor.
allowas-in6 This keyword is available when unset
<max_num_AS_integer> allowas-in-enable6 is set to enable.
Set the maximum number of occurrences your
AS number is allowed in.
allowas-in-enable6 Enable or disable the readvertising of all disable
{enable | disable} prefixes containing duplicate AS numbers. Set
the amount of time that must expire before
readvertising through the allowas-in
keyword.
attribute-unchanged6 Propagate unchanged BGP attributes to the Empty set.
[as-path] [med] [next-hop] IPv6 BGP neighbor.
• To advertise unchanged AS_PATH
attributes, select as-path.
• To advertise unchanged MULTI_EXIT_DISC
attributes, select med.
• To advertise the IP address of the next-hop
router interface (even when the address has
not changed), select next-hop.
• An empty set is a supported value.
capability-default- Enable or disable the advertising of the default disable
originate6 route to IPv6 BGP neighbors.
{enable | disable}
capability-graceful- Enable or disable the advertising of graceful- disable
restart6 restart capability to IPv6 BGP neighbors.
{enable | disable}

FortiGate Version 4.0 MR1 Administration Guide


48 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


capability-orf6 {both | Enable or disable the advertising of Outbound none
none | receive | send} Routing Filter (ORF) prefix-list capability to the
BGP neighbor.
• To enable send and receive capability,
select both.
• To enable receive capability, select
receive.
• To enable send capability, select send.
• To disable the advertising of ORF prefix-list
capability, select none.
default-originate-
routemap6
distribute-list-in6 Limit route updates from the IPv6 BGP neighbor Null
<access-list-name_str> based on the Network Layer Reachability
Information (NLRI) defined in the specified
access list. You must create the access list
before it can be selected here. See “router
access-list6” on page 51.
distribute-list-out6 Limit route updates to the IPv6 BGP neighbor Null
<access-list-name_str> based on the NLRI defined in the specified
access list. You must create the access list
before it can be selected here. See “router
access-list6” on page 51.
filter-list-in6 Limit inbound IPv6 BGP routes according to the Null
<aspath-list-name_str> specified AS-path list. You must create the AS-
path list before it can be selected here. See
config router aspath-list.
filter-list-out6 Limit outbound IPv6 BGP routes according to Null
<aspath-list-name_str> the specified AS-path list. You must create the
AS-path list before it can be selected here. See
config router aspath-list.
maximum-prefix6 Set the maximum number of NLRI prefixes to unset
<prefix_integer> accept from the IPv6 BGP neighbor. When the
maximum is reached, the FortiGate unit
disconnects the BGP neighbor. The range is
from 1 to 4 294 967 295.
Changing this value on the FortiGate unit does
not disconnect the BGP neighbor. However, if
the neighbor goes down because it reaches the
maximum number of prefixes and you increase
the maximum-prefix value afterward, the
neighbor will be reset.
maximum-prefix-threshold6 This keyword is available when maximum- 75
<percentage_integer> prefix6 is set.
Specify the threshold (as a percentage) that
must be exceeded before a warning message
about the maximum number of NLRI prefixes is
displayed. The range is from 1 to 100.
maximum-prefix-warning- This keyword is available when disable
only6 {enable | disable} maximum-prefix6 is set.
Enable or disable the display of a warning when
the maximum-prefix-threshold6 has been
reached.
next-hop-self6 Enable or disable advertising of the FortiGate disable
{enable | disable} unit’s IP address (instead of the neighbor’s IP
address) in the NEXT_HOP information that is
sent to IBGP peers.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 49
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

Variable Description Default


prefix-list-in6 Limit route updates from an IPv6 BGP neighbor Null
<prefix-list-name_str> based on the Network Layer Reachability
Information (NLRI) in the specified prefix list.
The prefix list defines the NLRI prefix and length
advertised in a route. You must create the prefix
list before it can be selected here. See “router
prefix-list6” on page 56.
prefix-list-out6 Limit route updates to an IPv6 BGP neighbor Null
<prefix-list-name_str> based on the NLRI in the specified prefix list.
The prefix list defines the NLRI prefix and length
advertised in a route. You must create the prefix
list before it can be selected here. See “router
prefix-list6” on page 56.
remove-private-as6 Remove the private AS numbers from outbound disable
{enable | disable} updates to the IPv6 BGP neighbor.
route-map-in6 Limit route updates or change the attributes of Null
<routemap-name_str> route updates from the IPv6 BGP neighbor
according to the specified route map. You must
create the route-map before it can be selected
here.
route-map-out6 Limit route updates or change the attributes of Null
<routemap-name_str> route updates to the IPv6 BGP neighbor
according to the specified route map. You must
create the route-map before it can be selected
here.
route-reflector-client6 This keyword is available when remote-as is disable
{enable | disable} identical to the FortiGate unit AS number.
Enable or disable the operation of the FortiGate
unit as a route reflector and identify the BGP
neighbor as a route-reflector client.
Inbound routes for route reflectors can change
the next-hop, local-preference, med,
and as-path attributes of IBGP routes for
local route selection, while outbound IBGP
routes do not take into effect these attributes.
route-server-client6 Enable or disable the recognition of the IPv6 disable
{enable | disable} BGP neighbor as route-server client.
send-community6 {both | Enable or disable the sending of the both
disable | extended | COMMUNITY attribute to the IPv6 BGP
standard} neighbor.
• To advertise extended and standard
capabilities, select both.
• To advertise extended capabilities, select
extended.
• To advertise standard capabilities, select
standard.
• To disable the advertising of the
COMMUNITY attribute, select disable.
soft-reconfiguration6 Enable or disable the FortiGate unit to store disable
{enable | disable} unmodified updates from the IPv6 BGP
neighbor to support inbound soft-
reconfiguration.
unsuppress-map6 Specify the name of the route-map to selectively Null
<route-map-name_str> unsuppress suppressed IPv6 routes. You must
create the route-map before it can be selected
here.
config network6 Variables
edit <network_id> Enter an ID number for the entry. The number No default.
must be an integer.

FortiGate Version 4.0 MR1 Administration Guide


50 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


backdoor Enable or disable the route as a backdoor, disable
{enable | disable} which causes an administrative distance of 200
to be assigned to the route. Backdoor routes are
not advertised to EBGP peers.
prefix6 <address_ipv6mask> Enter the IP address and netmask that identifies ::/0
the BGP network to advertise.
route-map Specify the name of the route-map that will be Null
<routemap-name_str> used to modify the attributes of the route before
it is advertised. You must create the route-map
before it can be selected here.
config redistribute6 Variables are the same as for config redistribute

router access-list6
Use this command to add, edit, or delete access lists for IPv6 traffic. Access lists are filters
used by FortiGate unit routing processes. For an access list to take effect, it must be
called by a FortiGate unit routing process (for example, a process that supports RIPng or
OSPF).

Syntax
config router access-list6
edit <access_list_name>
set comments <string>
config rule
edit <access_list_id>
set action {deny | permit}
set exact-match {enable | disable}
set prefix6 { <prefix_ipv6mask> | any }
end
end

Note: The action and prefix keywords are required. The exact-match keyword is
optional.

Variable Description Default


edit <access_list_name> Enter a name for the access list. An access list and No default.
a prefix list cannot have the same name.
comments <string> Enter a descriptive comment. The max length is No default.
127 characters.
config rule Variables
edit <access_list_id> Enter an entry number for the rule. The number No default.
must be an integer.
action {deny | permit} Set the action to take for this prefix. permit
exact-match By default, access list rules are matched on the disable
{enable | disable} prefix or any more specific prefix. Enable exact-
match to match only the configured prefix.
prefix6 { Enter the prefix for this access list rule, either: any
<prefix_ipv6mask> | any } • Type the IP address and netmask.
• Type any to match any prefix.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 51
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

router ospf6
Use this command to configure OSPF routing for IPv6 traffic.

Syntax
router ospf6
set abr-type {cisco | ibm | standard}
set auto-cost-ref-bandwidth <mbps_integer>
set default-metric <metric_integer>
set passive-interface <name_str>
set router-id <address_ipv4>
set spf-timers <delay_integer> <hold_integer>
config area
edit <area_address_ipv4>
set default-cost <cost_integer>
set stub-type {no-summary | summary}
set type {regular | stub}
end
config ospf6-interface
edit <ospf_interface_name>
set area-id <ip4_addr>
set cost <cost_integer>
set dead-interval <seconds_integer>
set hello-interval <seconds_integer>
set interface <name_str>
set priority <priority_integer>
set retransmit-interval <seconds_integer>
set status {enable | disable}
set transmit-delay <seconds_integer>
end
end
config redistribute {bgp | connected | rip | static}
set metric <metric_integer>
set metric-type {1 | 2}
set routemap <name_str>
set status {enable | disable}
end
end

Variable Description Default


abr-type {cisco | ibm | Specify the behavior of a FortiGate unit standard
standard} acting as an OSPF area border router
(ABR) when it has multiple attached areas
and has no backbone connection.
Selecting the ABR type compatible with
the routers on your network can reduce or
eliminate the need for configuring and
maintaining virtual links. For more
information, see RFC 3509.
auto-cost-ref-bandwidth Enter the Mbits per second for the 1000
<mbps_integer> reference bandwidth. Values can range
from 1 to 65535.
default-metric Specify the default metric that OSPF 10
<metric_integer> should use for redistributed routes. The
valid range for metric_integer is 1 to
16777214.

FortiGate Version 4.0 MR1 Administration Guide


52 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


passive-interface <name_str> OSPF routing information is not sent or No default.
received through the specified interface.
router-id <address_ipv4> Set the router ID. The router ID is a unique 0.0.0.0
number, in IP address dotted decimal
format, that is used to identify an OSPF
router to other OSPF routers within an
area. The router ID should not be changed
while OSPF is running.
A router ID of 0.0.0.0 is not allowed.
spf-timers <delay_integer> Change the default shortest path first 5 10
<hold_integer> (SPF) calculation delay time and
frequency.
The delay_integer is the time, in
seconds, between when OSPF receives
information that will require an SPF
calculation and when it starts an SPF
calculation. The valid range for
delay_integer is 0 to 4294967295.
The hold_integer is the minimum time,
in seconds, between consecutive SPF
calculations. The valid range for
hold_integer is 0 to 4294967295.
OSPF updates routes more quickly if the
SPF timers are set low; however, this uses
more CPU. A setting of 0 for spf-timers
can quickly use up all available CPU.

config area
Use this subcommand to set OSPF area related parameters. Routers in an OSPF
autonomous system (AS) or routing domain are organized into logical groupings called
areas. Areas are linked together by area border routers (ABRs). There must be a
backbone area that all areas can connect to. You can use a virtual link to connect areas
that do not have a physical connection to the backbone. Routers within an OSPF area
maintain link state databases for their own areas.
You can use the config range subcommand to summarize routes at an area boundary.
If the network numbers in an area are contiguous, the ABR advertises a summary route
that includes all the networks within the area that are within the specified range. See
“config range Variables” on page 54.
You can configure a virtual link using the config virtual-link subcommand to
connect an area to the backbone when the area has no direct connection to the backbone
(see “config virtual-link Variables” on page 54). A virtual link allows traffic from the area to
transit a directly connected area to reach the backbone. The transit area cannot be a stub
area. Virtual links can only be set up between two ABRs.

Variable Description Default


edit <area_address_ipv4> Type the IP address of the area. An address of No default.
0.0.0.0 indicates the backbone area.
default-cost Enter the metric to use for the summary default 10
<cost_integer> route in a stub area or not so stubby area
(NSSA). A lower default cost indicates a more
preferred route.
The valid range for cost_integer is 1 to
16777214.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 53
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

Variable Description Default


stub-type Enter no-summary to prevent an ABR sending summary
{no-summary | summary} summary LSAs into a stub area. Enter summary
to allow an ABR to send summary LSAs into a
stub area.
type Set the area type: regular
{regular | stub} • Select regular for a normal OSPF area.
• Select stub for a stub area.
config range Variables
edit <range_id> Enter an ID number for the range. The number No default.
must be an integer in the 0 to 4 294 967 295
range.
advertise Enable or disable advertising the specified enable
{enable | disable} range.
prefix6 Specify the range of addresses to summarize. ::/0
<address_ipv6mask>
config virtual-link Variables
edit <vlink_name> Enter a name for the virtual link. No default.
dead-interval The time, in seconds, to wait for a hello packet 40
<seconds_integer> before declaring a router down. The value of the
dead-interval should be four times the value
of the hello-interval.
Both ends of the virtual link must use the same
value for dead-interval.
The valid range for seconds_integer is 1 to
65535.
hello-interval The time, in seconds, between hello packets. 10
<seconds_integer> Both ends of the virtual link must use the same
value for hello-interval.
The valid range for seconds_integer is 1 to
65535.
peer <address_ipv4> The router id of the remote ABR. 0.0.0.0
0.0.0.0 is not allowed.
retransmit-interval The time, in seconds, to wait before sending a 5
<seconds_integer> LSA retransmission. The value for the retransmit
interval must be greater than the expected
round-trip delay for a packet. The valid range for
seconds_integer is 1 to 65535.
transmit-delay The estimated time, in seconds, required to 1
<seconds_integer> send a link state update packet on this virtual
link.
OSPF increments the age of the LSAs in the
update packet to account for transmission and
propagation delays on the virtual link.
Increase the value for transmit-delay on low
speed links.
The valid range for seconds_integer is 1 to
65535.

FortiGate Version 4.0 MR1 Administration Guide


54 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

config ospf6-interface
Use this subcommand to change interface related OSPF settings.

Note: The interface keyword is required. All other keywords are optional.

Variable Description Default


edit Enter a descriptive name for this OSPF interface No
<ospf_interface_name> configuration. To apply this configuration to a default.
FortiGate unit interface, set the interface
<name_str> attribute.
area-id <ip4_addr> Enter the area ID in A.B.C.D IPv4 format. 0.0.0.0
cost <cost_integer> Specify the cost (metric) of the link. The cost is used 0
for shortest path first calculations. Range 1 to 65 535.
Use 0 for auto-cost.
dead-interval The time, in seconds, to wait for a hello packet before 40
<seconds_integer> declaring a router down. The value of the dead-
interval should be four times the value of the
hello-interval.
All routers on the network must use the same value for
dead-interval.
The valid range for seconds_integer is 1 to 65535.
hello-interval The time, in seconds, between hello packets. 10
<seconds_integer> All routers on the network must use the same value for
hello-interval.
The valid range for seconds_integer is 1 to 65535.
interface <name_str> Enter the name of the interface to associate with this Null
OSPF configuration. The interface might be a virtual
IPSec or GRE interface.
priority Set the router priority for this interface. 1
<priority_integer> Router priority is used during the election of a
designated router (DR) and backup designated router
(BDR).
An interface with router priority set to 0 can not be
elected DR or BDR. The interface with the highest
router priority wins the election. If there is a tie for
router priority, router ID is used.
Point-to-point networks do not elect a DR or BDR;
therefore, this setting has no effect on a point-to-point
network.
The valid range for priority_integer is 0 to 255.
retransmit-interval The time, in seconds, to wait before sending a LSA 5
<seconds_integer> retransmission. The value for the retransmit interval
must be greater than the expected round-trip delay for
a packet. The valid range for seconds_integer is 1
to 65535.
status Enable or disable OSPF on this interface. enable
{enable | disable}
transmit-delay The estimated time, in seconds, required to send a link 1
<seconds_integer> state update packet on this interface.
OSPF increments the age of the LSAs in the update
packet to account for transmission and propagation
delays on the interface.
Increase the value for transmit-delay on low
speed links.
The valid range for seconds_integer is 1 to 65535.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 55
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

config redistribute
Use this subcommand to redistribute routes learned from BGP, RIP, static routes, or a
direct connection to the destination network.
The OSPF redistribution table contains four static entries. You cannot add entries to the
table. The entries are defined as follows:
• bgp—Redistribute routes learned from BGP.
• connected—Redistribute routes learned from a direct connection to the destination
network.
• static—Redistribute the static routes defined in the FortiGate unit routing table.
• rip—Redistribute routes learned from RIP.
When you enter the subcommand, end the command with one of the four static entry
names (that is, config redistribute {bgp | connected | rip | static}).

Note: All keywords are optional.

Variable Description Default


metric <metric_integer> Enter the metric to be used for the redistributed 10
routes. The metric_integer range is from 1 to
16777214.
metric-type {1 | 2} Specify the external link type to be used for the 2
redistributed routes.
routemap <name_str> Enter the name of the route map to use for the Null.
redistributed routes.
status {enable | disable} Enable or disable redistributing routes. disable

router prefix-list6
Use this command to add, edit, or delete prefix lists for IPv6 traffic. A prefix list is an
enhanced version of an access list that allows you to control the length of the prefix
netmask.

Syntax
config router prefix-list6
edit <prefix_list_name>
set comments <string>
config rule
edit <prefix_rule_id>
set action {deny | permit}
set ge <length_integer>
set le <length_integer>
set prefix6 {<address_ipv6mask> | any}
end
end

Note: The action and prefix keywords are required. All other keywords are optional.

FortiGate Version 4.0 MR1 Administration Guide


56 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


edit <prefix_list_name> Enter a name for the prefix list. A prefix list and No default.
an access list cannot have the same name.
config rule Variables
edit <prefix_rule_id> Enter an entry number for the rule. The number No default.
must be an integer.
action {deny | permit} Set the action to take for this prefix. permit
comments <string> Enter a description of this access list entry. The
description can be up to 127 characters long.
ge <length_integer> Match prefix lengths that are greater than or Null
equal to this number. The setting for ge should
be less than the setting for le. The setting for
ge should be greater than the netmask set for
prefix. length_integer can be any
number from 0 to 128.
le <length_integer> Match prefix lengths that are less than or equal Null
to this number. The setting for le should be
greater than the setting for ge.
length_integer can be any number from 0
to 128.
prefix6 Enter the prefix (IP address and netmask) for ::/0
{<address_ipv6mask> | any} this prefix list rule or enter any to match any
prefix. The length of the netmask should be less
than the setting for ge. If prefix is set to any, ge
and le should not be set.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 57
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

router ripng
Use this command to configure the “next generation” Routing Information Protocol
(RIPng) on the FortiGate unit. RIPng is a distance-vector routing protocol intended for
small, relatively homogeneous, IPv6 networks. RIPng uses hop count as its routing metric.
Each network is usually counted as one hop. The network diameter is limited to 15 hops.

Syntax
config router ripng
set default-information-originate {enable | disable}
set default-metric <metric_integer>
set garbage-timer <timer_integer>
set passive-interface <name_str>
set timeout-timer <timer_integer>
set update-timer <timer_integer>
config aggregate-address
edit <entry-id>
set prefix6 <aggregate_prefix>
end
config distribute-list
edit <distribute_list_id>
set direction {in | out}
set interface <name_str>
set listname <listname_str>
set status {enable | disable}
end
config interface
edit <interface_name>
set split-horizon {poisoned | regular}
set split-horizon-status {enable | disable}
end
config neighbor
edit <neighbor_id>
set ip6 <address_ipv6>
end
config offset-list
edit <offset_list_id>
set access-list6 <name_str>
set direction {in | out}
set interface <name_str>
set offset <metric_integer>
set status {enable | disable}
end
config redistribute {connected | static | ospf | bgp}
set metric <metric_integer>
set routemap <name_str>
set status {enable | disable}
end

Note: All keywords are optional.

FortiGate Version 4.0 MR1 Administration Guide


58 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


default-information-originate Enter enable to advertise a default static disable
{enable | disable} route into RIPng.
default-metric For non-default routes in the static routing 1
<metric_integer> table and directly connected networks the
default metric is the metric that the
FortiGate unit advertises to adjacent
routers. This metric is added to the metrics
of learned routes. The default metric can
be a number from 1 to 16.
garbage-timer <timer_integer> The time in seconds that must elapse after 120
the timeout interval for a route expires,
before RIPng deletes the route. If RIPng
receives an update for the route after the
timeout timer expires but before the
garbage timer expires then the entry is
switched back to reachable.
RIP timer defaults are effective in most
configurations. All routers and access
servers in the network should have the
same RIP timer settings.
The update timer interval can not be larger
than the garbage timer interval.
Range 5 to 2 147 483 647 seconds.
passive-interface <name_str> Block RIPng broadcasts on the specified No default.
interface. You can use “config neighbor” on
page 61 and the passive interface
command to allow RIPng to send unicast
updates to the specified neighbor while
blocking broadcast updates on the
specified interface.
timeout-timer <timer_integer> The time interval in seconds after which a 180
route is declared unreachable. The route is
removed from the routing table. RIP holds
the route until the garbage timer expires
and then deletes the route. If RIP receives
an update for the route before the timeout
timer expires, then the timeout-timer is
restarted. If RIP receives an update for the
route after the timeout timer expires but
before the garbage timer expires then the
entry is switched back to reachable. The
value of the timeout timer should be at
least three times the value of the update
timer.
RIP timer defaults are effective in most
configurations. All routers and access
servers in the network should have the
same RIP timer settings.
The update timer interval can not be larger
than the timeout timer interval.
Range 5 to 2 147 483 647 seconds.
update-timer <timer_integer> The time interval in seconds between RIP 30
updates.
RIP timer defaults are effective in most
configurations. All routers and access
servers in the network should have the
same RIP timer settings.
The update timer interval can not be larger
than timeout or garbage timer intervals.
Range 5 to 2 147 483 647 seconds.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 59
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

config aggregate-address
Use this subcommand to configure aggregate address prefixes.

Variable Description Default


edit <entry-id> Enter an entry number for the aggregate address list.
prefix6 Enter the prefix for the aggregate address. ::/0
<aggregate_prefix>

config distribute-list
Use this subcommand to filter incoming or outgoing updates using an access list or a
prefix list. If you do not specify an interface, the filter will be applied to all interfaces. You
must configure the access list or prefix list that you want the distribution list to use before
you configure the distribution list. For more information on configuring access lists and
prefix lists, see “router access-list6” on page 51 and “router prefix-list6” on page 56.

Note: The direction and listname keywords are required.


All other keywords are optional.

Variable Description Default


edit Enter an entry number for the distribution list. The No default.
<distribute_list_id> number must be an integer.
direction {in | out} Set the direction for the filter. Enter in to filter incoming out
packets. Enter out to filter outgoing packets.
interface <name_str> Enter the name of the interface to apply this distribution Null.
list to. If you do not specify an interface, this distribution
list will be used for all interfaces.
listname Enter the name of the access list or prefix list to use for Null.
<listname_str> this distribution list.
status Enable or disable this distribution list. disable
{enable | disable}

config interface
Use this subcommand to configure and enable split horizon.
A split horizon occurs when a router advertises a route it learns over the same interface it
learned it on. In this case the router that gave the learned route to the last router now has
two entries to get to another location. However, if the primary route fails that router tries
the second route to find itself as part of the route and an infinite loop is created. A
poisoned split horizon will still advertise the route on the interface it received it on, but it
will mark the route as unreachable. Any unreachable routes are automatically removed
from the routing table. This is also called split horizon with poison reverse.

Note: All keywords are optional.

FortiGate Version 4.0 MR1 Administration Guide


60 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Dynamic routing for IPv6 traffic

Variable Description Default


edit <interface_name> Type the name of the FortiGate unit interface that is No default.
linked to the RIP network. The interface might be a
virtual IPSec or GRE interface.
split-horizon Configure RIP to use either regular or poisoned split poisoned
{poisoned | regular} horizon on this interface.
Select regular to prevent RIP from sending updates
for a route back out on the interface from which it
received that route.
Select poisoned to send updates with routes
learned on an interface back out the same interface
but mark those routes as unreachable.
split-horizon-status Enable or disable split horizon for this interface. Split enable
{enable | disable} horizon is enabled by default.
Disable split horizon only if there is no possibility of
creating a counting to infinity loop when network
topology changes.

config neighbor
Use this subcommand to enable RIPng to send unicast routing updates to the router at the
specified address. You can use the neighbor subcommand and “passive-interface
<name_str>” on page 59 to allow RIPng to send unicast updates to the specified neighbor
while blocking broadcast updates on the specified interface. You can configure multiple
neighbors.

Note: All keywords are required.

Variable Description Default


edit <neighbor_id> Enter an entry number for the RIPng neighbor. The No default.
number must be an integer.
interface <name> The interface that connects to the neighbor. No default.
ip6 <address_ipv6> Enter the IP address of the neighboring router to which ::
to send unicast updates.

config offset-list
Use this subcommand to add the specified offset to the metric (hop count) of a route from
the offset list.

Note: The access-list6, direction, and offset keywords are required. All other
keywords are optional.

Variable Description Default


edit <offset_list_id> Enter an entry number for the offset list. The No default.
number must be an integer.
access-list6 <name_str> Enter the name of the access list to use for this Null.
offset list. The access list is used to determine
which routes to add the metric to.
direction {in | out} Enter in to apply the offset to the metrics of out
incoming routes. Enter out to apply the offset to
the metrics of outgoing routes.
interface <name_str> Enter the name of the interface to match for this Null.
offset list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 61
http://docs.fortinet.com/ • Feedback
Dynamic routing for IPv6 traffic What’s new in FortiOS Version 4.0 MR1

Variable Description Default


offset <metric_integer> Enter the offset number to add to the metric. The 0
metric is the hop count. The metric_integer
range is from 1 to 16, with 16 being unreachable.
status {enable | disable} Enable or disable this offset list. disable

config redistribute
Use this subcommand to redistribute routes learned from OSPF, BGP, static routes, or a
direct connection to the destination network.
The RIPng redistribution table contains four static entries. You cannot add entries to the
table. The entries are defined as follows:
• bgp — Redistribute routes learned from BGP.
• connected — Redistribute routes learned from a direct connection to the destination
network.
• ospf — Redistribute routes learned from OSPF.
• static — Redistribute the static routes defined in the FortiGate unit routing table.
When you enter the subcommand, end the command with one of the four static entry
names (that is, config redistribute {bgp | connected | ospf | static}).

Note: All keywords are optional.

Variable Description Default


metric <metric_integer> Enter the metric value to be used for the 0
redistributed routes. The metric_integer range
is from 0 to 16.
routemap <name_str> Enter the name of the route map to use for the Null.
redistributed routes.
status {enable | disable} Enable or disable redistributing routes. disable

get router info6 {bgp | ospf | protocols | rip}


Use these commands to display information about the IPv6 dynamic routing protocols.
The get router info6 protocols command returns information about all of the
protocols.

Syntax
get router info6 bgp
get router info6 ospf
get router info6 protocols
get router info6 rip

FortiGate Version 4.0 MR1 Administration Guide


62 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 IPv6 DNS

IPv6 DNS
In FortiOS Version 4.0 MR1, you can configure DNS server addresses for IPv6 traffic. This
is available only in the CLI. There are new keywords for the config system dns
command, as follows:

Syntax
config system dns
set ip6-primary <ipv6_addr>
set ip6-secondary <ipv6_addr>
end

Variable Description Default


ip6-primary Enter the IP address of the primary DNS server for No default.
<ipv6_addr> IPv6 traffic.
ip6-secondary Enter the IP address of the secondary DNS server No default.
<ipv6_addr> for IPv6 traffic.

These new keywords also apply to the new config system vdom-dns command. See
“Per-VDOM DNS configuration” on page 74.

Example
config system dns
set ip6-primary 2002::1
set ip6-secondary 2002::2
end

IPv6 transparent mode


FortiOS 4.0 MR1 supports IPv6 traffic in Transparent mode.

IPv6 administrative access


You can configure remote administration over an IPv6 network. This is possible because
of changes to network interface and administrator configurations. To see IPv6 options in
the we-based manager, you must enable IPv6 Support on GUI in System > Admin >
Settings.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 63
http://docs.fortinet.com/ • Feedback
IPv6 administrative access What’s new in FortiOS Version 4.0 MR1

Network interface changes for IPv6


In the web-based manager, the network interface configuration (go to System > Network >
Interface) provides new fields for the IPv6 address and IPv6 Administrative Access.

Figure 3: Interface configuration with IPv6 Administrative Access options

By default, no administrative access is enabled for IPv6. In previous FortiOS releases,


only ping access was available for IPv6.
In the CLI, the config system interface command has new options for the
ip6-allowaccess keyword in the config ipv6 subcommand, as follows:

Syntax
config system interface
edit <interface_name>
config ipv6
set ip6-allowaccess <access_types>
end
end

Variable Description Default


ip6-allowaccess Enter the types of management access permitted on Null.
<access_types> this IPv6 interface.
Valid types are: http https ping snmp ssh
telnet. Separate each type with a space.
To add or remove an option from the list, retype the
complete list as required.

FortiGate Version 4.0 MR1 Administration Guide


64 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 IPv6 administrative access

Administrator settings
You can configure trusted host settings for administrators who connect over an IPv6
network. The Administrator settings (go to System > Admin > Administrators) provides
new fields for the IPv6 trusted host IP addresses.

Figure 4: IPv6 trusted host settings

The equivalent settings in the CLI are as follows:

Syntax
config system admin
edit "admin"
set ip6-trusthost1 2002::2/64
set ip6-trusthost2 ::/0
set ip6-trusthost3 ::/0
end

Variable Description Default


ip6-trusthost1 <ip6addr> Enter up to three trusted IPv6 address from No default.
ip6-trusthost2 <ip6addr> which administrative access is permitted.
ip6-trusthost3 <ip6addr>

Example
config system admin
edit "admin"
set ip6-trusthost1 2002::2/64
set ip6-trusthost2 ::/0
set ip6-trusthost3 ::/0
end

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 65
http://docs.fortinet.com/ • Feedback
UTM features support IPv6 traffic What’s new in FortiOS Version 4.0 MR1

UTM features support IPv6 traffic


FortiOS Version 4.0 MR1 can perform antivirus scanning on IPv6 traffic. As with IPv4
traffic, in the firewall policy you select a protection profile that includes AV scanning.
URL Filtering using FortiGuard ratings, local ratings or local categories is supported for
IPv6 traffic. Rating by IP address is not supported.

Note: IPS for IPv6 traffic is supported using DoS policy in both Transparent and
NAT/Route mode (same as 4.0).

HTTP basic authentication in firewall policies


HTTP basic authentication uses an authentication dialog box that is built into the browser
instead of an HTML form. This type of authentication is useful for mobile devices that
cannot work with HTML forms.
You can enable HTTP basic authentication at the VDOM level using a new option in the
user settings.
config user setting
set auth-http-basic {disable | enable}
end

VDOM dashboard
In previous versions of FortiOS, only administrators with the super_admin profile could
view the dashboard. In FortiOS Version 4.0 MR1, VDOM administrators see their own
VDOM-specific dashboard when they log in or go to System > Status. The super_admin
can view only the global dashboard.

Figure 5: VDOM dashboard

FortiGate Version 4.0 MR1 Administration Guide


66 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 IPsec protocol improvements

All dashboard widgets are available for use in the VDOM dashboard except for License
Information, Alert Message Console, Top Viruses, and Top Attacks. The available widgets
differ from their global equivalents as follows:
Table 3: Differences between global and VDOM dashboard widgets

Widget Differences with global widget


System information Cannot enable/disable Virtual Domains.
No listing of current administrators.
CLI Console User is logged into the current VDOM and cannot access global
configurations.
Unit Operation Unit reboot and shutdown are not available.
Cannot configure management service or FortiAnalyzer unit.
No information about network ports.
Top Sessions Shows only sessions for this VDOM.
Traffic History Can select only interfaces or VLANs belonging to this VDOM.

IPsec protocol improvements


FortiOS 4.0 MR1 will support IKEv2. Previous versions of FortiOS supported only IKEv1.

Support for IKE v2


FortiOS 4.0 MR1 supports IKEv2 (RFC 4306) for route-based VPNs only. Most IKEv1
configurations also work using IKEv2, except that:
• Extensible Authentication Protocol (XAUTH) is not available.
• Except for dialup server configurations, “selector narrowing” is not supported.
• IKEv2 has no equivalent of aggressive mode. It cannot match the gateway by ID.
Also, FortiGate HA does not provide stateful failover for IKEv2. VPNs must reconnect.
In the web-based manager, the IKE Version selection is visible in Phase 1 advanced
settings when Enable IPsec Interface Mode is enabled.
In the CLI, you select the IKE version as follows:
config vpn ipsec phase1-interface
edit <gateway_name>
set ike-version {1 | 2}
end
The ike-version keyword is not available if mode is aggressive. When
ike-version is 2, the mode, mode-cfg, and xauthtype keywords are not available.

Support for DH-2048 (Group 14)


In Phase 1 and Phase 2 auto-key IPsec VPN configurations, Diffie-Hellman Group 14 is
available. This provides a key strength of 2048 bits. In previous releases of FortiOS,
group 14 was available only in FIPS-CC mode.
In the web-based manager, you go to VPN > IPsec > Auto Key to create Phase 1 or
Phase 2 configurations. For both Phase 1 and Phase 2, the Diffie-Hellman groups
selection is part of the Advanced settings.
In the CLI, the dhgrp keyword now accepts the value 14 when you edit a VPN
configuration in any of the following commands:
config vpn ipsec phase1
config vpn ipsec phase1-interface

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 67
http://docs.fortinet.com/ • Feedback
IPsec protocol improvements What’s new in FortiOS Version 4.0 MR1

config vpn ipsec phase2


config vpn ipsec phase2-interface

Support for SHA256


In FortiOS 4.0 MR1, you can use the SHA256 authentication digest, which is more secure
than the SHA1 and MD5 algorithms. The SHA256 option is available in the web-based
manager locations:
• P1 Proposal, Authentication in VPN > IPsec > Auto Key (IKE) > Create Phase 1
• P2 Proposal, Authentication in VPN > IPsec > Auto Key (IKE) > Create Phase 2
• Authentication Algorithm, in VPN > IPsec > Manual Key > Create New
The equivalent settings in the CLI are:
• config vpn ipsec phase1 or config vpn ipsec phase1-interface
edit <gateway_name>
set proposal <encryption_combination>
You can set the authentication portion of <encryption_combination> to SHA256,
for example 3des-sha256.
• config vpn ipsec phase2 or config vpn ipsec phase2-interface
edit <tunnel_name>
set proposal <encryption_combination>
You can set the authentication portion of <encryption_combination> to SHA256,
for example 3des-sha256.
• config vpn ipsec manualkey
edit <tunnel_name>
set authentication <authentication_algorithm>
You can set <authentication_algorithm> to sha256.
• config vpn ipsec manualkey-interface
edit <tunnel_name>
set auth-alg <authentication_algorithm>
You can set <authentication_algorithm> to sha256.

FortiGate Version 4.0 MR1 Administration Guide


68 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Auto-configuration of IPsec VPNs

Auto-configuration of IPsec VPNs


FortiOS Version 4.0 MR1 supports automatic configuration of IPsec VPNs using the
proposed IKE Configuration Method described in draft-dukes-ike-mode-cfg-02. Several
network equipment vendors support IKE Configuration Method, which is an alternative to
DHCP over IPSec.
Dialup VPN clients connect to a FortiGate unit that acts as a VPN server, providing the
client the necessary configuration information to establish a VPN tunnel. The configuration
information typically includes a virtual IP address, netmask, and DNS server address.
IKE Configuration Method is available only for VPNs that are interface-based, also known
as route-based. A FortiGate unit can function as either an IKE Configuration Method
server or client.

IPsec Phase 1 CLI configuration for IKE Configuration Method


The mode-cfg keyword enables IKE Configuration Method. The type keyword,
although unchanged from previous releases, determines whether you are creating a
server or a client. Setting type to dynamic creates a server configuration, otherwise
the configuration is a client.
The following syntax lists only the keywords that pertain to IKE Configuration Method. All
of these keywords can be used to configure a server. Required keywords are interface,
proposal, either ip4-start-ip, ip4-end-ip and ipv4-netmask or
ip6-start-ip, ip6-end-ip and ip6-prefix, depending on the value of
mode-cfg-ip-version.
To configure a client, the required keywords are interface, remote-gw, and
proposal.

Syntax
config vpn ipsec phase1-interface
edit <gateway_name>
set add-route {enable | disable}
set assign-ip {enable | disable}
set assign-ip-from {range | usrgrp}
set assign-ip-type {ip | subnet}
set banner <string>
set domain <string>
set mode-cfg {enable | disable}
set mode-cfg-ip-version {4|6}
set ipv4-dns-server1
set ipv4-dns-server2
set ipv4-dns-server3
set ipv6-dns-server1
set ipv6-dns-server2
set ipv6-dns-server3
set ipv4-end-ip <ip4addr>
set ipv6-end-ip <ip6addr>
set ipv4-netmask <ip4mask>
set ipv4-start-ip <ip4addr>
set ipv6-start-ip <ip6addr>
set ipv6-prefix <ip6prefix>
set ipv4-wins-server1
set ipv4-wins-server2

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 69
http://docs.fortinet.com/ • Feedback
Auto-configuration of IPsec VPNs What’s new in FortiOS Version 4.0 MR1

set unity-support {enable | disable}


config ipv4-exclude-range
edit <entry_id>
set start-ip <ipaddr>
set end-ip <ipaddr>
end
config ipv6-exclude-range
edit <entry_id>
set start-ip <ipaddr>
set end-ip <ipaddr>
end
end

Variable Description Default


add-route Enable to add a route to the client’s peer destination enable
{enable | disable} selector. Disable if you use dynamic routing over the
tunnel.
assign-ip For a client, enable to request an IP address from enable
{enable | disable} the server. For a server, enable to assign an IP
address to a dialup client. This is available if
mode-cfg (IKE Configuration Method) is enabled.
assign-ip-from Select source of IP address assigned to an IKE range
{range | usrgrp} Configuration Method client.
range — Assign an IP address from the range
defined in ipv4-start-ip and ipv4-end-ip
(ipv6-start-ip and ipv4-end-ip for IPv6
clients).
usrgrp — Assign the address defined in the
RADIUS Framed-IP-Address for the user. This is
available when the VPN is configured to authenticate
clients with XAuth. xauthtype must be auto, pap,
or chap.
This is available if mode-cfg (IKE Configuration
Method) is enabled.
assign-ip-type Select the type of IP address assigned to an IKE ip
{ip | subnet} Configuration Method client:
ip — assign a single IP address to the client, as
configured in assign-ip-from.
subnet — assign an IP address to each end of the
VPN tunnel, as configured in assign-ip-from.
This type of IP address assignment facilitates the
use of dynamic routing through the tunnel.
This is available if mode-cfg (IKE Configuration
Method) is enabled.
banner <string> Specify a message to send to IKE Configuration Null
Method clients. Some clients display this message to
users. This is available if mode-cfg (IKE
Configuration Method) is enabled.
domain <string> Specify a domain name to send to IKE Configuration Null
Method clients. This is available if mode-cfg (IKE
Configuration Method) is enabled.
mode-cfg Enable IKE Configuration Method so that compatible disable
{enable | disable} clients can configure themselves with settings that
the FortiGate unit provides. This is available if type
is dynamic.
mode-cfg-ip-version Select whether an IKE Configuration Method client 4
{4|6} receives an IPv4 or IPv6 IP address. This is
available if mode-cfg and assign-ip are enabled.

FortiGate Version 4.0 MR1 Administration Guide


70 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Auto-configuration of IPsec VPNs

Variable Description Default


ipv4-dns-server1 Enter DNS server addresses to provide to IKE 0.0.0.0
ipv6-dns-server1 Configuration Method clients. If the value is ::
ipv4-dns-server2 0.0.0.0, no DNS server address is provided.
ipv6-dns-server2 Either the IPv4 or IPv6 version of these keywords is
available, depending on mode-cfg-ip-version.
ipv4-dns-server3
ipv6-dns-server3
ipv4-end-ip Set end of IP address range to assign to IKE No default.
<ip4addr> Configuration Method clients. This is available when
ipv6-end-ip mode-cfg is enabled, type is dynamic, and
assign-ip-from is range.
<ip6addr>
Either the IPv4 or IPv6 version of this keyword is
available, depending on mode-cfg-ip-version.
ipv4-netmask Set the netmask value to pass to IKE Configuration No default.
<ip4mask> Method clients.
ipv4-split-include Select the address or address group that the client Null.
<address_name> can reach through the VPN. This information is sent
to the client as part of IKE Configuration Method.
ipv4-start-ip Set start of IP address range to assign to IKE No default.
<ip4addr> Configuration Method clients. This is available when
ipv6-start-ip mode-cfg is enabled, type is dynamic, and
assign-ip-from is range.
<ip6addr>
Either the IPv4 or IPv6 version of this keyword is
available, depending on mode-cfg-ip-version.
ipv4-wins-server1 Enter WINS server addresses to provide to IKE 0.0.0.0
ipv4-wins-server2 Configuration Method clients. If the value is
0.0.0.0, no WINS server address is provided.
ipv6-prefix Specify the size, in bits, of the network portion of the 0
<ip6prefix> subnet address for IPv6 IKE Configuration Method
clients. Range is 0 to 128.
This is available when mode-cfg-ip-version is
6 and assign-ip-type is subnet.
unity-support Enable support for Cisco Unity IKE Configuration enable
{enable | disable} Method extensions in either a server or a client.
config ipv4-exclude-range and config ipv6-exclude-range Variables
start-ip <ipaddr> Enter the start of the exclude range. No default.
end-ip <ipaddr> Enter the end of the exclude range. No default.

IPsec Phase 2 configuration for IKE Configuration Method


There are several changes to the phase2-interface configuration when IKE
Configuration Method is configured in the corresponding phase1-interface
configuration.
The dhcp-ipsec keyword is not available if the corresponding phase1-interface has
mode-cfg enabled. IKE Configuration Method is an alternative to DHCP over IPsec.
The keywords beginning with “src-” and “dst-” are not available if the corresponding
phase1-interface configuration has mode-cfg enabled and type is set to static
or ddns. This is the configuration for an IKE Configuration Method client, which receives
information about destination subnets from the server and thus must not specify any traffic
selectors itself.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 71
http://docs.fortinet.com/ • Feedback
Integral basic DNS server What’s new in FortiOS Version 4.0 MR1

Integral basic DNS server


FortiOS Version 4.0 MR1 provides DNS service that you can make available on your
networks. It can resolve local domain names and optionally recurse to the DNS server
configured for the FortiGate unit.

Creating local DNS entries


In the web-based manager, go to System > Network > DNS Database to configure local
DNS entries. This is a per-VDOM configuration.
You must first create the DNS zone. Select Create New and enter the following
information:

DNS Zone Enter the DNS zone name.


Domain Name Enter the DNS domain name
TTL (seconds) Range 0 to 2 147 483 647.

Add DNS entries to zones as follows:


1 Go to System > Network > DNS Database.
2 Select the Edit icon for an existing DNS zone.
3 Select Create New.
4 In the New DNS Entry dialog box, enter the following information and select OK.

Type Select the type of entry:


Address (A), IPv6 Address (AAAA), Name Server (NS),
Canonical Name (CNAME), or Mail Exchange (Mx).
Hostname Enter the host name.
IP Address Enter the host’s IP address (IPv4).
Available if Type is Address (A).
IPv6 Address Enter the host’s IP address (IPv6).
Available if Type is IPv6 Address (AAAA).
Canonical Name Enter the host’s fully qualified domain name.
Available if Type is Canonical Name (CNAME).
Preference Enter the MX preference value. Range 0 to 65 535.
Available if Type is Mail Exchange (Mx).
TTL (seconds) Enter the TTL value. Enter 0 to use the Zone TTL value.

To add local DNS entries using the CLI, use the following new command.

Syntax
conf system dns-database
edit <zone-string>
set domain <domain>
set ttl <int>
config dns-entry
edit <entry-id>
set canonical-name <canonical_name_string>
set hostname <hostname_string>
set ip <ip_address>
set ipv6 <ipv6_address>

FortiGate Version 4.0 MR1 Administration Guide


72 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Integral basic DNS server

set preference <preference_value>


set status {enable | disable}
set ttl <entry_ttl_value>
set type {A|AAAA|MX|NS|CNAME}
end
end

Variable Description Default


edit <zone-string> Enter the DNS zone name. This is significant No default.
only on the FortiGate unit itself.
set domain <domain> Set the domain name here -- when matching No default.
lookup, use this zone name to match DNS
queries
set ttl <int> Set the packet time-to-live in seconds. Range 86400
0 to 2 147 483 647.
config dns-entry Variables
edit <entry-id>
canonical-name Enter the canonical name of the host. This is Null
<canonical_name_string> available if type is CNAME.
hostname Enter the name of the host. Null
<hostname_string>
ip <ip_address> Enter the IP address (IPv4) of the host. This is 0.0.0.0
available if type is A.
ipv6 <ipv6_address> Enter the IP address (IPv6) of the host. This is ::
available if type is AAAA.
preference Enter the preference level. 0 is the highest 10
<preference_value> preference. This is available if type is MX.
status Enable the DNS entry. enable
{enable | disable}
ttl <entry_ttl_value> Optionally, override the zone time-to-live value. 0
Range 0 to 2 147 483 647 seconds.
Set to 0 to use zone ttl value.
type A — IPv4 host A
{A|AAAA|MX|NS|CNAME} AAAA — IPv6 host
CNAME — alias
MX — mail server
NS — name server

Enabling DNS on an interface


In earlier versions of FortiOS, relay of DNS queries could be configured on models
numbered 100 or lower for the Internal or DMZ interfaces. In FortiOS Version 4.0 MR1,
DNS relay can be configured on any FortiGate model for any network interface.
In the web-based manager, configure DNS relay as follows.
1 Go to System > Network > Interface.
2 Select the Edit icon for the interface that you want to configure.
3 Select DNS Query and then choose one of the following options:
• recursive — Look up domain name in local database. If the entry is not found, relay
the request to the DNS server configured for the FortiGate unit.
• non-recursive — Look up domain name in local database. Do not relay the request
to the DNS server configured for the FortiGate unit.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 73
http://docs.fortinet.com/ • Feedback
Per-VDOM DNS configuration What’s new in FortiOS Version 4.0 MR1

4 Select Apply or OK.


To configure DNS relay using the CLI, use the new dns-query keyword in the network
interface configuration, as follows.
conf system interface
edit <interface_name>
set dns-query {recursive | non-recursive | disable}
end

Variable Description Default


edit <interface_name> Enter the name of the interface to configure. No default.
dns-query {recursive | disable — Disable DNS. disable
non-recursive | disable} non-recursive — Look up domain name On models
in local database. Do not relay the request to 100 and lower,
the DNS server configured for the FortiGate the Internal
unit. interface
recursive — Look up domain name in defaults to
local database. If the entry is not found, relay recursive.
the request to the DNS server configured for
the FortiGate unit.

Per-VDOM DNS configuration


In FortiOS 4.0 MR1, you can optionally define separate DNS servers for each non-
management VDOM. The management VDOM always uses the global DNS servers.
You configure the global DNS servers using the CLI command config system dns.
The VDOM-level configuration is similar:
config vdom
edit <vdom_name>
config system vdom-dns
set vdom-dns {enable | disable}
set primary <dns_ipv4>
set secondary <dns_ip4>
set ip6-primary <dns_ip6>
set ip6-secondary <dns_ip6>
end
end

Variable Description Default


vdom-dns Enable to define DNS servers for this VDOM. disable
{enable | disable} Disable to use global DNS servers.
primary <dns_ipv4> Enter the primary IPv4 DNS server IP address. 0.0.0.0
secondary <dns_ip4> Enter the secondary IPv4 DNS IP server address. 0.0.0.0
ip6-primary <dns_ip6> Enter the primary IPv6 DNS server IP address. ::
ip6-secondary <dns_ip6> Enter the secondary IPv6 DNS IP server address. ::

FortiGate Version 4.0 MR1 Administration Guide


74 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Password policy

Password policy
Optionally, you can set a password policy to require more secure passwords than the
FortiGate defaults. The password policy can apply to administrators or IPsec VPN pre-
shared keys. You can
• require the use of special characters in the password
• require periodic password changes
• set a minimum amount of change in the new password (available in CLI only)

To set a password policy - web-based manger


1 Go to System > Admin > Settings.
2 In the Password Policy section, configure the following:

Enable Select to enable the password policy.


Minimum Length Set the minimum acceptable length for passwords.
Must contain Select any of the following special character types to require in a
password. Each selected type must occur at least once in the
password.
Upper Case Letters — A, B, C, ... Z
Lower Case Letters — a, b, c, ... z
Numerical digits — 0, 1, 2, 3, 4, 5, 6, 7 8, 9
Non-alphanumeric letters — punctuation marks, @,#, %, etc.
Apply Password Select where to apply the password policy:
Policy to Admin Password — Apply to administrator passwords. If any
password does not conform to the policy, require that administrator
to change the password at the next login.
IPSEC Preshared Key — Apply to preshared keys for IPSec VPNs.
The policy applies only to new preshared keys. You are not required
to change existing preshared keys.
Admin Password Require administrators to change password after a specified
Expires after n days number of days. Specify 0 if you do not want to require periodic
password changes.

3 Configure other administration settings as needed.


4 Select Apply.

To set a password policy - CLI


config system password-policy
set status {enable | disable}
set apply-to [admin-password ipsec-preshared-key]
set change-4-characters {enable | disable}
set expire <days>
set minimum-length <chars>

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 75
http://docs.fortinet.com/ • Feedback
Use LDAP groups in firewall and SSL-VPN authentication What’s new in FortiOS Version 4.0 MR1

set must-contain [lower-case-letter upper-case-letter


non-alphanumeric number]
end

Variable Description Default


apply-to [admin-password Select where the policy applies: admin-password
ipsec-preshared-key] administrator passwords or IPSec
preshared keys.
change-4-characters Enable to require the new password to disable
{enable | disable} differ from the old password by at least
four characters.
expire <days> Set time to expiry in days. Enter 0 for no 0
expiry.
minimum-length <chars> Set the minimum length of password in 8
characters. Range 8 to 32.
must-contain Specify character types that must occur Null
[lower-case-letter at least once in the password.
upper-case-letter
non-alphanumeric number]
status {enable | disable} Enable password policy. disable

config system admin


edit <name_str>
set force-password-change {enable | disable}
set password-expire YYYY-MM-DD HH:MM:SS
end

Variable Description Default


edit <name_str> Enter the name of the administrator that you No default.
want to configure.
force-password-change Enable to require this administrator to change disable
{enable | disable} password at next login. Disabling this option
does not prevent required password change due
to password policy violation or expiry.
password-expire Enter the date and time that this administrator’s 0000-00-00
YYYY-MM-DD HH:MM:SS password expires. Enter zero values for no 00:00:00
expiry.

Use LDAP groups in firewall and SSL-VPN authentication


Membership in specific user groups on an LDAP server can be part of the authentication
requirements for firewall or SSL VPN users. This enables you to use the group
memberships on a Windows AD system to control user access to resources on the
FortiGate unit.
In the CLI, when you define a FortiGate user group, you can specify the required LDAP
server user group memberships using the new ldap-memberof keyword.
config user group
edit <FGTgroupname>
set group-type {sslvpn | firewall }
set member <user1> [<user2>] [<usern>...]
set ldap-memberof <LDAPgroupstring>
end

FortiGate Version 4.0 MR1 Administration Guide


76 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Traffic shaping enhancements

<LDAPgroupstring> is an LDAP Distinguished Name (DN) specifying the group, for


example CN=group1,CN=Users,DC=test,DC=com. You can specify multiple groups by
separating the group DNs with a semicolon (;).
When the FortiGate unit authenticates an LDAP user in the FortiGate user group, the
user’s group memberships on the LDAP server must match at least one of the groups
listed in the ldap-memberof keyword value.

Traffic shaping enhancements


FortiOS Version 4.0 MR1 introduces accounting, traffic quotas, and per-IP traffic shaping.
The existing traffic shaper is now called a shared traffic shaper.

Shared traffic shaping


The traffic shaper is renamed to Shared Traffic Shaper. Go to Firewall > Traffic Shaper >
Shared. Traffic shaping options are unchanged from the previous version, but accounting
and traffic quota options have been added. See “Accounting and quota enforcement”,
below.

Per-IP traffic shaping


In FortiOS 4.0 MR1, you can configure traffic shaping that is applied per IP address,
instead of per policy or per shaper. As with the shared traffic shaper, you select the per-IP
traffic shaper in firewall policies.

To configure a per-IP traffic shaper - web-based manager


1 Go to Firewall > Traffic Shaper > Per-IP.
2 Enter the following information and then select OK.

Figure 6: Configuring a per-IP traffic shaper

Name Enter a name for the traffic shaper.


Maximum Bandwidth Select the check box and enter the maximum allowed bandwidth in
Kbps. This limit applies to each IP address. Range 1 to
2 097 000. Enter 0 to disable bandwidth limit.
Quotas and Accounting See “Accounting and quota enforcement”, below.
IP List
IP/Range An IP address or range of addresses that this shaper controls.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 77
http://docs.fortinet.com/ • Feedback
Traffic shaping enhancements What’s new in FortiOS Version 4.0 MR1

Delete icon Delete the IP address/range entry.


Add Add an entry to the table.

To configure a per-IP traffic shaper - CLI


config firewall shaper per-ip-shaper
edit <shaper_name>
set bps <bandwidth>
config iplist
edit <entry_id>
set start <ip4>
set end <ip4>
end
end

Variable Description Default


bps <bandwidth> Enter the maximum allowed bandwidth in Kbps. This limit 0
applies to each IP address.
Set to 0 to disable bandwidth limit.
start <ip4> Enter the starting and ending IP addresses for an No
end <ip4> address range that this shaper controls. To enter a single default.
IP address, enter the address as both start and end.

The accounting and quota options are described in the following section.

Accounting and quota enforcement


Both the shared and per-IP traffic shapers provide traffic accounting with enforceable
quotas.

To configure traffic quotas and accounting - web-based manager


1 Go to Firewall > Traffic Shaper > Shared or Firewall > Traffic Shaper > Per-IP.
2 Select Create New or select the Edit icon for an existing traffic shaper.
3 In the Quotas and Accounting section, enter the following information:

Figure 7: Traffic shaper quotas and accounting configuration

None Select to disable accounting and quotas.


Enforce Traffic Quota n MB per Select to enforce a traffic quota. Enter the maximum
amount of data in Mbytes and select the time period:
Hour, Day, Week, or Month. Traffic beyond the quota is
blocked.
Generate Accounting Log every Enable to log the volume of traffic through the traffic
shaper. Select the log period: Hour, Day, Week, or
Month.

4 Configure other traffic shaping options as needed.


5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


78 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Logging enhancements

To configure traffic quotas and accounting - CLI


In FortiOS 4.0 MR1, the config firewall traffic-shaper command is replaced by
config firewall shaper traffic-shaper and
config firewall shaper per-ip-shaper. The quota configuration for both is:
edit <shaper_name>
set action {none | log | block}
set quota <Mbytes>
set type {hour | day | week | month}
end

Variable Description Default


action {none | log | block} Select the traffic shaper action for quotas:
none — do nothing
log — generate a traffic accounting log for
each time period selected in type
block — block traffic and log the event
quota <Mbytes> Enter the quota in Mbytes. This is available 0
when action is block.
type Select the time period for quota and logging. hour
{hour | day | week | month}

Logging enhancements
Due to the new per-VDOM FortiAnalyzer unit feature, there are some changes to logging
configuration in general:

Web-based manager changes


• On the Log Setting page, the logging device radio buttons are now check boxes. You
can enable multiple logging devices.
• Automatic FortiAnalyzer discovery is now available only in the CLI.
• For local logs, the new SQL log storage format is the default for all log types except
content archiving and traffic logs. This is the only format from which you can generate
reports. Content archiving is not available in SQL format. You can enable SQL format
logging for traffic logs, but this can cause some loss of logs because SQL format
writing is slower than the compressed format.

CLI changes
In the CLI, the global FortiAnalyzer configuration has moved from
system fortianalyzer to log fortianalyzer setting. The keywords within the
command are unchanged.

Support for per-VDOM FortiAnalyzer units or syslog devices


FortiOS Version 4.0 MR1 supports the use of multiple FortiAnalyzer units or syslog
devices that are configurable per-VDOM. By default, VDOMs use the global remote
logging and quarantine configuration. Currently, per-VDOM remote logging configuration
is available only in the CLI.
If you want to use a different FortiAnalyzer or syslog configuration for your VDOM, you
must override the global configuration using the following commands:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 79
http://docs.fortinet.com/ • Feedback
Logging enhancements What’s new in FortiOS Version 4.0 MR1

log fortianalyzer override-filter


Use this command to override the global configuration created with the config log
fortianalyzer filter command. The filter determines which types of log messages
are sent to the FortiAnalyzer unit.

Syntax
config log fortianalyzer override-filter
set override {enable | disable}
set ...
set ...
end
When you set override to enable, you can configure log filter settings for your VDOM
using the same keywords as in the global log fortianalyzer filter command.

log syslogd override-filter


Use this command to override the global configuration created with the config log
syslogd filter command. The filter determines which types of log messages are sent
to the syslog device.

Syntax
config log syslogd override-filter
set override {enable | disable}
set ...
set ...
end
When you set override to enable, you can configure log filter settings for your VDOM
using the same keywords as in the global log syslogd filter command.

log fortianalyzer override-setting


Use this command to override the global configuration created with the config log
fortianalyzer setting command. These settings configure the connection to the
FortiAnalyzer unit.

Syntax
config log fortianalyzer override-setting
set override {enable | disable}
end
When you set override to enable, you can configure FortiAnalyzer settings for your
VDOM using the same keywords as in the global log fortianalyzer setting
command. Your override settings can use the same FortiAnalyzer unit as another VDOM,
but cannot use the FortiAnalyzer unit that is configured as a the global remote logging
device.

log syslogd override-setting


Use this command to override the global configuration created with the config log
syslogd setting command. These settings configure the connection to the syslog
device.

Syntax
config log syslogd override-setting

FortiGate Version 4.0 MR1 Administration Guide


80 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Logging enhancements

set override {enable | disable}


end
When you set override to enable, you can configure syslog settings for your VDOM
using the same keywords as in the global log syslogd setting command.

antivirus quarantine quar-override-setting


Use this command to override the quar-to-fortianalyzer setting in the global
antivirus quarantine command.

Syntax
config antivirus quar-override-setting
set override {enable | disable}
set destination {null | disk | fortianalyzer}
end

Variable Description Default


override Enable to configure quarantine destination for this disable
{enable | disable} VDOM. Disable to use global quarantine destination.
destination Select where to quarantine files: null
{null | disk | null — Do not quarantine files.
fortianalyzer} disk — Quarantine to hard disk. Available on models
that include a hard disk.
fortianalyzer — Quarantine to the FortiAnalyzer unit
configured for this VDOM.

SQL log format for Executive Summary reports


On FortiGate units that contain a hard drive, you can display Executive Summary reports
based on logs stored in an SQL database. The log messages are stored in text format in
the database.
You can also customize the appearance of existing reports and create new reports from
the FortiGate CLI using the config report CLI commands.
For more information, see “Viewing Executive Summary reports from SQL logs” on
page 730

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 81
http://docs.fortinet.com/ • Feedback
Antivirus changes What’s new in FortiOS Version 4.0 MR1

Antivirus changes
For FortiOS 4.0 MR1, if you enable VDOMs, all UTM > Antivirus options are now
configured separately for each VDOM. In FortiOS 4.0 GA, only administrators with global
access could configure and manage the file quarantine, view the virus list, and configure
the grayware list.
In addition, the following antivirus functionality has been renamed or moved:
• Go to Log & Report > Quarantined Files to view the quarantined files list. The
functionality of the quarantined files list is unchanged except that with VDOMs enabled
the Quarantined files list is now available for each VDOM and only shows files
quarantined from that VDOM.
• UTM > Antivirus > Quarantine was UTM > Antivirus > Config. Functionally is
unchanged.
• Go to UTM > Virus Database to view information about the current virus database on
the FortiGate unit. For FortiGate units that support the extended virus database you
can go to UTM > Virus Database and select the virus database to use for virus
scanning. With VDOMs enabled you select the virus database to use for virus scanning
for the VDOM.
• For FortiGate units that support the extended virus database you can select the virus
database to use for individual protection profiles from the CLI. The Protection Profile
Antivirus > Extended AV Database option has been removed from the web-based
manager. New CLI options for selecting the antivirus database for a protection profile
are available for each protocol. For example, to select the antivirus database in the
scan protection profile for http and for FTP, enter:
config firewall profile
edit scan
set http-avdb {default | extended | normal}
set ftp-avdb {default | extended | normal}
end
• Go to UTM > Virus Database to enable grayware detection. The previous UTM >
Grayware page has been removed and you can no longer enable or disable individual
grayware categories.

Figure 8: Virus Database

FortiGate Version 4.0 MR1 Administration Guide


82 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Reliable syslog

Reliable syslog
Reliable syslog protects log information through authentication and data encryption and
ensures that the log messages are reliably delivered in order. FortiOS 4.0 MR1
implements the RAW profile of RFC 3195. This feature is configurable only in the CLI.

Syntax
These are global settings.
config log syslogd setting
set reliable {enable | disable}
end
config log syslogd2 setting
set reliable {enable | disable}
end
config log syslogd3 setting
set reliable {enable | disable}
end
In each VDOM, you can enable reliable syslog as part of an override of the global syslog
settings. See “Support for per-VDOM FortiAnalyzer units or syslog devices” on page 79.
conf log syslogd override-setting
set reliable {enable | disable}
end
By default, reliable syslog is disabled.

Web filtering combined block/exempt list


FortiOS Version 4.0 MR1 combines the Web Content Block and Web Content Exempt lists
into one list. Go to Web Filter > Web Content. As before, you first create a list and then
add entries. The new entry dialog box looks like this:

Figure 9: New combined web filter content block/exempt list entry

Action Select one of:


Block — If the pattern matches, the Score is added to the total for the web page.
The page is blocked if the total score of the web page exceeds the web content
block threshold defined in the protection profile.
Exempt — If the pattern matches, the web page will not be blocked even if there
are matching Block entries.
Pattern Enter the content pattern. Web content patterns can be one word or a text string
up to 80 characters long.
For a single word, the FortiGate checks all web pages for that word. For a phrase,
the FortiGate checks all web pages for any word in the phrase. For a phrase in
quotation marks, the FortiGate unit checks all web pages for the entire phrase.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 83
http://docs.fortinet.com/ • Feedback
Web filtering combined block/exempt list What’s new in FortiOS Version 4.0 MR1

Pattern Type Select a pattern type from the dropdown list: Wildcard or Regular Expression.
Language The character set to which the pattern belongs: Simplified Chinese, Traditional,
Chinese, French, Japanese, Korean, Thai, or Western.
Score Enter a score for the pattern.
When you add a web content list to a protection profile you configure a web
content block threshold for the protection profile. When a web page is matched
with an entry in the content block list, the score is recorded. If a web page matches
more than one entry the score for the web page increases. When the total score
for a web page equals or exceeds the threshold, the page is blocked.
The default score for a content list entry is 10 and the default threshold is 10. This
means that by default a web page is blocked by a single match. You can change
the scores and threshold so that web pages can only be blocked if there are
multiple matches.
Enable Select to enable the entry.

CLI Syntax
config webfilter content
edit <entry_number>
set name <list_str>
set comment <comment_str>
config entries
edit <content_str>
set action {block | exempt}
set lang {french | japanese | korean | simch |
spanish |thai | trach | western}
set pattern-type {regexp | wildcard}
set score <score_int>
set status {enable | disable}
end
end
C

Variable Description Default


edit <entry_number> A unique number to identify the banned word list.
name <list_str> The name of the banned word list.
comment The comment attached to the banned word list.
<comment_str>
config entries Variables
edit <content_str> Enter the content to match.
action Select one of: block
{block | exempt} Block — If the pattern matches, the Score is added to the
total for the web page. The page is blocked if the total
score of the web page exceeds the web content block
threshold defined in the protection profile.
Exempt — If the pattern matches, the web page will not
be blocked even if there are matching Block entries.
lang {french | Enter the language character set used for the content. western
japanese | korean | Choose from French, Japanese, Korean, Simplified
simch | Chinese, Spanish, Thai, Traditional Chinese, or Western.
spanish |thai |
trach | western}
pattern-type Set the pattern type for the content. Choose from regexp wildcard
{regexp | wildcard} or wildcard.Create patterns for banned words using
Perl regular expressions or wildcards.

FortiGate Version 4.0 MR1 Administration Guide


84 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 Web filtering by content header

Variable Description Default


score <score_int> A numerical weighting applied to the content. The score 10
values of all the matching words appearing on a web
page are added, and if the total is greater than the
webwordthreshold value set in the protection profile,
the page is processed according to whether the
bannedword option is set with the http command in the
protection profile. The score for banned content is
counted once even if it appears multiple times on the web
page.
status Enable or disable the content entry. disable
{enable | disable}

Web filtering by content header


FortiOS 4.0 MR1 introduces web filtering by MIME content header. You can use this
feature to broadly block content by type. But it is also useful to exempt audio and video
streaming files from antivirus scanning. Scanning these file types can be problematic.
The content header list is available in the CLI only.

Syntax
config webfilter content-header
edit <entry_number>
set name <list_name>
set comment <comment_str>
config entries
edit <regex>
set action {block | exempt}
set status {enable | disable}
end
end
C

Variable Description Default


edit <entry_number> A unique number to identify the content header list.
name <list_name> The name of the content header list.
comment The comment attached to the content header list.
<comment_str>
config entries Variables
edit <regex> Enter a regular expression to match the content header.
For example, .*image.* matches image content
types.
action Select one of: block
{block | exempt} Block — If the pattern matches, the content is blocked.
Exempt — If the pattern matches, the content is
exempted from antivirus scanning.
status Enable or disable the content header entry. disable
{enable | disable}

After you have created content header lists, you need to select the content header list in
the protection profile as follows:
config firewall profile
edit <profile_name>

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 85
http://docs.fortinet.com/ • Feedback
Safe search What’s new in FortiOS Version 4.0 MR1

...
set content-header-list <list_name>
...
end

Safe search
FortiOS Version 4.0 MR1 can prevent users from disabling the safe search feature of the
Google, Yahoo!, or Bing search engines. This is important in environments such as
education where web filtering is used to block sites with inappropriate content. If users can
bypass the search engine safe search feature, the returned search results can contain
inappropriate material in either summary text or thumbnail images.
The following procedures assume that the relevant firewall policies apply the protection
profile that you are configuring.

To enforce safe searching - web-based manager


1 Go to Firewall > Protection Profile.
2 Select the Edit icon for the protection profile that you use.
3 Expand the Web Filtering category.
4 Select the Safe Search check box for Google and Yahoo!
5 Select OK.

To enforce safe searching - CLI


config firewall profile
edit <profile_str>
set safesearch [google yahoo]
end

Data Leak Prevention supports international character sets


Data Leak Prevention (DLP) in FortiOS Version 4.0 MR1 has improved ability to detect
data leaks where international character sets are used. DLP performs text comparisons
according to its rules after converting the text to UTF-8.
Because character sets are not always accurately indicated in HTTP posts, you can
optionally specify up to five character set encodings that will be checked in addition to the
indicated character set. This feature can affect performance and it can be configured only
in the CLI.
config firewall profile
edit <profile_name>
set http-post-lang [<charset1> ... <charset5>]
end
To view the list of available character sets, enter set http-post-lang ? from within
the edit shell for the profile.

FortiGate Version 4.0 MR1 Administration Guide


86 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
What’s new in FortiOS Version 4.0 MR1 SNMPv3 enhancements

SNMPv3 enhancements
FortiOS 4.0 introduced basic support for SNMPv3, the latest version of the Simple
Network Management Protocol. FortiOS Version 4.0 MR1 adds support for
• snmpEngineID
• user authentication and encryption capabilities.
You can configure these new features only in the CLI.

Support for snmpEngineID


FortiOS Version 4.0 MR1 adds the SNMPv3 snmpEngineID value defined in RFC3414.
Each SNMP engine maintains a value, snmpEngineID, which uniquely identifies the
SNMP engine. This value is included in each message sent to or from the SNMP engine.
In FortiOS, the snmpEngineID is composed of two parts:
• Fortinet prefix 0x8000304404
• the engine-id string, 24 characters maximum, defined in the CLI
config system snmp sysinfo command
The snmpEngineID is optional, so you are not required to define an engine-id value.

To specify engine-id
config system snmp sysinfo
set engine-id <string>
end

Authentication and privacy


FortiOS Version 4.0 MR1 implements the user security model of RFC 3414. You can
require the user to authenticate with a password and you can use encryption to protect the
communication with the user.

Syntax
The following syntax description includes only the new keywords related to security.
config system snmp user
edit <username>
set security-level <slevel>
set auth-proto {md5 | sha}
set auth-pwd <password>
set priv-proto {aes | des}
set priv-pwd <key>
end

Variable Description Default


security-level Set security level to one of: no-auth-no-priv
<slevel> no-auth-no-priv — no authentication or privacy
auth-no-priv — authentication but no privacy
auth-priv — authentication and privacy
auth-proto Select authentication protocol: sha
{md5 | sha} md5 — HMAC-MD5-96 authentication protocol
sha — HMAC-SHA-96 authentication protocol
This is available if security-level is auth-priv
or auth-no-priv.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 87
http://docs.fortinet.com/ • Feedback
Schedule groups What’s new in FortiOS Version 4.0 MR1

Variable Description Default


auth-pwd Enter the user’s password. Maximum 32 characters. No default.
<password> This is available if security-level is auth-priv
or auth-no-priv.
priv-proto Select privacy (encryption) protocol: aes
{aes | des} aes — CFB128-AES-128 symmetric encryption
des — CBC-DES symmetric encryption
This is available if security-level is
auth-priv.
priv-pwd <key> Enter the privacy encryption key. Maximum 32 No default.
characters. This is available if security-level is
auth-priv.

Schedule groups
You can now create schedule groups, similar to address groups or service groups. In a
firewall policy you can select either an individual schedule or a schedule group.

To create a schedule group - web-based manager


1 Go to Firewall > Schedule > Group and select Create New.

Figure 10: Schedule Group

Group Name Enter a name to identify the service group.


Available The list of recurring and one-time schedules available for your group. Use the
Schedules arrow buttons to move selected schedules between this list and Members.
Members The list of schedules in the group. Use the arrows to move selected
schedules between this list and Available Services.

2 Select OK

FortiGate Version 4.0 MR1 Administration Guide


88 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager

Web-based manager
This section describes the features of the user-friendly web-based manager administrative
interface (sometimes referred to as a graphical user interface, or GUI) of your FortiGate
unit.
Using HTTP or a secure HTTPS connection from any management computer running a
web browser, you can connect to the FortiGate web-based manager to configure and
manage the FortiGate unit. The recommended minimum screen resolution for the
management computer is 1280 by 1024.
You can configure the FortiGate unit for HTTP and HTTPS web-based administration from
any FortiGate interface. To connect to the web-based manager you require a FortiGate
administrator account and password. The web-based manager supports multiple
languages, but by default appears in English on first use.
You can go to System > Status to view detailed information about the status of your
FortiGate unit on the system dashboard. The dashboard displays information such as the
current FortiOS firmware version, antivirus and IPS definition versions, operation mode,
connected interfaces, and system resources. It also shows whether the FortiGate unit is
connected to a FortiAnalyzer unit and a FortiManager unit or other central management
services.
You can use the web-based manager menus, lists, and configuration pages to configure
most FortiGate settings. Configuration changes made using the web-based manager take
effect immediately without resetting the FortiGate unit or interrupting service. You can
back up your configuration at any time using the Backup Configuration button on the
button bar. The button bar is located in the upper right corner of the web-based manager.
The saved configuration can be restored at any time.
The web-based manager also includes detailed context-sensitive online help. Selecting
Online Help on the button bar displays help for the current web-based manager page.
You can use the FortiGate command line interface (CLI) to configure the same FortiGate
settings that you can configure from the web-based manager, as well as additional CLI-
only settings. The system dashboard provides an easy entry point to the CLI console that
you can use without exiting the web-based manager.
This section describes:
• Common web-based manager tasks
• Changing your FortiGate administrator password
• Changing the web-based manager language
• Changing administrative access to your FortiGate unit
• Changing the web-based manager idle timeout
• Connecting to the FortiGate CLI from the web-based manager
• Button bar features
• Contacting Customer Support
• Backing up your FortiGate configuration
• Using FortiGate Online Help
• Logging out

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 89
http://docs.fortinet.com/ • Feedback
Common web-based manager tasks Web-based manager

• Web-based manager pages


• Web-based manager icons

Common web-based manager tasks


This section describes the following common web-based manager tasks:
• Connecting to the web-based manager
• Changing your FortiGate administrator password
• Changing the web-based manager language
• Changing administrative access to your FortiGate unit
• Changing the web-based manager idle timeout
• Connecting to the FortiGate CLI from the web-based manager

Connecting to the web-based manager


To connect to the web-based manager, you require:
• a FortiGate unit connected to your network according to the instructions in the
QuickStart Guide and Install Guide for your FortiGate unit
• the IP address of a FortiGate interface that you can connect to
• a computer with an Ethernet connection to a network that can connect to the FortiGate
unit
• a supported web browser. See the Knowledge Center articles Supported Windows web
browsers and Using a Macintosh and the web-based manager.

To connect to the web-based manager


1 Start your web browser and browse to https:// followed by the IP address of the
FortiGate unit interface that you can connect to.
For example, if the IP address is 192.168.1.99, browse to https://192.168.1.99.
(remember to include the “s” in https://).
To support a secure HTTPS authentication method, the FortiGate unit ships with a self-
signed security certificate, which is offered to remote clients whenever they initiate a
HTTPS connection to the FortiGate unit. When you connect, the FortiGate unit
displays two security warnings in a browser.
The first warning prompts you to accept and optionally install the FortiGate unit’s self-
signed security certificate. If you do not accept the certificate, the FortiGate unit
refuses the connection. If you accept the certificate, the FortiGate login page appears.
The credentials entered are encrypted before they are sent to the FortiGate unit. If you
choose to accept the certificate permanently, the warning is not displayed again.
Just before the FortiGate login page is displayed, a second warning informs you that
the FortiGate certificate distinguished name differs from the original request. This
warning occurs because the FortiGate unit redirects the connection. This is an
informational message. Select OK to continue logging in.
2 Type admin or the name of a configured administrator in the Name field.
3 Type the password for the administrator account in the Password field.
4 Select Login.

FortiGate Version 4.0 MR1 Administration Guide


90 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Common web-based manager tasks

Changing your FortiGate administrator password


By default you can log into the web-based manager by using the admin administrator
account and no password. You should add a password to the admin administrator account
to prevent anybody from logging into the FortiGate and changing configuration options.
For improved security you should regularly change the admin administrator account
password and the passwords for any other administrator accounts that you add.

Note: See the Fortinet Knowledge Center article Recovering lost administrator account
passwords if you forget or lose an administrator account password and cannot log into your
FortiGate unit.

To change an administrator account password


1 Go to System > Admin > Administrators.
This web-based manager page lists the administrator accounts that can log into the
FortiGate unit. The default configuration includes the admin administrator account.
2 Select the Change Password icon and enter a new password.
3 Select OK.

Note: You can also add new administrator accounts by selecting Create New. For more
information about adding administrators, changing administrator account passwords and
related configuration settings, see “System Admin” on page 267.

Changing the web-based manager language


You can change the web-based manager to display language in English, Simplified
Chinese, Japanese, Korean, Spanish, Traditional Chinese, or French. For best results,
you should select the language that the management computer operating system uses.

To change the web-based manager language


1 Go to System > Admin > Settings.
2 Under display settings, select the web-based manager display language.
3 Select Apply.
The web-based manager displays the dashboard in the selected language. All
web-based manager pages are displayed with the selected language.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 91
http://docs.fortinet.com/ • Feedback
Common web-based manager tasks Web-based manager

Figure 11: System > Admin > Settings displayed in Simplified Chinese

Changing administrative access to your FortiGate unit


Through administrative access an administrator can connect to the FortiGate unit to view
and change configuration settings. The default configuration of your FortiGate unit allows
administrative access to one or more of the interfaces of the unit as described in your
FortiGate unit QuickStart Guide and Install Guide.
You can change administrative access by:
• enabling or disabling administrative access from any FortiGate interface
• enabling or disabling securing HTTPS administrative access to the web-based
manager (recommended)
• enabling or disabling HTTP administrative access to the web-based manager (not
recommended)
• enabling or disabling secure SSH administrative access to the CLI (recommended)
• enabling or disabling SSH or Telnet administrative access to the CLI (not
recommended).

To change administrative access to your FortiGate unit


1 Go to System > Network > Interface.
2 Choose an interface for which to change administrative access and select Edit.
3 Select one or more Administrative Access types for the interface.
4 Select OK.
For more information about changing administrative access see “Configuring
administrative access to an interface” on page 192.

Changing the web-based manager idle timeout


By default, the web-based manager disconnects administrative sessions if no activity
takes place for 5 minutes. This idle timeout is recommended to prevent someone from
using the web-based manager from a PC that is logged into the web-based manager and
then left unattended. However, you can use the following steps to change this idle timeout.

FortiGate Version 4.0 MR1 Administration Guide


92 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Button bar features

To change the web-based manager idle timeout


1 Go to System > Admin > Settings.
2 Change the Idle Timeout minutes as required.
3 Select Apply.

Connecting to the FortiGate CLI from the web-based manager


You can connect to the FortiGate CLI from the web-based manager dashboard by using
the CLI console widget. You can use the CLI to configure all configuration options
available from the web-based manager. Some configuration options are available only
from the CLI. As well, you can use the CLI to enter diagnose commands and perform
other advanced operations that are not available from the web-based manager. For more
information about the FortiGate CLI see the FortiGate CLI Reference.

To connect to the FortiGate CLI from the web-based manager


1 Go to System > Status.
2 Locate and select the CLI Console.
Selecting the CLI console logs you into the CLI. For more information, see “CLI
Console” on page 119.

Button bar features


The button bar in the upper right corner of the web-based manager provides access to
several important FortiGate features.

Figure 12: Web-based manager button bar

Contact Customer
Support
Online Help

Logout
Back up your FortiGate
configuration

Contacting Customer Support


The Contact Customer Support button opens the Fortinet Support web page in a new
browser window. From this page you can:
• visit the Fortinet Knowledge Center
• log into Customer Support (Support Login)
• register your Fortinet product (Product Registration)
• view Fortinet Product End of Life information
• find out about Fortinet Training and Certification

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 93
http://docs.fortinet.com/ • Feedback
Backing up your FortiGate configuration Web-based manager

• visit the FortiGuard Center.


You must register your Fortinet product to receive product updates, technical support, and
FortiGuard services. To register a Fortinet product, go to Product Registration and follow
the instructions.

Backing up your FortiGate configuration


The Backup Configuration button opens a dialog box for backing up your FortiGate
configuration to:
• the local PC that you are using to manage the FortiGate unit.
• a management station. This can be a FortiManager unit or the FortiGuard
Management Service. This option changes depending on your central management
configuration (see “Central Management” on page 285).
• a USB disk, if your FortiGate unit has a USB port and you have connected a USB disk
to it (see “Formatting USB Disks” on page 318).
For more information, see “Backing up and restoring” on page 312.

Figure 13: Backing up your FortiGate configuration

Using FortiGate Online Help


The Online Help button displays context-sensitive online help for the current web-based
manager page. The online help page that is displayed is called a content pane and
contains information and procedures related to the current web-based manager page.
Most help pages also contain hyperlinks to related topics. The online help system also
includes a number of links that you can use to find additional information.
FortiGate context-sensitive online help topics also include a VDOM or Global icon to
indicate whether the web-based manager page is for VDOM-specific or global
configuration settings. VDOM and Global configuration settings apply only to a FortiGate
unit operating with virtual domains enabled. If you are not operating your FortiGate unit
with virtual domains enabled, you can ignore the VDOM and Global icons. For more
information about virtual domains, see “Using virtual domains” on page 159.

FortiGate Version 4.0 MR1 Administration Guide


94 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Using FortiGate Online Help

Figure 14: A context-sensitive online help page (content pane only)

Show Navigation Bookmark


Previous Print
Next Email

Show Navigation Open the online help navigation pane. From the navigation pane you
can use the online help table of contents, index, and search to access
all of the information in the online help. The online help is organized in
the same way as the FortiGate web-based manager and the FortiGate
Administration Guide.
Previous Display the previous page in the online help.
Next Display the next page in the online help
Email Send an email to Fortinet Technical Documentation at
techdoc@fortinet.com if you have comments on or corrections for the
online help or any other Fortinet technical documentation product.
Print Print the current online help page.
Bookmark Add an entry for this online help page to your browser bookmarks or
favorites list to make it easier to find useful online help pages. You
cannot use the Bookmark icon to add an entry to your favorites list if
you are viewing online help from Internet Explorer running on a
management PC with Windows XP and service pack 2 installed.
When you select help for a VDOM configuration settings web-based
manager page the help display includes the VDOM icon. For
information about VDOM configuration settings, see “VDOM
configuration settings” on page 160.
When you select help for a Global configuration settings web-based
manager page the help display includes the Global icon. For
information about Global configuration settings, see “Global
configuration settings” on page 163.

To view the online help table of contents or index, and to use the search feature, select
Online Help in the button bar in the upper right corner of the web-based manager. From
the online help, select Show Navigation.

Figure 15: Online help page with navigation pane and content pane

Contents Index Search Show in Contents

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 95
http://docs.fortinet.com/ • Feedback
Using FortiGate Online Help Web-based manager

Contents Display the online help table of contents. You can navigate through the
table of contents to find information in the online help. The online help
is organized in the same way as the FortiGate web-based manager
and the FortiGate Administration Guide.
Index Display the online help index. You can use the index to find
information in the online help.
Search Display the online help search. For more information, see “Searching
the online help” on page 96.
Show in Contents If you have used the index, search, or hyperlinks to find information in
the online help, the table of contents may not be visible or the table of
contents may be out of sync with the current help page. You can select
Show in Contents to display the location of the current help page
within the table of contents.

Searching the online help


Using the online help search, you can search for one word or multiple words in the full text
of the FortiGate online help system. Please note the following:
• If you search for multiple words, the search finds only those help pages that contain all
of the words that you entered. The search does not find help pages that only contain
one of the words that you entered.
• The help pages found by the search are ranked in order of relevance. The higher the
ranking, the more likely the help page includes useful or detailed information about the
word or words that you are searching for. Help pages with the search words in the help
page title are ranked highest.
• You can use the asterisk (*) as a search wildcard character that is replaced by any
number of characters. For example, if you search for auth* the search finds help pages
containing auth, authenticate, authentication, authenticates, and so on.
• In some cases the search finds only exact matches. For example, if you search for
windows the search may not find pages containing the word window. You can work
around this using the * wildcard (for example by searching for window*).

To search in the online help system


1 From any web-based manager page, select the online help button.
2 Select Show Navigation.
3 Select Search.
4 In the search field, enter one or more words to search for and then press the Enter key
on your keyboard or select Go.
The search results pane lists the names of all the online help pages that contain all the
words that you entered. Select a name from the list to display that help page.

FortiGate Version 4.0 MR1 Administration Guide


96 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Logging out

Figure 16: Searching the online help system

Go
Search
Field

Search
Results

Using the keyboard to navigate in the online help


You can use the keyboard shortcuts listed in Table 4 to display and find information in the
online help.
Table 4: Online help navigation keys

Key Function
Alt+1 Display the table of contents.
Alt+2 Display the index.
Alt+3 Display the Search tab.
Alt+4 Go to the previous page.
Alt+5 Go to the next page.
Alt+7 Send an email to Fortinet Technical Documentation at
techdoc@fortinet.com if you have comments on or corrections for the
online help or any other Fortinet technical documentation product.
Alt+8 Print the current online help page.
Alt+9 Add an entry for this online help page to your browser bookmarks or
favorites list, to make it easier to find useful online help pages.

Logging out
The Logout button immediately logs you out of the web-based manager. Log out before
you close the browser window. If you simply close the browser or leave the web-based
manager, you remain logged in until the idle timeout (default 5 minutes) expires. To
change the timeout, see “Changing the web-based manager idle timeout” on page 92.

Web-based manager pages


The web-based manager interface consists of a menu and pages. Many of the pages
have multiple tabs. When you select a menu item, such as System, the web-based
manager expands to reveal a submenu. When you select one of the submenu items, the
associated page opens at its first tab. To view a different tab, select the tab.
The procedures in this manual direct you to a page by specifying the menu item, the
submenu item and the tab, for example:
1 Go to System > Network > Interface.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 97
http://docs.fortinet.com/ • Feedback
Web-based manager pages Web-based manager

Figure 17: Parts of the web-based manager

Page Button bar


Tabs

Menu

Using the web-based manager menu


The web-based manager menu provides access to configuration options for all major
FortiGate features (see Figure 17 on page 98).

System Configure system settings, such as network interfaces, virtual


domains, DHCP services, administrators, certificates, High Availability
(HA), system time and set system options.
Router Configure FortiGate static and dynamic routing and view the router
monitor.
Firewall Configure firewall policies and protection profiles that apply network
protection features. Also configure virtual IP addresses and IP pools.
UTM Configure antivirus and antispam protection, web filtering, intrusion
protection, data leak prevention, and application control.
VPN Configure IPSec and SSL virtual private networking. PPTP is
configured in the CLI.
User Configure user accounts for use with firewall policies that require user
authentication. Also configure external authentication servers such as
RADIUS, LDAP, TACACS+, and Windows AD. Configure monitoring of
Firewall, IPSec, SSL, IM, and Banned Users.
WAN Opt. & Cache Configure WAN optimization and web caching to improve
performance and security of traffic passing between locations on your
wide area network (WAN) or from the Internet to your web servers.
Endpoint NAC Configure end points, view FortiClient configuration information, and
configure software detection patterns.
Wireless Controller Configure a FortiGate unit to act as a wireless network controller,
managing the wireless Access Point (AP) functionality of FortiWiFi
units.
Log&Report Configure logging and alert email. View log messages and reports.

FortiGate Version 4.0 MR1 Administration Guide


98 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Web-based manager pages

Using web-based manager lists


Many of the web-based manager pages contain lists. There are lists of network interfaces,
firewall policies, administrators, users, and others.
If you log in as an administrator with an admin profile that allows Read-Write access to a
list, depending on the list you will usually be able to:
• select Create New to add a new item to the list
• select the Edit icon for a list item to view and change the settings of the item
• select the Delete icon for a list item to delete the item. The delete icon will not be
available if the item cannot be deleted. Usually items cannot be deleted if they have
been added to another configuration; you must first find the configuration settings that
the item has been added to and remove the item from them. For example, to delete a
user that has been added to a user group you must first remove the user from the user
group (see Figure 18).

Figure 18: A web-based manager list (read-write access)

Delete
Edit

If you log in as an administrator with an admin profile that allows Read Only access to a
list, you will only be able to view the items on the list (see Figure 19).

Figure 19: A web-based manager list (read only access)

View

For more information, see “Admin profiles” on page 280.

Adding filters to web-based manager lists


You can add filters to control the information that is displayed complex lists in the
web-based manager. See the following web-based manager pages for examples of lists
with filters:
• Session list (see “Viewing the current sessions list” on page 122)
• Firewall policy and IPv6 policy lists (see “Viewing the firewall policy list” on page 390,
“Viewing the DoS policy list” on page 404, and “Viewing the sniffer policy list” on
page 407)
• Intrusion protection predefined signatures list (see “Viewing the predefined signature
list” on page 533)
• Firewall user monitor list (see “Firewall user monitor list” on page 676)
• IPSec VPN Monitor (see “Monitoring VPNs” on page 626)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 99
http://docs.fortinet.com/ • Feedback
Web-based manager pages Web-based manager

• Endpoint NAC list of known endpoints (see “Monitoring endpoints” on page 700)
• Log and report log access list (see “Accessing and viewing log messages” on
page 720).
Filters are useful for reducing the number of entries that are displayed on a list so that you
can focus on the information that is important to you.
For example, you can go to System > Status, and, in the Statistics section, select Details
on the Sessions line to view the communications sessions that the FortiGate unit is
currently processing. A busy FortiGate unit may be processing hundreds or thousands of
communications sessions. You can add filters to make it easier to find specific sessions.
For example, you might be looking for all communications sessions being accepted by a
specific firewall policy. You can add a Policy ID filter to display only the sessions for a
particular Policy ID or range of Policy IDs.
You add filters to a web-based manager list by selecting any filter icon to display the Edit
Filters window. From the Edit Filters window you can select any column name to filter, and
configure the filter for that column. You can also add filters for one or more columns at a
time. The filter icon remains gray for unfiltered columns and changes to green for filtered
columns.

Figure 20: An intrusion protection predefined signatures list filtered to display all signatures
containing “apache” with logging enabled, action set to drop, and severity set to
high

Filter added to
display names that
include “apache” No filter added

The filter configuration is retained after leaving the web-based manager page and even
after logging out of the web-based manager or rebooting the FortiGate unit.
Different filter styles are available depending on the type of information displayed in
individual columns. In all cases, you configure filters by specifying what to filter on and
whether to display information that matches the filter, or by selecting NOT to display
information that does not match the filter.

Note: Filter settings are stored in the FortiGate configuration and will be maintained the
next time that you access any list for which you have added filters.

On firewall policy, IPv6 policy, predefined signature and log and report log access lists,
you can combine filters with column settings to provide even more control of the
information displayed by the list. See “Using filters with column settings” on page 104 for
more information.

Filters for columns that contain numbers


If the column includes numbers (for example, IP addresses, firewall policy IDs, or port
numbers) you can filter by a single number or a range of numbers. For example, you could
configure a source address column to display only entries for a single IP address or for all
addresses in a range of addresses. To specify a range, separate the top and bottom
values of the range with a hyphen, for example 25-50.

FortiGate Version 4.0 MR1 Administration Guide


100 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Web-based manager pages

Figure 21 shows a numeric filter configured to control the source addresses that are
displayed on the session list. In this example, a filter is enabled for the Source Address
column. The filter is configured to display only source addresses in the range of 1.1.1.1-
1.1.1.2. To view the session list, go to System > Status. In the Statistics section, beside
Sessions, select Details.

Figure 21: A session list with a numeric filter set to display sessions with source IP address
in the range of 1.1.1.1-1.1.1.2

Filters for columns containing text strings


If the column includes text strings (for example, names and log messages) you can filter
by a text string. You can also filter information that is an exact match for the text string
(equals), that contains the text string, or that does not equal or does not contain the text
string. You can also specify whether to match the capitalization (case) of the text string.
The text string can be blank and it can also be very long. The text string can also contain
special characters such as <, &, > and so on. However, filtering ignores characters
following a < unless the < is followed by a space (for example, filtering ignores <string
but not < string). Filtering also ignores matched opening and closing < and >
characters and any characters inside them (for example, filtering ignores <string> but
does not ignore >string>).

Figure 22: A firewall policy list filter set to display all policies that do not include a source
address with a name that contains “My_Address”

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 101
http://docs.fortinet.com/ • Feedback
Web-based manager pages Web-based manager

Filters for columns that can contain only specific items


For columns that can contain only specific items (for example, a log message severity or a
pre-defined signature action) you can select a single item from a list. In this case, you can
only filter on a single selected item.

Figure 23: An intrusion protection predefined signature list filter set to display all signatures
with Action set to block

Custom filters
Other custom filters are also available. You can filter log messages according to date
range and time range. You can also set the level filter to display log messages with
multiple severity levels.

Figure 24: A log access filter set to display all log messages with level of alert, critical, error,
or warning

Using page controls on web-based manager lists


The web-based manager includes page controls to make it easier to view lists that contain
more items than you can display on a typical browser window. Web-based manager pages
with page controls include:
• session list (see “Viewing the current sessions list” on page 122)
• Router Monitor (see “Router Monitor” on page 383)

FortiGate Version 4.0 MR1 Administration Guide


102 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Web-based manager pages

• intrusion protection predefined signatures list (see “Viewing the predefined signature
list” on page 533)
• web filtering lists (see “Web Filter” on page 549)
• antispam lists (see “Email filtering” on page 567)
• Firewall user monitor list (see “Firewall user monitor list” on page 676)
• IPSec VPN Monitor (see “Monitoring VPNs” on page 626)
• Banned user list (see “NAC quarantine and the Banned User list” on page 678)
• log and report log access lists (see “Accessing and viewing log messages” on
page 720).
• Endpoint NAC list of known endpoints (see “Monitoring endpoints” on page 700)

Figure 25: Page controls

Previous Page Total Number of Pages


First Page

Last Page

Current Page Next Page


(enter a page number
to display that page)

First Page Display the first page of items in the list.


Previous Page Display the previous page of items in the list.
Current Page The current page number of list items that are displayed. You can
enter a page number and press Enter to display the items on that
page. For example if there are 5 pages of items and you enter 3, page
3 of the sessions will be displayed.
Total Number of Pages The number of pages of list items that you can view.
Next Page Display the next page of items in the list.
Last Page Display the last page of items in the list.

Using column settings to control the columns displayed


Using column settings, you can format some web-based manager lists so that information
that is important to you is easy to find and less important information is hidden or less
distracting.
On web-based manager pages that contain complex lists, you can change column
settings to control the information columns that are displayed for the list and to control the
order in which they are displayed. Web-based manager pages with column settings
controls include:
• Network interface list (see “Configuring interfaces” on page 177)
• Firewall policy and IPv6 policy (see “Viewing the firewall policy list” on page 390)
• Intrusion protection predefined signatures list (see “Viewing the predefined signature
list” on page 533)
• Firewall user monitor list (see “Firewall user monitor list” on page 676)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 103
http://docs.fortinet.com/ • Feedback
Web-based manager pages Web-based manager

• IPSec VPN Monitor (see “Monitoring VPNs” on page 626)


• Endpoint NAC list of known endpoints (see “Monitoring endpoints” on page 700)
• Log and report log access lists (see “Accessing and viewing log messages” on
page 720).

Note: Any changes that you make to the column settings of a list are stored in the FortiGate
configuration and will display the next time that you access the list.

To change column settings on a list that supports it, select Column Settings. From
Available fields, select the column headings to be displayed and then select the Right
Arrow to move them to the “Show these fields in this order” list. Similarly, to hide column
headings, use the Left Arrow to move them back to the Available fields list. Use Move Up
and Move Down to change the order in which to display the columns.
For example, you can change interface list column headings to display only the
IP/Netmask, MAC address, MTU, and interface Type for each interface.

Figure 26: Example of interface list column settings

Left Arrow Right Arrow

Figure 27: A FortiGate-5001SX interface list with column settings changed

Using filters with column settings


On firewall policy, IPv6 policy, predefined signature, firewall user monitor, IPSec monitor
and log and report log access lists you can combine filters with column settings to provide
even more control of the information displayed by the list.

FortiGate Version 4.0 MR1 Administration Guide


104 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web-based manager Web-based manager icons

For example, you can go to Intrusion Protection > Signature > Predefined and configure
the Intrusion Protection predefined signatures list to show only the names of signatures
that protect against vulnerabilities for a selected application. To do this, set Column
Settings to only display Applications and Name. Then apply a filter to Applications so that
only selected applications are listed. In the pre-defined signatures list you can also sort
the list by different columns; you might want to sort the list by application so that all
signatures for each application are grouped together.

Figure 28: A pre-defined signatures list displaying pre-defined signatures for the Veritas and
Winamp applications

For more information, see “Adding filters to web-based manager lists” on page 99.

Web-based manager icons


The web-based manager has icons in addition to buttons to help you to interact with your
FortiGate unit. There are tooltips to assist you in understanding the function of most icons.
Pause the mouse pointer over the icon to view the tooltip. Table 5 describes the icons that
are available in the web-based manager.
Table 5: web-based manager icons

Icon Name Description

Administrative The administrative status of a FortiGate interface is down


status down and the interface will not accept traffic.
Administrative The administrative status of a FortiGate interface is up and
status up the interface accepts traffic.
Change Change the administrator password. This icon appears in the
Password Administrators list if your admin profile enables you to give
write permission to administrators.
Clear Clear all or remove all entries from the current list. For
example, on a URL filter list you can use this icon to remove
all URLs from the current URL filter list.
Delete Delete an item. This icon appears in lists where the item can
be deleted and you have edit permission for the item.
Description The tooltip for this icon displays the Description or
Comments field for this table entry.
Disconnect Disconnect a FortiGate unit from a functioning HA cluster.
from cluster

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 105
http://docs.fortinet.com/ • Feedback
Web-based manager icons Web-based manager

Table 5: web-based manager icons (Continued)

Icon Name Description

Download Download information from a FortiGate unit. For example,


you can download certificates and debug logs.

Edit Edit a configuration. This icon appears in lists where you


have write permission for the item.
Enter a VDOM Enter a virtual domain and use the web-based manager to
configure settings for the virtual domain.
Expand Arrow Expand this section to reveal more fields. This icon is used in
(closed) some dialog boxes and lists.
Expand Arrow Close this section to hide some fields. This icon is used in
(open) some dialog boxes and lists.
Filter Set a filter on one or more columns in this table. See “Adding
filters to web-based manager lists” on page 99.

First page View the first page of a list.

Insert before Add a new item to a list so that it precedes the current item.
Used in lists when the order of items in the list is significant,
for example firewall policies, IPS Sensors, and DoS Sensors.
Last page View the last page of a list.

Move to Change the position of an item in a list. Used in lists when the
order of items in the list is significant, for example firewall
policies, IPS Sensors, and DoS Sensors.
Next page View the next page of a list.

Previous page View the previous page of a list.

Refresh Update the information on this page.

View View a configuration. This icon appears in lists instead of the


Edit icon when you have read-only access to a web-based
manager list.
View details View detailed information about an item. For example, you
can use this icon to view details about certificates.

FortiGate Version 4.0 MR1 Administration Guide


106 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

System Status
This section describes the System Status page, the dashboard of your FortiGate unit. At a
glance you can view the current system status of the FortiGate unit including serial
number, uptime, FortiGuard™ license information, system resource usage, alert
messages and network statistics.

Note: Your browser must support Javascript to view the System Status page.

If you enable virtual domains (VDOMs) on the FortiGate unit, the status page is available
globally and system status settings are configured globally for the entire FortiGate unit.
The Topology viewer is not available when VDOMs are enabled. For details, see “Using
virtual domains” on page 159.
This section describes:
• Viewing the system dashboard
• Changing system information
• Changing the FortiGate firmware
• Viewing operational history
• Manually updating FortiGuard definitions
• Viewing Log and Archive Statistics
• Configuring AMC modules
• Viewing application, policy, and DLP archive usage data
• Using the topology viewer

Viewing the system dashboard


View the system dashboard for a snapshot and detailed information about the current
operating status of the FortiGate unit. To view the system dashboard go to System >
Status > Dashboard. FortiGate administrators whose admin profiles permit write access to
system configuration can change or update FortiGate unit information. For more
information on admin profiles, see “Admin profiles” on page 280.
When the FortiGate unit is part of an HA cluster, the System Status page includes basic
high availability (HA) cluster status such as including the name of the cluster and the
cluster members including their host names. To view more specialized HA status
information for the cluster, go to System > Config > HA. For more information, see “HA” on
page 233.
FortiGate administrators whose admin profiles permit write access to system configuration
can change or update FortiGate unit information. For information on admin profiles, see
“Admin profiles” on page 280.

Note: The information on the System Status page applies to the whole HA cluster, not just
the primary unit. This includes information such as URLs visited, emails sent and received,
and viruses caught.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 107
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

VDOM and global dashboards


VDOM administrators can view and configure the VDOM-specific
dashboard for their VDOM. From a VDOM go to System > Dashboard to
view the VDOM dashboard.The System Information, Unit Operation, System Resources,
Log and Archive Status, CLI Console, Top Sessions, and Traffic History dashboard
widgets are available in the VDOM dashboard. The available widgets differ from their
global equivalents as follows:

System information Cannot enable/disable Virtual Domains. No listing of current


administrators.
CLI Console User is logged into the current VDOM and cannot access global
configurations.
Unit Operation Unit reboot and shutdown are not available.
Cannot configure management service or FortiAnalyzer unit.
No information about network ports.
Top Sessions Shows only sessions for this VDOM.
Traffic History Can select only interfaces or VLANs belonging to this VDOM.

Global administrators with the super_admin admin profile can view only the
global dashboard.

Viewing the system dashboard


The system dashboard page displays by default when you log in to the web-based
manager.
Go to System > Status > Dashboard to view the dashboard.
To view the dashboard, your admin profile must permit read access to system
configuration. If you also have system configuration write access, you can modify system
information and update FortiGuard - AV and FortiGuard - IPS definitions. For information
on admin profiles, see “Admin profiles” on page 280.
The System Status page is customizable. You can select which widgets to display, where
they are located on the page, and if they are minimized or maximized. Each display has
an icon associated with it for easy recognition when minimized.
Select Add Content to add any of the widgets not currently shown on the System Status
page. Any widgets currently on the System Status page will be greyed out in the Add
Content menu, as you can only have one of each display on the System Status page.
Optionally select Back to Default to restore the historic System Status page configuration.
Position your mouse over a display’s titlebar to see your available options for that display.
The options vary slightly from display to display.

Figure 29: A minimized display

History
Widget title Edit
Open/Close arrow Refresh
Close

Widget Title Shows the name of the display


Open/Close arrow Select to open or close the display.
History Select to show an expanded set of data.
Not available for all widgets.

FortiGate Version 4.0 MR1 Administration Guide


108 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

Edit Select to change settings for the display.


Refresh Select to update the displayed information.
Close Select to close the display. You will be prompted to confirm the action.
The available dashboard widgets are:
• System Information
• License Information
• Unit Operation
• System Resources
• Alert Message Console
• Log and Archive Statistics
• CLI Console
• Top Sessions
• Top Viruses
• Top Attacks
• Traffic History

System Information
Go to System > Status > Dashboard to find System Information.
To add the System Information widget to the dashboard go to System > Status >
Dashboard, select Add Content and select System Information from the list.

Figure 30: System Information

Serial Number The serial number of the FortiGate unit. The serial number is specific to the
FortiGate unit and does not change with firmware upgrades.
Uptime The time in days, hours, and minutes since the FortiGate unit was started.
System Time The current date and time according to the FortiGate unit’s internal clock.
Select Change to change the time or configure the FortiGate unit to get the
time from an NTP server. For more information, see “Configuring system time”
on page 125.
HA Status The status of high availability for this unit.
Standalone indicates the unit is not operating in HA mode.
Active-Passive or Active-Active indicate the unit is operating in HA mode.
Select Configure to configure the HA status for this unit. For more information,
see “HA” on page 233.
Host Name The host name of the current FortiGate unit.
Select Change to change the host name.
For more information, see “Changing the FortiGate unit host name” on
page 126.
If the FortiGate unit is in HA mode, this field is not displayed.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 109
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Cluster Name The name of the HA cluster for this FortiGate unit. For more information, see
“HA” on page 233.
The FortiGate unit must be operating in HA mode to display this field.
Cluster Members The FortiGate units in the HA cluster. Information displayed about each
member includes host name, serial number, and whether the unit is a primary
(master) or subordinate (slave) unit in the cluster. For more information, see
“HA” on page 233.
The FortiGate unit must be operating in HA mode with virtual domains
disabled to display this field.
Virtual Cluster 1 The role of each FortiGate unit in virtual cluster 1 and virtual cluster 2. For
Virtual Cluster 2 more information, see “HA” on page 233.
The FortiGate unit must be operating in HA mode with virtual domains enabled
to display these fields.
Firmware Version The version of the current firmware installed on the FortiGate unit. The format
for the firmware version is
Select Update to change the firmware.
For more information, see “Upgrading to a new firmware version” on page 127.
FortiClient Version The currently version of FortiClient uploaded to your FortiGate unit used for
endpoint control. This field appears if you can upload a FortiClient image onto
your FortiGate unit. See “Configuring FortiClient installer download and
version enforcement” on page 696.
Operation Mode The operating mode of the current FortiGate unit. A FortiGate unit can operate
in NAT mode or Transparent mode. Select Change to switch between NAT and
Transparent mode. For more information, see “Changing operation mode” on
page 263
If virtual domains are enabled, this field shows the operating mode of the
current virtual domain. Each virtual domain can be operating in either NAT
mode or Transparent mode.
Virtual Domain Status of virtual domains on your FortiGate unit. Select enable or disable to
change the status of virtual domains feature.
If you enable or disable virtual domains, your session will be terminated and
you will need to log in again. For more information, see “Using virtual domains”
on page 159.

Current The number of administrators currently logged into the FortiGate unit.
Administrators Select Details to view more information about each administrator that is
currently logged in. The additional information includes user name, type of
connection, IP address from which they are connecting, and when they logged
in.
Current User The name of the admin account that you have used to log into the FortiGate
unit. You can select Change Password to change the password for this
account. When you change the password you are logged out and must log
back in with the new password. See “Changing an administrator account
password” on page 272.

License Information
License Information displays the status of your technical support contract and FortiGuard
subscriptions. The FortiGate unit updates the license information status indicators
automatically when attempting to connect to the FortiGuard Distribution Network (FDN).
FortiGuard Subscriptions status indicators are green if the FDN was reachable and the
license was valid during the last connection attempt, grey if the FortiGate unit cannot
connect to the FDN, and orange if the FDN is reachable but the license has expired.

FortiGate Version 4.0 MR1 Administration Guide


110 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

When a new FortiGate unit is powered on, it automatically searches for FortiGuard
services. If the unit is configured for central management, it will look for FortiGuard
services on the configured FortiManager system. The FortiGate unit sends its serial
number to the FortiGuard service provider, which then determines whether the FortiGate
unit is registered and has valid contracts for FortiGuard subscriptions and FortiCare
support services. If the FortiGate unit is registered and has a valid contract, the License
Information is updated.
If the FortiGate unit is not registered, any administrator with the super_admin profile sees
a reminder message that provides access to a registration form.
When a contract is due to expire within 30 days, any administrator with the super_admin
profile sees a notification message that provides access to an Add Contract form. Simply
enter the new contract number and select Add. Fortinet Support also sends contract
expiry reminders.
Optionally, you can disable notification for registration or contract inquiry.

To disable registration notification


config system global
set registration-notification disable
end

To disable contract expiry notification


config system global
set service-expire-notification disable
end
Selecting any of the Configure options will take you to the Maintenance page. For more
information, see “System Maintenance” on page 311.

Figure 31: License Information (example)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 111
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Support Contract Displays details about your current Fortinet Support contract including
expiry dates and registration status.
• If Not Registered appears, select Register to register the unit.
• If Expired appears, select Renew for information on renewing your
technical support contract. Contact your local reseller.
• If Registered appears the name of the support that registered this
FortiGate unit is also displayed.
• You can select Login Now to log into the Fortinet Support account that
registered this FortiGate unit.
FortiGuard Services
AntiVirus The FortiGuard Antivirus version, license issue date and service status. If
your license has expired, you can select Renew two renew the license.
AV Definitions The currently installed version of the FortiGuard Antivirus definitions. To
update the definitions manually, select Update. For more information, see
“Manually updating FortiGuard definitions” on page 129.
Extended set The currently installed version of the extended FortiGuard Antivirus
definitions. See “Selecting the virus database” on page 527 for information
about the extended antivirus database. To update the definitions manually,
select Update. For more information, see “Manually updating FortiGuard
definitions” on page 129. The extended antivirus database is not available
on all models.
Intrusion The FortiGuard Intrusion Prevention System (IPS) license version, license
Protection issue date and service status. If your license has expired, you can select
Renew two renew the license.
IPS Definitions The currently installed version of the IPS attack definitions. To update the
definitions manually, select Update. For more information, see “Manually
updating FortiGuard definitions” on page 129.
Web Filtering The FortiGuard Web Filtering license status, expiry date and service status.
If your license has expired, you can select Renew two renew the license.
Email Filtering The FortiGuard Email Filtering or Antispam license status, license expiry
date and service status. If your license has expired, you can select Renew
two renew the license.
Email Filtering The currently installed version of the FortiGuard Email Filtering rule set. To
Rule Set update the rule set manually, select Update. For more information, see
“Manually updating FortiGuard definitions” on page 129.
Analysis & The FortiGuard Analysis Service and Management Service license, license
Management expiry date, and reachability status. See “Configuring FortiGuard Analysis &
Service Management Service Options” on page 327.

Services Account Select “change“ to enter a different Service Account ID. This ID is used to
ID validate your license for subscription services such as FortiGuard
Management Service and FortiGuard Analysis Service. See “Configuring
FortiGuard Analysis & Management Service Options” on page 327.
Virtual Domain
VDOMs Allowed The maximum number of virtual domains the unit supports with the current
license.
For high-end FortiGate, you can select the Purchase More link to purchase
a license key through Fortinet technical support to increase the maximum
number of VDOMs. See “Adding VDOM Licenses” on page 333.
Endpoint Security
FortiClient View information about the latest version of the FortiClient application
Software available from FortiGuard for EndPoint NAC. Select Download to download
Windows Installer the FortiClient application installer to your PC. See “Configuring FortiClient
installer download and version enforcement” on page 696.
Application The version number of the current endpoint NAC application detection
Signature predefined signature package. See “Configuring application detection lists”
package on page 697.

FortiGate Version 4.0 MR1 Administration Guide


112 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

Unit Operation
In the Unit Operation widget, an illustration of the FortiGate unit’s front panel shows the
status of the unit’s Ethernet network interfaces. If a network interface is green, that
interface is connected. Pause the mouse pointer over the interface to view the name, IP
address, netmask and current status of the interface.
If you select Reboot or ShutDown, a pop-up window opens allowing you to enter the
reason for the system event.
You can only have one management and one logging/analyzing method displayed for
your FortiGate unit. The graphic for each will change based on which method you choose.
If none are selected, no graphic is shown.

Note: Your reason will be added to the Disk Event Log if disk logging, event logging, and
admin events are enabled. For more information on Event Logging, see “Configuring Event
logging” on page 717.

Figure 32: Unit Operation examples

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 113
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

INT / EXT / DMZ / HA / The network interfaces on the FortiGate unit. The names and number of
WAN1 / WAN2 / 1 / 2 / these interfaces vary by model.
3/4 The icon below the interface name indicates its up/down status by color.
Green indicates the interface is connected. Grey indicates there is no
connection.
For more information about the configuration and status of an interface,
pause the mouse over the icon for that interface. A tooltip displays the full
name of the interface, its alias if one is configured, the IP address and
netmask, the status of the link, the speed of the interface, and the number
of sent and received packets.
AMC-SW1/1, ... If your FortiGate unit supports Advanced Mezzanine Card (AMC) modules
AMC-DW1/1, ... and if you have installed an AMC module containing network interfaces (for
example, the ASM-FB4 contains 4 interfaces) these interfaces are added to
the interface status display. The interfaces are named for the module, and
the interface. For example AMC-SW1/3 is the third network interface on the
SW1 module, and AMC-DW2/1 is the first network interface on the DW2
module.
AMC modules support hard disks as well, such as the ASM-S08 module.
When a hard disk is installed, ASM-S08 is visible as well as a horizontal bar
and percentage indicating how full the hard disk is.
You can also add the ASM-CX4 and ASM-FX2 modules to bridge FortiGate
interfaces when the FortiGate unit is operating in transparent mode.
For more information about AMC modules, see “Configuring AMC modules”
on page 133.
FortiAnalyzer The icon on the link between the FortiGate unit graphic and the
FortiAnalyzer graphic indicates the status of their OFTP connection. An ‘X’
on a red icon indicates there is no connection. A check mark on a green
icon indicates there is OFTP communication.
Select the FortiAnalyzer graphic to configure remote logging tot he
FortiAnalyzer unit on your FortiGate unit. See “Remote logging to a
FortiAnalyzer unit” on page 710.
FortiGuard Analysis The icon on the link between the FortiGate unit graphic and the FortiGuard
Service Analysis Service graphic indicates the status of their OFTP connection. An
‘X’ on a red icon indicates there is no connection. A check mark on a green
icon indicates there is OFTP communication.
Select the FortiGuard Analysis Service graphic to configure remote logging
to the FortiGuard Analysis Service. See the FortiGuard Analysis and
Management Service Administration Guide.
FortiManager The icon on the link between the FortiGate unit graphic and the
FortiManager graphic indicates the status of the connection. An ‘X’ on a red
icon indicates there is no connection. A check mark on a green icon
indicates there is communication between the two units.
Select the FortiManager graphic to configure central management on your
FortiGate unit. See “Central Management” on page 285.
FortiGuard The icon on the link between the FortiGate unit graphic and the FortiGuard
Management Service Management Service graphic indicates the status of the connection. An ‘X’
on a red icon indicates there is no connection. A check mark on a green
icon indicates there is communication.
Select the FortiGuard Management Service graphic to configure central
management on your FortiGate unit. See “Central Management” on
page 285.
Reboot Select to shutdown and restart the FortiGate unit. You will be prompted to
enter a reason for the reboot that will be entered into the logs.
Shutdown Select to shutdown the FortiGate unit. You will be prompted for
confirmation, and also prompted to enter a reason for the shutdown that will
be entered into the logs.

System Resources
The System Resources widget displays basic FortiGate unit resource usage, such as
CPU and memory (RAM) usage. Any System Resources that are not displayed on the
status page can be viewed as a graph by selecting the History icon.

FortiGate Version 4.0 MR1 Administration Guide


114 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

To see the most recent CPU and memory usage, select the Refresh icon.

Figure 33: System Resources

View History
Edit
Refresh
Close

History A graphical representation of the last minute of CPU, memory, sessions, and
network usage. This page also shows the virus and intrusion detections over
the last 20 hours. For more information, see “Viewing operational history” on
page 129.
CPU Usage The current CPU status displayed as a dial gauge and as a percentage.
The web-based manager displays CPU usage for core processes only. CPU
usage for management processes (for example, for HTTPS connections to
the web-based manager) is excluded.
Memory Usage The current memory (RAM) status displayed as a dial gauge and as a
percentage.
The web-based manager displays memory usage for core processes only.
Memory usage for management processes (for example, for HTTPS
connections to the web-based manager) is excluded.
FortiAnalyzer Usage The current status of the FortiAnalyzer disk space used by this FortiGate
unit’s quota, displayed as a pie chart and a percentage.
You can use the System Resources edit menu to select not to display this
information.
This is available only if you have configured logging to a FortiAnalyzer unit.
Disk Usage The current status of the FortiGate unit disk space used, displayed as a pie
chart and a percentage.
This is available only if you have a hard disk on your FortiGate unit.

Alert Message Console


Alert messages help you track system events on your FortiGate unit such as firmware
changes, network security events, or virus detection events.
Each message shows the date and time that the event occurred.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 115
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Figure 34: Alert Message Console


Edit
History Refresh

Close

Acknowledge this
message

History View all alert messages.


Edit Configure Alert Message Console settings.
Refresh Update displayed information.
Close Close the module.
Acknowledge Select to remove this message.
this message The Acknowledge icon is also available for each alert message in the History
window.

The following types of messages can appear in the Alert Message Console:

System restart The system restarted. The restart could be due to operator
action or power off/on cycling.
System shutdown An administrator shut down the FortiGate unit from the
web-based manager or CLI.
Firmware upgraded by The named administrator upgraded the firmware to a more
<admin_name> recent version on either the active or non-active partition.
Firmware downgraded by The named administrator downgraded the firmware to an older
<admin_name> version on either the active or non-active partition.
FortiGate has reached connection The antivirus engine was low on memory for the duration of
limit for <n> seconds time shown and entered conserve mode. Depending on model
and configuration, content can be blocked or can pass
unscanned under these conditions.
Found a new FortiAnalyzer Shows that the FortiGate unit has either found or lost the
Lost the connection to FortiAnalyzer connection to a FortiAnalyzer unit. See “Remote logging to a
FortiAnalyzer unit” on page 710.
New firmware is available from An updated firmware image is available to be downloaded to
FortiGuard this FortiGate unit.

To configure the Alert Message Console


You can configure the alert message console settings to control what types of messages
are displayed on the console.
1 Go to System > Status > Dashboard.
2 Select the Edit icon in the Alert Message Console title bar.
3 Select the types of alerts that the Alert Message Console should display.
By default, all alert types are enabled.

FortiGate Version 4.0 MR1 Administration Guide


116 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

Figure 35: Configuring the Alert Message Console

4 Select OK.

Log and Archive Statistics


The Log and Archive Statistics widget allows you to see at a glance what is happening on
your FortiGate unit with regards to DLP archiving, network traffic, and security problems
including attack attempts, viruses caught, and spam emails caught.
You can quickly see the amount and type of traffic as well as any attack attempts on your
system. To investigate an area that draws your attention, select Details for a detailed list of
the most recent activity.
The information displayed in the Log and Archive Statistics widget is derived from log
messages. You can use the information gathered by log messages to see trends in
network activity or attacks over time. Various configuration settings are required to
actually collect data for the Log and Archive Statistics widget as described below.
For detailed procedures involving the Statistics list, see “Viewing Log and Archive
Statistics” on page 130.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 117
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Figure 36: Log and Archive Statistics

Refresh
Reset

Close

Figure 37: Statistics


Refresh
Reset

Close

FortiGate Version 4.0 MR1 Administration Guide


118 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

Since The date and time when the counts were last reset.
Counts are reset when the FortiGate unit reboots, or when you select Reset.
Reset Reset the Log and Archive Statistic counts to zero.
DLP A summary of the HTTP, HTTPS, email, FTP IM, and VoIP (also called session
Archive control) traffic that has passed through the FortiGate unit, and has archived by DLP.
The Details pages list the last 64 items of the selected type and provides links to the
FortiAnalyzer unit where the archived traffic is stored. If logging to a FortiAnalyzer unit
is not configured, the Details pages provide a link to Log & Report > Log Config >
Log Settings.
You configure the FortiGate unit to collect DLP archive data for the widget by
configuring protection profiles to display content meta-information on the system
dashboard. To configure a protection profile, go to Firewall > Protection Profile. Create
or edit a protection profile and configure Data Leak Prevention Sensor > Display
content meta-information on the system dashboard and select the protocols to collect
statistics for. By default meta-data is collected and displayed on the statistics widget for
all protocols. For more information, see “Data Leak Prevention Sensor options” on
page 501.
You must also add the protection profile to a firewall policy. When the firewall policy
receives sessions for the selected protocols, meta-data is added to the statistics
widget.
The Email statistics are based on email protocols. POP3 and IMAP traffic is registered
as email received, and SMTP is email sent. If your FortiGate unit supports SSL content
scanning and inspection, incoming email also includes POP3S and IMAPS and
outgoing email also includes SMTPS. If incoming or outgoing email does not use these
protocols, these statistics will not be accurate.
The IM statistics are based on the AIM, ICQ, MSN, and Yahoo! protocols and
configured by selecting Archive in DLP Sensors for IM DLP rules.
The VoIP statistics are based on the SIP, SIMPLE and SCCP session control protocols
and configured by selecting Archive in DLP Sensors for Session Control DLP rules.
Log A summary of traffic, viruses, attacks, spam email messages, and blocked URLs that
the FortiGate unit has logged. Also displays the number of sessions matched by DLP
and event log messages. The Details pages list the 20 most recent items, providing the
time, source, destination and other information.
DLP data loss detected actually displays the number of sessions that have matched
DLP sensors added to protection profiles. DLP collects meta-data about all sessions
matched by DLP sensors and records this meta-data in the DLP log. Every time a DLP
log message is recorded, the DLP data loss detected number increases. If you are
using DLP for summary or full archiving the DLP data loss detected number can get
very large. This number may not indicate that data has been lost or leaked.

CLI Console
The System Status page can include a CLI. To use the console, select it to automatically
log in to the admin account you are currently using in the web-based manager. You can
copy (CTRL-C) and paste (CTRL-V) text from or to the CLI Console.

Figure 38: CLI Console

Customize

The two controls located on the CLI Console widget’s title bar are Customize, and Detach.
Detach moves the CLI Console widget into a pop-up window that you can resize and
reposition. The two controls on the detached CLI Console are Customize and Attach.
Attach moves the CLI console widget back onto the System Status page.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 119
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Customize allows you to change the appearance of the console by defining fonts and
colors for the text and background.

Figure 39: Customize CLI Console window

Preview A preview of your changes to the CLI Console’s appearance.


Text Select the current color swatch next to this label, then select a color from
the color palette to the right to change the color of the text in the CLI
Console.
Background Select the current color swatch next to this label, then select a color from
the color palette to the right to change the color of the background in the
CLI Console.
Use external Select to display a command input field below the normal console
command input box emulation area. When this option is enabled, you can enter commands by
typing them into either the console emulation area or the external command
input field.
Console buffer length Enter the number of lines the console buffer keeps in memory. Valid
numbers range from 20 to 9999.
Font Select a font from the list to change the display font of the CLI Console.
Size Select the size of the font. The default size is 10 points.

Top Sessions
Top Sessions displays either a bar graph or a table showing the IP addresses that have
the most sessions currently open on the FortiGate unit. The sessions are sorted by their
source or destination IP address, or the port address. The sort criteria being used is
displayed in the top right corner.
The Top Sessions widget polls the FortiGate unit for session information, and this slightly
impacts the FortiGate unit performance. For this reason when this display is not shown on
the dashboard, it is not collecting data, and not impacting system performance. When the
display is shown, information is only stored in memory.

Note: Rebooting the FortiGate unit will reset the Top Session statistics to zero.

FortiGate Version 4.0 MR1 Administration Guide


120 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

Figure 40: Top sessions bar graph showing destination IP addresses

Customize the Top Sessions Display


Detach
Refresh
Close
Last updated

Number of Report By
active
sessions

View the session list


Number of
current sessions

Select Details to view the current sessions list, a list of all sessions currently processed by
the FortiGate unit. See “Viewing the current sessions list” on page 122.
To view detailed information about the sessions represented by a bar in the chart, click on
the bar.

To change the information displayed on the Top Sessions widget


1 Selecting edit icon to change the information displayed by the Top Sessions widget:
2 Change the Top Sessions settings as required:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 121
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Figure 41: Edit menu for Top Sessions

Sort Criteria Select the method used to sort the Top Sessions on the System Status
display. Choose one of:
• Source Address
• Destination Address
• Port Address
Display User Name Select to include the username associated with this source IP address, if
available. In the table display format this will be a separate column.
Display UserName is available only when the sort criteria is Source
Address.
Resolve Host Name Select to resolve the IP address to the host name.
Resolve Host Name is not available when the sort criteria is Destination
Port.
Resolve Service Select to resolve a port addresses into their commonly associated service
names. Any port address without a service, will continue to be displayed as
the port address. For example port 443 would resolve to HTTPS.
Resolve Service is only available when the sort criteria is Destination Port.
Display Format Select how the Top Session information is displayed. Choose one of:
• Chart
• Table
Top Sessions to Select the number of sessions to display. Choose to display 5, 10, 15, or 20
Show sessions.
Refresh Interval Select how often the display is updated. The refresh interval range is from
10 to 240 seconds. Selecting 0 will disable the automatic refresh of the
display. You will still be able to select the manual refresh option on the Top
Sessions title bar.
Shorter refresh intervals may impact the performance of your FortiGate
unit. If this occurs, try increasing the refresh interval or disabling the
automatic refresh.

Viewing the current sessions list


The current sessions list displays all sessions currently processed by the FortiGate unit.
For each session the current session list displays:
• the session protocol such as tcp or udp
• source address and port
• destination address and port
• the ID of the policy, if any, that applies to the session
• how long until the session expires
• which virtual domain the session belongs to

To view the current sessions list


1 Go to System > Status > Dashboard.

FortiGate Version 4.0 MR1 Administration Guide


122 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing the system dashboard

2 In the Top Sessions widget, select Details at the bottom of the widget.
3 The current sessions list appears.
Optionally select Detach to detach and expand the browser window to see the entire
list.
4 Select Return to return to the Top Sessions bar chart display.

Figure 42: Current sessions list

Edit Filters

Edit the Top Sessions display Attach the widget to the dashboard

Delete a Session

Virtual Domain Select a virtual domain to list the sessions being processed by that virtual
domain. Select All to view sessions being processed by all virtual domains.
This is only available if virtual domains are enabled. For more information
see “Using virtual domains” on page 159.
Refresh Icon Update the session list.
First Page Select to go to the first displayed page of current sessions.
Previous Page Select to go to the page of sessions immediately before the current page
Page Enter the page number of the session to start the displayed session list. For
example if there are 5 pages of sessions and you enter 3, page 3 of the
sessions will be displayed.
The number following the ‘/’ is the number of pages of sessions.
Next Page Select to go to the next page of sessions.
Last Page Select to go to the last displayed page of current sessions.
Total The total number sessions.
Clear All Filters Select to reset any display filters that may have been set.
Return Return to the Top Sessions display.
Filter Icon The icon at the top of all columns except #, and Expiry. When selected it
brings up the Edit Filter dialog allowing you to set the display filters by
column. See “Adding filters to web-based manager lists” on page 99.
Protocol The service protocol of the connection, for example, udp, tcp, or icmp.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 123
http://docs.fortinet.com/ • Feedback
Viewing the system dashboard System Status

Source Address The source IP address of the connection.


Source Port The source port of the connection.
Destination The destination IP address of the connection.
Address
Destination Port The destination port of the connection.
Policy ID The number of the firewall policy allowing this session or blank if the session
involves only one FortiGate interface (admin session, for example).
Expiry (sec) The time, in seconds, before the connection expires.
Delete icon Stop an active communication session. Your admin profile must include
read and write access to System Configuration.

Top Viruses
Top Viruses displays a bar graph representing the virus threats that have been detected
most frequently by the FortiGate unit.
The Top Viruses display is not part of the default dashboard display. It can be displayed by
selecting Add Content, and selecting Top Viruses from the drop down menu.
Selecting the history icon opens a window that displays up to the 20 most recent viruses
that have been detected with information including the virus name, when it was last
detected, and how many times it was detected. The system stores up to 1024 entries, but
only displays up to 20 in the GUI.
Selecting the edit icon for Top Viruses allows changes to the:
• refresh interval
• top viruses to show

Top Attacks
Top Attacks displays a bar graph representing the most numerous attacks detected by the
FortiGate unit.
The Top Attacks display is not part of the default dashboard display. It can be displayed by
selecting Add Content > Top Attacks from the drop down menu.
Selecting the history icon opens a window that displays up to the 20 most recent attacks
that have been detected with information including the attack name, when it was last
detected, and how many times it was detected. The FortiGate unit stores up to 1024
entries, but only displays up to 20 in the web-based manager.
Selecting the Edit icon for Top Attacks allows changes to the:
• refresh interval
• top attacks to show

Traffic History
The traffic history display shows the traffic on one selected interface over the last hour,
day, and month. This feature can help you locate peaks in traffic that you need to address
as well as their frequency, duration, and other information.
Only one interface at a time can be monitored. You can change the interface being
monitored by selecting Edit, choosing the interface from the drop down menu, and
selecting Apply. Doing this will clear all the traffic history data.

FortiGate Version 4.0 MR1 Administration Guide


124 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Changing system information

Figure 43: Traffic History

Interface being
monitored

Interface The interface that is being monitored .


kbit/s The units of the traffic graph. The scale varies based on traffic levels to
allow it to show traffic levels no matter how little or how much traffic there is.
Last 60 Minutes Three graphs showing the traffic monitored on this interface of the FortiGate
Last 24 Hours unit over different periods of time.
Last 30 Days Certain trends may be easier to spot in one graph over the others.
Traffic In The traffic entering the FortiGate unit on this interface is indicated with a
thin red line.
Traffic Out The traffic leaving the FortiGate unit on this interface is indicated with a dark
green line, filled in with light green.

Changing system information


FortiGate administrators whose admin profiles permit write access to system configuration
can change the system time, host name and the operation mode for the VDOM.

Configuring system time


1 Go to System > Status > Dashboard.
2 In the System Information section, select Change on the System Time line.
3 Select the time zone and then either set the date and time manually or configure
synchronization with an NTP server.

Figure 44: Time Settings

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 125
http://docs.fortinet.com/ • Feedback
Changing the FortiGate firmware System Status

System Time The current FortiGate system date and time.


Refresh Update the display of the current FortiGate system date and time.
Time Zone Select the current FortiGate system time zone.
Automatically adjust Select to automatically adjust the FortiGate system clock when your
clock for daylight time zone changes between daylight saving time and standard time.
saving changes
Set Time Select to set the FortiGate system date and time to the values you set
in the Hour, Minute, Second, Year, Month and Day fields.
Synchronize with Select to use a Network Time Protocol (NTP) server to automatically
NTP Server set the system date and time. You must specify the server and
synchronization interval.
FortiGate units use NTP Version 4. No RFC is currently available for
NTP version 4. The RCF for NTP Version 3 is RFC 1305. For more
information about NTP see http://www.ntp.org.
Server Enter the IP address or domain name of an NTP server. To find an NTP
server that you can use, see http://www.ntp.org.
Sync Interval Specify how often the FortiGate unit should synchronize its time with
the NTP server. For example, a setting of 1440 minutes causes the
FortiGate unit to synchronize its time once a day.

Changing the FortiGate unit host name


The FortiGate host name appears on the Status page and in the FortiGate CLI prompt.
The host name is also used as the SNMP system name. For information about SNMP, see
“SNMP” on page 241.
The default host name is the FortiGate unit serial number. For example
FGT8002805030003 would be a FortiGate-800 unit.
Administrators whose admin profiles permit system configuration write access can change
the FortiGate unit host name.

Note: If the FortiGate unit is part of an HA cluster, you should use a unique host name to
distinguish the unit from others in the cluster.

To change the FortiGate unit host name


If the host name is longer than 16 characters, it will be displayed as being truncated
and end with a “~”. The full host name will be displayed under System > Status >
Dashboard, but the truncated host name will be displayed on the CLI and other places
it is used.
1 Go to System > Status > Dashboard.
2 In the Host Name field of the System Information section, select Change.
3 In the New Name field, type a new host name.
4 Select OK.
The new host name is displayed in the Host Name field, and in the CLI prompt, and is
added to the SNMP System Name.

Changing the FortiGate firmware


FortiGate administrators whose admin profiles permit maintenance read and write access
can change the FortiGate firmware. Firmware images can be transferred from a number of
sources including a local hard disk, a local USB disk, or the FortiGuard Network.

FortiGate Version 4.0 MR1 Administration Guide


126 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Changing the FortiGate firmware

Note: To access firmware updates for your FortiGate model, you will need to register your
FortiGate unit with Customer Support. For more information go to
http://support.fortinet.com or contact Customer Support.

For more information about using the USB disk, and the FortiGuard Network see “System
Maintenance” on page 311.

Figure 45: Firmware Upgrade/Downgrade

Upgrade From Select the firmware source from the drop down list of available sources.
Possible sources include Local Hard Disk, USB, and FortiGuard Network.
Upgrade File Browse to the location of the firmware image on your local hard disk.
This field is available for local hard disk and USB only.
Upgrade Partition The number of the partition being updated.
This field is available only if your FortiGate unit has more than one firmware
partition.
more info Select to go to the FortiGuard Center to learn more about firmware updates
through the FortiGuard network.

Firmware changes either upgrade to a newer version or revert to an earlier version. Follow
the appropriate procedure to change your firmware.
For more information about managing firmware, see “Managing firmware versions” on
page 147.

Upgrading to a new firmware version


When an update for your FortiGate unit is available, you can update your unit with the new
firmware version.
To determine what version firmware you have, refer to Firmware version on System >
Status > Dashboard > System Information. The version is in the format of “X.Y.Z” where X
is the major version number, Y is the minor version number, and Z is the patch number.
For example firmware version 4.0.1 is major version 4, with patch 1.
Use the following procedure to upgrade the FortiGate unit to a newer firmware version.

Note: Installing firmware replaces the current antivirus and attack definitions with the
definitions included with the firmware release that you are installing. After you install new
firmware, use the procedure “To update antivirus and attack definitions” on page 329 to
make sure that antivirus and attack definitions are up to date.

To upgrade the firmware using the web-based manager


1 Copy the new firmware image file to your management computer.
The firmware images for FortiGate units are available at the Fortinet Support web site.
2 Log into the web-based manager as the super admin, or an administrator account that
has system configuration read and write privileges.
3 Go to System > Status > Dashboard.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 127
http://docs.fortinet.com/ • Feedback
Changing the FortiGate firmware System Status

4 In the System Information section, select Update on the Firmware Version line.
5 Type the path and filename of the firmware image file, or select Browse and locate the
file.
6 Select OK.
The FortiGate unit uploads the firmware image file, upgrades to the new firmware
version, closes all sessions, restarts, and displays the FortiGate login. This process
takes a few minutes.
7 Log into the web-based manager.
8 Go to System > Status > Dashboard and check the Firmware Version to confirm that
the firmware upgrade is successfully installed.
9 Update antivirus and attack definitions. For information about updating antivirus and
attack definitions, see “Configuring FortiGuard Services” on page 322.

Reverting to a previous firmware version


Use the following procedure to revert your FortiGate unit to a previous firmware version.
This also reverts the FortiGate unit to its factory default configuration and deletes IPS
custom signatures, web content lists, email filtering lists, and changes to replacement
messages. Back up your FortiGate unit configuration to preserve this information. For
information, see “About the Maintenance menu” on page 311.
If you are reverting to a previous FortiOS™ version (for example, reverting from FortiOS
v3.0 to FortiOS v2.8), you might not be able to restore the previous configuration from the
backup configuration file.

Note: Installing firmware replaces the current antivirus and attack definitions with the
definitions included with the firmware release that you are installing. After you install new
firmware, use the procedure “To update antivirus and attack definitions” on page 329 to
make sure that antivirus and attack definitions are up to date.

To revert to a previous firmware version using the web-based manager


1 Copy the firmware image file to your management computer.
The firmware images for FortiGate units are available at the Fortinet Support web site.
2 Log into the web-based manager as the super admin, or an administrator account that
has system configuration read and write privileges.
3 Go to System > Status > Dashboard.
4 In the System Information section, select Update on the Firmware Version line.
5 Type the path and filename of the firmware image file, or select Browse and locate the
file.
6 Select OK.
The FortiGate unit uploads the firmware image file, reverts to the old firmware version,
resets the configuration, restarts, and displays the FortiGate login. This process takes
a few minutes.
7 Log into the web-based manager.
8 Go to System > Status > Dashboard and check the Firmware Version to confirm that
the firmware is successfully installed.
9 Restore your configuration.
For information about restoring your configuration, see “About the Maintenance menu”
on page 311.

FortiGate Version 4.0 MR1 Administration Guide


128 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing operational history

10 Update antivirus and attack definitions.


For information about antivirus and attack definitions, see “To update antivirus and
attack definitions” on page 329.

Viewing operational history


The System Resource History page displays six graphs representing different system
resources and protection activity over time.
Note the refresh rate is 3 second intervals for the graphs.

To view the operational history


1 Go to System > Status > Dashboard.
2 Select History in the upper right corner of the System Resources widget.

Figure 46: Sample system resources history

Time Interval Select the time interval for the graphs to display.
CPU Usage History CPU usage for the preceding interval.
Memory Usage History Memory usage for the preceding interval.
Session History Number of sessions over the preceding interval.
Network Utilization History Network utilization for the preceding interval.
Virus History Number of Viruses detected over the preceding interval.
Intrusion History Number of intrusion attempts detected over the preceding
interval.

Manually updating FortiGuard definitions


You can update your FortiGuard antivirus database, Intrusion Protection definitions, and
antispam rule set at any time from the License Information section of the System Status
page.

Note: For information about configuring automatic FortiGuard updates, see “Configuring
FortiGuard Services” on page 322.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 129
http://docs.fortinet.com/ • Feedback
Viewing Log and Archive Statistics System Status

To update FortiGuard antivirus definitions, IPS definitions, or antispam rule set


manually
1 Download the latest update file from Fortinet support site and copy it to the computer
that you use to connect to the web-based manager.
2 Start the web-based manager and go to System > Status > Dashboard.
3 In the License Information section, in the AV Definitions, IPS Definitions, or AS Rule
Set field of the FortiGuard Subscriptions, select Update.
4 Select Browse and locate the update file or type the path and filename.
5 Select OK to copy the update file to the FortiGate unit.
The FortiGate unit updates the AV definitions. This takes about 1 minute.
6 Go to System > Status > Dashboard to confirm that the version information for the
selected definition or rule set has updated.

Viewing Log and Archive Statistics


The Log and Archive Statistics widget provides information about sessions, DLP archiving
and network protection activity.

Viewing DLP Archive information on the Statistics widget


From the Statistics widget of the System Status page, you can view statistics about HTTP,
HTTPS, email, FTP and IM traffic through the FortiGate unit. You can select the Details
link beside each traffic type to view more information. You can select Reset on the header
of the Statistics section to clear the DLP archive and attack log information and reset the
counts to zero.

Viewing HTTP content information


1 Go to System > Status > Dashboard.
2 In the DLP archive section, select Details for HTTP.

Date and Time The time when the URL was accessed.
From The IP address from which the URL was accessed.
URL The URL that was accessed.

Viewing Email content information


1 Go to System > Status > Dashboard.

FortiGate Version 4.0 MR1 Administration Guide


130 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing Log and Archive Statistics

2 In the DLP archive section, select Details for Email.

Date and Time The time that the email passed through the FortiGate unit.
From The sender’s email address.
To The recipient’s email address.
Subject The subject line of the email.

Viewing archived FTP content information


1 Go to System > Status > Dashboard.
2 In the DLP archive section, select Details for FTP.

Date and Time The time of access.


Destination The IP address of the FTP server that was accessed.
User The User ID that logged into the FTP server.
Downloads The names of files that were downloaded.
Uploads The names of files that were uploaded.

Viewing IM content information


1 Go to System > Status > Dashboard.
2 In the DLP archive section, select Details for IM.

Date / Time The time of access.


Protocol The protocol used in this IM session.
Kind The kind of IM traffic this transaction is.
Local The local address for this transaction.
Remote The remote address for this transaction
Direction If the file was sent or received.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 131
http://docs.fortinet.com/ • Feedback
Viewing Log and Archive Statistics System Status

Viewing the Attack Log


From the Statistics section of the System Status page, you can view statistics about the
network attacks that the FortiGate unit has stopped. You can view statistics about viruses
caught, attacks detected, spam email detected, and URLs blocked. You can also view
information about sessions matched by DLP rules. You can select the Details link beside
each attack type to view more information.
You can select Reset on the header of the Statistics section to clear the DLP archive and
attack log information and reset the counts to zero.

Viewing viruses caught


1 Go to System > Status > Dashboard.
2 In the Attack Log section, select Details for AV.

Date and Time The time when the virus was detected.
From The sender’s email address or IP address.
To The intended recipient’s email address or IP address.
Service The service type, such as POP or HTTP.
Virus The name of the virus that was detected.

Viewing attacks blocked


1 Go to System > Status > Dashboard.
2 In the Attack Log section, select Details for IPS.

Date and Time The time that the attack was detected.
From The source of the attack.
To The target host of the attack.
Service The service type.
Attack The type of attack that was detected and prevented.

Viewing spam email detected


1 Go to System > Status > Dashboard.
2 In the Attack Log section, select Details for Spam.

Date and Time The time that the spam was detected.
From->To IP The sender and intended recipient IP addresses.
From->To Email Accounts The sender and intended recipient email addresses.
Service The service type, such as SMTP, POP or IMAP.
SPAM Type The type of spam that was detected.

Viewing URLs blocked


1 Go to System > Status > Dashboard.
2 In the Attack Log section, select Details for Web.

Date and Time The time that the attempt to access the URL was detected.
From The host that attempted to view the URL.
URL Blocked The URL that was blocked.

FortiGate Version 4.0 MR1 Administration Guide


132 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Configuring AMC modules

Viewing the sessions matched by DLP


1 Go to System > Status > Dashboard.
2 In the Attack Log section, select Details for DLP.

Date and Time The time that the attempt to access the URL was detected.
Service The service type, such as HTTP, SMTP, POP or IMAP.
Source The source address of the session.
From The host that attempted to view the URL.
URL Blocked The URL that was blocked.
From The sender’s email address or IP address.
To The intended recipient’s email address or IP address.

Configuring AMC modules


Most FortiGate models with AMC slots have one single-width or dual width AMC slot. The
FortiGate-3810A has two single-width and two dual width AMC slots.
By default, FortiGate units automatically recognize the AMC modules installed in their
AMC slots or automatically recognize that an AMC slot is empty. If the module contains
interfaces, FortiOS automatically adds the interfaces to the FortiGate configuration. If the
module contains a hard disk, the hard disk is automatically added to the configuration.
However, when the FortiGate unit is powered down and the module removed from the
slot, when the FortiGate unit restarts it automatically recognizes that the slot is empty and
will not retain any configuration settings for the missing module.
This default behavior is usually acceptable in most cases. However, it can be useful when
a module is present in a slot to add the name of the module to the FortiGate configuration.
Then, if the module fails or if you temporarily remove it from the slot, the FortiGate unit
keeps the module’s configuration settings so that when the module is replaced you will not
have to re-configure it.
If you have added the name of a module to a slot and you are planning or removing the
module and replacing it with a different type of module (for example, if you are removing a
FortiGate-ASM-S08 and replacing it with a FortiGate-ASM-FX2) you should reset the slot
to the default before removing the module. Then after adding the new module you should
add its name to the slot.
You configure AMC slot settings from the FortiGate CLI using the config system amc
command. For information about this command, see the FortiGate CLI Reference.

To change the default setting for an AMC slot


The following procedure shows how to add a FortiGate-ADM-FB8 to the first double-width
AMC slot (dw1) and how to add the name of the module to the slot configuration.
1 Enter the following CLI command to verify that the slot that you will insert the
FortiGate-ADM-FB8 module into is set to the default configuration.
This command lists the AMC slots and the settings for each one. Example command
output for a FortiGate-5001A with an empty double-width AMC slot:
get system amc
dw1 : auto
2 Power down the FortiGate unit.
3 Insert the FortiGate-ADM-FB8 module into the double-width AMC slot.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 133
http://docs.fortinet.com/ • Feedback
Configuring AMC modules System Status

4 Power up the FortiGate unit.


As long as the slot that you have inserted the FortiGate-ADM-FB8 module into is set to
auto the FortiGate unit should automatically find the module when it powers up.
5 Add the name of the FortiGate-ADM-FB8 module to the FortiGate configuration.
config system amc
set dw1 adm-fb8
end

Auto-bypass and recovery for AMC bridge module


The FortiGate-ASM-CX4 and FortiGate-ASM-FX2 modules provide fail open protection for
interface pairs of FortiGate units operating in Transparent mode and that have a single-
width AMC slot. The FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module bridges
FortiGate interfaces, monitors the interfaces for traffic failures, and operate as pass-
through devices if the interfaces or the entire FortiGate unit fails or for some reason
cannot pass traffic between the interfaces. If a failure occurs, traffic bypasses the
FortiGate unit and passes through the FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module
to make sure that the network can continue processing traffic after a FortiGate failure.
This section describes how to configure a FortiGate unit to use a FortiGate-ASM-CX4 or
FortiGate-ASM-FX2 module to bridge FortiGate interfaces. The FortiGate unit must
operate in Transparent mode and the FortiGate-ASM-CX4 and FortiGate-ASM-FX2
modules are not compatible with FortiGate HA.
The FortiGate-ASM-CX4 and FortiGate-ASM-FX2 modules include a bypass watchdoc
that continually verifies that traffic is flowing through the bridged FortiGate interfaces. If
traffic stops flowing, for example if the FortiGate unit fails, and if the bypass watchdog
detects this, the bridge module switches to bypass mode to ensure the flow of traffic on
the network.
In bypass mode all traffic flows between interfaces on the FortiGate-ASM-CX4 and
FortiGate-ASM-FX2 modules and not through the FortiGate unit. You can configure a
recovery watchdog to verify that the bridged FortiGate interfaces cannot process traffic. If
you fix the problem or the problem fixes itself, the recovery watchdog automatically
detects that traffic can resume and switches the module back to normal operation by
turning off bypass mode.

To configure a FortiGate unit to operate with a FortiGate-ASM-CX4 or


FortiGate-ASM-FX2 module
1 Switch the FortiGate unit to operate in Transparent mode.
config system settings
set opmode transparent
set manageip <management_IPv4> <netmask_ipv4>
set gateway <gateway_ipv4>
end
After a short pause the FortiGate unit is operating in Transparent mode.
2 Enter the following command to verify that the slot that you will insert the
FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module into is set to auto.
This command lists the AMC slots and the settings for each one. Example command
output for a FortiGate-620B with an empty AMC slot:
get system amc
sw1 : auto
3 Power down the FortiGate unit.

FortiGate Version 4.0 MR1 Administration Guide


134 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Configuring AMC modules

4 Insert the FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module into a single-width AMC


slot.
5 Power up the FortiGate unit.
As long as the slot that you have inserted the module into is set to auto the FortiGate
unit should automatically find the module when it powers up.
6 Add the name of the module to the FortiGate configuration and configure bypass and
recovery settings.
The following command configures AMC single width slot 1 (sw1) for a FortiGate-ASM-
CX4.
This command also enables the bypass watchdog and increases the bypass timeout
from the default value of 10 seconds to 60 seconds. This means that if a failure occurs
the bridge module will change to bypass mode 60 seconds after the bypass watchdog
detects the failure.
This command also enables watchdog recovery and sets the watchdog recovery
period to 30 seconds. This means that if a failure occurs, while the FortiGate-ASM-CX4
module is bridging the connection the AMC bypass watchdog monitors FortiGate
processes and will revert to normal operating mode (that is disable the bridging the
interfaces with the FortiGate-ASM-CX4 module) if the FortiGate unit recovers from the
failure.
config system amc
set sw1 asm-cx4
set bypass-watchdog enable
set bypass-timeout 60
set watchdog-recovery enable
set watchdog-recovery-period 30
end

Enabling or disabling bypass mode for AMC bridge modules


Use the execute amc bypass command to switch between normal mode and bypass
mode for a FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module installed in an single-width
AMC slot in a FortiGate unit. Normally the FortiGate-ASM-CX4 and FortiGate-ASM-FX2
modules operate with bypass mode disabled and traffic passes through the FortiGate
interfaces bridged by the FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module. You can
use this command manually enable bypass mode and force traffic to bypass the FortiGate
interfaces and pass through the FortiGate-ASM-CX4 or FortiGate-ASM-FX2 module.
Also, if bypass mode has been enabled (using this command or because of a failure), you
can also use this command to manually disable bypass mode and resume normal
operation. This can be useful if the problem that caused the failure has been fixed and
normal operation can resume.

To manually enable bypass mode


1 Use the following command to manually enable bypass mode:
execute amc bypass enable
2 Use the following diagnose command to view the status of the AMC modules installed
in a FortiGate unit, including whether they are operating in bypass mode.
For example if you have installed a FortiGate-ASM-CX4 module in AMC slot 2 of a
FortiGate-3810A and bypass mode is enabled:
diagnose sys amc bypass status
ASM-CX4 in slot 2:
amc-sw2/1 <--> amc-sw2/2: mode=bypass (admin action)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 135
http://docs.fortinet.com/ • Feedback
Configuring AMC modules System Status

amc-sw2/3 <--> amc-sw2/4: mode=bypass (admin action)

Daemon heartbeat status: normal


Last heartbeat received: 0 second(s) ago
3 Log into the web-based manager and go to System > Status > Dashboard and view the
Unit Operation widget to see the status of the AMC bridge module.
Figure 47 shows bypass mode enabled.

Figure 47: FortiGate-3810A with FortiGate-ASM-CX4 module installed in AMC slot 2

To manually disable bypass mode


1 Use the following command to manually disable bypass mode:
execute amc bypass disable
2 Use the following diagnose command to view the status of the AMC modules installed
in a FortiGate unit, including whether they are operating in bypass mode.
For example if you have installed a FortiGate-ASM-CX4 module in AMC slot 2 of a
FortiGate-3810A and bypass mode is disabled:
diagnose sys amc bypass status
ASM-CX4 in slot 2:
amc-sw2/1 <--> amc-sw2/2: mode=normal
amc-sw2/3 <--> amc-sw2/4: mode=normal

Daemon heartbeat status: normal


Last heartbeat received: 1 second(s) ago
3 Log into the web-based manager and go to System > Status > Dashboard and view the
Unit Operation widget to see the status of the AMC bridge module.
Figure 48 shows bypass mode disabled.

Figure 48: FortiGate-3810A with FortiGate-ASM-CX4 module installed in AMC slot 2

FortiGate Version 4.0 MR1 Administration Guide


136 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing application, policy, and DLP archive usage data

Viewing application, policy, and DLP archive usage data


You can go to System > Status > Usage to view application, policy, and DLP archive
usage statistics about traffic passing through your FortiGate unit. Usage displays on the
System > Status > Usage page for both global and VDOM administrators. You can also
add the Usage widget to custom web-based manager pages.
This section describes:
• Top Application Usage
• Top Policy Usage
• DLP Archive Usage

Top Application Usage


Top Application Usage shows the volume of traffic passing through the FortiGate unit
classified by application type as either a chart or a table. The chart displays applications in
order of use.
From the chart or table display you can:
• View traffic volumes by pausing the mouse pointer over each bar.
• Select an application type on the graph to view information about the source addresses
that used the application and the amount of data transferred by sessions from each
source address.
Top Application Usage data is collected by adding application control black/white lists to
protection profiles. Only information about applications matched by application control is
added to the chart or table. Sessions accepted by firewall policies that do not include
protection profiles with application control configured do not contribute to the data
displayed.

Figure 49: Top Application Usage chart display

Edit
Reset Refresh

Close

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 137
http://docs.fortinet.com/ • Feedback
Viewing application, policy, and DLP archive usage data System Status

Figure 50: Top Application Usage table display

Edit
Reset Refresh

Close

Reset Reset all counts to zero.


Edit Configure module settings.
Refresh Update displayed information.
Close Close the module.
Applications Application names in order of use.
Bytes or Traffic volume in bytes or number of messages, depending on Sort Criteria setting.
Messages

To configure the Top Application Usage module - web-based manager


1 Go to System > Status > Usage.
2 Select the Edit icon in the Top Application Usage module title bar.

Figure 51: Configuring the Top Application Usage module

Sort Criteria Select whether to sort the applications by number of Bytes or number
of Messages.
Report By Select Source Address or Destination Address.
Display User Name Select the check box to show the user name (when known) instead of
the IP address.
Resolve Host Name Select to use reverse-DNS lookup to determine the host name instead
of displaying the IP address.

FortiGate Version 4.0 MR1 Administration Guide


138 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing application, policy, and DLP archive usage data

VDOM Select the VDOM to monitor or select Global. This is available for
global administrators only. VDOM administrators see only their only
VDOM.
Display Format Select Chart or Table display.
Top Entries To Show Select whether to display top 5, 10, 15, or 20 applications.
Refresh Interval Select display update interval in seconds. Range 10 to 240 seconds.
Select 0 to disable updating. You can also update using the Refresh
icon in the module header.

Top Policy Usage


Top Policy Usage shows the volume of traffic passing through the FortiGate unit classified
by firewall policy as either a chart or a table.
From the chart or table display you can:
• View details about firewall policies by pausing the mouse pointer over each bar in the
chart.
• Select a firewall policy on the graph to view and optionally change the firewall policy.
Top Policy Usage data is collected by all firewall policies. You can configure Top Policy
Usage to show data for up to 20 firewall policies. Only firewall policies that have accepted
sessions appear on the chart or table.

Figure 52: Top Policy Usage chart display

Edit
Reset Refresh

Close

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 139
http://docs.fortinet.com/ • Feedback
Viewing application, policy, and DLP archive usage data System Status

Figure 53: Top Policy Usage table display

Edit
Reset Refresh

Close

Reset Reset all counts to zero.


Edit Configure module settings.
Refresh Update displayed information.
Close Close the module.
Policy ID The firewall policy identifier.
Total Bytes or The cumulative traffic volume for the firewall policy in bytes or packets,
Total Packets depending on the Sort Criteria setting.

To configure the Top Policy Usage module


1 Go to System > Status > Usage.
2 Select the Edit icon in the Top Policy Usage module title bar.
3 Enter the following information and select OK.

Figure 54: Configuring the Top Policy Usage module

Sort Criteria Select whether to sort the policies by number of Bytes or number of
Packets.
VDOM Select the VDOM to monitor or select Global. This is available for
global administrators only. VDOM administrators see only their only
VDOM.
Display Format Select Chart or Table display.
Top Entries To Show Select whether to display top 5, 10, 15, or 20 applications.
Refresh Interval Select display update interval in seconds. Range 10 to 240 seconds.
Select 0 to disable updating. You can also update using the Refresh
icon in the module header.

FortiGate Version 4.0 MR1 Administration Guide


140 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Viewing application, policy, and DLP archive usage data

DLP Archive Usage


DLP Archive Usage shows the volume of data that the FortiGate unit has sent to content
archiving (DLP Archive). You can categorize the information by DLP Rule, firewall policy,
protection profile, or protocol.
From the table display you can:
• View details about the data by pausing the mouse pointer over each bar in the chart.
• Select a bar on the graph to view more information about the data.
DLP Archive Usage data is collected by adding DLP sensors to protection profiles. Only
information about sessions matched by DLP sensors is added to the chart or table.
Sessions accepted by firewall policies that do not include protection profiles with DLP
sensors configured do not contribute to the data displayed.

Figure 55: DLP Archive Usage module

Edit
Reset Refresh

Close

Reset Reset all counts to zero.


Edit Configure module settings.
Refresh Update displayed information.
Close Close the module.
DLP Rule or The DLP Rule, firewall policy, protection profile or protocol, depending on the
Policy or Report By setting.
Profile or
Protocol
Bytes or The volume of archived data in bytes or messages, depending on the
Messages Sort Criteria setting.

To configure the DLP Archive Usage module


1 Go to System > Status > Usage.
2 Select the Edit icon in the DLP Archive Usage module title bar.
3 Enter the following information and select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 141
http://docs.fortinet.com/ • Feedback
Using the topology viewer System Status

Figure 56: Configuring the DLP Archive module

Report By Select one of: DLP Rule, Profile, Policy, or Protocol.


Sort Criteria Select whether to sort the results by number of Bytes or number
of Messages.
Protocol Select the protocols to include.
VDOM Select the VDOM to monitor or select Global. This is available for
global administrators only. VDOM administrators see only their
only VDOM.
This field is not available if Report By is Protocol.
Top Entries To Show Select whether to display top 5, 10, 15, or 20 items.
Refresh Interval Select display update interval in seconds. Range 10 to 240
seconds. Select 0 to disable updating. You can also update
using the Refresh icon in the module header.

Using the topology viewer


The Topology page provides a way to diagram and document the networks connected to
your FortiGate unit. The Topology viewer is not available if Virtual Domains (VDOMs) are
enabled.
To access the Topology viewer feature, go to System > Admin > Admin Profile and create
a custom menu layout in your administrative profile and add the Topology page. It is in the
Additional content category. See “Configuring an admin profile” on page 284.
Go to System > Status > Topology to view the system topology. The Topology page
consists of a large canvas upon which you can draw a network topology diagram of your
FortiGate installation.

FortiGate Version 4.0 MR1 Administration Guide


142 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Using the topology viewer

Figure 57: Topology page

Zoom/Edit controls Text object Subnet object

FortiGate unit object Viewport Viewport


control

Viewport and viewport control


The viewport displays only a portion of the drawing area. The viewport control, at the
bottom right of the topology page, represents the entire drawing area. The darker
rectangle represents the viewport. Drag the viewport rectangle within the viewport control
to determine which part of the drawing area the viewport displays.
The “+” and “-” buttons in the viewport control have the same function as the Zoom in and
Zoom out controls.

FortiGate unit object


The FortiGate unit is a permanent part of the topology diagram. You can move it, but not
delete it.
The FortiGate unit object shows the link status of the unit’s interfaces. Green indicates the
interface is up. Gray indicates the interface is down. Select the interface to view its IP
address and netmask, if assigned.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 143
http://docs.fortinet.com/ • Feedback
Using the topology viewer System Status

Zoom and Edit controls


The toolbar at the top left of the Topology page shows controls for viewing and editing the
topology diagram.
Table 6: Zoom and Edit controls for Topology

Refresh the displayed diagram.

Zoom in. Select to display a smaller portion of the drawing area in the viewport, making
objects appear larger.

Zoom out. Select to display a larger portion of the drawing area in the viewport, making
objects appear smaller.

Select to begin editing the diagram.


This button expands the toolbar to show the editing controls described below:

Save changes made to the diagram.


Note: If you switch to any other page in the web-based manager without saving your
changes, your changes are lost.

Add a subnet object to the diagram. The subnet object is based on the firewall address
that you select, and is connected by a line to the interface associated with that
address. See “Adding a subnet object” on page 145.

Insert Text. Select this control and then click on the diagram where you want to place
the text object. Type the text and then click outside the text box.

Delete. Select the object(s) to delete and then select this control or press the Delete
key.

Customize. Select to change the colors and the thickness of lines used in the drawing.
See “Customizing the topology diagram” on page 146.

Drag. Select this control and then drag objects in the diagram to arrange them.

Scroll. Select this control and then drag the drawing area background to move the
viewport within the drawing area. This has the same effect as moving the viewport
rectangle within the viewport control.

Select. Select this control and then drag to create a selection rectangle. Objects within
the rectangle are selected when you release the mouse button.

Exit. Select to finish editing the diagram. Save changes first.


The toolbar contracts to show only the Refresh and Zoom controls.

FortiGate Version 4.0 MR1 Administration Guide


144 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Status Using the topology viewer

Adding a subnet object


While editing the topology diagram, you can select the Add Subnet control to define a
subnet object. The object is drawn and connected by a line to the interface associated with
the address.

Figure 58: Adding an existing subnet to the topology diagram

Figure 59: Adding a new subnet to the topology diagram

Select from existing Create a subnet object based on an existing firewall address. The
address/group object has the name of the firewall address and is connected by a line
to the interface associated with that address. For more information
about firewall addresses, see “Firewall Address” on page 421.
Address Name Enter a name to identify the firewall address. Addresses, address
groups, and virtual IPs must have unique names to avoid confusion in
firewall policies.
Connect to interface Select the interface or zone to associate with this address. If the field
already displays a name, changing the setting changes the interface
or zone associated with this existing address.
If the address is currently used in a firewall policy, you can choose
only the interface selected in the policy.
New addresses Create a new firewall address and add a subnet object based on that
address to the topology diagram. The address is associated with the
interface you choose.
Address Name Enter a name to identify the firewall address. Addresses, address
groups, and virtual IPs must have unique names to avoid confusion in
firewall policies.
Type Select the type of address: Subnet/IP Range or FQDN.
Subnet / IP Range If Type is Subnet / IP Range, enter the firewall IP address, followed by
a forward slash and then the subnet mask. Alternatively, enter IP
range start address, followed by a hyphen (-) and the IP range end
address.
FQDN If Type is FQDN, enter the fully qualified domain name.
Connect to interface Select the interface or zone to associate with this address.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 145
http://docs.fortinet.com/ • Feedback
Using the topology viewer System Status

Customizing the topology diagram


In System > Status > Topology, select the Customize button to open the Topology
Customization window. Modify the settings as needed and select OK when you are
finished.

Figure 60: Topology Customization window

Preview A simulated topology diagram showing the effect of the selected appearance
options.
Canvas Size The size of the drawing in pixels.
Resize to Image If you selected an image as Background, resize the diagram to fit within the
image.
Background One of:
Solid A solid color selected in Background Color.
U.S. Map A map of the United States.
World Map A map of the world.
Upload My Upload the image from Image Path
Image
Background Select the color of the diagram background.
Color
Image path If you selected Upload My Image for Background, enter the path to your image,
or use the Browse button to find it.
Exterior Color Select the color of the border region outside your diagram.
Line Color Select the color of connecting lines between subnet objects and interfaces.
Line Width Select the thickness of connecting lines.
Reset to Default Reset all topology diagram settings to default.

FortiGate Version 4.0 MR1 Administration Guide


146 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions

Managing firmware versions


Fortinet recommends reviewing this section before upgrading because it contains
important information about how to properly back up your current configuration settings
and what to do if the upgrade is unsuccessful.
You should also review the FortiGate Upgrade Guide when a new firmware version is
released, or the What’s New chapter of this guide when a new firmware maintenance
release is released. Both contain valuable information about the changes and new
features that may cause issues with the current configuration.
In addition to firmware images, Fortinet releases patch releases—maintenance release
builds that resolve important issues. Fortinet strongly recommends reviewing the release
notes for the patch release before upgrading the firmware. Follow the steps below:
• Download and review the release notes for the patch release.
• Download the patch release.
• Back up the current configuration.
• Install the patch release using the procedure “Testing firmware before upgrading” on
page 150.
• Test the patch release until you are satisfied that it applies to your configuration.
Installing a patch release without reviewing release notes or testing the firmware may
result in changes to settings or unexpected issues.
With FortiOS 4.0, you can also configure your FortiGate unit to use NAT while in
transparent mode. For more information, see the Fortinet Knowledge Center article,
Configuring NAT in Transparent mode.
If you enable virtual domains (VDOMs) on the FortiGate unit, system firmware versions
are configured globally. For more information, see “Using virtual domains” on page 159.
This section describes:
• Backing up your configuration
• Testing firmware before upgrading
• Upgrading your FortiGate unit
• Reverting to a previous firmware image
• Restoring your configuration

Note: For more information about the settings that are available on the Backup and
Restore page, (such as remotely backing up to a FortiManager unit), see “System
Maintenance” on page 311.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 147
http://docs.fortinet.com/ • Feedback
Backing up your configuration Managing firmware versions

Backing up your configuration


Caution: Always back up your configuration before installing a patch release,
upgrading/downgrading firmware, or resetting configuration to factory defaults.

You can back up configuration settings to a local PC, a FortiManager unit, FortiGuard
Management server, or to a USB key. You can also back up to a FortiGuard Management
server if you have FortiGuard Analysis and Management Service enabled.
Fortinet recommends backing up all configuration settings from your FortiGate unit before
upgrading to FortiOS 4.0. This ensures all configuration settings are still available if you
require downgrading to FortiOS 3.0 MR7 and want to restore those configuration settings.

Backing up your configuration through the web-based manager


You can back up your configuration to a variety of locations, such as a FortiManager unit
or a FortiGuard Management server. The following procedure describes how to properly
back up your current configuration in the web-based manager.

To back up your configuration file through the web-based manager


1 Go to System > Maintenance > Backup & Restore.
2 Select to back up the configuration to either a Local PC, FortiManager, or FortiGuard (if
your FortiGate unit is configured for FortiGuard Analysis and Management Service).
If you want to encrypt your configuration file to save VPN certificates, select the
Encrypt configuration file check box, enter a password, and then enter it again to
confirm.
3 Select Backup.
4 Save the file.

Backing up your configuration through the CLI


You can back up your configuration file using a TFTP or FTP server, or the USB key. If you
have the FortiGuard Analysis and Management Service configured, you can also back up
your configuration to the FortiGuard Management server.
When backing up your configuration in the CLI, you can choose to back up the entire
configuration (execute backup full-config) or part of the configuration (execute
backup config). If you have virtual domains, there are limitations to what certain
administrators are allowed to back up. For more information, see the FortiGate CLI
Reference.
The following procedure describes how to back up your current configuration in the CLI
and assumes that you are familiar with the following commands. For more information
about the individual commands used in the following procedure, see the FortiGate CLI
Reference.

To back up your configuration file through the CLI


1 Enter the following to back up the configuration file to a USB key:
execute backup config usb <backup_filename> <encrypt_passwd>

FortiGate Version 4.0 MR1 Administration Guide


148 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions Backing up your configuration

2 Enter the following to back up the configuration file to a TFTP or FTP server:
execute backup config {tftp | ftp} <backup_filename>
<tftp_server_ipaddress> <ftp server [:ftp port] <ftp_username>
<ftp_passwd> <encrypt_passwd>
3 Enter the following to back up the configuration to a FortiGuard Management server:
execute backup config management-station <comment>

To back up the entire configuration file through the CLI


Enter the following to back up the entire configuration file:
execute backup full-config {tftp | ftp | usb} <backup_filename>
<backup_filename> <tftp_server_ipaddress> <ftp server [:ftp
port] <ftp_username> <ftp_passwd> <encrypt_passwd>

Backing up your configuration to a USB key


If your FortiGate unit has a USB port, you can back up your current configuration to a USB
key. When backing up a configuration file to a USB key, verify that the USB key is
formatted as a FAT16 disk. The FAT16 format is the only supported partition type. For
more information, see “Formatting USB Disks” on page 318.
Before proceeding, ensure that the USB key is inserted in the FortiGate unit’s USB port.

To back up your configuration to the USB key


1 Go to System > Maintenance > Backup & Restore.
2 Select USB Disk from Backup configuration to list.
If you want to encrypt your configuration file to save VPN certificates, select the
Encrypt configuration file check box, enter a password, and then enter it again to
confirm.
3 Select Backup.

After successfully backing up your configuration file, either from the CLI or the web-based
manager, proceed with upgrading to FortiOS 4.0.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 149
http://docs.fortinet.com/ • Feedback
Testing firmware before upgrading Managing firmware versions

Testing firmware before upgrading


You may want to test the firmware that you need to install before upgrading to a new
firmware version, or to a maintenance or patch release. By testing the firmware, you can
familiarize yourself with the new features and changes to existing features, as well as
understand how your configuration works with the firmware. A firmware image is tested by
installing it from a system reboot, and then saving it to system memory. After the firmware
is saved to system memory, the FortiGate unit operates using the firmware with the
current configuration.
The following procedure does not permanently install the firmware; the next time the
FortiGate unit restarts, it operates using the firmware originally installed on the FortiGate
unit. You can install the firmware permanently by using the procedures in “Upgrading your
FortiGate unit” on page 151.
You can use the following procedure for either a regular firmware image or a patch
release.
The following procedure assumes that you have already downloaded the firmware image
to your management computer.

To test the firmware image before upgrading


1 Copy the new firmware image file to the root directory of the TFTP server.
2 Start the TFTP server.
3 Log in to the CLI.
4 Enter the following command to ping the computer running the TFTP server:
execute ping <server_ipaddress>
Pinging the computer running the TFTP server verifies that the FortiGate unit and
TFTP server are successfully connected.
5 Enter the following to restart the FortiGate unit.
execute reboot
6 As the FortiGate unit reboots, a series of system startup messages appears. When the
following message appears, immediately press any key to interrupt the system startup:
Press any key to display configuration menu…
You have only three seconds to press any key. If you do not press a key soon enough,
the FortiGate unit reboots and you must log in and repeat steps 5 to 6 again.
If you successfully interrupt the startup process, the following message appears:
[G]: Get firmware image from TFTP server.
[F]: Format boot device.
[Q]: Quit menu and continue to boot with default firmware.
[H]: Display this list of options.
7 Type G to get the new firmware image from the TFTP server.
The following message appears:
Enter TFTP server address [192.168.1.168]:
8 Type the address of the TFTP server and press Enter.
The following message appears:
Enter Local Address [192.168.1.188]:

FortiGate Version 4.0 MR1 Administration Guide


150 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions Upgrading your FortiGate unit

9 Type the internal IP address of the FortiGate unit.


This IP address connects the FortiGate unit to the TFTP server. This IP address must
be on the same network as the TFTP server, but make sure you do not use an IP
address of another device on the network.
The following message appears:
Enter File Name [image.out]:
10 Enter the firmware image file name and press Enter.
The TFTP server uploads the firmware image file to the FortiGate unit and the
following appears:
Save as Default firmware/Backup firmware/Run image without
saving: [D/B/R]
11 Type R.
The FortiGate firmware image installs and saves to system memory. The FortiGate unit
starts running the new firmware image with the current configuration.
When you have completed testing the firmware, you can reboot the FortiGate unit and
resume using the original firmware.

Upgrading your FortiGate unit


If your upgrade is successful, and your FortiGate unit has a hard drive, you can use the
Boot alternate firmware option located in System > Maintenance > Backup and Restore.
This option enables you to have two firmware images, such as FortiOS 3.0 MR7 and
FortiOS 4.0, available for downgrading or upgrading.
If the upgrade was not successful, go to “Reverting to a previous firmware image” on
page 154.
You can also use the following procedure when installing a patch release. A patch release
is a firmware image that resolves specific issues, but does not contain new features or
changes to existing features. You can install a patch release whether or not you upgraded
to the current firmware version.

Upgrading to FortiOS 4.0 through the web-based manager


Caution: Always back up your configuration before installing a patch release,
upgrading/downgrading firmware, or resetting configuration to factory defaults.

The following procedure describes how to upgrade to FortiOS 4.0 in the web-based
manager. Fortinet recommends using the CLI to upgrade to FortiOS 4.0. The CLI upgrade
procedure reverts all current firewall configurations to factory default settings.

To upgrade to FortiOS 4.0 through the web-based manager


1 Download the firmware image file to your management computer.
2 Log in to the web-based manager.
3 Go to System > Status and locate the System Information widget.
4 Beside Firmware Version, select Update.
5 Enter the path and filename of the firmware image file, or select Browse and locate the
file.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 151
http://docs.fortinet.com/ • Feedback
Upgrading your FortiGate unit Managing firmware versions

6 Select OK.
The FortiGate unit uploads the firmware image file, upgrades to the new firmware
version, restarts, and displays the FortiGate login. This process may take a few
minutes.
When the upgrade is successfully installed:
• ping to your FortiGate unit to verify there is still a connection.
• clear the browser’s cache and log in to the web-based manager.
After logging back in to the web-based manager, you should save the configuration
settings that carried forward. Some settings may have carried forward from FortiOS
3.0 MR7, while others may not have, such as certain IPS group settings. Go to System >
Maintenance > Backup and Restore to save the configuration settings that carried
forward.

Note: After upgrading to FortiOS 4.0, perform an “Update Now” to retrieve the latest
FortiGuard signatures from the FortiGuard Distribution Network (FDN) as these signatures
included in the firmware may be older than those currently available on the FDN.

Upgrading to FortiOS 4.0 through the CLI


Caution: Always back up your configuration before installing a patch release,
upgrading/downgrading firmware, or resetting configuration to factory defaults.

The following procedure uses a TFTP server to upgrade the firmware. The CLI upgrade
procedure reverts all current firewall configurations to factory default settings.
See the Fortinet Knowledge Center article, Loading FortiGate firmware using TFTP for
CLI procedure, for additional information about upgrading firmware in the CLI.
The following procedure assumes that you have already downloaded the firmware image
to your management computer.

To upgrade to FortiOS 4.0 through the CLI


1 Copy the new firmware image file to the root directory of the TFTP server.
2 Start the TFTP server.
3 Log in to the CLI.
4 Enter the following command to ping the computer running the TFTP server:
execute ping <server_ipaddress>
Pinging the computer running the TFTP server verifies that the FortiGate unit and
TFTP server are successfully connected.
5 Enter the following command to copy the firmware image from the TFTP server to the
FortiGate unit:
execute restore image <name_str> <tftp_ipv4>
Where <name_str> is the name of the firmware image file and <tftp_ipv4> is the
IP address of the TFTP server. For example, if the firmware image file name is
image.out and the IP address of the TFTP server is 192.168.1.168, enter:
execute restore image.out 192.168.1.168
The FortiGate unit responds with a message similar to the following:
This operation will replace the current firmware version!
Do you want to continue? (y/n)

FortiGate Version 4.0 MR1 Administration Guide


152 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions Upgrading your FortiGate unit

6 Type y.
The FortiGate unit uploads the firmware image file, upgrades to the new firmware
version, and restarts. This process takes a few minutes.
7 Reconnect to the CLI.
8 Enter the following command to confirm the firmware image installed successfully:
get system status
9 To update antivirus and attack definitions from the CLI, enter the following:
execute update-now
If you want to update antivirus and attack definitions from the web-based manager
instead, log in to the web-based manager and go to System > Maintenance >
FortiGuard.

Verifying the upgrade


After logging back in to the web-based manager, most of your FortiOS 3.0 MR7
configuration settings have been carried forward. For example, if you go to System >
Network > Options you can see your DNS settings carried forward from your FortiOS
3.0 MR7 configuration settings.
You should verify what configuration settings carried forward. You should also verify that
administrative access settings carried forward as well. Verifying your configuration
settings allows you to familiarize yourself with the new features and changes in FortiOS
4.0.
You can verify your configuration settings by:
• going through each menu and tab in the web-based manager
• using the show shell command in the CLI.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 153
http://docs.fortinet.com/ • Feedback
Reverting to a previous firmware image Managing firmware versions

Reverting to a previous firmware image


You may need to revert to a previous firmware image (or version, for example, FortiOS
3.0) if the upgrade was not successfully installed. The following procedures describe how
to properly downgrade to a previous firmware image using either the web-based manager
or CLI, and include steps on how to restore your previous configuration.
The following are included in this topic:
• Downgrading to a previous firmware through the web-based manager
• Downgrading to a previous firmware through the CLI
• Restoring your configuration

Downgrading to a previous firmware through the web-based manager


Caution: Always back up your configuration before installing a patch release,
upgrading/downgrading, or when resetting to factory defaults.

When downgrading to a previous firmware, only the following settings are retained:
• operation mode
• Interface IP/Management IP
• route static table
• DNS settings
• VDOM parameters/settings
• admin user account
• session helpers
• system accprofiles.
If you created additional settings in FortiOS 4.0, make sure to back up the current
configuration before downgrading. For more information, see “Backing up your
configuration” on page 148.

To downgrade through the web-based manager


1 Go to System > Status and locate the System Information widget.
2 Beside Firmware Version, select Update.
3 Enter the path and filename of the firmware image file, or select Browse and locate the
file..
4 Select OK.
The following message appears:
This version will downgrade the current firmware version. Are
you sure you want to continue?
5 Select OK.
The FortiGate unit uploads the firmware image file, reverts to the old firmware version,
resets the configuration, restarts, and displays the FortiGate login. This process takes
a few minutes.
6 Log in to the web-based manager.
Go to System > Status to verify that the firmware version under System Information
has changed to the correct firmware.

FortiGate Version 4.0 MR1 Administration Guide


154 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions Reverting to a previous firmware image

Verifying the downgrade


After successfully downgrading to a previous firmware, verify your connections and
settings. If you are unable to connect to the web-based manager, make sure your
administration access settings and internal network IP address are correct. The
downgrade may change your configuration settings to default settings.

Downgrading to a previous firmware through the CLI

Caution: Always back up your configuration before installing a patch release,


upgrading/downgrading, or when resetting to factory defaults.

When downgrading to a previous firmware, only the following settings are retained:
• operation mode
• Interface IP/Management IP
• route static table
• DNS settings
• VDOM parameters/settings
• admin user account
• session helpers
• system accprofiles.
If you have created additional settings in FortiOS 4.0, make sure you back up your
configuration before downgrading. For more information, see “Backing up your
configuration” on page 148.
The following procedure assumes that you have already downloaded the firmware image
to your management computer.

To downgrade through the CLI


1 Copy the new firmware image file to the root directory of the TFTP server.
2 Start the TFTP server.
3 Log in to the CLI.
4 Enter the following command to ping the computer running the TFTP server:
execute ping <server_ipaddress>
Pinging the computer running the TFTP server verifies that the FortiGate unit and
TFTP server are successfully connected.
5 Enter the following command to copy the firmware image from the TFTP server to the
FortiGate unit:
execute restore image tftp <name_str> <tftp_ipv4>
Where <name_str> is the name of the firmware image file and <tftp_ipv4> is the
IP address of the TFTP server. For example, if the firmware image file name is
image.out and the IP address of the TFTP server is 192.168.1.168, enter:
execute restore image tftp image.out
192.168.1.168
The FortiGate unit responds with the message:
This operation will replace the current firmware version! Do you
want to continue? (y/n)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 155
http://docs.fortinet.com/ • Feedback
Reverting to a previous firmware image Managing firmware versions

6 Type y.
The FortiGate unit uploads the firmware image file. After the file uploads, a message
similar to the following is displayed:
Get image from tftp server OK.
Check image OK.
This operation will downgrade the current firmware version!
Do you want to continue? (y/n)
7 Type y.
The FortiGate unit reverts to the old firmware version, resets the configuration to
factory defaults, and restarts. This process takes a few minutes.
After the FortiGate unit uploads the firmware, you need to reconfigure your IP address
since the FortiGate unit reverts to default settings, including its default IP address. See
your install guide for configuring IP addresses.
8 Reconnect to the CLI.
9 Enter the following command to confirm the firmware image installed successfully:
get system status
See “Restoring your configuration” on page 157 to restore you previous configuration
settings.

FortiGate Version 4.0 MR1 Administration Guide


156 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Managing firmware versions Restoring your configuration

Restoring your configuration


Your configuration settings may not carry forward after downgrading to a previous
firmware. You can restore your configuration settings for a previous firmware with the
configuration file you saved before upgrading to FortiOS 4.0.
You can also use the following procedures for restoring your configuration after installing a
current patch release or maintenance release.

Restoring your configuration settings in the web-based manager


The following procedure restores your previous firmware configuration settings in the
web-based manager.

To restore configuration settings in the web-based manager


1 Log in to the web-based manager.
2 Go to System > Maintenance > Backup & Restore.
3 Select to restore the configuration from either a Local PC, FortiManager or FortiGuard
(if your FortiGate unit is configured for FortiGuard Analysis and Management Service).
4 If required, enter your password for the configuration file.
5 Enter the location of the file or select Browse to locate the file.
6 Select Restore.
The FortiGate unit restores the configuration settings. This may take a few minutes since
the FortiGate unit will reboot.
You can verify that the configuration settings are restored by logging in to the web-based
manager and going through the various menus and tabs.

Restoring your configuration settings in the CLI


The following procedure restores your previous firmware configuration settings in the CLI.

To restore configuration settings in the CLI


1 Copy the backed-up configuration file to the root directory of the TFTP server.
2 Start the TFTP server.
3 Log in to the CLI.
4 Enter the following command to ping the computer running the TFTP server:
execute ping <server_ipaddress>
Pinging the computer running the TFTP server verifies that the FortiGate unit and
TFTP server are successfully connected.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 157
http://docs.fortinet.com/ • Feedback
Restoring your configuration Managing firmware versions

5 Enter the following command to copy the backed -up configuration file to restore the
file on the FortiGate unit:
execute restore allconfig <name_str> <tftp_ipv4> <passwrd>
Where <name_str> is the name of the backed up configuration file and
<tftp_ipv4> is the IP address of the TFTP server and <passwrd> is the password
you entered when you backed up your configuration settings. For example, if the
backed up configuration file is confall and the IP address of the TFTP server is
192.168.1.168 and the password is ghrffdt123:
execute restore allconfig confall 192.168.1.168 ghrffdt123
The FortiGate unit responds with the message:
This operation will overwrite the current settings and the
system will reboot!
Do you want to continue? (y/n)
6 Type y.
The FortiGate unit uploads the backed up configuration file. After the file uploads, a
message, similar to the following, is displayed:
Getting file confall from tftp server 192.168.1.168
##
Restoring files...
All done. Rebooting...
This may take a few minutes.

Use the CLI show shell command to verify your settings are restored, or log in to the
web-based manager.

FortiGate Version 4.0 MR1 Administration Guide


158 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Virtual domains

Using virtual domains


This section describes virtual domains (VDOMs) along with some of their benefits, and
how to use VDOMs to operate your FortiGate unit as multiple virtual units.
If you enable VDOMs on the FortiGate unit, you configure virtual domains globally for the
FortiGate unit.
To get started working with virtual domains, see “Enabling VDOMs” on page 164.
This section describes:
• Virtual domains
• Enabling VDOMs
• Configuring VDOM resource limits
• Configuring VDOMs and global settings

Virtual domains
Virtual domains (VDOMs) are a method of dividing a FortiGate unit into two or more virtual
units that function as multiple independent units. A single FortiGate unit is then flexible
enough to serve multiple departments of an organization, separate organizations, or to act
as the basis for a service provider’s managed security service.

Benefits of VDOMs
Some benefits of VDOMs are:
• Easier administration
• Continued security maintenance
• Savings in physical space and power

Easier administration
VDOMs provide separate security domains that allow separate zones, user authentication,
firewall policies, routing, and VPN configurations. Using VDOMs can also simplify
administration of complex configurations because you do not have to manage as many
routes or firewall policies at one time. For more information, see “VDOM configuration
settings” on page 160.
By default, each FortiGate unit has a VDOM named root. This VDOM includes all of the
FortiGate physical interfaces, modem, VLAN subinterfaces, zones, firewall policies,
routing settings, and VPN settings.
Also you can assign an administrator account restricted to that VDOM. If the VDOM is
created to serve an organization, this feature enables the organization to manage its own
configuration.
Management systems such as SNMP, logging, alert email, FDN-based updates and NTP-
based time setting use addresses and routing in the management VDOM to communicate
with the network. They can connect only to network resources that communicate with the
management virtual domain. The management VDOM is set to root by default, but you
can change it. For more information, see “Changing the management VDOM” on
page 172.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 159
http://docs.fortinet.com/ • Feedback
Virtual domains Using virtual domains

Continued security maintenance


When a packet enters a VDOM, it is confined to that VDOM. In a VDOM, you can create
firewall policies for connections between VLAN subinterfaces or zones in the VDOM.
Packets do not cross the virtual domain border internally. To travel between VDOMs, a
packet must pass through a firewall on a physical interface. The packet then arrives at
another VDOM on a different interface, but it must pass through another firewall before
entering the VDOM. Both VDOMs are on the same FortiGate unit. Inter-VDOMs change
this behavior in that they are internal interfaces; however their packets go through all the
same security measures as on physical interfaces.
Without VDOMs, administrators can easily access settings across the FortiGate unit. This
can lead to security issues or far-reaching configuration errors. However, administrator
permissions are specific to one VDOM. An admin on one VDOM cannot change
information on another VDOM. Any configuration changes, and potential errors, will apply
only to that VDOM and limit potential down time.
The remainder of the FortiGate unit’s functionality is global—it applies to all VDOMs on
the unit. This means there is one intrusion prevention configuration, one antivirus
configuration, one web filter configuration, one protection profile configuration, and so on.
VDOMs also share firmware versions, as well as antivirus and attack databases. The
operating mode, NAT/Route or Transparent, can be selected independently for each
VDOM. For a complete list of shared configuration settings, see “Global configuration
settings” on page 163.

Savings in physical space and power


Increasing VDOMs involves no extra hardware, no shipping, and very few changes to
existing networking. They take no extra physical space—you are limited only by the size of
the license you buy for your VDOMs.
By default, most FortiGate units supports a maximum of 10 VDOMs in any combination of
NAT/Route and Transparent modes. For high-end FortiGate models, you can purchase a
license key to increase the maximum number of VDOMs to 25, 50, 100 or 250. For more
information see “VDOM licenses” on page 165.

Note: During configuration on a FortiAnalyzer unit, VDOMs count toward the maximum
number of FortiGate units allowed by the FortiAnalyzer unit’s license. The total number of
devices registered can be seen on the FortiAnalyzer unit’s System Status page under
License Information.

If virtual domain configuration is enabled and you log in as the default super_admin, you
can go to System > Status and look at Virtual Domain in the License Information section to
see the maximum number of virtual domains supported on your FortiGate unit.
For more information on VDOMs, see the FortiGate VLANs and VDOMs Guide.

VDOM configuration settings


To configure and use VDOMs, you must enable virtual domain configuration. For more
information, see “Enabling VDOMs” on page 164.
You can configure a VDOM by adding VLAN subinterfaces, zones, firewall policies,
routing settings, and VPN settings. You can also move physical interfaces from the root
VDOM to other VDOMs and move VLAN subinterfaces from one VDOM to another. For
more information on VLANs, see the FortiGate VLAN and VDOMS Guide.

FortiGate Version 4.0 MR1 Administration Guide


160 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Virtual domains

The following configuration settings are exclusively part of a virtual domain and are not
shared between virtual domains. A regular VDOM administrator sees only these settings.
The default super_admin can also access these settings, but must first select which
VDOM to configure.
Table 7: VDOM configuration settings

Configuration Object For more information, see


System
Network Zone “Configuring zones” on page 198
Network DNS “Configuring FortiGate DNS services” on page 205
Database
Network Web Proxy “Configuring the explicit web proxy” on page 210
Network Routing Table “Routing table (Transparent Mode)” on page 213
(Transparent mode)
Network Modem “Configuring the modem interface” on page 199
Wireless Settings “Wireless settings” on page 218
Wireless MAC Filter “Wireless MAC Filter” on page 221
Wireless Monitor “Wireless Monitor” on page 223
Wireless Rogue AP “Rogue AP detection” on page 224
DHCP service “Configuring DHCP services” on page 228
DHCP Address Leases “Viewing address leases” on page 231
Config Replacement “Replacement messages” on page 250
Message
Config Operation mode “Changing operation mode” on page 263
(NAT/Route or
Transparent)
Config Management IP “Changing operation mode” on page 263
(Transparent mode)
Router
Static “Router Static” on page 335
Dynamic “Router Dynamic” on page 357
Monitor “Router Monitor” on page 383
Firewall
Policy “Firewall Policy” on page 387
Address “Firewall Address” on page 421
Service “Firewall Service” on page 427
Schedule “Firewall Schedule” on page 437
Virtual IP “Firewall Virtual IP” on page 447
Virtual IP Group “Virtual IP Groups” on page 462
Virtual IP, IP pool “IP pools” on page 463
Load Balance “Firewall Load Balance” on page 471
Protection Profile “Firewall Protection Profile” on page 479
UTM
AntiVirus File Filter “File Filter” on page 521
Intrusion Protection “Intrusion Protection” on page 531
Web Filter “Web Filter” on page 549

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 161
http://docs.fortinet.com/ • Feedback
Virtual domains Using virtual domains

Table 7: VDOM configuration settings (Continued)

Configuration Object For more information, see


AntiSpam “Email filtering” on page 567
Data Leak Prevention “Data Leak Prevention” on page 583
Application Control “Application Control” on page 603
VPN
IPSec “IPSec VPN” on page 611
PPTP “PPTP VPN” on page 629
SSL “SSL VPN” on page 633
User
Local “Local user accounts” on page 652
Remote “Remote” on page 655
Directory Service “Directory Service” on page 662
PKI “PKI” on page 664
User Group “User Group” on page 666
Options “Settings” on page 286
Monitor “Monitoring administrators” on page 289
WAN optimization “WAN optimization and web caching” on page 683
and web caching
Log&Report
Logging configuration “Configuring how a FortiGate unit stores logs” on page 710
Alert E-mail “Configuring Alert Email” on page 715
Event Log “Configuring Event logging” on page 717
Log access “Accessing and viewing log messages” on page 720
DLP Archive “Viewing DLP Archives” on page 725
Report Access “Configuring FortiAnalyzer report schedules” on page 727

FortiGate Version 4.0 MR1 Administration Guide


162 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Virtual domains

Global configuration settings


The following configuration settings affect all virtual domains. When virtual domains are
enabled, only accounts with the default super_admin profile can access global settings.
Table 8: Global configuration settings

Configuration Object For more information, see


System
Status System Time “Configuring system time” on page 125
Status Host name “Changing the FortiGate unit host name” on page 126
Status Firmware “Upgrading to a new firmware version” on page 127
version (System Status page) or “Managing firmware versions” on
page 147.
Network Interfaces and “Configuring interfaces” on page 177
VLAN subinterfaces (You configure interfaces as part of the global configuration
but each interface and VLAN subinterface belongs to a
VDOM. You add interfaces to VDOMs as part of the global
configuration.)
Network Options DNS “DNS Servers” on page 205
Admin Settings Idle “Settings” on page 286 and “Getting started - User
and authentication authentication” on page 651
time-out
Admin Settings Web- “Settings” on page 286
based manager
language
Admin Settings LCD “Settings” on page 286
panel PIN, where
applicable

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 163
http://docs.fortinet.com/ • Feedback
Enabling VDOMs Using virtual domains

Table 8: Global configuration settings (Continued)

Configuration Object For more information, see


Wireless Settings “Wireless settings” on page 218
Wireless MAC Filter “Wireless MAC Filter” on page 221
Wireless Monitor “Wireless Monitor” on page 223
WIreless Rogue AP “Rogue AP detection” on page 224
Config HA “HA” on page 233
Config SNMP “SNMP” on page 241
Admin Administrators “Administrators” on page 267
(You can add global administrators. You can also add
administrators to VDOMs. VDOM administrators cannot
add or configure administrator accounts.)
Admin profiles “Admin profiles” on page 280
Admin Central “Central Management” on page 285
Management
configuration
Certificates “System Certificates” on page 301
Configuration backup “Backing up and restoring” on page 312
and restore
Scripts “Using script files” on page 320
FDN update “FortiGuard Distribution Network” on page 322
configuration
UTM
AntiVirus “AntiVirus” on page 517
Log&Report
Log Configuration “Configuring how a FortiGate unit stores logs” on page 710
Alert E-mail “Configuring Alert Email” on page 715
Report Config “Viewing FortiAnalyzer reports” on page 730
Report Access “Viewing Executive Summary reports from SQL logs” on
page 730

Enabling VDOMs
Using the default admin administration account, you can enable multiple VDOM operation
on the FortiGate unit.

To enable virtual domains


1 Log in to the web-based manager on a super_admin profile account.
2 Go to System > Status.
3 In System Information, next to Virtual Domain select Enable.
The FortiGate unit logs you off. You can now log in again as admin.
Alternatively, through the CLI, enter:
config system global, set vdom-admin
When virtual domains are enabled, the web-based manager and the CLI are changed as
follows:
• Global and per-VDOM configurations are separated.

FortiGate Version 4.0 MR1 Administration Guide


164 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOMs and global settings

• A new VDOM entry appears under the System option.


• Within a VDOM, reduced dashboard menu options are available, and a new Global
option appears. Selecting Global exits the current VDOM.
• There is no operation mode selection at the Global level.
• Only super_admin profile accounts can view or configure global options.
• Super_admin profile accounts can configure all VDOM configurations.
• One or more administrators can be set up for each VDOM; however, these admin
accounts cannot edit settings for any VDOMs for which they are not set up.
When virtual domains are enabled, the current virtual domain is displayed at the bottom
left of the screen, in the format Current VDOM: <name of the virtual domain>.

Configuring VDOMs and global settings


A VDOM is not useful unless it contains at least two physical interfaces or virtual
subinterfaces for incoming and outgoing traffic. Availability of the associated tasks
depends on the permissions of the admin. If your are using a super_admin profile account,
you can perform all tasks. If you are using a regular admin account, the tasks available to
you depend on whether you have read only or read/write permissions, Table 6 shows
what roles can perform which tasks.
Table 9: Admin VDOM permissions

Tasks Regular administrator account Super_admin


Read only Read/write profile
permission permission administrator
account
View global settings yes yes yes
Configure global settings no no yes
Create or delete VDOMs no no yes
Configure multiple VDOMs no no yes
Assign interfaces to a VDOM no no yes
Create VLANs no yes - for 1 VDOM yes - for all VDOMs
Assign an administrator to a VDOM no no yes
Create additional admin accounts no yes - for 1 VDOM yes - for all VDOMs
Create and edit protection profiles no yes - for 1 VDOM yes - for all VDOMs

VDOM licenses
All FortiGate units, except the 30B, support 10 VDOMs by default.
High-end FortiGate models support the purchase of a VDOM license key from customer
service to increase their maximum allowed VDOMs to 25, 50, 100, 250, or 500.
Configuring 250 or more VDOMs will result in reduced system performance.
Table 10: VDOM support by FortiGate model

FortiGate model Support Default VDOM Maximum VDOM


VDOMs maximum license
30B no 0 0
Low and mid-range models yes 10 10
High-end models yes 10 500

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 165
http://docs.fortinet.com/ • Feedback
Configuring VDOMs and global settings Using virtual domains

Note: Your FortiGate unit has limited resources that are divided amongst all configured
VDOMs. These resources include system memory, and CPU. When running 250 or more
VDOMs, you cannot run Unified Threat Management (UTM) features such as proxies, web
filtering, or antivirus—your FortiGate unit can only provide basic firewall functionality.

Tip: If you do not have a System > Maintenance > License tab, your FortiGate model does
not support more than 10 VDOMs.

To obtain a VDOM license key


1 Log in to your FortiGate unit using the admin account.
Other accounts such as other super_admin profile accounts may also have sufficient
privileges to install VDOM licenses.
2 Go to System > Status.
3 Record your FortiGate unit serial number as shown in “System Information” on
page 109.
4 Under License Information > Virtual Domains, select Purchase More.
5 You will be taken to the Fortinet customer support web site where you can log in and
purchase a license key for 25, 50, 100, 250, or 500 VDOMs.
6 When you receive your license key, go to System > Maintenance > License.
7 In the License Key field, enter the 32-character license key you received from Fortinet
customer support.
8 Select Apply.
To verify the new VDOM license, go to System > Status under Global Configuration. In the
License Information area Virtual Domains, VDOMs Allowed shows the maximum number
of VDOMs allowed.

Note: VDOMs created on a registered FortiGate unit are recognized as real devices by any
connected FortiAnalyzer unit. The FortiAnalyzer unit includes VDOMs in its total number of
registered devices. For example, if three FortiGate units are registered on the FortiAnalyzer
unit and they contain a total of four VDOMs, the total number of registered FortiGate units
on the FortiAnalyzer unit is seven. For more information, see the FortiAnalyzer
Administration Guide.

Creating a new VDOM


By default, every FortiGate unit has a root VDOM that is visible when VDOMs are
enabled. To use additional VDOMs, you must first create them.
When using multiple VDOMs, it can be useful to assign fewer resources to some VDOMs
and more resources to others. This VDOM resource management will result in better
FortiGate unit performance. For more information, see “Configuring resource usage for
individual VDOMs” on page 174.
VDOM names have the following restrictions:
• Only letters, numbers, “-”, and “_” are allowed.
• A name can have no more than 11 characters.
• A name cannot contain spaces.
• VDOMs cannot have the same names as interfaces, zones, switch interfaces, or other
VDOMs

FortiGate Version 4.0 MR1 Administration Guide


166 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOMs and global settings

Note: The VDOM names vsys_ha and vsys_fgfm are in use by the FortiGate unit. If
you attempt to name a new VDOM vsys_ha or vsys_fgfm, the FortiGate unit will
generate an error.

Note: When creating 250 or more VDOMs, you cannot enable UTM features such as
proxies, web filtering, and antivirus due to limited resources. Also when creating large
numbers of VDOMs, you may experience reduced performance. To improve performance
with multiple VDOMs, see “Configuring resource usage for individual VDOMs” on
page 174.

Figure 61: New Virtual Domain

To create a new VDOM


1 Log in as a super_admin profile admin.
2 Ensure VDOMs are enabled. For more information, see “Enabling VDOMs” on
page 164.
3 Go to System > VDOM.
4 Select Create New.
5 Enter a name for the new VDOM, up to a maximum of 11 characters. This name cannot
be changed.
6 Optionally enter a comment for the VDOM, up to a maximum of 63 characters.
7 Select OK.

Working with VDOMs and global settings


When you log in as admin and virtual domains are enabled, the FortiGate unit is
automatically in global configuration, as demonstrated by the appearance of the VDOM
option under System.
To work with virtual domains, select System > VDOM.

Figure 62: VDOM list

Disabled VDOM

Management VDOM

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 167
http://docs.fortinet.com/ • Feedback
Configuring VDOMs and global settings Using virtual domains

Create New Select to add a new VDOM. Enter the new VDOM name and select OK.
The VDOM must not have the same name as an existing VDOM, VLAN or
zone. The VDOM name can have a maximum of 11 characters and must
not contain spaces.
Management Virtual Change the management VDOM to the selected VDOM in the list. The
Domain management VDOM is then grayed out in the Enable column. The default
management VDOM is root.
For more information, see “Changing the management VDOM” on
page 172.
Apply Select to save your changes to the Management VDOM.
Enable There are three states this column can be in.
• A green check mark indicates this VDOM is enabled, and that you can
select the Enter icon to change to that VDOM.
• An empty check box indicates this VDOM is disabled. When disabled,
the configuration of that VDOM is preserved. The Enter icon is not
available.
• A grayed-out check box indicates this VDOM is the management
VDOM. It cannot be deleted or changed to disabled; it is always active.
Name The name of the VDOM.
Operation Mode The VDOM operation mode, either NAT or Transparent.
When a VDOM is in Transparent mode, SNMP can display the
management address, address type and subnet
mask for that VDOM. For more information, see “SNMP” on page 241.
Interfaces The interfaces associated with this VDOM, including virtual interfaces.
Every VDOM includes an SSL VPN virtual interface named for that VDOM.
For the root VDOM this interface is ssl.root.
Comments Comments added by an admin when this VDOM was created.
Delete icon Delete the VDOM.
The Delete icon appears only when there are no configuration objects
associated with that VDOM. For example, you must remove all referring
interfaces, profiles, and so on before you can delete the VDOM.
If the icon does not appear and you do not want to delete all the referring
configuration, you can disable the VDOM instead. The disabled VDOM
configuration remains in memory, but the VDOM is not usable until it is
enabled.
Edit icon Change the description of the VDOM. The name of the VDOM cannot be
changed.
Enter icon Enter the selected VDOM.
After entering a VDOM you will only be able to view and change settings
specific to that VDOM.

Adding interfaces to a VDOM


A VDOM must contain at least two interfaces to be useful. These can be physical or virtual
interfaces such as VLAN subinterfaces. By default, all physical interfaces are in the root
virtual domain.
VLAN subinterfaces often need to be in a different VDOM than their physical interface. To
do this, the super administrator must first create the VDOM, create the VLAN subinterface,
and then assign the VLAN to the correct VDOM.
VDOMs can only be added in global settings, and not within VDOMs. For information on
creating VLAN subinterfaces, see “Creating a VLAN subinterface” on page 185.

FortiGate Version 4.0 MR1 Administration Guide


168 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOMs and global settings

Inter-VDOM links
An inter-VDOM link is a pair of interfaces that enable you to communicate between two
VDOMs internally without using a physical interface. Inter-VDOM links have the same
security as physical interfaces, but allow more flexible configurations that are not limited
by the number of physical interfaces on your FortiGate unit. As with all virtual interfaces,
the speed of the link depends on the CPU load, but generally it is faster than physical
interfaces. There are no MTU settings for inter-VDOM links. DHCP support includes inter-
VDOM links.
A packet can pass through an inter-VDOM link a maximum of three times. This is to
prevent a loop. When traffic is encrypted or decrypted, it changes the content of the
packets and this resets the inter-VDOM counter. However, using IPIP or GRE tunnels
does not reset the counter.
In HA mode, inter-VDOM links must have both ends of the link within the same virtual
cluster. DHCP over IPSec is supported for inter-VDOM links, however regular DHCP
services are not available.
To view inter-VDOM links, go to System > Network > Interface. When an inter-VDOM link
is created, it automatically creates a pair of virtual interfaces that correspond to the two
internal VDOMs. Each of the virtual interfaces is named using the inter-VDOM link name
with an added “0” or “1”. So if the inter-VDOM link is called “vlink” the interfaces are
“vlink0” and “vlink1”. Select the Expand Arrow beside the VDOM link to display the virtual
interfaces.

Note: Inter-VDOM links cannot refer to a domain that is in transparent mode.

Figure 63: VDOM link interfaces

Up Down Edit

To create an inter-VDOM link


1 Log in as admin.
2 Go to System > Network > Interface.
3 Select the arrow on the Create New button.
4 Select VDOM link.
You will see the New VDOM Link screen.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 169
http://docs.fortinet.com/ • Feedback
Configuring VDOMs and global settings Using virtual domains

Figure 64: New VDOM link

5 Enter the name for the new VDOM link, up to a maximum of 11 characters.
The name must not contain any spaces or special characters. Hyphens (“-”) and
underlines (“_”) are allowed. Remember that the name will have a “0” or “1” attached to
the end for the actual interfaces.
6 Configure VDOM link “0”.
7 Select the VDOM from the menu that this interface will connect to.
8 Enter the IP address and netmask for this interface.
9 Select the administrative access method or methods. Keep in mind that PING,
TELNET, and HTTP are less secure methods.
10 Optionally enter a description for this interface.
11 Repeat steps 7 through 10 for VDOM link “1”.
12 Select OK to save your configuration and return to the System > Interface screen.

Assigning an interface to a VDOM


The following procedure describes how to reassign an existing interface from one virtual
domain to another. It assumes VDOMs are enabled and more than one VDOM exists.
You cannot delete a VDOM if it is used in any configurations. For example, if an interface
is assigned to that VDOM, you cannot delete the VDOM. You cannot remove an interface
from a VDOM if the interface is included in any of the following configurations:
• DHCP server
• zone
• routing
• firewall policy
• IP pool
• proxy arp (only accessible through the CLI).
Before removing these configurations, it is recommended that you back up your
configuration, so you can restore it if you want to create this VDOM at a later date.
Delete the items in this list or modify them to remove the interface before proceeding.

FortiGate Version 4.0 MR1 Administration Guide


170 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOMs and global settings

Note: You can reassign or remove an interface or subinterface once the Delete icon is
displayed. Absence of the icon means that the interface is being used in a configuration
somewhere.

Tip: You can disable a VDOM instead of deleting it. Your configuration will be preserved,
saving time you would otherwise need to remove and reconfigure it.

To assign an interface to a VDOM


1 Log in as admin.
2 Go to System > Network > Interface.
3 Select Edit for the interface that you want to reassign.
4 Select the new virtual domain for the interface.
5 Configure other settings as required and select OK. For more information, see
“Interface settings” on page 181.
The interface is assigned to the VDOM. Existing firewall IP pools and virtual IP
addresses for this interface are deleted. You should manually delete any routes that
include this interface, and create new routes for this interface in the new VDOM.
Otherwise your network traffic will not be properly routed. For more information on
creating static routes, see “Router Static” on page 335.

Assigning an administrator to a VDOM


If you are creating a VDOM to serve an organization that will be administering its own
resources, you need to create an administrator account for that VDOM.
A VDOM admin can change configuration settings within that VDOM but cannot make
changes that affect other VDOMs on the FortiGate unit.
A regular administrator assigned to a VDOM can log in to the web-based manager or the
CLI only on interfaces that belong to that VDOM. The super administrator can connect to
the web-based manager or CLI through any interface on the FortiGate unit that permits
management access. Only the super administrator or a regular administrator of the root
domain can log in by connecting to the console interface.

Note: If an admin account is assigned to a VDOM, that VDOM cannot be deleted until that
account is assigned to another VDOM or removed.

To assign an administrator to a VDOM


1 Log in as the super_admin.
2 Ensure that virtual domains are enabled. For more information, see “Enabling VDOMs”
on page 164.
3 Go to System > Admin >Administrators.
4 Create a new administrator account or select the Edit icon of an existing administrator
account.
5 Go to the Virtual Domain list.
6 Select the VDOM that this administrator manages.
Administrators are assigned to a specific VDOM when the account is created unless
they are super_admin administrators. For more information, see “Configuring an
administrator account” on page 270.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 171
http://docs.fortinet.com/ • Feedback
Configuring VDOM resource limits Using virtual domains

7 Configure other settings as required.


For detailed information, see “Configuring an administrator account” on page 270.
8 Select OK.

Changing the management VDOM


The management VDOM on your FortiGate unit is where some default types of traffic
originate, including:
• SNMP
• logging
• alert email
• FDN-based updates
• NTP-based time setting.
Before you change the management VDOM, ensure that virtual domains are enabled on
the system dashboard screen. For more information, see “Enabling VDOMs” on page 164.
Only one VDOM can be the management VDOM at any given time.
Global events are logged with the VDOM set to the management VDOM.

Note: You cannot change the management VDOM if any administrators are using RADIUS
authentication.

To change the management VDOM


1 Go to System > VDOM.
2 From the list of VDOMs, select the VDOM to be the new management VDOM.
This list is located to the immediate left of the Apply button.
3 Select Apply to make the change.
At the prompt, confirm the change.
Management traffic will now originate from the new management VDOM.

Configuring VDOM resource limits


Super administrators can configure VDOM resource limits to control how many resources
each VDOM can use. This means you can provide tiered services for different VDOMs.
You can also use resource limits to share resources evenly among VDOMs, preventing
one VDOM from affecting the performance of others.
You can set limits for dynamic and some static resources. Dynamic resources are
resources that are not controlled by the FortiGate configuration. You can limit dynamic
resources to limit the amount of traffic that a VDOM processes and so limit the amount of
FortiGate processing resources the VDOM can use. If you do not limit the number of
dynamic resources each VDOM will use as many as it can until the capacity of the
FortiGate unit becomes the limiting factor. You can set the following dynamic resource
limits:
• The total number of communication Sessions that can be started in a VDOM. When
this limit is reached additional sessions are dropped.
• The number of IPSec VPN Dal-up Tunnels that can be started in a VDOM. When this
limit is reached, additional tunnels are dropped.

FortiGate Version 4.0 MR1 Administration Guide


172 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOM resource limits

• The number of SSL VPN user sessions that can be started in a VDOM. When this limit
is reached the VDOM displays a system busy message instead of the login page when
a user attempts to login to start an SSL VPN session.
Static resources are controlled by limits in the FortiGate configuration. These limits vary by
model and are listed in the FortiGate Maximum Values Matrix. Limiting static resources
does not limit the amount of traffic that the VDOM process. Instead limiting static
resources controls the number of configuration elements that can be added to a VDOM.
You can set the following static resource limits:
• The number of VPN IPSec Phase 1 and Phase 2 tunnels that can be added to a VDOM
configuration. The number of tunnels is limited by the maximum values for the
FortiGate model.
• The number of Firewall policies, Protection Profiles, Firewall Addresses, Firewall
Address Groups, Firewall Custom Services, Firewall Service Groups, Firewall
One-Time Schedules, and Firewall Recurring Schedules that can be added to a VDOM
configuration.
• The number of local users and user groups that can be added to a VDOM
configuration.

Setting VDOM global resource limits


Use global resource limits to configure resource limits that will apply to all VDOMs. When
you set a global resource limit, you cannot exceed that resource limit in any VDOM. For
example, if you want to limit all VDOMS to 100 VPN IPSec Phase 1 Tunnels, go to System
> VDOM > Global Resources and edit the VPN IPsec Phase1 Tunnels resource limit and
set the global resource limit to 100. With this global limit set you can only add a maximum
of 100 VPN IPSec Phase 1 Tunnels to any VDOM.
You can also edit the resource limits for individual VDOMs to further limit the number of
resources that you can add to individual VDOMs. See “Configuring resource usage for
individual VDOMs” on page 174.
A resource limit of 0 means no limit. No limit means the resource is not being limited by
the resource limit configuration. Instead the resource is being limited by other factors. The
FortiGate unit limits dynamic resources by the capacity of the FortiGate unit and can vary
depending on how busy the system is. Limits for static resources are set by limitations in
the FortiGate configuration as documented in the FortiGate Maximum Values Matrix
document.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 173
http://docs.fortinet.com/ • Feedback
Configuring VDOM resource limits Using virtual domains

Figure 65: Configuring global resource limits that apply to all VDOMs

Change Configured Maximum


Reset Configured Maximum to default value

Resource Name of the resource. Includes dynamic and static resources.


Configured The maximum amount of the resource allowed for each VDOM. This amount
Maximum matches the default maximum until you change it.
Default The default maximum value for each VDOM for this resource. This value depends
Maximum on the FortiGate model. Dynamic resources (Sessions, Dial-up Tunnels, and SSL
VPN) do not have default maximums so the default maximum for dynamic
resources is always 0 (meaning unlimited). Static resources may have a limit set or
many be set to 0 meaning they are limited by the resource limit configuration.
Note: If you set the maximum resource usage for a VDOM you cannot reduce the
default maximum global limit for all VDOMs below this maximum.
Current Usage The amount of the resource currently in use. For dynamic resources, current
usage is the number of the sessions or tunnels currently in use. For static
resources, current usage is the number of configuration items added to the
FortiGate unit.
Edit icon Change the configured maximum for this resource. The Edit Global Resource
Limits dialog box lists the valid range of values for the configured maximum. You
can set the maximum to zero to set no limit; which means the resource is limited
by other factors such as system capacity or max values.
Reset icon Reset the Configured Maximum to the Default Maximum value.

Configuring resource usage for individual VDOMs


You can configure resource usage for individual VDOMS to override global limits and
specify guaranteed usage for that VDOM.
When you add a new VDOM, after giving the VDOM a name and selecting OK you can
configure resource usage for the VDOM. You can also configure resource usage for a
VDOM at any time by going to System > VDOM and selecting the edit icon for a VDOM.
When configuring resource usage for a VDOM you can set the Maximum and Guaranteed
value for each resource.

FortiGate Version 4.0 MR1 Administration Guide


174 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Using virtual domains Configuring VDOM resource limits

• The Maximum value limits the amount of the resource that can be used by the VDOM.
When you add a VDOM, all maximum resource usage settings are 0 indicating that
resource limits for this VDOM are controlled by the global resource limits. You do not
have to override the maximum settings unless you need to override global limits to
further limit the resources available for the VDOM. You cannot set maximum resource
usage higher in a VDOM than the corresponding global resource limit.

Note: To set global resource limits go to System > VDOM > Global Resources. See “Setting
VDOM global resource limits” on page 173

• The Guaranteed value represents the minimum amount of the resource available for
that VDOM. Setting the guaranteed value makes sure that other VDOMs do not use all
of a resource. A guaranteed value of 0 means that an amount of this resource is not
guaranteed for this VDOM. You only have to change guaranteed settings if your
FortiGate may become low on resources and you want to guarantee that a minimum
level is available for this VDOM.

Figure 66: Configuring resource usage for a VDOM

Resource Name of the resource. Includes dynamic and static resources.


Maximum Override the global limit to reduce the amount of each resource available for this
VDOM. The maximum must the same as or lower than the global limit. The default
value is 0, which means the maximum is the same as the global limit.
Note: If you set the maximum resource usage for a VDOM you cannot reduce the
default maximum global limit for all VDOMs below this maximum.
Guaranteed Enter the minimum amount of the resource available to this VDOM regardless of
usage by other VDOMs. The default value is 0, which means that an amount of this
resource is not guaranteed for this VDOM.
Current The amount of the resource that this VDOM currently uses.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 175
http://docs.fortinet.com/ • Feedback
Configuring VDOM resource limits Using virtual domains

FortiGate Version 4.0 MR1 Administration Guide


176 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

System Network
This section describes how to configure your FortiGate unit to operate in your network.
Basic network settings include configuring FortiGate interfaces and DNS settings. More
advanced configuration includes adding VLAN subinterfaces and zones to the FortiGate
network configuration.
If you enable virtual domains (VDOMs) on the FortiGate unit, you configure most system
network settings globally for the entire FortiGate unit. For example, all interface settings,
including adding interfaces to VDOMs, are part of the global configuration. However,
zones, the modem interface, and the Transparent mode routing table are configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.
This section describes:
• Configuring interfaces
• Configuring zones
• Configuring the modem interface
• Configuring Networking Options
• Configuring FortiGate DNS services
• Configuring the explicit web proxy
• Routing table (Transparent Mode)

Note: Unless stated otherwise, the term interface can refer to either a physical FortiGate
interface or to a virtual FortiGate VLAN subinterface.

Note: If you can enter both an IP address and a netmask in the same field, you can use the
short form of the netmask. For example, 192.168.1.100/255.255.255.0 can also be entered
as 192.168.1.100/24.

Configuring interfaces
In NAT/Route mode, go to System > Network > Interface to configure FortiGate interfaces.
You can:
• modify the configuration of a physical interface
• add and configure VLAN subinterfaces
• add and configure loopback interfaces
• aggregate several physical interfaces into an IEEE 802.3ad interface (some models)
• combine physical interfaces into a redundant interface (some models)
• add wireless interfaces (FortiWiFi models) and service set identifiers (SSIDs) (see
“Adding a wireless interface” on page 219)
• add and configure VDOM links (see “Inter-VDOM links” on page 169)
• configure the modem (see “Configuring the modem interface” on page 199)
• change the information displayed about the interfaces

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 177
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

For information about VLANs and VDOMS, see the FortiGate VLANs and VDOMs Guide.

Figure 67: Interface list - regular admin view

View Interface Description

Interface Status Edit

Figure 68: Interface list - admin view with virtual domains enabled

Delete

Figure 69: Switch mode for models 100A and 200A Rev2.0 and higher

FortiGate Version 4.0 MR1 Administration Guide


178 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Create New Select Create New to create a VLAN subinterface.


On models 800 and higher, you can also create an IEEE 802.3ad aggregated
interface.
When VDOMs are enabled, selecting the Create New arrow enables you to
create new Inter-VDOM links. For more information see “Inter-VDOM links” on
page 169.
Switch Mode Select to change between switch mode and interface mode. Switch mode
combines the internal interfaces into one switch with one address. Interface
mode gives each internal interface its own address.
Before switching modes, all configuration settings that point to ‘internal’
interfaces must be removed.
This option is visible on models with a switch interface. See “Switch Mode” on
page 180.
Show backplane Select to make FortiGate-5000 series backplane interfaces visible. Once
interfaces visible these interfaces can be treated as regular physical interfaces.
Column Settings Select to change the columns of information that are displayed on the interface
list. See “Using column settings to control the columns displayed” on page 103.
Description icon Display a description for the interface is one has been added. See“Interface
settings” on page 181.
Name The names of the physical interfaces on your FortiGate unit. This includes any
alias names that have been configured.
The name, including number, of a physical interface depends on the model.
Some names indicate the default function of the interface such as Internal,
External and DMZ. Other names are more generic such as port1.
Some FortiGate models also provide a modem interface. See “Configuring the
modem interface” on page 199.
When you combine several interfaces into an aggregate or redundant
interface, only the aggregate or redundant interface is listed, not the
component interfaces. See “Creating an 802.3ad aggregate interface” on
page 186 or “Creating a redundant interface” on page 187.
On FortiGate models that support switch mode, the individual interfaces in the
switch are not displayed when in switch mode. See “Viewing switch-LAN ports”
on page 168.
If you have added VLAN interfaces, they also appear in the name list, below
the physical or aggregated interface to which they have been added. See the
FortiGate VLANs and VDOMs Guide.
If you have added loopback virtual interfaces, they also appear in the name list,
below the physical interface to which they have been added. See “Creating a
loopback interface” on page 185.
If you have software switch interfaces configured, you will be able to view
them. See “Adding a software switch interface” on page 197.
If virtual domain configuration is enabled, you can view information only for the
interfaces that are in your current virtual domain, unless you are using the
super admin account.
If VDOMs are enabled, you will be able to create, edit, and view inter-VDOM
links. For more information see “Inter-VDOM links” on page 169.
If you have interface mode enabled on a FortiGate model with a switch
interface, you will see multiple internal interfaces. If switch mode is enabled,
there will only be one internal interface. For more information see “Switch
Mode” on page 180.
If your FortiGate unit supports AMC modules and have installed an AMC
module containing interfaces (for example, the ASM-FB4 contains 4 interfaces)
these interfaces are added to the interface status display. The interfaces are
named AMC-SW1/1, AMC-DW1/2, and so on. SW1 indicates it is a single width
or double width card respectively in slot 1. The last number “/1” indicates the
interface number on that card - for the ASM-FB4 card there would be “/1”
through “/4”.
IP/Netmask The current IP address/netmask of the interface.
In VDOM mode, when VDOMs are not all in NAT or Transparent mode some
values may not be available for display and will be displayed as “-” instead.
When IPv6 Support on GUI is enabled, IPv6 addresses may be displayed in
this column.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 179
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Access The administrative access configuration for the interface.


See “Configuring administrative access to an interface” on page 192.
Administrative The administrative status for the interface.
Status If the administrative status is a green arrow, the interface is up and can accept
network traffic. If the administrative status is a red arrow, the interface is
administratively down and cannot accept traffic. To change the administrative
status, select Bring Down or Bring Up.
Link Status The status of physical connection.
The status of a non-physical interface will always be down.
MAC The MAC address of the interface.
Mode Shows the addressing mode of this interface such as manual, DHCP, or
PPPoE.
MTU The maximum number of bytes per transmission unit. For more information,
see “Interface MTU packet size” on page 195.
Secondary IP Any secondary IPs for this interface.
Type The type of the interface. Valid types include:
• Physical - a physical network interface, including modem
• VLAN - a virtual network interface
• Aggregate - a group of interfaces
• Redundant - a group of interfaces
• VDOM Link - a pair of virtual interface that join two VDOMs
• Pair - one two interfaces that are joined together, such as 2 VDOM links
Virtual Domain The virtual domain to which the interface belongs. This column is visible only to
the super admin and only when virtual domain configuration is enabled.
VLAN ID The identification number of the VLAN.
Non-VLAN interface entries will be blank.
Delete, edit, and Delete, edit, or view an entry.
view icons

Switch Mode
The internal interface is a switch with either four or six physical interface connections,
depending on the FortiGate model. Normally the internal interface is configured as a
single interface shared by all physical interface connections - a switch.
The switch mode feature has two states - switch mode and interface mode. Switch mode
is the default mode with only one interface and one address for the entire internal switch.
Interface mode allows you to configure each of the internal switch physical interface
connections separately. This allows you to assign different subnets and netmasks to each
of the internal physical interface connections.
FortiGate models 100A and 200A Rev2.0 and higher have four internal interface
connections. The FortiGate-60B and FortiWifi-60B have six internal interface connections.
Consult your release notes for the most current list of supported models for this feature.
Selecting Switch Mode on the System > Network > Interface screen displays the Switch
Mode Management screen.

Caution: Before you are able to change between switch mode and interface mode all
references to ‘internal’ interfaces must be removed. This includes references such as
firewall policies, routing, DNS forwarding, DHCP services, VDOM interface assignments,
and routing. If they are not removed, you will not be able to switch modes, and you will see
an error message.

FortiGate Version 4.0 MR1 Administration Guide


180 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Figure 70: Switch Mode Management

Switch Mode Select Switch Mode. Only one internal interface is displayed. This is the default
mode.
Interface Mode Select Interface Mode. All internal i nterfaces on the switch are displayed as
individually configurable interfaces.

Switch Mode can also be configured using CLI commands. For more information see the
FortiGate CLI Reference.

Interface settings
Go to System > Network > Interface and select Create New.
Selecting the Create New arrow enables you to create Inter-VDOM links. For more
information on Inter-VDOM links, see “Inter-VDOM links” on page 169.
To be able to configure a DHCP server on an interface, that interface must have a static IP
address.
You cannot create a virtual IPSec interface on this screen, but you can specify its endpoint
addresses, enable administrative access and provide a description if you are editing an
existing interface. For more information, see “Configuring a virtual IPSec interface” on
page 191.

Figure 71: Create New Interface settings

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 181
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Figure 72: Edit Interface settings

Figure 73: Edit Interface settings

Name Enter a name for the interface.


You cannot change the name of an existing interface.
Alias Enter another name for the interface that will easily distinguish this interface from
another. This is available only for physical interfaces where where you cannot
configure the name. The alias can be a maximum of 15 characters.
The alias name is not part of the interface name, but it will appear in brackets
beside the interface name. It will not appears in logs.
Link Status Indicates whether the interface is connected to a network (link status is up) or not
(link status is down).

FortiGate Version 4.0 MR1 Administration Guide


182 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Type The type of the interfaces. When creating a new interface, this is VLAN by default.
Set Type to VLAN to create a VLAN interface (see“Creating a VLAN subinterface”
on page 185). Set Type to Loopback Interface to create a loopback interface
(see“Creating a loopback interface” on page 185).
On some models you can also create VLAN, 802.3ad Aggregate (see“Creating an
802.3ad aggregate interface” on page 186), and Redundant (see“Creating a
redundant interface” on page 187) interfaces.
• On FortiGate models with a switch interface, software switch is a valid type.
You cannot change this type in the GUI.
You cannot change the type of an interface except when first adding it.
Interface Select the name of the physical interface on which to create the VLAN. Once
created, the VLAN subinterface is listed below its physical interface in the
Interface list.
You cannot change the interface of an existing VLAN subinterface.
This field is only displayed when Type is set to VLAN.
VLAN ID Enter the VLAN ID that matches the VLAN ID of the packets to be received by this
VLAN subinterface. You cannot change the VLAN ID of an existing VLAN
subinterface.
The VLAN ID can be any number between 1 and 4094 and must match the VLAN
ID added by the IEEE 802.1Q-compliant router or switch connected to the VLAN
subinterface. For more information, see “Creating a VLAN subinterface” on
page 185.
This field is only displayed when Type is set to VLAN.
Virtual Domain Select the virtual domain to which this VLAN subinterface belongs.
Admin accounts with super-admin profile can change the VDOM for a VLAN when
VDOM configuration is enabled. For more information, see “Using virtual
domains” on page 159.
Physical This section has two different forms depending on the interface type:
Interface • Software switch interface - this section is a display-only field showing the
Members interfaces that belong to the software switch virtual interface
• 802.3ad aggregate or Redundant interface - this section includes available
interface and selected interface lists to enable adding or removing interfaces
from the interface.
Available Select interfaces from this list to include in the grouped interface - either
Interfaces redundant or aggregate interface. Select the right arrow to add an interface to the
grouped interface.
Selected These interfaces are included in the aggregate or redundant interface.
interfaces Select the left arrow to remove an interface from the grouped interface.
For redundant interfaces, the interfaces will be activated during failover from the
top of the list to the bottom
Addressing Select the type of addressing mode as Manual, DHCP, or PPPoE.
mode To configure a static IP address for the interface, select Manual.
By default, low-end models are configured to DHCP addressing mode with
Override Internal DNS and Retrieve default Gateway from DHCP server both
enabled. These settings allow for easy out-of-the-box configuration.
You can also configure the interface for dynamic IP address assignment. For
more information, see “Configuring DHCP on an interface” on page 188 or
“Configuring an interface for PPPoE” on page 190.
IP/Netmask Enter the IP address/subnet mask in the IP/Netmask field. The IP address must
be on the same subnet as the network to which the interface connects.
Two interfaces cannot have IP addresses on the same subnet.
This field is only available when Manual addressing mode is selected.
Ping Server To enable dead gateway detection, enter the IP address of the next hop router on
the network connected to the interface and select Enable.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 183
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Enable one-arm Select to configure this interface to operate as a one-armed sniffer as part of
sniffer configuring a FortiGate unit to operate as an IDS appliance by sniffing packets for
attacks without actually receiving and otherwise processing the packets. Once the
interface is enabled for sniffing you cannot use the interface for other traffic. You
must add sniffer policies for the interface to actually sniff packets.
For more information on one-armed IPS, see “Firewall Policy Using one-arm
sniffer policies to detect network attacks” on page 406.
Enable explicit Select to enable explicit web proxying on this interface. When enabled, this
Web Proxy interface will be displayed on System > Network > Web Proxy under Listen on
Interfaces and web traffic on this interface will be proxied according to the Web
Proxy settings. For more information, see “Configuring the explicit web proxy” on
page 210.
Enable DDNS Select Enable DDNS to configure a Dynamic DNS service for this interface. For
more information, see “Configuring Dynamic DNS on an interface” on page 191.
Override To change the MTU, select Override default MTU value (1 500) and enter the
Default MTU MTU size based on the addressing mode of the interface
Value • 68 to 1 500 bytes for static mode
• 576 to 1 500 bytes for DHCP mode
• 576 to 1 492 bytes for PPPoE mode
• larger frame sizes if supported
This field is available only on physical interfaces. VLANs inherit the parent
interface MTU size by default.
For more information on MTU size, see “Interface MTU packet size” on page 195.
Enable DNS Select to configure the interface to accept DNS queries. Select recursive or non-
Query recursive. For more information, see “Configuring FortiGate DNS services” on
page 205.
recursive Look up domain names in the FortiGate DNS database. If the entry is not found,
relay the request to the DNS servers configured under System > Network >
Options.
non- Look up domain names in the FortiGate DNS database. Do not relay the request
recursive to the DNS servers configured under System > Network > Options.
Administrative Select the types of administrative access permitted on this interface.
Access
HTTPS Allow secure HTTPS connections to the web-based manager through this
interface.
PING Interface responds to pings. Use this setting to verify your installation and for
testing.
HTTP Allow HTTP connections to the web-based manager through this interface. HTTP
connections are not secure and can be intercepted by a third party.
SSH Allow SSH connections to the CLI through this interface.
SNMP Allow a remote SNMP manager to request SNMP information by connecting to
this interface. See “Configuring SNMP” on page 242.
TELNET Allow Telnet connections to the CLI through this interface. Telnet connections are
not secure and can be intercepted by a third party.
Detect Interface Configure interface status detection for when the ECMP Route Failover & Load
Status for Balance Method is set to spill-over. See “Interface status detection for gateway
Gateway Load load balancing” on page 193
Balancing
Secondary IP Add additional IP addresses to this interface. Select the blue arrow to expand or
Address hide the section. See “Secondary IP Addresses” on page 196.
Description Enter a description up to 63 characters.
Administrative Select either Up (green arrow) or Down (red arrow) as the status of this interface.
Status Up indicates the interface is active and can accept network traffic.
Down indicates the interface is not active and cannot accept traffic.

FortiGate Version 4.0 MR1 Administration Guide


184 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Note: In Transparent mode, if you change the MTU of an interface, you must change the
MTU of all interfaces to match the new MTU.

To configure a specific type of interface, refer to the appropriate section. To configure:


• an aggregate interface, see “Creating an 802.3ad aggregate interface” on page 186.
• a redundant interface, see “Creating a redundant interface” on page 187.
• a VLAN subinterface, see “Creating a VLAN subinterface” on page 185.
• a wireless interface, see “Adding a wireless interface” on page 219.

Creating a VLAN subinterface


A VLAN subinterface, sometimes called a VLAN or a VLAN interface, is a virtual interface
on a physical interface. The subinterface allows routing of VLAN tagged packets using that
physical interface, but it is separate from any other traffic on the physical interface.

To add a VLAN subinterface


1 Go to System > Network > Interface.
2 Select Create New and set Type to VLAN to add a VLAN subinterface.
3 Configure the VLAN subinterface settings.
The VLAN subinterface must have a Name, and parent physical Interface, and a VLAN
ID. See “Interface settings” on page 181.
4 Select OK.
To view the new VLAN subinterface, select the expand arrow next to the parent physical
interface (the internal interface). This will expand the display to show all VLAN
subinterfaces on this physical interface. If there is no expand arrow displayed, there are no
subinterfaces configured on that physical interface.
For each VLAN, the list displays the name of the VLAN, and, depending on column
settings, its IP address, the Administrative access you selected for it, the VLAN ID
number, and which VDOM it belongs to if VDOMs are enabled.
For more information, see the FortiGate VLANs and VDOMs Guide.

Creating a loopback interface


A loopback interface is an ‘always up’ virtual interface that is not connected to any other
interfaces. Loopback interfaces connect to a FortiGate unit’s interface IP address without
depending on a specific external port.
Loopback interfaces were added to assist with blackhole routing which drops packets sent
to a particular network address. For more information on blackhole routing, see “Blackhole
Route” on page 337.
A loopback interface is not connected to hardware, so it is not affected by hardware
problems. As long as the FortiGate unit is functioning, the loopback interface is active.
This ‘always up’ feature is useful in dynamic routing where the FortiGate unit relies on
remote routers and the local Firewall policies to access to the loopback interface.

To add a loopback interface - web-based manager


1 Go to System > Network > Interface.
2 Select Create New and set Type to Loopback Interface to add a loopback interface.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 185
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

3 Configure the loopback interface settings.


The loopback interface must have a Name. You can also configure administrative
access and add a description. See “Interface settings” on page 181.
4 Select OK.

To add a loopback interface - CLI


The CLI command to configure a loopback interface called loop1 with an IP address of
10.0.0.10 is:
config system interface
edit loop1
set type loopback
set ip 10.0.0.10 255.255.255.0
end
For more information, see config system interface in the FortiGate CLI Reference.

Creating an 802.3ad aggregate interface


You can aggregate (combine) two or more physical interfaces to increase bandwidth and
provide some link redundancy. An aggregate interface provides more bandwidth but also
creates more points of failure than redundant interfaces. The interfaces must connect to
the same next-hop routing destination.
Support of the IEEE standard 802.3ad for link aggregation is part of FortiGate firmware on
models 300A, 310B, 400A, 500A, 620B, and models 800 and higher.
An interface is available to be an aggregate interface if:
• it is a physical interface, not a VLAN interface
• it is not already part of an aggregate or redundant interface
• it is in the same VDOM as the aggregated interface
• it does not have a IP address and is not configured for DHCP or PPPoE
• it does not have a DHCP server or relay configured on it
• it does not have any VLAN subinterfaces
• it is not referenced in any firewall policy, VIP, IP Pool or multicast policy
• it is not an HA heartbeat interface
• it is not one of the FortiGate-5000 series backplane interfaces

Note: You can add an accelerated interface (FA2 interfaces) to an aggregate link, but you
will lose the acceleration. For example, if you aggregate two accelerated interfaces you will
get slower throughput than if the two interfaces were separate.

Note: FortiGate-5000 backplane interfaces have to be made visible before they can be
added to an aggregate or a redundant interface.

When an interface is included in an aggregate interface, it is not listed on the System >
Network > Interface screen. You cannot configure the interface individually and it is not
available for inclusion in firewall policies, VIPs, IP pools, or routing.

FortiGate Version 4.0 MR1 Administration Guide


186 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Figure 74: Settings for an 802.3ad aggregate interface

To create an 802.3ad Aggregate interface


1 Go to System > Network > Interface.
2 Select Create New.
3 In the Name field, enter a name for the aggregated interface.
The interface name must be different from any other interface, zone or VDOM.
4 From the Type list, select 802.3ad Aggregate.
5 In the Available Interfaces list, select each interface that you want to include in the
aggregate interface and move it to the Selected Interfaces list.
6 If this interface operates in NAT/Route mode, you need to configure addressing for it.
For information about dynamic addressing, see:
• “Configuring DHCP on an interface” on page 188
• “Configuring an interface for PPPoE” on page 190
7 Configure other interface options as required.
8 Select OK.

Creating a redundant interface


You can combine two or more physical interfaces to provide link redundancy. This feature
allows you to connect to two or more switches to ensure connectivity in the event one
physical interface or the equipment on that interface fails.
In a redundant interface, traffic is only going over one interface at any time. This differs
from an aggregated interface where traffic is going over all interfaces for increased
bandwidth. This difference means redundant interfaces can have more robust
configurations with fewer possible points of failure. This is important in a fully-meshed HA
configuration.
FortiGate firmware on models 300A, 310B, 400A, 500A, 620B, and models 800 and
higher implements redundant interfaces.
An interface is available to be in a redundant interface if:
• it is a physical interface, not a VLAN interface
• it is not already part of an aggregated or redundant interface
• it is in the same VDOM as the redundant interface
• it has no defined IP address and is not configured for DHCP or PPPoE
• it has no DHCP server or relay configured on it

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 187
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

• it does not have any VLAN subinterfaces


• it is not referenced in any firewall policy, VIP, IP Pool or multicast policy
• it is not monitored by HA
• it is not one of the FortiGate-5000 series backplane interfaces

Note: FortiGate-5000 backplane interfaces have to be made visible before they can be
added to an aggregate or a redundant interface.

When an interface is included in a redundant interface, it is not listed on the System >
Network > Interface page. You cannot configure the interface individually and it is not
available for inclusion in firewall policies, VIPs, IP pools, or routing.

Figure 75: Settings for a redundant interface

To create a redundant interface


1 Go to System > Network > Interface.
2 Select Create New.
3 In the Name field, enter a name for the redundant interface.
The interface name must different from any other interface, zone or VDOM.
4 From the Type list, select Redundant Interface.
5 In the Available Interfaces list, select each interface that you want to include in the
redundant interface and move it to the Selected Interfaces list.
In a failover situation, the interface activated will be the next interface down the
Selected Interfaces list.
6 If this interface operates in NAT/Route mode, you need to configure addressing for it.
For information about dynamic addressing, see:
• “Configuring DHCP on an interface” on page 188
• “Configuring an interface for PPPoE” on page 190
7 Configure other interface options as required.
8 Select OK.

Configuring DHCP on an interface


If you configure an interface to use DHCP, the FortiGate unit automatically broadcasts a
DHCP request. The interface is configured with the IP address and any DNS server
addresses and default gateway address that the DHCP server provides.

FortiGate Version 4.0 MR1 Administration Guide


188 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

By default, low-end models are configured to DHCP addressing mode with Override
Internal DNS and Retrieve default Gateway from DHCP server both enabled. These
settings allow for easy out-of-the-box configuration.

To configure DHCP on an interface


1 Go to System > Network > Interface.
2 Select Create New or select the Edit icon of an existing interface.
3 In the Addressing mode section, select DHCP.

Figure 76: Interface DHCP settings

Status Displays DHCP status messages as the FortiGate unit connects to the
DHCP server and gets addressing information. Select Status to refresh
the addressing mode status message.
Only displayed if you selected Edit.
Status can be one of:
• initializing - No activity.
• connecting - interface attempts to connect to the DHCP server.
• connected - interface retrieves an IP address, netmask, and other
settings from the DHCP server.
• failed - interface was unable to retrieve an IP address and other
settings from the DHCP server.
Obtained The IP address and netmask leased from the DHCP server.
IP/Netmask Only displayed if Status is connected.
Renew Select to renew the DHCP license for this interface.
Only displayed if Status is connected.
Expiry Date The time and date when the leased IP address and netmask is no longer
valid.
Only displayed if Status is connected.
Default Gateway The IP address of the gateway defined by the DHCP server.
Only displayed if Status is connected, and if Receive default gateway
from server is selected,.
Distance Enter the administrative distance for the default gateway retrieved from
the DHCP server. The administrative distance, an integer from 1-255,
specifies the relative priority of a route when there are multiple routes to
the same destination. A lower administrative distance indicates a more
preferred route. The default distance for the default gateway is 1.
Retrieve default Enable to retrieve a default gateway IP address from the DHCP server.
gateway from server The default gateway is added to the static routing table.
Enabled by default on low-end models.
Override internal DNS Enable to use the DNS addresses retrieved from the DHCP server
instead of the DNS server IP addresses on the DNS page.
On low end models, this is enabled by default.
When VDOMs are enabled, you can override the internal DNS only on
the management VDOM.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 189
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Configuring an interface for PPPoE


If you configure the interface to use PPPoE, the FortiGate unit automatically broadcasts a
PPPoErequest.
FortiGate units support many PPPoE RFC features (RFC 2516) including unnumbered
IPs, initial discovery timeout and PPPoE Active Discovery Terminate (PADT).

To configure an interface for PPPoE


1 Go to System > Network > Interface.
2 Select Create New or select the Edit icon of an existing interface.
3 In the Addressing mode section, select PPPoE.

Figure 77: Interface PPPoE settings

Status Displays PPPoE status messages as the FortiGate unit connects to the
PPPoE server and gets addressing information. Select Status to refresh the
addressing mode status message.
Only displayed if you selected Edit.
Status can be one of the following 4 messages.
initializing No activity.
connecting The interface is attempting to connect to the PPPoE server.
connected The interface retrieves an IP address, netmask, and other settings from the
PPPoE server.
When the status is connected, PPPoE connection information is displayed.
failed The interface was unable to retrieve an IP address and other information from
the PPPoE server.
Reconnect Select to reconnect to the PPPoE server.
Only displayed if Status is connected.
User Name The PPPoE account user name.
Password The PPPoE account password.
Unnumbered IP Specify the IP address for the interface. If your ISP has assigned you a block
of IP addresses, use one of them. Otherwise, this IP address can be the
same as the IP address of another interface or can be any IP address.
Initial Disc Timeout Enter Initial discovery timeout. Enter the time to wait before starting to retry a
PPPoE discovery.
Initial PADT timeout Enter Initial PPPoE Active Discovery Terminate (PADT) timeout in seconds.
Use this timeout to shut down the PPPoE session if it is idle for this number of
seconds. PADT must be supported by your ISP. Set initial PADT timeout to 0
to disable.

FortiGate Version 4.0 MR1 Administration Guide


190 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

Distance Enter the administrative distance for the default gateway retrieved from the
PPPoE server. The administrative distance, an integer from 1-255, specifies
the relative priority of a route when there are multiple routes to the same
destination. A lower administrative distance indicates a more preferred route.
The default distance for the default gateway is 1.
Retrieve default Enable to retrieve a default gateway IP address from a PPPoE server. The
gateway from default gateway is added to the static routing table.
server
Override internal Enable to replace the DNS server IP addresses on the System DNS page
DNS with the DNS addresses retrieved from the PPPoE server.
When VDOMs are enabled, you can override the internal DNS only on the
management VDOM.

Configuring Dynamic DNS on an interface


When the FortiGate unit has a static domain name and a dynamic public IP address, you
can use a DDNS service to update Internet DNS servers when the IP address for the
domain changes.
Dynamic DNS is available only in NAT/Route mode.

To configure DDNS on an interface


1 Get the DDNS configuration information from your DDNS service.
2 Go to System > Network > Interface.
3 Select Create New.
4 Enable DDNS.
5 Enter DDNS configuration information.
If at any time your FortiGate unit cannot contact the DDNS server, it will retry three times
at one minute intervals and then change to retrying at three minute intervals. This is to
prevent flooding the DDNS server.

Figure 78: DDNS service configuration

Server Select a DDNS server to use. The client software for these services is built into the
FortiGate firmware. The FortiGate unit can connect only to one of these services.
Domain Enter the fully qualified domain name of the DDNS service.
Username Enter the user name to use when connecting to the DDNS server.
Password Enter the password to use when connecting to the DDNS server.

Configuring a virtual IPSec interface


You create a virtual IPSec interface by selecting IPSec Interface Mode by going to
VPN > IPSec > Auto Key or VPN > IPSec > Manual Key when you create a VPN. You
also select a physical or VLAN interface from the Local Interface list. The virtual IPSec
interface is listed as a subinterface of that interface by going to
System > Network > Interface. For more information, see

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 191
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

• “Overview of IPSec VPN configuration” on page 611


• “Auto Key” on page 613 or “Manual Key” on page 622
Go to System > Network > Interface and select Edit on an IPSec interface to:
• configure IP addresses for the local and remote endpoints of the IPSec interface so
that you can run dynamic routing over the interface or use ping to test the tunnel
• enable administrative access through the IPSec interface
• enter a description for the interface

Figure 79: Virtual IPSec interface settings

Name The name of the IPSec interface.


Virtual Domain Select the VDOM of the IPSec interface.
IP If you want to use dynamic routing with the tunnel or be able to ping the tunnel
Remote IP interface, enter IP addresses for the local and remote ends of the tunnel. These
two addresses must not be used anywhere else in the network.
Administrative Select the types of administrative access permitted on this interface.
Access
HTTPS Allow secure HTTPS connections to the web-based manager through this
interface.
PING Allow the interface to respond to pings. Use this setting to verify your
installation and for testing.
HTTP Allow HTTP connections to the web-based manager through this interface.
HTTP connections are not secure and can be intercepted by a third party.
SSH Allow SSH connections to the CLI through this interface.
SNMP Allow a remote SNMP manager to request SNMP information by connecting to
this interface. See “Configuring SNMP” on page 242.
TELNET Allow Telnet connections to the CLI through this interface. Telnet connections
are not secure and can be intercepted by a third party.
Description Enter a description of the interface. It can be up to 63 characters.

Configuring administrative access to an interface


Administrative access is how an administrator can connect to the FortiGate unit to view
and change configuration settings. Two methods of administrative access are HTTPS and
SSH.
You can allow remote administration of the FortiGate unit running in NAT/Route mode, but
allowing remote administration from the Internet could compromise the security of the
FortiGate unit. You should avoid this unless it is required for your configuration.

FortiGate Version 4.0 MR1 Administration Guide


192 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

To improve the security of a FortiGate unit that allows remote administration from the
Internet:
• Use secure administrative user passwords.
• Change these passwords regularly.
• Enable secure administrative access to this interface using only HTTPS or SSH.
• Do not change the system idle timeout from the default value of 5 minutes (see
“Settings” on page 286).
For more information on configuring administrative access in Transparent mode, see
“Operation mode and VDOM management access” on page 263.

To control administrative access to an interface


1 Go to System > Network > Interface.
2 Choose an interface and select Edit.
3 Select the Administrative Access methods for the interface.
4 Select OK.

Interface status detection for gateway load balancing


You can use up to three different protocols to confirm that an interface can connect to the
IP address of a server. Usually the server is the next-hop router that leads to an external
network or the Internet. Interface status detection is available if ECMP Route Failover &
Load Balance Method is set to spill-over. See
To configure gateway failover detection for an interface, from the web-based manager go
to System > Network > Interface and edit an interface. Select Detect Interface Status for
Gateway Load Balancing, enter the IP address of the server to test connecting to and
select one or more protocols to use to test the connection to the server.
Go System > Network > Options to configure the detection interval and failover
detection settings for interface status detection. See “Configuring Networking Options” on
page 204.

Note: As long as the FortiGate unit receives responses for at least one of the protocols that
you select the FortiGate unit assumes the server is operating and can forward packets.
Responses received to more protocols does not enhance the status of the server or
interface and receiving response from fewer protocols does not reduce the status of the
server or interface.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 193
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Figure 80: Interface status detection settings

Detect Interface Status

Detect Server The IP address of the server to test connecting to.


Ping Use standard ICMP ping to confirm that the server is responding. Ping confirms
that the server can respond to an ICMP ping request.
TCP Echo Use TCP echo to confirm that the server is responding. Select this option if the
server is configured to provide TCP echo services. In some cases a server may be
configured to reply to TCP echo requests but not to reply to ICMP pings.
TCP echo uses TCP packets on port number 7 to send a text string to the server
and expect an echo reply back from the server. The echo reply just echos back the
same text to confirm that the server can respond to TCP requests.
FortiGate units do not recognize RST (reset) packets from TCP Echo servers as
normal TCP echo replies. If the FortiGate receives an RST response to a TCP
echo request, the FortiGate unit assumes the server is unreachable.

FortiGate Version 4.0 MR1 Administration Guide


194 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

UDP Echo Use UDP echo to detect the server. Select this option of the server is configured to
provide UDP echo services. In some cases a server may be configured to reply to
UDP echo requests but not to reply ICMP pings.
UDP echo uses UDP packets on port number 7 to send a text string to the server
and expects an echo reply from the server. The echo reply just echos back the
same text to confirm that the server can respond to UDP requests.
Spillover Set the spillover threshold to limit the amount of bandwidth processed by the
Threshold Interface. The Spillover Thresholds range is 0-2097000 KBps.
The FortiGate unit sends all ECMP-routed sessions to the lowest numbered
interface until the bandwidth being processed by this interface reaches its spillover
threshold. The FortiGate unit then spills additional sessions over to the next lowest
numbered interface.
For more information, including the order in which interfaces are selected, see
“ECMP route failover and load balancing” on page 344.

Note: For more information about TCP and UDP echo, see RFC 862.

Interface MTU packet size


To improve network performance, you can change the maximum transmission unit (MTU)
of the packets that the FortiGate unit transmits. Ideally, the MTU should be the same as
the smallest MTU of all the networks between the FortiGate unit and the destination of the
packets. If the packets that the FortiGate unit sends are larger than the smallest MTU,
they are broken up or fragmented, which slows down transmission. You can easily
experiment by lowering the MTU to find an MTU size for optimum network performance.
Select interfaces on some FortiGate models support frames larger than the traditional
1 500 bytes. Contact Fortinet Customer Support for the maximum frame sizes your
FortiGate unit supports.
To be able to send larger frames over a route, all Ethernet devices on that route must
support that larger frame size, otherwise your larger frames will not be recognized and are
dropped.
If you have standard size and larger size frame traffic on the same interface, routing alone
cannot route them to different routes based only on frame size. However you can use
VLANs to make sure the larger frame traffic is routed over network devices that support
that larger size. VLANs will inherit the MTU size from the parent interface. You will need to
configure the VLAN to include both ends of the route as well as all switches and routers
along the route. For more information on VLAN configurations, see the VLAN and VDOM
guide.

To change the MTU size of the packets leaving an interface


1 Go to System > Network > Interface.
2 Choose a physical interface and select Edit.
3 Below Administrative Access, select Override default MTU value (1 500).
4 Set the MTU size.
If you select an MTU size larger than your FortiGate unit supports, an error message
will indicate this. In this situation, try a smaller MTU size until the value is supported.

Note: If you change the MTU, you need to reboot the FortiGate unit to update the MTU
value of VLAN subinterfaces on the modified interface.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 195
http://docs.fortinet.com/ • Feedback
Configuring interfaces System Network

Note: In Transparent mode, if you change the MTU of an interface, you must change the
MTU of all interfaces on the FortiGate unit to match the new MTU.

See also

Secondary IP Addresses
An interface can be assigned more than one IP address. You can create and apply
separate firewall policies for each IP address on an interface. You can also forward traffic
and use RIP or OSPF routing with secondary IP addresses.
There can be up to 32 secondary IP addresses per interface including primary, secondary,
and any other IP addresses assigned to the interface. Primary and secondary IP
addresses can share the same ping generator.
The following restrictions must be in place before you are able to assign a secondary IP
address:
• A primary IP address must be assigned to the interface.
• The interface must use manual addressing mode.
• By default, IP addresses cannot be part of the same subnet. To allow interface subnet
overlap use the CLI command:
config system global
set allow-interface-subnet-overlap enable
end
You can use the CLI command config system interface to add a secondary IP
address to an interface. For more information, see config secondaryip under
system interface in the FortiGate CLI Reference.

Figure 81: Adding Secondary IP Addresses

IP/Netmask Enter the IP address/subnet mask in the IP/Netmask field.


The Secondary IP address must be on a different subnet than the Primary IP
address.
This field is only available in Manual addressing mode.
Ping Server To enable dead gateway detection, enter the IP address of the next hop
router on the network connected to the interface and select Enable.
Multiple addresses can share the same ping server.
Administrative Select the types of administrative access permitted on the secondary IP.
Access These can be different from the primary address.
HTTPS Allow secure HTTPS connections to the web-based manager through this
secondary IP.
PING Allow secondary IP to respond to pings. Use this setting to verify your
installation and for testing.

FortiGate Version 4.0 MR1 Administration Guide


196 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring interfaces

HTTP Allow HTTP connections to the web-based manager through this secondary
IP. HTTP connections are not secure and can be intercepted by a third party.
SSH Allow SSH connections to the CLI through this secondary IP.
SNMP Allow a remote SNMP manager to request SNMP information by connecting
to this secondary IP. See “Configuring SNMP” on page 242.
TELNET Allow Telnet connections to the CLI through this secondary IP. Telnet
connections are not secure and can be intercepted by a third party.
Add Select Add to add the configured secondary IP address to the secondary IP
table.
Addresses in this table are not added to the interface until you select OK or
Apply.
Secondary IP table A table that displays all the secondary IP addresses that have been added to
this interface.
These addresses are not permanently added to the interface until you select
OK or Apply.
# The identifying number of the secondary IP address.
IP/Netmask The IP address and netmask for the secondary IP.
Ping Server The IP address of the ping server for the address. The ping server can be
shared by multiple addresses.
Enable Indicates if the ping server option is selected.
Access The administrative access methods for this address. They can be different
from the primary IP address.
Delete Icon Select to remove this secondary IP entry.

Note: It is recommended that after adding a secondary IP, you refresh the secondary IP
table and verify your new address is listed. If not, one of the restrictions (have a primary IP
address, use manual addressing mode, more than one IP on the same subnet, more than
32 IP addresses assigned to the interface, etc.) prevented the address from being added.

See also

Adding a software switch interface


A software switch interface forms a simple bridge between two or more physical or
wireless FortiGate interfaces. The interfaces added to a soft switch interface are called
members. The members of a switch interface cannot be accessed as an individual
interface after being added to a soft switch interface. They are removed from the system
interface table.
Similar to aggregate interfaces, a soft switch interface functions like a normal interface. A
soft switch interface has one IP address. You create firewall policies to and from soft
switch interfaces and soft switch interfaces can be added to zones. There are some
limitations; soft switch interfaces cannot be monitored by HA or used as HA heartbeat
interfaces.
To add interfaces to a software switch group, no configuration settings can refer to those
interfaces. This includes default routes, VLANs, inter-VDOM links, and policies. You can
view available interfaces on the CLI when entering the ‘set member ’ command by using
‘?’ or <TAB> to scroll through the available list.
The CLI command to configure a software switch interface called soft_switch with port1,
external and dmz interfaces is:
config system switch-interface
edit soft_switch
set members port1 external dmz
end

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 197
http://docs.fortinet.com/ • Feedback
Configuring zones System Network

For more information, see config system switch-interface in the FortiGate CLI Reference.

See also

Configuring zones
Grouping interfaces and VLAN subinterfaces into zones simplifies policy creation. You can
configure policies for connections to and from a zone, but not between interfaces in a
zone.
You can add zones, rename and edit zones, and delete zones from the zone list. When
you add a zone, you select the names of the interfaces and VLAN subinterfaces to add to
the zone.
Zones are configured from virtual domains. If you have added multiple virtual domains to
your FortiGate configuration, make sure you are configuring the correct virtual domain
before adding or editing zones.

Figure 82: Zone list

Create New Select to create a new zone.


Name Names of the zones.
Block intra-zone Displays Yes if traffic between interfaces in the same zone is blocked and No
traffic if traffic between interfaces in the same zone is not blocked.
Interface Members Names of the interfaces added to the zone. Interface names depend on the
FortiGate model.
Edit/View icons Edit or view a zone.
Delete icon Delete a zone.

To configure zone settings


1 Go to System > Network > Zone.
2 Select Create New or select the Edit icon for a zone.
3 Select name, and interfaces.
4 Select OK.

Figure 83: Zone settings

FortiGate Version 4.0 MR1 Administration Guide


198 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring the modem interface

Zone Name Enter the name to identify the zone.


Block intra-zone traffic Select to block traffic between interfaces or VLAN subinterfaces in the
same zone.
Interface members Select the interfaces that are part of this zone. This list includes
configured VLANs.

Configuring the modem interface


All FortiGate models with a USB interface support USB modems, and FortiGate-50 series
and FortiGate-60 series modules include a serial modem port. In NAT/Route mode the
modem can be in one of two modes:
• In redundant (backup) mode, the modem interface automatically takes over from a
selected ethernet interface when that ethernet interface is unavailable.
• In standalone mode, the modem interface is the connection from the FortiGate unit to
the Internet.
In redundant or standalone mode when connecting to the ISP, you can configure the
FortiGate unit to automatically have the modem dial up to three dialup accounts until the
modem connects to an ISP.
Other models can connect to an external modem through a USB-to-serial converter. For
these models, you must configure modem operation using the CLI.
Initially modem interfaces are disabled, and must be enabled in the CLI to be visible in the
web-based manager. See the system modem command in the FortiGate CLI Reference.

Note: The modem interface is not the AUX port. While the modem and AUX port may
appear similar, the AUX port has no associated interface and is used for remote console
connection. The AUX port is only available on FortiGate models 1000A, 1000AFA2, and
3000A. For more information, see the config system aux command in the
FortiGate CLI Reference.

This section describes:


• Configuring modem settings
• Redundant mode configuration
• Standalone mode configuration
• Adding firewall policies for modem connections
• Connecting and disconnecting the modem
• Checking modem status

Configuring modem settings


Configure modem settings so that the FortiGate unit uses the modem to connect to your
ISP dialup accounts. You can configure up to three dialup accounts, select standalone or
redundant operation, and configure how the modem dials and disconnects.
For FortiGate-60B and FortiWifi-60B models with modems, the modem can be a
management interface. When enabled, a user can dial into the unit’s modem and perform
administration actions as if logged in over one of the standard interfaces. This feature is
enabled in the CLI using
config system dialinsvr.
If VDOMs are enabled, the modem can be assigned to one of the VDOMs just like the
other interfaces.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 199
http://docs.fortinet.com/ • Feedback
Configuring the modem interface System Network

If the modem is disabled it will not appear in the interface list, and must be enabled from
the CLI using:
config system modem
set status enable
end

Note: You cannot configure and use the modem in Transparent mode.

Figure 84 shows the only the settings specific to standalone mode. The remaining settings
are common to both standalone and redundant modes and are shown in Figure 85.

Figure 84: Modem settings (Standalone)

Figure 85: Modem settings (Redundant)

Enable Modem Select to enable the FortiGate modem.


Modem status Modem status can be: not active, connecting, connected, disconnecting,
or hung up.

FortiGate Version 4.0 MR1 Administration Guide


200 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring the modem interface

Dial Now/Hang Up (Standalone mode only) Select Dial Now to manually connect to a dialup
account. If the modem is connected, you can select Hang Up to
manually disconnect the modem.
Mode Select Standalone or Redundant mode.
Auto-dial Select to dial the modem automatically if the connection is lost or the
(Standalone mode) FortiGate unit is restarted.
You cannot select Auto-dial if Dial on demand is selected.
Dial on demand Select to dial the modem when packets are routed to the modem
(Standalone mode) interface. The modem disconnects after the idle timeout period if there is
no network activity.
You cannot select Dial on demand if Auto-dial is selected.
Idle timeout Enter the timeout duration in minutes. After this period of inactivity, the
(Standalone mode) modem disconnects.
Redundant for Select the ethernet interface for which the modem provides backup
(Redundant mode) service.
Holddown (Redundant mode only) Enter the time (1-60 seconds) that the FortiGate
Timer unit waits before switching back to the primary interface from the modem
(Redundant mode) interface, after the primary interface has been restored. The default is 1
second. Configure a higher value if you find the FortiGate unit switching
repeatedly between the primary interface and the modem interface.
Redial Limit The maximum number of times (1-10) that the FortiGate unit modem
attempts to reconnect to the ISP if the connection fails. The default redial
limit is 1. Select None to have no limit on redial attempts.
Wireless Modem Display a connected wireless modem if available.
Supported Modems Select to view a list of supported modems.
Usage History Display connections made on the modem interface. Information
displayed about connections includes:
• date and time
• duration of the connection in hours, minutes, and seconds
• IP address connected to
• traffic statistics including received, sent, and total
• current status of the connection
Dialup Account Configure up to three dialup accounts. The FortiGate unit tries
connecting to each account in order until a connection can be
established.
The active dialup account is indicated with a green check mark.
Phone Number The phone number required to connect to the dialup account. Do not add
spaces to the phone number. Make sure to include standard special
characters for pauses, country codes, and other functions as required by
your modem to connect to your dialup account.
User Name The user name (maximum 63 characters) sent to the ISP.
Password The password sent to the ISP.
To configure the modem in Redundant mode, see “Redundant mode configuration” on
page 201.
To configure the modem in Standalone mode, see “Standalone mode configuration” on
page 202.

Redundant mode configuration


In redundant mode the modem interface backs up a selected ethernet interface. If that
ethernet interface disconnects from its network, the modem automatically dials the
configured dialup accounts. When the modem connects to a dialup account, the FortiGate
unit routes IP packets normally destined for the selected ethernet interface to the modem
interface.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 201
http://docs.fortinet.com/ • Feedback
Configuring the modem interface System Network

The FortiGate unit disconnects the modem interface and switches back to the ethernet
interface when the ethernet interface is able to connect to its network. You can set a
holddown timer that delays the switch back to the ethernet interface to ensure it is stable
and fully active before switching the traffic.
The modem will disconnect after a period of network inactivity set by the value in idle
timeout. This saves money on dialup connection charges.
For the FortiGate unit to be able to switch from an ethernet interface to the modem, you
must select the name of the interface in the modem configuration and configure a ping
server for that interface. You must also configure firewall policies for connections between
the modem interface and other FortiGate interfaces.

Note: Do not add policies for connections between the modem interface and the ethernet
interface that the modem is backing up.

To configure redundant mode


1 Go to System > Network > Modem.
2 Select Redundant mode.
3 Enter the following information:

Redundant for From the list, select the interface to back up.
Holddown timer Enter the number of seconds to continue using the modem after the
network connectivity is restored.
Redial Limit Enter the maximum number of times to retry if the ISP does not answer.
Dialup Account 1 Enter the ISP phone number, user name and password for up to three
Dialup Account 2 dialup accounts.
Dialup Account 3

4 Select Apply.
5 Configure a ping server for the ethernet interface the modem backs up.
6 Configure firewall policies for network connectivity through the modem interface.
See “Adding firewall policies for modem connections” on page 203.

Standalone mode configuration


In standalone mode, the modem connects to a dialup account to provide a connection to
the Internet. You can configure the modem to dial when the FortiGate unit restarts or when
there are unrouted packets. You can also hang up or redial the modem manually.
If the connection to the dialup account fails, the FortiGate unit will redial the modem. The
modem redials the number of times specified by the redial limit, or until it connects to a
dialup account.
The modem will disconnect after a period of network inactivity set by the value in idle
timeout. This saves money on dialup connection charges.
You must configure firewall policies for connections between the modem interface and
other FortiGate interfaces.
You must also go to Router > Static to configure static routes to route traffic to the modem
interface. For example, if the modem interface is acting as the FortiGate unit external
interface you must set the device setting of the FortiGate unit default route to modem.

To configure standalone mode


1 Go to System > Network > Modem.

FortiGate Version 4.0 MR1 Administration Guide


202 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring the modem interface

2 Select Standalone mode.


3 Enter the following information:

Auto-dial Select if you want the modem to dial when the FortiGate unit restarts.
Dial on demand Select if you want the modem to connect to its ISP whenever there are
unrouted packets.
Idle timeout Enter the timeout duration in minutes. After this period of inactivity, the
modem disconnects.
Redial Limit Enter the maximum number of times to retry if the ISP does not answer.
Dialup Account 1 Enter the ISP phone number, user name and password for up to three
Dialup Account 2 dialup accounts.
Dialup Account 3

4 Select Apply.
5 Configure firewall policies for network connectivity through the modem interface.
See “Adding firewall policies for modem connections” on page 203.
6 Go to Router > Static and set device to modem to configure static routes to route
traffic to the modem interface.
See “Adding a static route to the routing table” on page 343.

Adding firewall policies for modem connections


The modem interface requires firewall addresses and policies. You can add one or more
addresses to the modem interface. For information about adding addresses, see
“Configuring addresses” on page 423.
You can configure firewall policies to control the flow of packets between the modem
interface and the other interfaces on the FortiGate unit. For information on configuring
firewall policies, see “Configuring firewall policies” on page 391.

Connecting and disconnecting the modem

Note: The modem must be in Standalone mode before connecting or disconnecting from a
dialup account.

To connect to a dialup account


1 Go to System > Network > Modem.
2 Select Enable USB Modem.
3 Verify the information in Dialup Accounts.
4 Select Apply.
5 Select Dial Now.
The FortiGate unit dials into each dialup account in turn until the modem connects to
an ISP.

To disconnect from a dialup account


1 Go to System > Network > Modem.
2 Select Hang Up to disconnect the modem.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 203
http://docs.fortinet.com/ • Feedback
Configuring Networking Options System Network

Checking modem status


You can determine the connection status of your modem and which dialup account is
active. If the modem is connected to the ISP, you can see the IP address and netmask.
To check the modem status, go to System > Network > Modem.
Modem status is one of the following:

not active The modem is not connected to the ISP.


connecting The modem is attempting to connect to the ISP.
connected The modem is connected to the ISP.
disconnecting The modem is disconnecting from the ISP.
hung up The modem has disconnected from the ISP. (Standalone mode only)
The modem will not redial unless you select Dial Now.

A green check mark indicates the active dialup account.


The IP address and netmask assigned to the modem interface appears on the System
Network Interface screen of the web-based manager.

Configuring Networking Options


Network options include DNS server and dead gateway detection settings.

To configure network options


1 Go to System > Network > Options.
2 Enter primary and secondary DNS servers.
3 Enter local domain name.
4 Enter Dead Gateway Detection settings.
5 Select OK.

Figure 86: Configuring Networking Options

DNS Settings
Primary DNS Server Enter the primary DNS server IP address.
Secondary DNS Server Enter the secondary DNS server IP address.
Local Domain Name Enter the domain name to append to addresses with no domain
portion when performing DNS lookups.

FortiGate Version 4.0 MR1 Administration Guide


204 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring FortiGate DNS services

IPv6 DNS Settings


Primary DNS Server Enter the primary IPv6 DNS server IP address.
Secondary DNS Server Enter the secondary IPv6 DNS server IP address.
Dead Gateway Detection Configure Detect Interface Status for Gateway Load Balancing for
one or more FortiGate interfaces and use the dead gateway
detection settings to configure how interface status detection
functions. For information, see “Interface status detection for
gateway load balancing” on page 193.
Detection Interval Enter a number in seconds to specify how often the FortiGate unit
detects interface status.
Fail-over Detection Enter the number of times that interface status tests fail before the
FortiGate unit assumes that the interface is no longer functioning.

DNS Servers
Several FortiGate functions use DNS, including alert email and URL blocking. You can
specify the IP addresses of the DNS servers to which your FortiGate unit connects. DNS
server IP addresses are usually supplied by your ISP.
You can configure FortiGate models numbered 100 and lower to obtain DNS server
addresses automatically. To obtain these addresses automatically, at least one FortiGate
unit interface must use the DHCP or PPPoE addressing mode. See “Configuring DHCP
on an interface” on page 188 or “Configuring an interface for PPPoE” on page 190.
FortiGate models 100 and lower can provide DNS Forwarding on their interfaces. Hosts
on the attached network use the interface IP address as their DNS server. DNS requests
sent to the interface are forwarded to the DNS server addresses that you configured or
that the FortiGate unit obtained automatically.

Configuring FortiGate DNS services


You can configure a FortiGate unit to be the DNS server for any networks that can
communicate with a FortiGate interface. You set up the DNS configuration for each
interface in one of the following ways:
• The interface relays DNS requests to the DNS servers configured for the FortiGate unit
under System > Network > Options. See “To configure a FortiGate interface to relay
DNS requests to external DNS servers” on page 207.
• The interface resolves DNS requests using a FortiGate DNS database. DNS requests
for host names not in the FortiGate DNS database are dropped. See “To configure a
FortiGate interface to resolve DNS requests using only the FortiGate DNS database”
on page 207.
• The interface resolves DNS requests using the FortiGate DNS database and relays
DNS requests for host names not in the FortiGate DNS database to the DNS servers
configured for the FortiGate unit under System > Network > Options. This is called a
split DNS configuration.See “To configure a split DNS configuration” on page 208
If virtual domains are not enabled you can create one DNS databases that can be shared
by all the FortiGate interfaces.
If virtual domains are enabled, you create a DNS database in each VDOM. All of the
interfaces in a VDOM share the DNS database in that VDOM.
This section describes:
• About split DNS
• Configuring FortiGate DNS services

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 205
http://docs.fortinet.com/ • Feedback
Configuring FortiGate DNS services System Network

About split DNS


In a split DNS configuration you create a DNS database on the FortiGate unit, usually for
host names on an internal network or for a local domain. When users on the internal
network attempt to connect to these host names the IP addresses are provided by the
FortiGate unit DNS database. Host names that are not in the FortiGate unit DNS database
are resolved by relaying the DNS lookup to an external DNS server.
A split DNS configuration can be used to provide internal users access to resources on
your private network that can also be accessed from the Internet. For example, you could
have a public web server behind a FortiGate unit operating in NAT/Route mode. Users on
the Internet access this web server using a port forwarding virtual IP. So the web server
has a public IP address for internet users. But you may want users on your internal
network to access the server using its private IP address to keep traffic from internal users
off of the Internet. To do this, you create a split DNS configuration on the FortiGate unit
and add the host name of the server to the FortiGate DNS database, but include the
internal IP address of server instead of the external IP address. Because the FortiGate
unit checks the FortiGate DNS database first, all DNS lookups for the server host name
will return the internal IP address of the server.
For an example of how to configure split DNS, see “To configure a split DNS configuration”
on page 208.

Configuring FortiGate DNS services


This section provides a general procedure for configuring FortiGate DNS as well as
specific procedures for configuring a FortiGate interface to provide DNS services in
different ways.

General FortiGate DNS server configuration


1 Go to System > Network > Options and add the IP addresses of a Primary and
Secondary DNS server.
These should be the DNS servers provided by your ISP or other public DNS servers.
The FortiGate unit uses these DNS servers for its own DNS lookups and can be used
to supply DNS look ups for your internal networks. See “Configuring Networking
Options” on page 204.
2 Go to System > Network > Interface and edit the interface connected to a network that
you want the FortiGate unit to be a DNS server for.
3 Select Enable DNS Query.
When you select Enable DNS Query, the FortiGate unit relays all DNS queries
received by this interface to the DNS servers configured under System > Network >
Options. Select Recursive or Non-Recursive to control how this works.

recursive Look up domain names in the FortiGate DNS database. If the entry is not
found, relay the request to the DNS servers configured under System >
Network > Options. Can be used for a split DNS configuration.
non-recursive Look up domain names in the FortiGate DNS database. Do not relay the
request to the DNS servers configured under System > Network > Options.

4 Go to System > Network > DNS Database and configure the FortiGate DNS database.
Add zones and entries as required. See “Configuring the FortiGate DNS database” on
page 208.

FortiGate Version 4.0 MR1 Administration Guide


206 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring FortiGate DNS services

5 Configure the hosts on the internal network to use the FortiGate interface as their DNS
server.
If you are also using a FortiGate DHCP server to configure the hosts on this network,
add the IP address of the FortiGate interface to the DNS Sever IP address list.

To configure a FortiGate interface to relay DNS requests to external DNS servers


Configure a FortiGate interface to relay DNS requests to the DNS servers configured for
the FortiGate unit under System > Network > Options.
1 Go to System > Network > Options and add the IP addresses of a Primary and
Secondary DNS server.
These should be the DNS servers provided by your ISP or other public DNS servers.
The FortiGate unit uses these DNS servers for its own DNS lookups and can be used
to supply DNS look ups for your internal networks. See “Configuring Networking
Options” on page 204.
2 Go to System > Network > Interface and edit the interface connected to a network that
you want the FortiGate unit to be a DNS server for.
3 Select Enable DNS Query and select Recursive.
The interface is configured to look up domain names in the FortiGate DNS database.
and relay the requests for names not in the FortiGate DNS database to the DNS
servers configured under System > Network > Options. If you do not add entries to the
FortiGate DNS database all DNS requests are relayed to the DNS servers configured
under System > Network > Options.
4 Configure the hosts on the internal network to use the FortiGate interface as their DNS
server.
If you are also using a FortiGate DHCP server to configure the hosts on this network,
add the IP address of the FortiGate interface to the DNS Sever IP address list.

To configure a FortiGate interface to resolve DNS requests using only the FortiGate
DNS database
Configure a FortiGate interface to resolve DNS requests using the FortiGate DNS
database and to drop requests for host names that not in the FortiGate DNS database.
1 Go to System > Network > Options and add the IP addresses of a Primary and
Secondary DNS server.
These should be the DNS servers provided by your ISP or other public DNS servers.
The FortiGate unit uses these DNS servers for its own DNS lookups and can be used
to supply DNS look ups for your internal networks. See “Configuring Networking
Options” on page 204.
2 Go to System > Network > Interface and edit the interface connected to a network that
you want the FortiGate unit to be a DNS server for.
3 Select Enable DNS Query and select Non-Recursive.
When you select Non-Recursive only the entries in the FortiGate DNS database are
used.
4 Go to System > Network > DNS Database and configure the FortiGate DNS database.
Add zones and entries as required. See “Configuring the FortiGate DNS database” on
page 208.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 207
http://docs.fortinet.com/ • Feedback
Configuring FortiGate DNS services System Network

5 Configure the hosts on the internal network to use the FortiGate interface as their DNS
server.
If you are also using a FortiGate DHCP server to configure the hosts on this network,
add the IP address of the FortiGate interface to the DNS Sever IP address list.

To configure a split DNS configuration


Configure an interface to resolve DNS requests using the FortiGate DNS database and
relay DNS requests for host names not in the FortiGate DNS database to the DNS servers
configured under System > Network > Options. This is called a split DNS configuration.
See “About split DNS” on page 206.
1 Go to System > Network > Options and add the IP addresses of a Primary and
Secondary DNS server.
These should be the DNS servers provided by your ISP or other public DNS servers.
The FortiGate unit uses these DNS servers for its own DNS lookups and can be used
to supply DNS look ups for your internal networks. See “Configuring Networking
Options” on page 204.
2 Go to System > Network > Interface and edit the interface connected to a network that
you want the FortiGate unit to be a DNS server for.
3 Select Enable DNS Query and select Recursive.
The interface is configured to look up domain names in the FortiGate DNS database.
and relay the requests for names not in the FortiGate DNS database to the DNS
servers configured under System > Network > Options. You can add entries to the
FortiGate DNS database for users on the internal network.
4 Go to System > Network > DNS Database and configure the FortiGate DNS database.
Add zones and entries as required for users on the internal network. See “Configuring
the FortiGate DNS database” on page 208.
5 Configure the hosts on the internal network to use the FortiGate interface as their DNS
server.
If you are also using a FortiGate DHCP server to configure the hosts on this network,
add the IP address of the FortiGate interface to the DNS Sever IP address list.

Configuring the FortiGate DNS database


Configure the FortiGate DNS database so that DNS lookups from an internal network are
resolved by the FortiGate DNS database. To configure the DNS database you add zones.
Each zone has its own domain name.
You then add entries to each zone. An entry is an host name and the IP address it
resolves to. You can also specify if the entry is an IPv4 address (A), an IPv6 address
(AAAA), a name server (NS), a canonical name (CNAME), or a mail exchange (MX)
name.
Go to System > Network > DNS Database to configure the FortiGate DNS database.

FortiGate Version 4.0 MR1 Administration Guide


208 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring FortiGate DNS services

Figure 87: Configuring the FortiGate DNS database

Delete
Edit

Delete
Edit

DNS Database list


Create New Add a new DNS zone to the DNS database list.
DNS Zone The names of the DNS zones added to the DNS database list.
Domain Name The domain name of each zone.
TTL The TTL value for the domain name which is the packet time to live in seconds.
The range is 0 to 2 147 483 647.
# of Entries The number of entries in the zone.
Delete icon Delete an zone from the DNS database.
Edit icon Select Edit beside an existing zone to modify it.
Adding or modifying zones
Create New Select to add a new entry to the zone. Each zone contains entries for one domain
name.
Delete icon Delete a DNS entry from the zone.
Edit icon Select Edit beside an existing DNS entry to modify it.
Type The type of DNS entry. Can be an IPv4 address (A), an IPv6 address (AAAA), a
name server (NS), a canonical name (CNAME), or a mail exchange (MX) name.
Details A description of the entry.
Adding or modifying DNS entries
Type Select the type of entry to add. The options change depending on the type.
Hostname Enter the host name. Available for all Types.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 209
http://docs.fortinet.com/ • Feedback
Configuring the explicit web proxy System Network

IP Address Enter the host’s IP address (IPv4). Available if Type is Address (A).
IPv6 Address Enter the host’s IP address (IPv6). Available if Type is IPv6 Address (AAAA).
Canonical Name Enter the host’s fully qualified domain name. Available if Type is
Canonical Name (CNAME).
Preference Enter the MX preference value. Range 0 to 65 535. Available if Type is
Mail Exchange (Mx).
TTL (seconds) Enter the TTL value. Enter 0 to use the Zone TTL value.

Configuring the explicit web proxy


You can use the Web Proxy settings and FortiGate 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.
On FortiGate units that support WAN optimization you can also enable web caching for
the explicit proxy.
To enable explicit web proxy on an interface, go to System > Network > Interface, select
the interface, and enable explicit web proxy. If VDOMs are enabled, only interfaces that
belong to the current VDOM and have explicit web proxy enabled will be displayed. If you
enable the web proxy on an interface that has VLANs on it, the VLANs will only be
enabled for web proxy if you manually enable each of them. Web proxy is not in the Global
Network section when VDOMs are enabled.

Note: To enable protection profiles for explicit web proxy traffic, you must configure 2
VDOMs and use inter-VDOM routing to pass the web traffic between them.

Web proxies are configured for each VDOM when VDOMs are enabled.
For a more complete description of the FortiGate web proxy see the FortiGate WAN
Optimization, Web Cache, and Web Proxy User Guide.
To configure web proxies go to System > Network > Web Proxy.

Figure 88: Configuring Web Proxy settings

FortiGate Version 4.0 MR1 Administration Guide


210 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Configuring the explicit web proxy

Proxy FQDN Enter the fully qualified domain name (FQDN) for the proxy server.
This is the domain name to enter into browsers to access the proxy
server.
Max HTTP request length Enter the maximum length of an HTTP request. Larger requests
will be rejected.
Max HTTP message length Enter the maximum length of an HTTP message. Larger messages
will be rejected.
Add headers to Forwarded The web proxy server will forward HTTP requests to the internal
Requests network. You can include the following headers in those requests:
Client IP Header Enable to include the Client IP Header from the original HTTP
request.
Via Header Enable to include the Via Header from the original HTTP request.
X-forwarded-for Header Enable to include the X-Forwarded-For (XFF) HTTP header.
The XFF HTTP header identifies the originating IP address of a
web client or browser that is connecting through an HTTP proxy,
and the remote addresses it passed through to this point.
Front-end HTTPS Header Enable to include the Front-end HTTP Header from the original
HTTPS request.
Explicit Web Proxy Options Web proxies can be transparent or explicit. Transparent web proxy
does not modify the web traffic in any way, but just forwards it to the
destination. Explicit web proxy can modify web traffic to provide
extra services and administration.
Explicit web proxy is configured with the following options.
Enable Explicit Web Enable the explicit web proxy.
Proxy
Port Enter the explicit web proxy server port. To use the explicit proxy,
users must add this port to their web browser proxy configuration.
Listen on Interfaces Displays the interfaces that are being monitored by the explicit web
proxy server.
Unknown HTTP version Select the action to take when the proxy server must handle an
unknown HTTP version request or message. Choose from either
Reject or Best Effort. The Reject option is more secure.

To enable the explicit web proxy on one or more interfaces


To use the explicit web proxy, users must add a proxy server to their web browser
configuration. The IP address of the proxy server would be the IP address of the FortiGate
interface connected to their network (if the FortiGate unit is operating in NAT mode) or the
management IP address (if the FortiGate unit is operating in transparent mode). The port
number of the proxy server would be the same as the Explicit web proxy Port configured
step 6 below.
1 Go to System > Network > Interface.
2 Select an interface to enable the explicit web proxy for.
3 Select Enable explicit web proxy, and save the changes.
4 Repeat to enable the explicit web proxy on all of the interfaces that users will connect
to when web browsing.
When you go to System > Network > Web Proxy, under Explicit web proxy you will see
the interfaces that you enabled.

Note: Only interfaces that have explicit web proxy enabled and are in the current VDOM
will be displayed. If an interface has a VLAN subinterface configured, it must be enabled
separately for explicit web proxy. Enabled interfaces will be displayed independent of
explicit web proxy being enabled or not on the Web Proxy screen.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 211
http://docs.fortinet.com/ • Feedback
Configuring WCCP System Network

5 Go to System > Network > Web Proxy and select Enable Explicit Proxy.
6 Enter a Port number for the explicit proxy.
For example, 8888.
7 Select Apply to save your changes.

To enable web caching for the explicit web proxy


You can enable web caching for the explicit web proxy on FortiGate units that support
WAN optimization and web caching.
1 Use the procedure “To enable the explicit web proxy on one or more interfaces” on
page 211 to enable the explicit web proxy
2 Go to WAN Opt. & Cache > Cache and select Enable Cache Explicit Proxy.
3 Select Apply to save your changes.
Web content requested by users using the explicit proxy are now cached by the
FortiGate unit using the WAN optimization web cache.

Configuring WCCP
Using the FortiOS 4.0 customizeable GUI feature you can add a WCCP widget to the
web-based manager and use this widget to add WCCP entries to the FortiGate
configuration.
Configure settings for Web Cache Communication Protocol (WCCP) version 2 to optimize
web traffic, thus reducing transmission costs and downloading time.
When a web client (on a computer) makes a request for web content, WCCP allows the
routers on the local network to redirect the web content requests to the appropriate web
cache server on the local network. If the web cache server contains the information in the
web content request, the web cache server sends the content directly to the local client. If
the web cache does not contain the requested information, the web cache server will
download the HTTP information, cache it, and send it to the local client. The local client is
not aware this caching is taking place.
For web caching to function, local network traffic must be directed through one or more
routers that are able to forward the HTTP requests to the web cache servers. The
FortiGate unit can act as a WCCP version 2 enabled router and direct web content
requests to configured web cache servers.
The web caching will speed up downloads by not accessing remote websites for each
HTTP request. It will also reduce the amount of data a company network sends and
receives over the Internet, reducing costs.
To configure WCCP from the web-based manager, go to System > Admin > Admin Profile
and create a custom menu layout in your administrative profile and add the WCCP page. It
is in the Additional content category. See “Configuring an admin profile” on page 284.

FortiGate Version 4.0 MR1 Administration Guide


212 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Network Routing table (Transparent Mode)

Figure 89: Adding WCCP entries

Service ID Enter an ID number to identify the WCCP service.


Router IP Enter an IP address known to all cache servers. This IP address identifies a
FortiGate interface IP address to the cache servers. If all cache servers
connect to the same FortiGate interface, then Router IP can be 0.0.0.0, and
the FortiGate unit uses the IP address of that interface as the Router IP.
If the cache servers can connect to different FortiGate interfaces, you must
set Router IP to a single IP address, and this IP address must be added to
the configuration of the cache servers.
Group Address The IP multicast address used by the cache servers. Enter 0.0.0.0 to have
the FortiGate unit ignore multicast WCCP traffic. Otherwise, Group Address
must be from 224.0.0.0 to 239.255.255.255.
Server List The IP addresses of the web cache servers.
Forward Method Specify how the FortiGate unit forwards traffic to cache servers. You can
select GRE (the default), L2, or Any. If Forward Method is Any the cache
server determines the forward method.
Return Method Specify how a cache server declines a redirected packet and returns it to the
FortiGate unit. You can select GRE (the default), L2, or Any. If Return
Method is Any the cache server determines the return method.
Assignment Method Specify which assignment method the FortiGate unit prefers. You can select
Hash (the default), Mask, or Any. If Assignment Method is Any the cache
server determines the assignment method.
Authentication Select to use MD5 authentication for the WCCP configuration.
Password Enter an authentication password. Maximum length is 8 characters.

Routing table (Transparent Mode)


In NAT/Route mode the static routing table is located at System > Routing > Static, but in
Transparent Mode that static routing table is located at System > Network > Routing
Table.

Adding a static route in Transparent Mode


1 Ensure your FortiGate unit is in Transparent mode. For more details see “Changing
operation mode” on page 263.
2 Go to System > Network > Routing Table.
3 Select Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 213
http://docs.fortinet.com/ • Feedback
Routing table (Transparent Mode) System Network

Figure 90: Static routing table - Transparent Mode

Create New Add a new static route.


# Position of the route in the routing table.
IP The destination IP address for the route.
Mask The netmask for the route.
Gateway The IP address of the next hop router to which the route directs traffic.
Distance The administration distance or relative preferability of the route. An
administration distance of 1 is most preferred.
Delete icon Remove a route.
View/edit icon Edit or view a route.
Move To icon Change the position of a route in the list.

Transparent mode route settings


Configuring a static route in Transparent mode
1 Go to System > Network > Routing Table.
2 Select Create New.
You can also select the Edit icon of an existing route to modify it.
3 Enter the Destination IP and netmask.
4 Enter the Gateway IP address.
5 Enter the administrative distance.
6 Select OK.

Figure 91: Transparent mode route settings

Destination IP /Mask Enter the destination IP address and netmask for the route.
To create a default route, set the IP and netmask to 0.0.0.0.
Gateway Enter the IP address of the next hop router to which the route directs traffic.
For an Internet connection, the next hop routing gateway routes traffic to
the Internet.
Distance The administration distance or relative preferability of the route. An
administration distance of 1 is most preferred.

FortiGate Version 4.0 MR1 Administration Guide


214 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless FortiWiFi wireless interfaces

System Wireless
This section describes how to configure the Wireless LAN interfaces on FortiWiFi units.
The majority of this section is applicable to all FortiWiFi units.
If you enable virtual domains (VDOMs) on the FortiGate unit, MAC filters and wireless
monitor are configured separately for each virtual domain. System wireless settings are
configured globally. For details, see “Using virtual domains” on page 159.
This section describes:
• FortiWiFi wireless interfaces
• Channel assignments
• Wireless settings
• Wireless MAC Filter
• Wireless Monitor
• Rogue AP detection

FortiWiFi wireless interfaces


FortiWiFi units support up to four wireless interfaces and four different SSIDs. Each
wireless interface should have a different SSID and each wireless interface can have
different security settings. For details on adding wireless interfaces, see “Adding a
wireless interface” on page 219.
You can configure the FortiWiFi unit to:
• Provide an access point that clients with wireless network cards can connect to. This is
called Access Point mode, which is the default mode. All FortiWiFi units can have up to
4 wireless interfaces.
or
• Connect the FortiWiFi unit to another wireless network. This is called Client mode. A
FortiWiFi unit operating in client mode can also can only have one wireless interface.
or
• Monitor access points within radio range. This is called Monitoring mode. You can
designate the detected access points as Accepted or Rogue for tracking purposes. No
access point or client operation is possible in this mode. But, you can enable
monitoring as a background activity while the unit is in Access Point mode.
FortiWiFi units support the following wireless network standards:
• IEEE 802.11a (5-GHz Band)
• IEEE 802.11b (2.4-GHz Band)
• IEEE 802.11g (2.4-GHz Band)
• WEP64 and WEP128 Wired Equivalent Privacy (WEP)
• Wi-Fi Protected Access (WPA), WPA2 and WPA2 Auto using pre-shared keys or
RADIUS servers

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 215
http://docs.fortinet.com/ • Feedback
Channel assignments System Wireless

Channel assignments
Depending on the wireless protocol selected, you have specific channels available to you,
depending on what region of the world you are in. Set the channel for the wireless network
by going to System > Wireless > Settings. For more information see “Wireless settings” on
page 218.
The following tables list the channel assignments for wireless networks for each supported
wireless protocol.

IEEE 802.11a channel numbers


Table 11 lists IEEE 802.11a channels supported for FortiWiFi products that support the
IEEE 802.11a wireless standard. 802.11a is only available on FortiWiFi-60B units.
All channels are restricted to indoor usage except in the Americas, where both indoor and
outdoor use is permitted on channels 52 through 64 in the United States.
Table 11: IEEE 802.11a (5-GHz Band) channel numbers

Channel Frequency Regulatory Areas


number (MHz) Americas Europe Taiwan Singapore Japan
34 5170 • •
36 5180 • • •
38 5190 • •
40 5200 • • •
42 5210 • •
44 5220 • • •
46 5230 • •
48 5240 • • •
52 5260 • • •
56 5280 • • •
60 5300 • • •
64 5320 • • •
149 5745
153 5765
157 5785
161 5805

IEEE 802.11b channel numbers


Table 12 lists IEEE 802.11b channels. All FortiWiFi units support 802.11b.
Mexico is included in the Americas regulatory domain. Channels 1 through 8 are for indoor
use only. Channels 9 through 11 can be used indoors and outdoors. You must make sure
that the channel number complies with the regulatory standards of Mexico.

FortiGate Version 4.0 MR1 Administration Guide


216 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless Channel assignments

Table 12: IEEE 802.11b (2.4-Ghz Band) channel numbers

Channel Frequency Regulatory Areas


number (MHz) Americas EMEA Israel Japan
1 2412 • • •
2 2417 • • •
3 2422 • • •
4 2427 • • • •
5 2432 • • • •
6 2437 • • • •
7 2442 • • • •
8 2447 • • • •
9 2452 • • • •
10 2457 • • • •
11 2462 • • •
12 2467 • •
13 2472 • •
14 2484 •

IEEE 802.11g channel numbers


Table 13 lists IEEE 802.11b channels. All FortiWiFi products support 802.11g.
Table 13: IEEE 802.11g (2.4-GHz Band) channel numbers

Channel Frequency Regulatory Areas


number (MHz) Americas EMEA Israel Japan
CCK ODFM CCK ODFM CCK ODFM CCK ODFM
1 2412 • • • • • •
2 2417 • • • • • •
3 2422 • • • • • •
4 2427 • • • • • •
5 2432 • • • • • • • •
6 2437 • • • • • • • •
7 2442 • • • • • • • •
8 2447 • • • • • • • •
9 2452 • • • • • •
10 2457 • • • • • •
11 2462 • • • • • •
12 2467 • • • •
13 2472 • • • •
14 2484 •

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 217
http://docs.fortinet.com/ • Feedback
Wireless settings System Wireless

Wireless settings
To configure the wireless settings, go to System > Wireless > Settings.
By default the FortiWiFi unit includes one wireless interface, called wlan. If you are
operating your FortiWiFi unit in access point mode, you can add up to three virtual
wireless interfaces. All wireless interfaces use the same wireless parameters. That is, you
configure the wireless settings once, and all wireless interfaces use those settings. For
details on adding more wireless interfaces, see “Adding a wireless interface” on page 219.
When operating the FortiWiFi unit in Client mode, radio settings are not configurable.

Figure 92: FortiWiFi wireless parameters - Access Point mode

Figure 93: FortiWiFi wireless parameters - Client mode

Figure 94: FortiWiFi wireless parameters - Monitoring mode

FortiGate Version 4.0 MR1 Administration Guide


218 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless Wireless settings

Operation Mode Select Change to switch operation modes.


Access Point — The FortiWiFi unit acts as an access point for wireless users
to connect to send and receive information over a wireless network. It enables
multiple wireless network users access to the network without the need to
connect to it physically. The FortiWiFi unit can connect to the internal network
and act as a firewall to the Internet.
Client — The FortiWiFi unit is set to receive transmissions from another
access point. This enables you to connect remote users to an existing network
using wireless protocols.
Monitoring — Scan for other access points. These are listed in the Rogue AP
list. See “Rogue AP detection” on page 224.
Note: You cannot switch to Client mode or Monitoring mode if you have added
virtual wireless interfaces. For these modes, there must be only one wireless
interface, wlan.
Radio settings — Access Point mode only
Band Select the wireless frequency band. Be aware what wireless cards or devices
your users have as it may limit their use of the wireless network. For example,
if you configure the FortiWiFi unit for 802.11g and users have 802.11b devices,
they may not be able to use the wireless network.
Geography Select your country or region. This determines which channels are available.
See “Channel assignments” on page 216 for channel information.
Channel Select a channel for your wireless network or select Auto. The channels that
you can select depend on the Geography setting. See “Channel assignments”
on page 216 for channel information.
Tx Power Set the transmitter power level. The higher the number, the larger the area the
FortiWiFi will broadcast. If you want to keep the wireless signal to a small area,
enter a smaller number.
Beacon Interval Set the interval between beacon packets. Access Points broadcast Beacons
or Traffic Indication Messages (TIM) to synchronize wireless networks.
A higher value decreases the number of beacons sent, however it may delay
some wireless clients from connecting if it misses a beacon packet.
Decreasing the value will increase the number of beacons sent, while this will
make it quicker to find and connect to the wireless network, it requires more
overhead, slowing throughput.
Background Perform the Monitoring mode scanning function while the unit is in Access
Rogue AP Scan Point mode. Scanning occurs while the access point is idle. The scan covers
all wireless channels. Background scanning can reduce performance if the
access point is busy. See “Rogue AP detection” on page 224.
Wireless interface list — Access Point and Client modes
Interface The name of the wireless interface. To modify wireless interface settings,
select the interface name. To add more wireless interfaces in Access Point
mode, see “Adding a wireless interface” on page 219.
MAC Address The MAC address of the Wireless interface.
SSID The wireless service set identifier (SSID) or network name for the wireless
interface. To communicate, an Access Point and its clients must use the same
SSID.
SSID Broadcast Green checkmark icon indicates that the wireless interface broadcasts its
SSID. Broadcasting the SSID makes it possible for clients to connect to your
wireless network without first knowing the SSID.
This column is visible only in Access Point mode.
Security Mode The wireless interface security mode: WEP64, WEP128, WPA, WPA2,
WPA2 Auto or None.

Adding a wireless interface


You can add up to three virtual wireless interfaces to your access point. These additional
interfaces share the same wireless parameters configured for the WLAN interface for
Band, Geography, Channel, Tx Power, and Beacon Interval. Ensure each wireless
interface has a unique SSID.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 219
http://docs.fortinet.com/ • Feedback
Wireless settings System Wireless

Note: You cannot add additional wireless interfaces when the FortiWiFi unit is in Client
mode or Monitoring mode.

To add a wireless interface


1 Go to System > Network > Interface.
2 Select Create New.
3 Complete the following:

Name Enter a name for the wireless interface. The name cannot be the same
as an existing interface, zone or VDOM.
Type Select Wireless.
Address Mode The wireless interface can only be set as a manual address. Enter a
valid IP address and netmask.
If the FortiWiFi is running in Transparent mode, this field does not
appear. The interface will be on the same subnet as the other interfaces.
Administrative Set the administrative access for the interface.
Access

4 In the Wireless Settings section, complete the following and select OK:

Figure 95: Wireless interface settings (WEP)

Figure 96: Wireless interface settings (WAP)

SSID Enter the wireless service set identifier (SSID) or network name for this
wireless interface. Users who want to use the wireless network must configure
their computers with this network name.
SSID Broadcast Select to broadcast the SSID. Broadcasting the SSID enables clients to
connect to your wireless network without first knowing the SSID. For better
security, do not broadcast the SSID. If the interface is not broadcast, there is
less chance of an unwanted user connecting to your wireless network. If you
choose not to broadcast the SSID, you need to inform users of the SSID so
they can configure their wireless devices.

FortiGate Version 4.0 MR1 Administration Guide


220 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless Wireless MAC Filter

Security mode Select the security mode for the wireless interface. Wireless users must use
the same security mode to be able to connect to this wireless interface.
None — has no security. Any wireless user can connect to the wireless
network.
WEP64 — 64-bit web equivalent privacy (WEP). To use WEP64 you must
enter a Key containing 10 hexadecimal digits (0-9 a-f) and inform wireless
users of the key.
WEP128 — 128-bit WEP. To use WEP128 you must enter a Key containing 26
hexadecimal digits (0-9 a-f) and inform wireless users of the key.
WPA — Wi-Fi protected access (WPA) security. To use WPA you must select
a data encryption method. You must also enter a pre-shared key containing at
least eight characters or select a RADIUS server. If you select a RADIUS
server the wireless clients must have accounts on the RADIUS server.
WPA2 — WPA with more security features. To use WPA2 you must select a
data encryption method and enter a pre-shared key containing at least eight
characters or select a RADIUS server. If you select a RADIUS server the
wireless clients must have accounts on the RADIUS server.
WPA2 Auto — the same security features as WPA2, but also accepts wireless
clients using WPA security. To use WPA2 Auto you must select a data
encryption method You must also enter a pre-shared key containing at least 8
characters or select a RADIUS server. If you select a RADIUS server the
wireless clients must have accounts on the RADIUS server.
Key Enter the security key. This field appears when selecting WEP64 or WEP128
security.
Data Encryption Select a data encryption method to be used by WPA, WPA2, or WPA Auto.
Select TKIP to use the Temporal Key Integrity Protocol (TKIP). Select AES to
use Advanced Encryption Standard (AES) encryption. AES is considered
more secure that TKIP. Some implementations of WPA may not support AES.
Pre-shared Key Enter the pre-shared key. This field appears when selecting WPA, WPA2, or
WPA2 Auto security.
RADIUS Server Select to use a RADIUS server when selecting WPA or WPA2 security. You
can use WPA or WPA2 Radius security to integrate your wireless network
configuration with a RADIUS or Windows AD server. Select a RADIUS server
name from the list. You must configure the Radius server by going to User >
RADIUS. For more information, see “RADIUS” on page 655.
RTS Threshold Set the Request to Send (RTS) threshold.
The RTS threshold is the maximum size, in bytes, of a packet that the
FortiWiFi will accept without sending RTS/CTS packets to the sending
wireless device. In some cases, larger packets being sent may cause
collisions, slowing data transmissions. By changing this value from the default
of 2346, you can configure the FortiWiFi unit to, in effect, have the sending
wireless device ask for clearance before sending larger transmissions. There
can still be risk of smaller packet collisions, however this is less likely.
A setting of 2346 bytes effectively disables this option.
Fragmentation Set the maximum size of a data packet before it is broken into smaller
Threshold packets, reducing the chance of packet collisions. If the packet is larger than
the threshold, the FortiWiFi unit will fragment the transmission. If the packet
size less than the threshold, the FortiWiFi unit will not fragment the
transmission.
A setting of 2346 bytes effectively disables this option.

Wireless MAC Filter


To improve the security of your wireless network, you can enable MAC address filtering on
the FortiWiFi unit. By enabling MAC address filtering, you define the wireless devices that
can access the network based on their system MAC address. When a user attempts to
access the wireless network, the FortiWiFi unit checks the MAC address of the user to the
list you created. If the MAC address is on the approved list, the user gains access to the
network. If the user is not in the list, the user is rejected.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 221
http://docs.fortinet.com/ • Feedback
Wireless MAC Filter System Wireless

Alternatively, you can create a deny list. Similar to the allow list, you can configure the
wireless interface to allow all connections except those in the MAC address list.
Using MAC address filtering makes it more difficult for a hacker using random MAC
addresses or spoofing a MAC address to gain access to your network. Note you can
configure one list per WLAN interface.
To allow or deny wireless access to wireless clients based on the MAC address of the
client wireless cards, go to System > Wireless > MAC Filter.

Managing the MAC Filter list


The MAC Filter list enables you to view the MAC addresses you have added to a wireless
interface and their status; either allow or deny. It also enables you to edit and manage
MAC Filter lists.

Figure 97: Wireless MAC filter list

Interface The name of the wireless interface.


MAC address The list of MAC addresses in the MAC filter list for the wireless interface.
List Access Allow or deny access to the listed MAC addresses for the wireless interface.
Enable Select to enable MAC filtering for the wireless interface.
Edit icon Edit the MAC address list for an interface.

To edit a MAC filter list


1 Go to System > Wireless > MAC Filter.
2 Select Edit for the wireless interface.

Figure 98: Wireless interface MAC filter

3 Complete the following and select OK:

FortiGate Version 4.0 MR1 Administration Guide


222 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless Wireless Monitor

List Access Select to allow or deny the addresses in the MAC Address list from
accessing the wireless network.
MAC Address Enter the MAC address to add to the list.
Add Add the entered MAC address to the list.
Remove Select one or more MAC addresses in the list and select Remove to
deleted the MAC addresses from the list.

Wireless Monitor
Go to System > Wireless > Monitor to view information about your wireless network. In
Access Point mode, you can see who is connected to your wireless LAN. In Client mode,
you can see which access points are within radio range.

Figure 99: Wireless monitor - AP mode

Figure 100: Wireless monitor - Client mode

Statistics Statistical information about wireless performance for each


wireless interface.
AP Name / Name The name of the wireless interface.
Frequency The frequency that the wireless interface is operating with.
Should be around 5-GHz for 802.11a interfaces and around 2.4-
GHz for 802.11b and 802.11g networks.
Signal Strength (dBm) The strength of the signal from the client.
Noise (dBm) The received noise level.
S/N (dB) The signal-to-noise ratio in deciBels calculated from signal
strength and noise level.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 223
http://docs.fortinet.com/ • Feedback
Rogue AP detection System Wireless

Rx (KBytes) The amount of data in kilobytes received this session.


Tx (KBytes) The amount of data in kilobytes sent this session.
Clients list (AP mode) Real-time details about the client wireless devices that can
reach this FortiWiFi unit access point. Only devices on the
same radio band are listed.
MAC Address The MAC address of the connected wireless client.
IP Address The IP address assigned to the connected wireless client.
AP Name The name of the wireless interface that the client is connected
to.
Neighbor AP list (Client mode) Real-time details about the access points that the client can
receive.
MAC Address The MAC address of the connected wireless client.
SSID The wireless service set identifier (SSID) that this access point
broadcasts.
Channel The wireless radio channel that the access point uses.
Rate (M) The data rate of the access point in Mbits/s.
RSSI The received signal strength indication, a relative value
between 0 (minimum) and 255 (maximum).

Rogue AP detection
On models that support Rogue Access Point Detection, you can select Monitoring mode to
scan for available wireless access points. You can also enable scanning in the
background while the unit is in Access Point mode.

To enable the monitoring mode


1 Go to System > Wireless > Settings.
2 Select Change beside the current operation mode.
3 Select Monitoring and then select OK.
4 Select OK to confirm the mode change.
5 Select Apply.

To enable background scanning


1 While in Access Point mode, go to System > Wireless > Settings.
2 Enable Background Rogue AP Scan and then select Apply.

Viewing wireless access points


Go to System > Wireless > Rogue AP to view detected access points. This is available in
Monitoring mode, or in Access Point mode with Background Rogue AP Scan enabled.
Access points are listed in the Unknown Access Points list until you mark them as either
Accepted or Rogue access points. This designation helps you to track access points. It
does not affect anyone’s ability to use these access points.

FortiGate Version 4.0 MR1 Administration Guide


224 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Wireless Rogue AP detection

Figure 101: Rogue Access Point list

Refresh Interval Set time between information updates. none means no updates.
Refresh Updates displayed information now.
Inactive Access Points Select which inactive access points to show: all, none, those detected
less than one hour ago, or those detected less than one day ago.
Online A green checkmark indicates an active access point. A grey X indicates
that the access point is inactive.
SSID The wireless service set identifier (SSID) or network name for the
wireless interface.
MAC Address The MAC address of the Wireless interface.
Signal Strength /Noise The signal strength and noise level.
Channel The wireless radio channel that the access point uses.
Rate The data rate of the access point.
First Seen The data and time when the FortiWifi unit first detected the access point.
Last Seen The data and time when the FortiWifi unit last detected the access point.
Mark as ‘Accepted AP’ Select the icon to move this entry to the Accepted Access Points list.
Mark as ‘Rogue AP’ Select the icon to move this entry to the Rogue Access Points list.
Forget AP Return item to Unknown Access Points list from Accepted Access Points
list or Rogue Access Points list.

You can also enter information about accepted and rogue APs in the CLI without having to
detect them first. See the system wireless ap-status command in the FortiGate
CLI Reference.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 225
http://docs.fortinet.com/ • Feedback
Rogue AP detection System Wireless

FortiGate Version 4.0 MR1 Administration Guide


226 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System DHCP FortiGate DHCP servers and relays

System DHCP
This section describes how to use DHCP to provide convenient automatic network
configuration for your clients.
DHCP is not available in Transparent mode. DHCP requests are passed through the
FortiGate unit when it is in Transparent mode.
If you enable virtual domains (VDOMs) on the FortiGate unit, DHCP is configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.
This section describes:
• FortiGate DHCP servers and relays
• Configuring DHCP services
• Viewing address leases

FortiGate DHCP servers and relays


The DHCP protocol enables hosts to automatically obtain an IP address from a DHCP
server. Optionally, they can also obtain default gateway and DNS server settings. A
FortiGate interface or VLAN subinterface can provide the following DHCP services:
• Basic DHCP servers for non-IPSec IP networks
• IPSec DHCP servers for IPSec (VPN) connections
• DHCP relay for regular Ethernet or IPSec (VPN) connections
An interface cannot provide both a server and a relay for connections of the same type
(regular or IPSec).

Note: You can configure a Regular DHCP server on an interface only if the interface has a
static IP address. You can configure an IPSec DHCP server on an interface that has either
a static or a dynamic IP address.

You can configure one or more DHCP servers on any FortiGate interface. A DHCP server
dynamically assigns IP addresses to hosts on the network connected to the interface. The
host computers must be configured to obtain their IP addresses using DHCP.
If an interface is connected to multiple networks via routers, you can add a DHCP server
for each network. The IP range of each DHCP server must match the network address
range. The routers must be configured for DHCP relay.
To configure a DHCP server, see “Configuring a DHCP server” on page 229.
You can configure a FortiGate interface as a DHCP relay. The interface forwards DHCP
requests from DHCP clients to an external DHCP server and returns the responses to the
DHCP clients. The DHCP server must have appropriate routing so that its response
packets to the DHCP clients arrive at the FortiGate unit.
To configure a DHCP relay see “Configuring an interface as a DHCP relay agent” on
page 229.
DHCP services can also be configured through the Command Line Interface (CLI). See
the FortiGate CLI Reference for more information.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 227
http://docs.fortinet.com/ • Feedback
Configuring DHCP services System DHCP

Configuring DHCP services


Go to System > DHCP > Service to configure DHCP services. On each FortiGate
interface, you can configure a DHCP relay or add DHCP servers as needed.
On FortiGate 50 and 60 series units, a DHCP server is configured, by default, on the
Internal interface, as follows:

IP Range 192.168.1.110 to 192.168.1.210


Netmask 255.255.255.0
Default gateway 192.168.1.99
Lease time 7 days
DNS Server 1 192.168.1.99

You can disable or change this default DHCP Server configuration.

Note: You can not configure DHCP in Transparent mode. In Transparent mode DHCP
requests pass through the FortiGate unit.

Note: An interface must have a static IP before you configure a DHCP server on it.

These settings are appropriate for the default Internal interface IP address of
192.168.1.99. If you change this address to a different network, you need to change the
DHCP server settings to match.

Figure 102: DHCP service list - FortiGate-200A shown

Edit

Delete

Add DHCP Server

Interface List of FortiGate interfaces. Expand each listed interface to view the Relay and
Servers.
Server Name/ Name of FortiGate DHCP server or IP address of DHCP server accessed by
Relay IP relay.
Type Type of DHCP relay or server: Regular or IPSec.
Enable Green check mark icon indicates that server or relay is enabled.
Add DHCP Server Select to configure and add a DHCP server for this interface.
icon

FortiGate Version 4.0 MR1 Administration Guide


228 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System DHCP Configuring DHCP services

Edit icon Select to edit the DHCP relay or server configuration.


Delete icon Select to delete the DHCP server.

Configuring an interface as a DHCP relay agent


Go to System > DHCP > Service and select an edit icon to view or modify the DHCP relay
configuration for an interface.

Figure 103: Edit DHCP relay settings for an interface

Interface Name The name of the interface.


DHCP Relay Agent Select to enable the DHCP relay agent on this interface.
Type Select the type of DHCP service required as either Regular or IPSEC.
DHCP Server IP Enter the IP address of the DHCP server that will answer DHCP requests from
computers on the network connected to the interface.

Configuring a DHCP server


The System > DHCP > Service screen gives you access to existing DHCP servers. It is
also where you configure new DHCP servers.

To Configure a DHCP server


1 Go to System > DHCP > Service.
2 Select blue arrow for the interface.
3 Select the Add DHCP Server icon to create a new DHCP server, or select the Edit icon
beside an existing DHCP server to change its settings.
4 Configure the DHCP server.
5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 229
http://docs.fortinet.com/ • Feedback
Configuring DHCP services System DHCP

Figure 104: DHCP Server options

Name Enter a name for the DHCP server.


Enable Enable the DHCP server.
Type Select Regular or IPSEC DHCP server.
You cannot configure a Regular DHCP server on an interface that has a
dynamic IP address.
IP Range Enter the start and end for the range of IP addresses that this DHCP server
assigns to DHCP clients.
These fields are greyed out when IP Assignment Mode is set to User-group
defined method.
Network Mask Enter the netmask of the addresses that the DHCP server assigns.
Default Gateway Enter the IP address of the default gateway that the DHCP server assigns to
DHCP clients.
Domain Enter the domain that the DHCP server assigns to DHCP clients.
Lease Time Select Unlimited for an unlimited lease time or enter the interval in days,
hours, and minutes after which a DHCP client must ask the DHCP server for
new settings. The lease time can range from 5 minutes to 100 days.
Advanced Select to configure advanced options. The remaining options in this table are
advanced options.

FortiGate Version 4.0 MR1 Administration Guide


230 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System DHCP Viewing address leases

IP Assignment Configure how the IP addresses for an IPSec DHCP server are assigned to
Mode Dialup IPSec VPN users. Select:
• Server IP Range - The IPSec DHCP server will assign the IP addresses
as specified in IP Range, and Exclude Ranges.
• User-group defined method - The IP addresses will be assigned by a user
group used to authenticate the user. The user group is used to
authenticate XAUTH users. See “Dynamically assigning VPN client IP
addresses from a user group” on page 673.
When User-group defined method is selected, the IP Range fields are greyed
out, and the Exclude Ranges table and controls are not visible.
DNS Server 1 Enter the IP addresses of up to 3 DNS servers that the DHCP server assigns
DNS Server 2 to DHCP clients.
DNS Server 3
WINS Server 1 Add the IP addresses of one or two WINS servers that the DHCP server
WINS Server 2 assigns to DHCP clients.
Option 1 Enter up to three custom DHCP options that can be sent by the DHCP
Option 2 server. Code is the DHCP option code in the range 1 to 255. Option is an
Option 3 even number of hexadecimal characters and is not required for some option
codes. For detailed information about DHCP options, see RFC 2132, DHCP
Options and BOOTP Vendor Extensions.
Exclude Ranges
Add Add an range of IP addresses to exclude.
You can add up to 16 exclude ranges of IP addresses that the DHCP server
cannot assign to DHCP clients. No range can exceed 65536 IP addresses.
Starting IP Enter the first IP address of the exclude range.
End IP Enter the last IP address of the exclude range.
Delete icon Delete the exclude range.

Viewing address leases


Go to System > DHCP > Address Leases to view the IP addresses that the DHCP servers
have assigned and the corresponding client MAC addresses.

Figure 105: Address leases list

Interface Select interface for which to list leases.


Refresh Select Refresh to update Address leases list.
IP The assigned IP address.
MAC The MAC address of the device to which the IP address is assigned.
Expire Expiry date and time of the DHCP lease.

Reserving IP addresses for specific clients


You can reserve an IP address for a specific client identified by the client device MAC
address and the connection type, regular Ethernet or IPSec. The DHCP server always
assigns the reserved address to that client. You can assign up to 200 IP addresses as
reserved. For more information see the FortiGate Maximum Values Matrix.
Use the CLI config system dhcp reserved-address command. For more
information, see the FortiGateCLI Reference.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 231
http://docs.fortinet.com/ • Feedback
Viewing address leases System DHCP

FortiGate Version 4.0 MR1 Administration Guide


232 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config HA

System Config
This section describes the configuration of several non-network features, such as HA,
SNMP, custom replacement messages, and Operation mode.
If you enable virtual domains (VDOMs) on the FortiGate unit, HA, SNMP, and replacement
messages are configured globally for the entire FortiGate unit. Changing operation mode
is configured for each individual VDOM. For details, see “Using virtual domains” on
page 159.
This section describes:
• HA
• SNMP
• Replacement messages
• Operation mode and VDOM management access

HA
FortiGate high availability (HA) provides a solution for two key requirements of critical
enterprise networking components: enhanced reliability and increased performance. This
section contains a brief description of HA web-based manager configuration options, the
HA cluster members list, HA statistics, and disconnecting cluster members.
If you enable virtual domains (VDOMs) on the FortiGate unit, HA is configured globally for
the entire FortiGate unit. For details, see “Using virtual domains” on page 159.
For complete information about how to configure and operate FortiGate HA clusters see
the FortiGate HA Overview, the FortiGate HA Guide.
The following topics are included in this section:
• HA options
• Cluster members list
• Viewing HA statistics
• Changing subordinate unit host name and device priority
• Disconnecting a cluster unit from a cluster

HA options
Configure HA options so that a FortiGate unit can join a cluster or to change the
configuration of an operating cluster or cluster member.
To configure HA options so that a FortiGate unit can join an HA cluster, go to System >
Config > HA.

Note: FortiGate HA is not compatible with PPP protocols such as PPPoE. FortiGate HA is
also not compatible with DHCP. If one or more FortiGate unit interfaces is dynamically
configured using DHCP or PPPoE you cannot switch to operate in HA mode. Also, you
cannot switch to operate in HA mode if one or more FortiGate unit interfaces is configured
as a PPTP or L2TP client or if the FortiGate unit is configured for standalone session
synchronization.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 233
http://docs.fortinet.com/ • Feedback
HA System Config

If HA is already enabled, go to System > Config > HA to display the cluster members list.
Select Edit for the FortiGate unit with Role of master (also called the primary unit). When
you edit the HA configuration of the primary unit, all changes are synchronized to the other
cluster units.

Figure 106: FortiGate-3810A unit HA configuration

You can configure HA options for a FortiGate unit with virtual domains (VDOMs) enabled
by logging into the web-based manager as the global admin administrator and then going
to System > Config > HA.

Note: If your FortiGate cluster uses virtual domains, you are configuring HA virtual
clustering. Most virtual cluster HA options are the same as normal HA options. However,
virtual clusters include VDOM partitioning options. Other differences between configuration
options for regular HA and for virtual clustering HA are described below and in the
FortiGate HA Overview and the FortiGate HA Guide.

FortiGate Version 4.0 MR1 Administration Guide


234 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config HA

Figure 107: FortiGate-5001SX HA virtual cluster configuration

Mode Select an HA mode for the cluster or return the FortiGate units in the cluster to
standalone mode. When configuring a cluster, you must set all members of the
HA cluster to the same HA mode. You can select Standalone (to disable HA),
Active-Passive, or Active-Active. If virtual domains are enabled you can select
Active-Passive or Standalone.
Device Priority Optionally set the device priority of the cluster unit. Each cluster unit can have a
different device priority. During HA negotiation, the unit with the highest device
priority usually becomes the primary unit.
In a virtual cluster configuration, each cluster unit can have two device priorities,
one for each virtual cluster. During HA negotiation, the unit with the highest
device priority in a virtual cluster becomes the primary unit for that virtual cluster.
Changes to the device priority are not synchronized. You can accept the default
device priority when first configuring a cluster. When the cluster is operating you
can change the device priority for different cluster units as required.
Group Name Enter a name to identify the cluster. The maximum length of the group name is 32
characters. The group name must be the same for all cluster units before the
cluster units can form a cluster. After a cluster is operating, you can change the
group name. The group name change is synchronized to all cluster units.
The default group name is FGT-HA. You can accept the default group name
when first configuring a cluster. When the cluster is operating you can change the
group name, if required. Two clusters on the same network cannot have the
same group name.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 235
http://docs.fortinet.com/ • Feedback
HA System Config

Password Enter a password to identify the cluster. The maximum password length is 15
characters. The password must be the same for all cluster units before the cluster
units can form a cluster.
The default is no password. You can accept the default password when first
configuring a cluster. When the cluster is operating, you can add a password, if
required. Two clusters on the same network must have different passwords.
Enable Session Select to enable session pickup so that if the primary unit fails, all sessions are
pickup picked up by the cluster unit that becomes the new primary unit.
Session pickup is disabled by default. You can accept the default setting for
session pickup and then chose to enable session pickup after the cluster is
operating.
Port Monitor Select to enable or disable monitoring FortiGate interfaces to verify that the
monitored interfaces are functioning properly and connected to their networks.
If a monitored interface fails or is disconnected from its network, the interface
leaves the cluster and a link failover occurs. The link failover causes the cluster to
reroute the traffic being processed by that interface to the same interface of
another cluster unit that still has a connection to the network. This other cluster
unit becomes the new primary unit.
Port monitoring (also called interface monitoring) is disabled by default. Leave
port monitoring disabled until the cluster is operating and then only enable port
monitoring for connected interfaces.
You can monitor up to 16 interfaces. This limit only applies to FortiGate units with
more than 16 physical interfaces.
Heartbeat Select to enable or disable HA heartbeat communication for each interface in the
Interface cluster and set the heartbeat interface priority. The heartbeat interface with the
highest priority processes all heartbeat traffic. If two or more heartbeat interfaces
have the same priority, the heartbeat interface with the lowest hash map order
value processes all heartbeat traffic. The web-based manager lists interfaces in
alphanumeric order:
• port1
• port2 through 9
• port10
Hash map order sorts interfaces in the following order:
• port1
• port10
• port2 through port9
The default heartbeat interface configuration is different for each FortiGate unit.
This default configuration usually sets the priority of two heartbeat interfaces to
50. You can accept the default heartbeat interface configuration if you connect
one or both of the default heartbeat interfaces together.
The heartbeat interface priority range is 0 to 512. The default priority when you
select a new heartbeat interface is 0.
You must select at least one heartbeat interface. If heartbeat communication is
interrupted, the cluster stops processing traffic. For more information about
configuring heartbeat interfaces, see the FortiGate HA Overview.
You can select up to 8 heartbeat interfaces. This limit only applies to FortiGate
units with more than 8 physical interfaces.
VDOM If you are configuring virtual clustering, you can set the virtual domains to be in
partitioning virtual cluster 1 and the virtual domains to be in virtual cluster 2. The root virtual
domain must always be in virtual cluster 1. For more information about
configuring VDOM partitioning, see the FortiGate HA Overview.

Cluster members list


You can display the cluster members list to view the status of an operating cluster and the
status of the FortiGate units in the cluster. The cluster members list shows the FortiGate
units in the cluster and for each FortiGate unit shows interface connections, the cluster
unit and the device priority of the cluster unit. From the cluster members list you can
disconnect a unit from the cluster, edit the HA configuration of primary unit, change the
device priority and host name of subordinate units, and download a debug log for any
cluster unit. You can also view HA statistics for the cluster.

FortiGate Version 4.0 MR1 Administration Guide


236 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config HA

To display the cluster members list, log into an operating cluster and go to System >
Config > HA.

Figure 108: Example FortiGate-5001SX cluster members list

Download Debug Log


Up and Down Edit
Arrows Disconnect from Cluster

If virtual domains are enabled, you can display the cluster members list to view the status
of the operating virtual clusters. The virtual cluster members list shows the status of both
virtual clusters including the virtual domains added to each virtual cluster.
To display the virtual cluster members list for an operating cluster log in as the global
admin administrator and go to System > Config > HA.

Figure 109: Example FortiGate-5001SX virtual cluster members list


Download Debug Log
Up and Down Edit
Arrows Disconnect from Cluster

View HA Statistics Displays the serial number, status, and monitor information for each cluster
unit. See “Viewing HA statistics” on page 238.
Up and down arrows Changes the order of cluster members in the list. The operation of the
cluster or of the units in the cluster are not affected. All that changes is the
order of the units on the cluster members list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 237
http://docs.fortinet.com/ • Feedback
HA System Config

Cluster member Illustrations of the front panels of the cluster units. If the network jack for an
interface is shaded green, the interface is connected. Pause the mouse
pointer over each illustration to view the cluster unit host name, serial
number, how long the unit has been operating (up time), and the interfaces
that are configured for port monitoring.
Hostname The host name of the FortiGate unit. The default host name of the
FortiGate unit is the FortiGate unit serial number.
• To change the primary unit host name, go to System > Status and
select Change beside the current host name.
• To change a subordinate unit host name, from the cluster members list
select the Edit icon for a subordinate unit.
Role The status or role of the cluster unit in the cluster.
• Role is MASTER for the primary (or master) unit
• Role is SLAVE for all subordinate (or backup) cluster units
Priority The device priority of the cluster unit. Each cluster unit can have a different
device priority. During HA negotiation, the unit with the highest device
priority becomes the primary unit.
The device priority range is 0 to 255.
Disconnect from Select to disconnect a selected cluster unit from the cluster. See
cluster “Disconnecting a cluster unit from a cluster” on page 240.
Edit Select to change a cluster unit HA configuration.
• For a primary unit, select Edit to change the cluster HA configuration
(including the device priority) of the primary unit.
• For a primary unit in a virtual cluster, select Edit to change the virtual
cluster HA configuration; including the virtual cluster 1 and virtual
cluster 2 device priority of this cluster unit.
• For a subordinate unit, select Edit to change the subordinate unit host
name and device priority. See “Changing subordinate unit host name
and device priority” on page 239.
• For a subordinate unit in a virtual cluster, select Edit to change the
subordinate unit host name and the device priority of the subordinate
unit for the selected virtual cluster. See “Changing subordinate unit host
name and device priority” on page 239.
Download debug log Select to download an encrypted debug log to a file. You can send this
debug log file to Fortinet Technical Support (http://support.fortinet.com) to
help diagnose problems with the cluster or with individual cluster units.

Viewing HA statistics
From the cluster members list, you can select View HA Statistics to display the serial
number, status, and monitor information for each cluster unit. To view HA statistics, go to
System > Config > HA and select View HA Statistics.

FortiGate Version 4.0 MR1 Administration Guide


238 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config HA

Figure 110: Example HA statistics (active-passive cluster)

Refresh every Select to control how often the web-based manager updates the HA
statistics display.
Back to HA monitor Select to close the HA statistics list and return to the cluster members list.
Unit The host name and serial number of the cluster unit.
Status Indicates the status of each cluster unit. A green check mark indicates that
the cluster unit is operating normally. A red X indicates that the cluster unit
cannot communicate with the primary unit.
Up Time The time in days, hours, minutes, and seconds since the cluster unit was last
started.
Monitor Displays system status information for each cluster unit.
CPU Usage The current CPU status of each cluster unit. The web-based manager
displays CPU usage for core processes only. CPU usage for management
processes (for example, for HTTPS connections to the web-based manager)
is excluded.
Memory Usage The current memory status of each cluster unit. The web-based manager
displays memory usage for core processes only. Memory usage for
management processes (for example, for HTTPS connections to the
web-based manager) is excluded.
Active Sessions The number of communications sessions being processed by the cluster
unit.
Total Packets The number of packets that have been processed by the cluster unit since it
last started up.
Virus Detected The number of viruses detected by the cluster unit.
Network Utilization The total network bandwidth being used by all of the cluster unit interfaces.
Total Bytes The number of bytes that have been processed by the cluster unit since it
last started up.
Intrusion Detected The number of intrusions or attacks detected by Intrusion Protection running
on the cluster unit.

Changing subordinate unit host name and device priority


To change the host name and device priority of a subordinate unit in an operating cluster,
go to System > Config > HA to display the cluster members list. Select Edit for any slave
(subordinate) unit in the cluster members list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 239
http://docs.fortinet.com/ • Feedback
HA System Config

To change the host name and device priority of a subordinate unit in an operating cluster
with virtual domains enabled, log in as the global admin administrator and go to System >
Config > HA to display the cluster members list. Select Edit for any slave (subordinate)
unit in the cluster members list.
You can change the host name (Peer) and device priority (Priority) of this subordinate unit.
These changes only affect the configuration of the subordinate unit.

Figure 111: Changing the subordinate unit host name and device priority

Peer View and optionally change the subordinate unit host name.
Priority View and optionally change the subordinate unit device priority.
The device priority is not synchronized among cluster members. In a functioning cluster
you can change device priority to change the priority of any unit in the cluster. The next
time the cluster negotiates, the cluster unit with the highest device priority becomes the
primary unit.
The device priority range is 0 to 255. The default device priority is 128.

Disconnecting a cluster unit from a cluster


You can disconnect a cluster unit if you need to use the disconnected FortiGate unit for
another purpose, such as to act as a standalone firewall. You can go to System > Config >
HA and select a Disconnect from cluster icon to disconnect a cluster unit from a
functioning cluster without disrupting the operation of the cluster.

Figure 112: Disconnect a cluster member

Serial Number Displays the serial number of the cluster unit to be disconnected from the cluster.
Interface Select the interface that you want to configure. You also specify the IP address
and netmask for this interface. When the FortiGate unit is disconnected, all
management access options are enabled for this interface.
IP/Netmask Specify an IP address and netmask for the interface. You can use this IP address
to connect to this interface to configure the disconnected FortiGate unit.

FortiGate Version 4.0 MR1 Administration Guide


240 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config SNMP

SNMP
Simple Network Management Protocol (SNMP) allows you to monitor hardware on your
network. You can configure the hardware, such as the FortiGate SNMP agent, to report
system information and send traps (alarms or event messages) to SNMP managers. An
SNMP manager is a typically a computer running an application that can read the
incoming trap and event messages from the agent and send out SNMP queries to the
SNMP agents. Another name for an SNMP manager is a host. A FortiManager unit can
act as an SNMP manager, or host, to a FortiGate unit.
Using an SNMP manager, you can access SNMP traps and data from any FortiGate
interface or VLAN subinterface configured for SNMP management access.

Note: Part of configuring an SNMP manager is to list it as a host in a community on the


FortiGate unit it will be monitoring. Otherwise the SNMP monitor will not receive any traps
from that FortiGate unit, or be able to query it.

The FortiGate SNMP implementation is read-only. SNMP v1, v2c, and v3 compliant SNMP
managers have read-only access to FortiGate system information through queries and
can receive trap messages from the FortiGate unit. To monitor FortiGate system
information and receive FortiGate traps, you must first compile the proprietary Fortinet and
FortiGate Management Information Base (MIB) files. A MIB is a text file that describes a
list of SNMP data objects that are used by the SNMP manager. These MIBs provide the
information the SNMP manager needs to interpret the SNMP trap, event, and query
messages of the FortiGate unit SNMP agent.
The Fortinet implementation of SNMP includes support for most of RFC 2665 (Ethernet-
like MIB) and most of RFC 1213 (MIB II). For more information, see “Fortinet MIBs” on
page 244.
RFC support for SNMP v3 includes Architecture for SNMP Frameworks (RFC 3411), and
partial support of User-based Security Model (RFC 3414).
SNMP traps alert you to events that happen, such as an a log disk being full or a virus
being detected. For more information about SNMP traps, see “Fortinet and FortiGate
traps” on page 245.
SNMP fields contain information about your FortiGate unit. This information is useful to
monitor the condition of the unit, both on an ongoing basis and to provide more
information when a trap occurs. For more information about SNMP fields, see “Fortinet
and FortiGate MIB fields” on page 248.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 241
http://docs.fortinet.com/ • Feedback
SNMP System Config

Configuring SNMP
Go to System > Config > SNMP v1/v2c to configure the SNMP agent.

Figure 113: Configuring SNMP

SNMP Agent Enable the FortiGate SNMP agent.


Description Enter descriptive information about the FortiGate unit. The description can be
up to 35 characters long.
Location Enter the physical location of the FortiGate unit. The system location
description can be up to 35 characters long.
Contact Enter the contact information for the person responsible for this FortiGate
unit. The contact information can be up to 35 characters.
Apply Save changes made to the description, location, and contact information.
Create New Select Create New to add a new SNMP community.
See “Configuring an SNMP community” on page 242.
Communities The list of SNMP communities added to the FortiGate configuration. You can
add up to 3 communities.
Name The name of the SNMP community.
Queries The status of SNMP queries for each SNMP community. The query status
can be enabled or disabled.
Traps The status of SNMP traps for each SNMP community. The trap status can be
enabled or disabled.
Enable Select Enable to activate an SNMP community.
Delete icon Select Delete to remove an SNMP community.
Edit/View icon Select to view or modify an SNMP community.

Configuring an SNMP community


An SNMP community is a grouping of devices for network administration purposes. Within
that SNMP community, devices can communicate by sending and receiving traps and
other information. One device can belong to multiple communities, such as one
administrator terminal monitoring both a firewall SNMP community and a printer SNMP
community.
Add SNMP communities to your FortiGate unit so that SNMP managers can connect to
view system information and receive SNMP traps.
You can add up to three SNMP communities. Each community can have a different
configuration for SNMP queries and traps. Each community can be configured to monitor
the FortiGate unit for a different set of events. You can also add the IP addresses of up to
8 SNMP managers to each community.

FortiGate Version 4.0 MR1 Administration Guide


242 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config SNMP

Note: When the FortiGate unit is in virtual domain mode, SNMP traps can only be sent on
interfaces in the management virtual domain. Traps cannot be sent over other interfaces.

Figure 114: SNMP community options (part 1)

Figure 115: SNMP community options (part 2)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 243
http://docs.fortinet.com/ • Feedback
SNMP System Config

Community Name Enter a name to identify the SNMP community.


Hosts Enter the IP address and Identify the SNMP managers that can use the
settings in this SNMP community to monitor the FortiGate unit.
IP Address The IP address of an SNMP manager than can use the settings in this SNMP
community to monitor the FortiGate unit. You can also set the IP address to
0.0.0.0 to so that any SNMP manager can use this SNMP community.
Interface Optionally select the name of the interface that this SNMP manager uses to
connect to the FortiGate unit. You only have to select the interface if the
SNMP manager is not on the same subnet as the FortiGate unit. This can
occur if the SNMP manager is on the Internet or behind a router.
In virtual domain mode, the interface must belong to the management VDOM
to be able to pass SNMP traps.
Delete Select a Delete icon to remove an SNMP manager.
Add Add a blank line to the Hosts list. You can add up to 8 SNMP managers to a
single community.
Queries Enter the Port number (161 by default) that the SNMP managers in this
community use for SNMP v1 and SNMP v2c queries to receive configuration
information from the FortiGate unit. Select the Enable check box to activate
queries for each SNMP version.
Traps Enter the Local and Remote port numbers (port 162 for each by default) that
the FortiGate unit uses to send SNMP v1 and SNMP v2c traps to the SNMP
managers in this community. Select the Enable check box to activate traps for
each SNMP version.
SNMP Event Enable each SNMP event for which the FortiGate unit should send traps to the
SNMP managers in this community.
“CPU overusage” traps sensitivity is slightly reduced, by spreading values out
over 8 polling cycles. This prevents sharp spikes due to CPU intensive short-
term events such as changing a policy.
“Power Supply Failure” event trap is available only on some FortiGate models.
“AMC interfaces enter bypass mode” event trap is available only on FortiGate
models that support AMC modules.

To configure SNMP access (NAT/Route mode)


Before a remote SNMP manager can connect to the FortiGate agent, you must configure
one or more FortiGate interfaces to accept SNMP connections.
1 Go to System > Network > Interface.
2 Choose an interface that an SNMP manager connects to and select Edit.
3 In Administrative Access, select SNMP.
4 Select OK.

To configure SNMP access (Transparent mode)


1 Go to System > Config > Operation Mode.
2 Enter the IP address that you want to use for management access and the netmask in
the Management IP/Netmask field.
3 Select Apply.

Fortinet MIBs
The FortiGate SNMP agent supports Fortinet proprietary MIBs as well as standard RFC
1213 and RFC 2665 MIBs. RFC support includes support for the parts of RFC 2665
(Ethernet-like MIB) and the parts of RFC 1213 (MIB II) that apply to FortiGate unit
configuration.

FortiGate Version 4.0 MR1 Administration Guide


244 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config SNMP

There are two MIB files for FortiGate units - the Fortinet MIB, and the FortiGate MIB. The
Fortinet MIB contains traps, fields and information that is common to all Fortinet products.
The FortiGate MIB contains traps, fields and information that is specific to FortiGate units.
The Fortinet MIB and FortiGate MIB along with the two RFC MIBs are listed in tables in
this section. You can obtain these MIB files from Fortinet technical support. To be able to
communicate with the FortiGate SNMP agent, you must compile all of these MIBs into
your SNMP manager.
Your SNMP manager may already include standard and private MIBs in a compiled
database that is ready to use. You must add the Fortinet proprietary MIB to this database.
You need to obtain and compile the two MIBs for this release.
Table 14: Fortinet MIBs

MIB file name or RFC Description


FORTINET-CORE-MIB.mib The proprietary Fortinet MIB includes all system configuration
information and trap information that is common to all Fortinet
products.
Your SNMP manager requires this information to monitor
FortiGate unit configuration settings and receive traps from
the FortiGate SNMP agent. For more information, see
“Fortinet and FortiGate traps” on page 245 and “Fortinet and
FortiGate MIB fields” on page 248.
FORTINET-FORTIGATE-MIB.mib The proprietary FortiGate MIB includes all system
configuration information and trap information that is specific
to FortiGate units.
Your SNMP manager requires this information to monitor
FortiGate configuration settings and receive traps from the
FortiGate SNMP agent. FortiManager systems require this
MIB to monitor FortiGate units.
For more information, see “Fortinet and FortiGate traps” on
page 245 and “Fortinet and FortiGate MIB fields” on
page 248.
RFC-1213 (MIB II) The FortiGate SNMP agent supports MIB II groups with the
following exceptions.
• No support for the EGP group from MIB II (RFC 1213,
section 3.11 and 6.10).
• Protocol statistics returned for MIB II groups
(IP/ICMP/TCP/UDP/etc.) do not accurately capture all
FortiGate traffic activity. More accurate information can be
obtained from the information reported by the Fortinet
MIB.
RFC-2665 (Ethernet-like MIB) The FortiGate SNMP agent supports Ethernet-like MIB
information with the following exception.
No support for the dot3Tests and dot3Errors groups.

Fortinet and FortiGate traps


An SNMP manager can request information from the Fortinet device’s SNMP agent, or
that agent can send traps when an event occurs. Traps are a method used to inform the
SNMP manager that something has happened or changed on the Fortinet device.
Traps sent include the trap message as well as the FortiGate unit serial number
(fnSysSerial) and hostname (sysName). FortiManager related traps are only sent if a
FortiManager unit is configured to manage this FortiGate unit.
To receive Fortinet device SNMP traps, you must load and compile the FORTINET-
CORE-MIB into your SNMP manager.
The name of the table indicates if it is found in the Fortinet MIB or the FortiGate MIB. The
Trap Message column includes the message included with the trap as well as the SNMP
MIB field name to help locate the information about the trap.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 245
http://docs.fortinet.com/ • Feedback
SNMP System Config

Table 15: Generic FortiGate traps (OID1.3.6.1.4.1.12356.1.3.0)

Trap message Description


ColdStart Standard traps as described in RFC 1215.
WarmStart
LinkUp
LinkDown

Table 16: FortiGate system traps (OID1.3.6.1.4.1.12356.1.3.0)

Trap message Description


CPU usage high CPU usage exceeds 80%. This threshold can be set in the CLI using
(fnTrapCpuThreshold) config system global.
Memory low Memory usage exceeds 90%. This threshold can be set in the CLI
(fnTrapMemThreshold) using config system global.
Log disk too full Log disk usage has exceeded the configured threshold. Only
(fnTrapLogDiskThreshold) available on devices with log disks.
Temperature too high A temperature sensor on the device has exceeded its threshold. Not
(fnTrapTempHigh) all devices have thermal sensors. See manual for specifications.
Voltage outside acceptable Power levels have fluctuated outside of normal levels. Not all
range devices have voltage monitoring instrumentation.
(fnTrapVoltageOutOfRange)
Power supply failure Power supply failure detected. Not available on all models. Available
(fnTrapPowerSupplyFailure) on some devices which support redundant power supplies.
Interface IP change The IP address for an interface has changed.
(fnTrapIpChange) The trap message includes the name of the interface, the new IP
address and the serial number of the Fortinet unit. You can use this
trap to track interface IP address changes for interfaces with
dynamic IP addresses set using DHCP or PPPoE.
Diagnostic trap This trap is sent for diagnostic purposes.
(fnTrapTest) It has an OID index of.999.

Table 17: FortiGate VPN traps

Trap message Description


VPN tunnel is up An IPSec VPN tunnel has started.
(fgTrapVpnTunUp)
VPN tunnel down An IPSec VPN tunnel has shut down.
(fgTrapVpnTunDown)
Local gateway address Address of the local side of the VPN tunnel.
(fnVpnTrapLocalGateway) This information is associated with both of the VPN tunnel traps.
Remote gateway address Address of remote side of the VPN tunnel.
(fnVpnTrapRemoteGateway) This information is associated with both of the VPN tunnel traps.

Table 18: FortiGate IPS traps

Trap message Description


IPS Signature IPS signature detected.
(fgTrapIpsSignature)
IPS Anomaly IPS anomaly detected.
(fgTrapIpsAnomaly)
IPS Package Update The IPS signature database has been updated.
(fgTrapIpsPkgUpdate)
(fgIpsTrapSigId) ID of IPS signature identified in trap.

FortiGate Version 4.0 MR1 Administration Guide


246 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config SNMP

Table 18: FortiGate IPS traps

Trap message Description


(fgIpsTrapSrcIp) IP Address of the IPS signature trigger.
(fgIpsTrapSigMsg) Message associated with IPS event.
Table 19: FortiGate antivirus traps

Trap message Description


Virus detected The antivirus engine detected a virus in an infected file from an HTTP
(fgTrapAvVirus) or FTP download or from an email message.
Oversize file/email detected The antivirus scanner detected an oversized file.
(fgTrapAvOversize)
Filename block detected The antivirus scanner blocked a file that matched a known virus
(fgTrapAvPattern) pattern.
Fragmented file detected The antivirus scanner detected a fragmented file or attachment.
(fgTrapAvFragmented)
(fgTrapAvEnterConserve) The AV engine entered conservation mode due to low memory
conditions.
(fgTrapAvBypass) The AV scanner has been bypassed due to conservation mode.
(fgTrapAvOversizePass) An oversized file has been detected, but has been passed due to
configuration.
(fgTrapAvOversizeBlock) An oversized file has been detected, and has been blocked.
(fgAvTrapVirName) The virus name that triggered the event.

Table 20: FortiGate HA traps

Trap message Description


HA switch The specified cluster member has transitioned from a slave role to a
(fgTrapHaSwitch) master role.
HA Heartbeat Failure The heartbeat failure count has exceeded the configured threshold.
(fgTrapHaHBFail)
(fgTrapHaMemberDown) An HA member becomes unavailable to the cluster.
(fgTrapHaMemberUp) An HA member becomes available to the cluster.
(fgTrapHaStateChange) The trap sent when the HA cluster member changes its state.
.
(fgHaTrapMemberSerial) Serial number of an HA cluster member. Used to identify the origin of a
trap when a cluster is configured.

Table 21: FortiGate MIB FortiManager related traps

Trap message Description


(fgFmTrapDeployComplete) Indicates when deployment of a new configuration has been
completed.
Used for verification by FortiManager.
(fgFmTrapDeployInProgress) Indicates that a configuration change was not immediate and that
the change is currently in progress.
Used for verification by FortiManager.
(fgFmTrapConfChange) The FortiGate unit configuration has been changed by something
other than the managing FortiManager device.
(fgFmTrapIfChange) No message. Sent to monitoring FortiManager when an interface
changes IP address.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 247
http://docs.fortinet.com/ • Feedback
SNMP System Config

Fortinet and FortiGate MIB fields


The FortiGate MIB contains fields reporting current FortiGate unit status information. The
tables below list the names of the MIB fields and describe the status information available
for each one. You can view more details about the information available from all Fortinet
and FortiGate MIB fields by compiling the FORTINET-CORE-MIB.mib and FORTINET-
FORTIGATE-MIB.mib files into your SNMP manager and browsing the MIB fields on your
computer.
Table 22: FortiGate HA MIB fields

MIB field Description


fgHaGroupId HA cluster group ID.
fgHaPriority HA clustering priority (default - 127).
fgHaOverride Status of a master override flag.
fgHaAutoSync Status of an automatic configuration synchronization.
fgHaSchedule Load balancing schedule for cluster in Active-Active mode.
fgHaGroupName HA cluster group name.
fgHaTrapMember Serial number of an HA cluster member.
Serial
fgHaStatsTable Statistics for the individual FortiGate unit in the HA cluster.
fgHaStatsIndex The index number of the unit in the cluster.
fgHaStatsSerial The FortiGate unit serial number.
fgHaStatsCpuUsage The current FortiGate unit CPU usage (%).
fgHaStatsMemUsage The current unit memory usage (%).
fgHaStatsNetUsage The current unit network utilization (Kbps).
fgHaStatsSesCount The number of active sessions.
fgHaStatsPktCount The number of packets processed.
fgHaStatsByteCount The number of bytes processed by the FortiGate
unit
fgHaStatsIdsCount The number of attacks that the IPS detected in the
last 20 hours.
fgHaStatsAvCount The number of viruses that the antivirus system
detected in the last 20 hours.
fgHaStatsHostname Hostname of HA Cluster's unit.

Table 23: FortiGate Administrator accounts

MIB field Description


fgAdminIdelTimeout Idle period after which an administrator is automatically logged out of the
system.
fgAdminLcdProtection Status of the LCD protection, either enabled or disabled.
fgAdminTable Table of administrators on this FortiGate unit.
fgAdminVdom The virtual domain the administrator belongs to.

FortiGate Version 4.0 MR1 Administration Guide


248 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config SNMP

Table 24: FortiGate Virtual domains

MIB field Description


fgVdInfo FortiGate unit Virtual Domain related information.
fgVdNumber The number of virtual domains configured on this FortiGate
unit.
fgVdMaxVdoms The maximum number of virtual domains allowed on the
FortiGate unit as allowed by hardware or licensing.
fgVdEnabled Whether virtual domains are enabled on this FortiGate unit.
fgVdTable.fgV Table of information about each virtual domain—each virtual domain has an
dEntry fgVdEntry. Each entry has the following fields.
fgVdEntIndex Internal virtual domain index used to uniquely identify entries
in this table.
This index is also used by other tables referencing a virtual
domain.
fgVdEntName The name of the virtual domain.
fgVdEntOpMode Operation mode of this virtual domain - either NAT or
Transparent.

Table 25: FortiGate Active IP sessions table

MIB field Description


fgIpSessIndex The index number of the IP session within the table
fgIpSessProto The IP protocol the session is using (IP, TCP, UDP, etc.).
fgIpSessFromAddr The source IPv4 address of the active IP session.
fgIpSessFromPort The source port of the active IP session (UDP and TCP only).
fgIpSessToAddr The destination IPv4 address of the active IP session.
fgIpSessToPort The destination port of the active IP session (UDP and TCP only).
fgIpSessExp The number of seconds remaining until the sessions expires (if idle).
fgIpSessVdom Virtual domain the session is part of. Corresponds to the index in fgVdTable.
fgIpSessStatsTable IP Session statistics table for the virtual domain.
fgIpSessNumber Total sessions on this virtual domain.

Table 26: FortiGate Firewall policy statistics table

MIB field Description


fgFwPolicyStatsVdomIndex Index that identifies the virtual domain. This is the same index used
by fgVdTable.
fgFwPolicyID Firewall policy ID.
Only enabled policies are available for querying.
Policy IDs are only unique within a virtual domain.
fgFwPolicyPktCount Number of packets matched to policy (passed or blocked,
depending on policy action). Count is from the time the policy
became active.
fgFwPolicyByteCount Number of bytes matched to policy (passed or blocked, depending
on policy action). Count is from the time the policy became active.

Table 27: FortiGate Dialup VPNs

MIB field Description


fgVpnDialupIndex An index value that uniquely identifies an VPN dial-up peer in the table.
fgVpnDialupGateway The remote gateway IP address on the tunnel.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 249
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

Table 27: FortiGate Dialup VPNs

MIB field Description


fgVpnDialupLifetime VPN tunnel lifetime in seconds.
fgVpnDialupTimeout Time remaining until the next key exchange (seconds) for this tunnel.
fgVpnDialupSrcBegin Remote subnet address of the tunnel.
fgVpnDialupSrcEnd Remote subnet mask of the tunnel.
fgVpnDialupDstAddr Local subnet address of the tunnel.
fgVpnDialupVdom The virtual domain this tunnel is part of. This index corresponds to the
index in fgVdTable.
Table 28: VPN Tunnel table

MIB field Description


fgVpnTunEntIndex An index value that uniquely identifies a VPN tunnel within
the VPN tunnel table.
fgVpnTunEntPhase1Name The descriptive name of the Phase1 configuration for the
tunnel.
fgVpnTunEntPhase2Name The descriptive name of the Phase2 configuration for the
tunnel.
fgVpnTunEntRemGwyIp The IP of the remote gateway used by the tunnel.
fgVpnTunEntRemGwyPort The port of the remote gateway used by the tunnel, if it is
UDP.
fgVpnTunEntLocGwyIp The IP of the local gateway used by the tunnel.
fgVpnTunEntLocGwyPort The port of the local gateway used by the tunnel, if it is UDP.
fgVpnTunEntSelectorSrcBeginIp Beginning of the address range of the source selector.
fgVpnTunEntSelectorSrcEndIp Ending of the address range of the source selector.
fgVpnTunEntSelectorSrcPort Source selector port.
fgVpnTunEntSelectorDstBeginIp Beginning of the address range of the destination selector.
fgVpnTunEntSelectorDstEndIp Ending of the address range of the destination selector.
fgVpnTunEntSelectorDstPort Destination selector port.
fgVpnTunEntSelectorProto Protocol number for the selector.
fgVpnTunEntLifeSecs Lifetime of the tunnel in seconds, if time based lifetime is
used.
fgVpnTunEntLifeBytes Lifetime of the tunnel in bytes, if byte transfer based lifetime
is used.
fgVpnTunEntTimeout Timeout of the tunnel in seconds.
fgVpnTunEntInOctets Number of bytes received on the tunnel.
fgVpnTunEntOutOctets Number of bytes sent out on the tunnel.
fgVpnTunEntStatus Current status of the tunnel - either up or down.
fgVpnTunEntVdom Virtual domain the tunnel belongs to. This index
corresponds to the index used in fgVdTable.

Replacement messages
Go to System > Config > Replacement Message to change replacement messages and
customize alert email and information that the FortiGate unit adds to content streams such
as email messages, web pages, and FTP sessions.

FortiGate Version 4.0 MR1 Administration Guide


250 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

The FortiGate unit adds replacement messages to a variety of content streams. For
example, if a virus is found in an email message, the file is removed from the email and
replaced with a replacement message. The same applies to pages blocked by web
filtering and email blocked by spam filtering.

Note: Disclaimer replacement messages provided by Fortinet are examples only.

VDOM and global replacement messages


FortiGate units include global replacement messages that are used by all
VDOMs.
However, in each VDOM you can customize any replacement message for
that VDOM as needed, overriding the global message. If you decide to
revert a customized message to the global message you can view the customized
message in the replacement messages list and select a Reset icon to revert the message
to use the global version of this message.

Viewing the replacement messages list


To view the replacement messages list go to System > Config > Replacement Message
You use the replacement messages list to view and customize replacement messages to
your requirements. The list organizes replacement message into an number of types (for
example, Mail, HTTP, and so on). Use the expand arrow beside each type to display the
replacement messages for that category. Select the Edit icon beside each replacement
message to customize that message for your requirements.
If you are viewing the replacement messages list in a VDOM, any messages that have
been customized for that VDOM are displayed with a Reset icon that you can use to reset
the replacement message to the global version.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 251
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

Figure 116: Replacement messages list

Reset
Edit

Name The replacement message category. Select the expand arrow to expand or collapse
the category. Each category contains several replacement messages that are used
by different FortiGate features. The replacement messages are described below.
Description A description of the replacement message.
Edit or view Select to change or view a replacement message.
icon
Reset icon Only appears on the a VDOM replacement message list. Select to revert to the
global version of this replacement message.

Note: FortiOS uses HTTP to send the Authentication Disclaimer page for the user to accept
before the firewall policy is in effect. Therefore, the user must initiate an HTTP traffic first in
order to trigger the Authentication Disclaimer page. Once the Disclaimer is accepted, the
user can send whatever traffic is allowed by the firewall policy.

Changing replacement messages


To change a replacement message list go to System > Config > Replacement Message.
Use the expand arrows to view the replacement message that you want to change. You
can change the content of the replacement message by editing the text and HTML codes
and by working with replacement message tags. For descriptions of the replacement
message tags, see Table 39 on page 262.

FortiGate Version 4.0 MR1 Administration Guide


252 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

Figure 117: Sample HTTP virus replacement message

Replacement messages can be text or HTML messages. You can add HTML code to
HTML messages. Allowed Formats shows you which format to use in the replacement
message. There is a limit of 8192 characters for each replacement message. The
following fields and options are available when editing a replacement message. Different
replacement messages have different sets of fields and options.

Message Setup The name of the replacement message.


Allowed Formats The type of content that can be included in the replacement message.
Allowed formats can be Text or HTML. You should not use HTML code in
Text messages. You can include replacement message tags in text and
HTML messages.
Size The number of characters allowed in the replacement message. Usually
size is 8192 characters.
Message Text The editable text of the replacement message. The message text can
include text, HTML codes (if HTML is the allowed format) and replacement
message tags.

You can customize the following categories of replacement messages:


• Mail replacement messages
• HTTP replacement messages
• FTP replacement messages
• NNTP replacement messages
• Alert Mail replacement messages
• Spam replacement messages
• Administration replacement message
• Authentication replacement messages
• FortiGuard Web Filtering replacement messages
• IM and P2P replacement messages
• Endpoint NAC replacement message
• NAC quarantine replacement messages
• Traffic quota control replacement messages
• SSL VPN replacement message

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 253
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

Mail replacement messages


The FortiGate unit sends the mail replacement messages listed in Table 29 to email
clients and servers using IMAP, POP3, or SMTP when an event occurs such as antivirus
blocking a file attached to an email that contains a virus. Email replacement messages are
text messages.
If the FortiGate unit supports SSL content scanning and inspection these replacement
messages can also be added to IMAPS, POP3S, and SMTPS email messages.
Table 29: Mail replacement messages

Message name Description


Virus message Antivirus Virus Scan enabled for an email protocol in a protection profile deletes
a infected file from an email message and replaces the file with this message.
File block When the antivirus File Filter enabled for an email protocol in a protection profile
message deletes a file that matches an entry in the selected file filter list, the file is blocked
and the email is replaced with this message.
Oversized file When the antivirus Oversized File/Email is set to Block for an email protocol in a
message protection profile and removes an oversized file from an email message, the file
is replaced with this message.
Fragmented In a protection profile, antivirus Pass Fragmented Emails is not enabled so a
email fragmented email is blocked. This message replaces the first fragment of the
fragmented email.
Data leak In a DLP sensor, a rule with action set to Block replaces a blocked email
prevention message with this message.
message
Subject of data This message is added to the subject field of all email messages replaced by the
leak prevention DLP sensor Block, Ban, Ban Sender, Quarantine IP address, and Quarantine
message interface actions.
Banned by data In a DLP sensor, a rule with action set to Ban replaces a blocked email message
leak prevention with this message. This message also replaces any additional email messages
message that the banned user sends until they are removed from the banned user list.
Sender banned In a DLP sensor, a rule with action set to Ban Sender replaces a blocked email
by data leak message with this message. This message also replaces any additional email
prevention messages that the banned user sends until the user is removed from the banned
message user list.
Virus message Splice mode is enabled and the antivirus system detects a virus in an SMTP
(splice mode) email message. The FortiGate unit aborts the SMTP session and returns a 554
SMTP error message to the sender that includes this replacement message.
File block Splice mode is enabled and the antivirus file filter deleted a file from an SMTP
message (splice email message. The FortiGate unit aborts the SMTP session and returns a 554
mode) SMTP error message to the sender that includes this replacement message.
Oversized file Splice mode is enabled and antivirus Oversized File/Email set to Block and the
message (splice FortiGate unit blocks an oversize SMTP email message. The FortiGate unit
mode) aborts the SMTP session and returns a 554 SMTP error message to the sender
that includes this replacement message.

HTTP replacement messages


The FortiGate unit sends the HTTP replacement messages listed in Table 30 to web
browsers using the HTTP protocol when an event occurs such as antivirus blocking a file
that contains a virus in an HTTP session. HTTP replacement messages are HTML pages.
If the FortiGate unit supports SSL content scanning and inspection and if Protocol
Recognition > HTTPS Content Filtering Mode is set to Deep Scan in the protection profile,
these replacement messages can also replace web pages downloaded using the HTTPS
protocol.

FortiGate Version 4.0 MR1 Administration Guide


254 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

Table 30: HTTP replacement messages

Message name Description


Virus message Antivirus Virus Scan enabled for HTTP or HTTPS in a protection profile deletes
an infected file being downloaded using an HTTP GET and replaces the file with
this web page that is displayed by the client browser.
Infection cache Client comforting is enabled in a protection profile and the FortiGate unit blocks a
message URL added to the client comforting URL cache and replaces the blocked URL
with this web page. For more information about the client comforting URL cache,
see “HTTP and FTP client comforting” on page 491.
File block Antivirus File Filter enabled for HTTP or HTTPS in a protection profile blocks a
message file being downloaded using an HTTP GET that matches an entry in the selected
file filter list and replaces it with this web page that is displayed by the client
browser.
Oversized file Antivirus Oversized File/Email set to Block for HTTP or HTTPS in a protection
message profile blocks an oversized file being downloaded using an HTTP GET and
replaces the file with this web page that is displayed by the client browser.
Data leak In a DLP sensor, a rule with action set to Block replaces a blocked web page or
prevention file with this web page.
message
Banned by data In a DLP sensor, a rule with action set to Ban replaces a blocked web page or file
leak prevention with this web page. This web page also replaces any additional web pages or
message files that the banned user attempts to access until the user is removed from the
banned user list.
Banned word Web content filtering enabled in a protection profile blocks a web page being
message downloaded with an HTTP GET that contains content that matches an entry in
the selected Web Content Filter list. The blocked page is replaced with this web
page.
URL block Web URL filtering enabled in a protection profile blocks a web page with a URL
message that matches an entry in the selected URL Filter list. The blocked page is
replaced with this web page.
Client block Antivirus File Filter enabled for HTTP or HTTPS in a protection profile blocks a
file being uploaded by an HTTP POST that matches an entry in the selected file
filter list and replaces it with this web page that is displayed by the client browser.
Client anti-virus Antivirus Virus Scan enabled for HTTP or HTTPS in a protection profile deletes
an infected file being uploaded using an HTTP PUT and replaces the file with
this a web page that is displayed by the client browser.
Client filesize In a protection profile, antivirus Oversized File/Email set to Block for HTTP or
HTTPS and an oversized file that is being uploaded with an HTTP PUT is
blocked and replaced with this web page.
Client banned Web content filtering enabled in a protection profile blocks a web page being
word uploaded with an HTTP PUT that contains content that matches an entry in the
selected Web Content Filter list. The client browser displays this web page.
POST block HTTP POST Action is set to Block in a protection profile and the FortiGate unit
blocks an HTTP POST and displays this web page.

FTP replacement messages


The FortiGate unit sends the FTP replacement messages listed in Table 31 to FTP clients
when an event occurs such as antivirus blocking a file that contains a virus in an FTP
session. FTP replacement messages are text messages.
Table 31: FTP replacement messages

Message name Description


Virus message Antivirus Virus Scan enabled for FTP in a protection profile deletes an infected
file being downloaded using FTP and sends this message to the FTP client.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 255
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

Table 31: FTP replacement messages

Message name Description


Blocked Antivirus File Filter enabled for FTP in a protection profile blocks a file being
message downloaded using FTP that matches an entry in the selected file filter list and
sends this message to the FTP client.
Oversized Antivirus Oversized File/Email set to Block for FTP in a protection profile blocks
message an oversize file from being downloaded using FTP and sends this message to
the FTP client.
DLP message In a DLP sensor, a rule with action set to Block replaces a blocked FTP
download with this message.
DLP ban In a DLP sensor, a rule with action set to Ban blocks an FTP session and
message displays this message. This message is displayed whenever the banned user
attempts to access until the user is removed from the banned user list.

NNTP replacement messages


The FortiGate unit sends the NNTP replacement messages listed in Table 32 to NNTP
clients when an event occurs such as antivirus blocking a file attached to an NNTP
message that contains a virus. NNTP replacement messages are text messages.
Table 32: FTP replacement messages

Message name Description


Virus message Antivirus Virus Scan enabled for NTTP in a protection profile deletes an infected
file attached to an NNTP message and sends this message to the FTP client.
Blocked Antivirus File Filter enabled for NNTP in a protection profile blocks a file attached
message to an NNTP message that matches an entry in the selected file filter list and
sends this message to the FTP client.
Oversized Antivirus Oversized File/Email set to Block for NNTP in a protection profile
message removes an oversized file from an NNTP message and replaces the file with this
message.
Data Leak In a DLP sensor, a rule with action set to Block replaces a blocked NNTP
prevention message with this message.
message
Subject of data This message is added to the subject field of all NNTP messages replaced by
leak prevention the DLP sensor Block, Ban, Quarantine IP address, and Quarantine interface
message actions.
Banned by data In a DLP sensor, a rule with action set to Ban replaces a blocked NNTP
leak prevention message with this message. This message also replaces any additional NNTP
message messages that the banned user sends until they are removed from the banned
user list.

Alert Mail replacement messages


The FortiGate unit adds the alert mail replacement messages listed in Table 33 to alert
email messages sent to administrators. For more information about alert email, see
“Configuring Alert Email” on page 715. Alert mail replacement messages are text
messages.
Table 33: Alert mail replacement messages

Message name Description


Virus message Virus detected must be enabled for alert email. Antivirus Virus Scan must be
enabled in a protection profile and detect a virus.
If you enable Send alert email for logs based on severity for alert email, whether or not
replacement messages are sent by alert email depends on how you set the alert email Minimum
log level.

FortiGate Version 4.0 MR1 Administration Guide


256 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

Table 33: Alert mail replacement messages

Message name Description


Block message Virus detected must be enabled for alert email. Antivirus File Filter must be
enabled in a protection profile, and block a file that matches an entry in a
selected file filter list.
Intrusion Intrusion detected enabled for alert email. An IPS Sensor or a DoS Sensor
message detects and attack.
Critical event Whenever a critical level event log message is generated, this replacement
message message is sent unless you configure alert email to enable Send alert email for
logs based on severity and set the Minimum log level to Alert or Emergency.
Disk full Disk usage enabled and disk usage reaches the % configured for alert email.
message
If you enable Send alert email for logs based on severity for alert email, whether or not
replacement messages are sent by alert email depends on how you set the alert email Minimum
log level.

Spam replacement messages


The FortiGate unit adds the Spam replacement messages listed in Table 34 to SMTP
server responses if the email message is identified as spam and the spam action is
discard. If the FortiGate unit supports SSL content scanning and inspection these
replacement messages can also be added to SMTPS server responses.
Table 34: Spam replacement messages

Message name Description


Email IP Spam Filtering IP address BWL check enabled for an email protocol in a
protection profile identifies an email message as spam and adds this
replacement message.
DNSBL/ORDBL From the CLI, spamrbl enabled for an email protocol in a protection profile
identifies an email message as spam and adds this replacement message.
HELO/EHLO Spam Filtering HELO DNS lookup enabled for SMTP in a protection profile
domain identifies an email message as spam and adds this replacement message.
HELO DNS lookup is not available for SMTPS.
Email address Spam Filtering E-mail address BWL check enabled for an email protocol in a
protection profile identifies an email message as spam and adds this
replacement message.
Mime header From the CLI, spamhdrcheck enabled for an email protocol in a protection
profile identifies an email message as spam and adds this replacement
message.
Returned email Spam Filtering Return e-mail DNS check enabled for an email protocol in a
domain protection profile identifies an email message as spam and adds this
replacement message.
Banned word Spam Filtering Banned word check enabled for an email protocol in a protection
profile identifies an email message as spam and adds this replacement
message.
Spam Any Spam Filtering option enabled for an email protocol in a protection profile
submission identifies an email message as spam and adds this replacement message.
message Spam Filtering adds this message to all email tagged as spam. The message
describes a button that the recipient of the message can select to submit the
email signatures to the FortiGuard Antispam service if the email was incorrectly
tagged as spam (a false positive).

Administration replacement message


If you enter the following CLI command the FortiGate unit displays the Administration
Login disclaimer whenever an administrator logs into the FortiGate unit web-based
manager or CLI.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 257
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

config system global


set access-banner enable
end
The web-based manager administrator login disclaimer contains the text of the Login
Disclaimer replacement message as well as Accept and Decline buttons. The
administrator must select accept to login.

Authentication replacement messages


The FortiGate unit uses the text of the authentication replacement messages listed in
Table 35 for various user authentication HTML pages that are displayed when a user is
required to authenticate because a firewall policy includes at least one identity-based
policy that requires firewall users to authenticate. For more information about identity-
based policies, see “Identity-based firewall policy options (non-SSL-VPN)” on page 397
and “Configuring SSL VPN identity-based firewall policies” on page 400.
These pages are used for authentication using HTTP and HTTPS. Authentication
replacement messages are HTML messages. You cannot customize the firewall
authentication messages for FTP and Telnet.
The authentication login page and the authentication disclaimer include replacement tags
and controls not found on other replacement messages.
Users see the authentication login page when they use a VPN or a firewall policy that
requires authentication. You can customize this page in the same way as you modify other
replacement messages,
Administrators see the authentication disclaimer page when logging into the FortiGate
web-based manager or CLI. The disclaimer page makes a statement about usage policy
to which the user must agree before the FortiGate unit permits access. You should
change only the disclaimer text itself, not the HTML form code.
There are some unique requirements for these replacement messages:
• The login page must be an HTML page containing a form with ACTION="/" and
METHOD="POST"
• The form must contain the following hidden controls:
• <INPUT TYPE="hidden" NAME="%%MAGICID%%" VALUE="%%MAGICVAL%%">
• <INPUT TYPE="hidden" NAME="%%STATEID%%" VALUE="%%STATEVAL%%">
• <INPUT TYPE="hidden" NAME="%%REDIRID%%" VALUE="%%PROTURI%%">
• The form must contain the following visible controls:
• <INPUT TYPE="text" NAME="%%USERNAMEID%%" size=25>
• <INPUT TYPE="password" NAME="%%PASSWORDID%%" size=25>

Example
The following is an example of a simple authentication page that meets the requirements
listed above.
<HTML><HEAD><TITLE>Firewall Authentication</TITLE></HEAD>
<BODY><H4>You must authenticate to use this service.</H4>
<FORM ACTION="/" method="post">
<INPUT NAME="%%MAGICID%%" VALUE="%%MAGICVAL%%" TYPE="hidden">
<TABLE ALIGN="center" BGCOLOR="#00cccc" BORDER="0"
CELLPADDING="15" CELLSPACING="0" WIDTH="320"><TBODY>

FortiGate Version 4.0 MR1 Administration Guide


258 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

<TR><TH>Username:</TH>
<TD><INPUT NAME="%%USERNAMEID%%" SIZE="25" TYPE="text"> </TD></TR>
<TR><TH>Password:</TH>
<TD><INPUT NAME="%%PASSWORDID%%" SIZE="25" TYPE="password">
</TD></TR>
<TR><TD COLSPAN="2" ALIGN="center" BGCOLOR="#00cccc">
<INPUT NAME="%%STATEID%%" VALUE="%%STATEVAL%%" TYPE="hidden">
<INPUT NAME="%%REDIRID%%" VALUE="%%PROTURI%%" TYPE="hidden">
<INPUT VALUE="Continue" TYPE="submit"> </TD></TR>
</TBODY></TABLE></FORM></BODY></HTML>

Table 35: Authentication replacement messages

Message name Description


Disclaimer page User Authentication Disclaimer enabled in a firewall policy that also includes at
least one identity-based policy. When a firewall user attempts to browse a
network through the FortiGate unit using HTTP or HTTPS this disclaimer page is
displayed. The CLI includes auth-disclaimer-page-1, auth-
disclaimer-page-3, and auth-disclaimer-page-3 that you can use to
increase the size of the authentication disclaimer page replacement message.
For more information, see the FortiGate CLI Reference.
Declined The Disclaimer page replacement message does not re-direct the user to a
disclaimer page redirect URL or the firewall policy does not include a redirect URL. When a
firewall user selects the button on the disclaimer page to decline access through
the FortiGate unit, the Declined disclaimer page is displayed.
Login page The authentication HTML page displayed when firewall users who are required
to authenticate connect through the FortiGate unit using HTTP or HTTPS.
Login failed The HTML page displayed if firewall users enter an incorrect user name and
page password combination.
Login challenge The HTML page displayed if firewall users are required to answer a question to
page complete authentication. The page displays the question and includes a field in
which to type the answer. This feature is supported by RADIUS and uses the
generic RADIUS challenge-access auth response. Usually, challenge-access
responses contain a Reply-Message attribute that contains a message for the
user (for example, “Please enter new PIN”). This message is displayed on the
login challenge page. The user enters a response that is sent back to the
RADIUS server to be verified.
The Login challenge page is most often used with RSA RADIUS server for RSA
SecurID authentication. The login challenge appears when the server needs the
user to enter a new PIN. You can customize the replacement message to ask
the user for a SecurID PIN.
Keepalive page The HTML page displayed with firewall authentication keepalive is enabled using
the following command:
config system global
set auth-keepalive enable
end
Authentication keepalive keeps authenticated firewall sessions from ending
when the authentication timeout ends. Go to User > Options to set the
Authentication Timeout.

FortiGuard Web Filtering replacement messages


The FortiGate unit sends the FortiGuard Web Filtering replacement messages listed in
Table 36 to web browsers using the HTTP protocol when FortiGuard web filtering blocks a
URL, provides details about blocked HTTP 4xx and 5xx errors, and for FortiGuard
overrides. FortiGuard Web Filtering replacement messages are HTTP pages.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 259
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

If the FortiGate unit supports SSL content scanning and inspection and if Protocol
Recognition > HTTPS Content Filtering Mode is set to Deep Scan in the protection profile,
these replacement messages can also replace web pages downloaded using the HTTPS
protocol.
Table 36: FortiGuard Web Filtering replacement messages

Message name Description


URL block Enable FortiGuard Web Filtering enabled in a protection profile for HTTP or
message HTTPS blocks a web page. The blocked page is replaced with this web page.
HTTP error Provide details for blocked HTTP 4xx and 5xx errors enabled in a protection
message profile for HTTP or HTTPS blocks a web page. The blocked page is replaced
with this web page.
FortiGuard Web Override selected for a FortiGuard Web Filtering category and FortiGuard Web
Filtering Filtering blocks a web page in this category and displays this web page. Using
override form this web page users can authenticate to get access to the page. Go to UTM >
Web Filter > Override to add override rules. For more information, see
“Configuring administrative override rules” on page 561.
The %%OVRD_FORM%% tag provides the form used to initiate an override if
FortiGuard Web Filtering blocks access to a web page. Do not remove this tag
from the replacement message.

IM and P2P replacement messages


The FortiGate unit sends the IM and P2P replacement messages listed in Table 37 to IM
and P2P clients using AIM, ICQ, MSN, or Yahoo! Messenger when an event occurs such
as antivirus blocking a file attached to an email that contains a virus. IM and P2P
replacement messages are text messages.
Table 37: IM and P2P replacement messages

Message name Description


File block Antivirus File Filter enabled for IM in a protection profile deletes a file that
message matches an entry in the selected file filter list and replaces it with this message.
File name block Antivirus File Filter enabled for IM in a protection profile deletes a file with a
message name that matches an entry in the selected file filter list and replaces it with this
message.
Virus message Antivirus Virus Scan enabled for IM in a protection profile deletes a infected file
from and replaces the file with this message.
Oversized file Antivirus Oversized File/Email set to Block for IM in a protection profile removes
message an oversized file and replaces the file with this message.
Data leak In a DLP sensor, a rule with action set to Block replaces a blocked IM or P2P
prevention message with this message.
message
Banned by data In a DLP sensor, a rule with action set to Ban replaces a blocked IM or P2P
leak prevention message with this message. This message also replaces any additional
message messages that the banned user sends until they are removed from the banned
user list.
Voice chat block In an Application Control list, the Block Audio option is selected for AIM, ICQ,
message MSN, or Yahoo! and the application control list is added to a protection profile.
Photo share In an Application Control list, the block-photo CLI keyword is enabled for
block message MSN, or Yahoo and the application control list is added to a protection profile.
You enable photo blocking from the CLI.

FortiGate Version 4.0 MR1 Administration Guide


260 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Replacement messages

Endpoint NAC replacement message


The Endpoint NAC Download Portal replacement message formats the FortiClient
download portal page that appears if you enable endpoint NAC in a firewall policy. The
portal provides links to download a FortiClient application installer. The endpoint control
replacement message is an HTML message.
You can modify the appearance of the FortiClient Download Portal from System > Config
> Replacement Messages > Endpoint NAC by editing the Endpoint NAC Download Portal
message.
Be sure to retain the %%LINK%% tag which provides the download URL for the
FortiClient installer.
For more information about Endpoint NAC, see “Endpoint NAC” on page 695.

NAC quarantine replacement messages


When a user is blocked by NAC quarantine or a DLP sensor with action set to Quarantine
IP address or Quarantine Interface, if they attempt to start an HTTP session through the
FortiGate unit using TCP port 80, the FortiGate unit connects them to one of the four NAC
Quarantine HTML pages listed in Table 38.
The page that is displayed for the user depends on whether NAC quarantine blocked the
user because a virus was found, a DoS sensor detected an attack, an IPS sensor
detected an attack, or a DLP rule with action set to Quarantine IP address or Quarantine
Interface matched a session from the user.
The default messages inform the user of why they are seeing this page and recommend
they contact the system administrator. You can customize the pages as required, for
example to include an email address or other contact information or if applicable a note
about how long the user can expect to be blocked.
For more information about NAC quarantine see “NAC quarantine and the Banned User
list” on page 678.
Table 38: NAC quarantine replacement messages

Message name Description


Virus Message Antivirus Quarantine Virus Sender enabled in a protection profile adds a source
IP address or FortiGate interface to the banned user list. The FortiGate unit
displays this replacement message as a web page when the blocked user
attempts to connect through the FortiGate unit using HTTP on port 80 or when
any user attempts to connect through a FortiGate interface added to the banned
user list using HTTP on port 80.
DoS Message For a DoS Sensor the CLI quarantine option set to attacker or interface
and the DoS Sensor added to a DoS firewall policy adds a source IP, a
destination IP, or FortiGate interface to the banned user list. The FortiGate unit
displays this replacement message as a web page when the blocked user
attempts to connect through the FortiGate unit using HTTP on port 80 or when
any user attempts to connect through a FortiGate interface added to the banned
user list using HTTP on port 80. This replacement message is not displayed if
quarantine is set to both.
IPS Message Quarantine Attackers enabled in an IPS sensor filter or override and the IPS
sensor added to a protection profile adds a source IP address, a destination IP
address, or a FortiGate interface to the banned user list. The FortiGate unit
displays this replacement message as a web page when the blocked user
attempts to connect through the FortiGate unit using HTTP on port 80 or when
any user attempts to connect through a FortiGate interface added to the banned
user list using HTTP on port 80. This replacement message is not displayed if
method is set to Attacker and Victim IP Address.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 261
http://docs.fortinet.com/ • Feedback
Replacement messages System Config

Table 38: NAC quarantine replacement messages

Message name Description


DLP Message Action set to Quarantine IP address or Quarantine Interface in a DLP sensor and
the DLP sensor added to a protection profile adds a source IP address or a
FortiGate interface to the banned user list. The FortiGate unit displays this
replacement message as a web page when the blocked user attempts to
connect through the FortiGate unit using HTTP on port 80 or when any user
attempts to connect through a FortiGate interface added to the banned user list
using HTTP on port 80.

Traffic quota control replacement messages


When a user session is blocked by the traffic shaper, the Traffic quota control messages
are displayed for users.

SSL VPN replacement message


The SSL VPN login replacement message is an HTML replacement message that formats
the FortiGate SSL VPN portal login page. You can customize this replacement message
according to your organization’s needs. The page is linked to FortiGate functionality and
you must construct it according to the following guidelines to ensure that it will work.
• The login page must be an HTML page containing a form with
ACTION="%%SSL_ACT%%" and METHOD="%%SSL_METHOD%%"
• The form must contain the %%SSL_LOGIN%% tag to provide the login form.
• The form must contain the %%SSL_HIDDEN%% tag.

Replacement message tags


Replacement messages can include replacement message tags. When users receive the
replacement message, the replacement message tag is replaced with content relevant to
the message. Table 39 lists the replacement message tags that you can add.
Table 39: Replacement message tags

Tag Description
%%AUTH_LOGOUT%% The URL that will immediately delete the current policy and close the
session. Used on the auth-keepalive page.
%%AUTH_REDIR_URL%% The auth-keepalive page can prompt the user to open a new window
which links to this tag.
%%CATEGORY%% The name of the content category of the web site.
%%DEST_IP%% The IP address of the request destination from which a virus was
received. For email this is the IP address of the email server that sent
the email containing the virus. For HTTP this is the IP address of web
page that sent the virus.
%%EMAIL_FROM%% The email address of the sender of the message from which the file was
removed.
%%EMAIL_TO%% The email address of the intended receiver of the message from which
the file was removed.
%%FAILED_MESSAGE%% The failed to login message displayed on the auth-login-failed page.
%%FILE%% The name of a file that has been removed from a content stream. This
could be a file that contained a virus or was blocked by antivirus file
blocking. %%FILE%% can be used in virus and file block messages.
%%FORTIGUARD_WF%% The FortiGuard - Web Filtering logo.
%%FORTINET%% The Fortinet logo.
%%LINK%% The link to the FortiClient Host Security installs download for the
Endpoint Control feature.

FortiGate Version 4.0 MR1 Administration Guide


262 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Operation mode and VDOM management access

Table 39: Replacement message tags (Continued)

Tag Description
%%HTTP_ERR_CODE%% The HTTP error code. “404” for example.
%%HTTP_ERR_DESC%% The HTTP error description.
%%NIDSEVENT%% The IPS attack message. %%NIDSEVENT%% is added to alert email
intrusion messages.
%%OVERRIDE%% The link to the FortiGuard Web Filtering override form. This is visible
only if the user belongs to a group that is permitted to create FortiGuard
web filtering overrides.
%%OVRD_FORM%% The FortiGuard web filter block override form. This tag must be present
in the FortiGuard Web Filtering override form and should not be used in
other replacement messages.
%%PROTOCOL%% The protocol (http, ftp, pop3, imap, or smtp) in which a virus was
detected. %%PROTOCOL%% is added to alert email virus messages.
%%QUARFILENAME%% The name of a file that has been removed from a content stream and
added to the quarantine. This could be a file that contained a virus or
was blocked by antivirus file blocking. %%QUARFILENAME%% can be
used in virus and file block messages. Quarantining is only available on
FortiGate units with a local disk.
%%QUESTION%% Authentication challenge question on auth-challenge page.
Prompt to enter username and password on auth-login page.
%%SERVICE%% The name of the web filtering service.
%%SOURCE_IP%% The IP address of the request originator who would have received the
blocked file. For email this is the IP address of the user’s computer that
attempted to download the message from which the file was removed.
%%TIMEOUT%% Configured number of seconds between authentication keepalive
connections. Used on the auth-keepalive page.
%%URL%% The URL of a web page. This can be a web page that is blocked by web
filter content or URL blocking. %%URL%% can also be used in http virus
and file block messages to be the URL of the web page from which a
user attempted to download a file that is blocked.
%%VIRUS%% The name of a virus that was found in a file by the antivirus system.
%%VIRUS%% can be used in virus messages

Operation mode and VDOM management access


You can change the operation mode of each VDOM independently of other VDOMs. This
allows any combination of NAT/Route and Transparent operating modes on the FortiGate
unit VDOMs.
Management access to a VDOM can be restricted based on which interfaces and
protocols can be used to connect to the FortiGate unit.

Changing operation mode


You can set the operating mode for your VDOM and perform sufficient network
configuration to ensure that you can connect to the web-based manager in the new mode.

To switch from NAT/Route to Transparent mode


1 Go to System > Config > Operation Mode or select Change beside Operation Mode on
the System Status page for the virtual domain.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 263
http://docs.fortinet.com/ • Feedback
Operation mode and VDOM management access System Config

2 From the Operation Mode list, select Transparent.

3 Enter the following information and select Apply.

Management IP/Netmask Enter the management IP address and netmask. This must be a
valid IP address for the network from which you want to
manage the FortiGate unit.
Default Gateway Enter the default gateway required to reach other networks from the
FortiGate unit.

To switch from Transparent to NAT/Route mode


1 Go to System > Config > Operation Mode or select Change beside Operation Mode on
the System Status page for the virtual domain.
2 From the Operation Mode list, select NAT.

3 Enter the following information and select Apply.

Interface IP/Netmask Enter a valid IP address and netmask for the network from which
you want to manage the FortiGate unit.
Device Select the interface to which the Interface IP/Netmask settings
apply.
Default Gateway Enter the default gateway required to reach other networks from the
FortiGate unit.
Gateway Device Select the interface to which the default gateway is connected.

Management access
You can configure management access on any interface in your VDOM. See “Configuring
administrative access to an interface” on page 192. In NAT/Route mode, the interface IP
address is used for management access. In Transparent mode, you configure a single
management IP address that applies to all interfaces in your VDOM that permit
management access. The FortiGate also uses this IP address to connect to the FDN for
virus and attack updates (see “Configuring FortiGuard Services” on page 322).

FortiGate Version 4.0 MR1 Administration Guide


264 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Config Operation mode and VDOM management access

The system administrator (admin) can access all VDOMs, and create regular
administrator accounts. A regular administrator account can access only the VDOM to
which it belongs. The management computer must connect to an interface in that VDOM.
It does not matter to which VDOM the interface belongs. In both cases, the management
computer must connect to an interface that permits management access and its IP
address must be on the same network. Management access can be via HTTP, HTTPS,
telnet, or SSH sessions if those services are enabled on the interface. HTTPS and SSH
are preferred as they are more secure.
You can allow remote administration of the FortiGate unit. However, allowing remote
administration from the Internet could compromise the security of the FortiGate unit. You
should avoid this unless it is required for your configuration. To improve the security of a
FortiGate unit that allows remote administration from the Internet:
• Use secure administrative user passwords.
• Change these passwords regularly.
• Enable secure administrative access to this interface using only HTTPS or SSH.
• Use Trusted Hosts to limit where the remote access can originate from.
• Do not change the system idle timeout from the default value of 5 minutes (see
“Settings” on page 286).

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 265
http://docs.fortinet.com/ • Feedback
Operation mode and VDOM management access System Config

FortiGate Version 4.0 MR1 Administration Guide


266 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

System Admin
This section describes how to configure administrator accounts on your FortiGate unit.
Administrators access the FortiGate unit to configure its operation. The factory default
configuration has one administrator, admin. After connecting to the web-based manager
or the CLI, you can configure additional administrators with various levels of access to
different parts of the FortiGate unit configuration.
If you enable virtual domains (VDOMs) on the FortiGate unit, system administrators are
configured globally for the entire FortiGate unit. For details, see “Using virtual domains” on
page 159.

Note: Always end your FortiGate session by logging out, in the CLI or the web-based
manager. If you do not, the session remains open.

This section describes:


• Administrators
• Admin profiles
• Central Management
• Settings
• Monitoring administrators
• FortiGate IPv6 support
• Customizable web-based manager

Administrators
There are two levels of administrator accounts:

Regular An administrator with any admin profile other than super_admin. A regular
administrators administrator account has access to configuration options as determined by its
Admin Profile. If virtual domains are enabled, the regular administrator is
assigned to one VDOM and cannot access global configuration options or the
configuration for any other VDOM. For information about which options are global
and which are per VDOM, see “VDOM configuration settings” on page 160 and
“Global configuration settings” on page 163.
System Includes the factory default system administrator admin, any other administrators
administrators assigned to the super_admin profile, and any administrator that is assigned to the
super_admin_readonly profile. Any administrator assigned to the super_admin
admin profile, including the default administrator account admin, has full access
to the FortiGate unit configuration and general system settings that includes the
ability to:
• enable VDOM configuration
• create VDOMs
• configure VDOMs
• assign regular administrators to VDOMs
• configure global options
• customize the FortiGate web-based manager.
The super_admin admin profile cannot be changed; it does not appear in the list
of profiles in System > Admin > Admin Profile, but it is one of the selections in the
Admin Profile drop-down list in System > Admin New/Edit Administrator dialog
box.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 267
http://docs.fortinet.com/ • Feedback
Administrators System Admin

Figure 118: New Administrator dialog box displaying super_admin readonly option

Users assigned to the super_admin profile:


• cannot delete logged-in users who are also assigned the super_admin profile
• can delete other users assigned the super_admin profile and/or change the configured
authentication method, password, or admin profile, only if the other users are not
logged in
• can delete the default “admin” account only if the default admin user is not logged in.
By default, admin has no password. The password should be 32 characters or less.

Note: The password of users with the super_admin admin profile can be reset in the CLI. If
the password of a user who is logged in is changed, the user will be logged out and
prompted to re-authenticate with the new password.
Example: For a user ITAdmin with the admin profile super_admin, to set the password to
123456:
config sys admin
edit ITAdmin
set password 123456
end
Example: For a user ITAdmin with the admin profile super_admin, to reset the password
from 123456 to the default ‘empty’:
config sys admin
edit ITAdmin
unset password 123456
end

There is also an admin profile that allows read-only super admin privileges,
super_admin_readonly. This profile cannot be deleted or changed, similar to the
super_admin. The read-only super_admin profile is suitable in a situation where it is
necessary for a system administrator to troubleshoot a customer configuration without
being able to make changes. Other than being read-only, the super_admin_readonly
profile can view all the FortiGate configuration tools.

FortiGate Version 4.0 MR1 Administration Guide


268 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

You can authenticate an administrator by using a password stored on the FortiGate unit,
an LDAP, RADIUS, or TACACS+ server, or by using PKI certificate-based authentication.
To authenticate an administrator with an LDAP or TACACS+ server, you must add the
server to an authentication list, include the server in a user group, and associate the
administrator with the user group.The RADIUS server authenticates users and authorizes
access to internal network resources based on the admin profile of the user. Users
authenticated with the PKI-based certificate are permitted access to internal network
resources based on the user group they belong to and the associated admin profile.
A VDOM/admin profile override feature supports authentication of administrators via
RADIUS. The admin user will have access depending on which VDOM and associated
admin profile he or she is restricted to. This feature is available only to wildcard
administrators, and can be set only through the FortiGate CLI. There can only be one
VDOM override user per system. For more information, see the FortiGate CLI Reference.

Viewing the administrators list


You need to use the default ”admin” account, an account with the super_admin admin
profile, or an administrator with read-write access control to add new administrator
accounts and control their permission levels. If you log in with an administrator account
that does not have the super_admin admin profile, the administrators list will show only
the administrators for the current virtual domain.
To view the list of administrators, go to System > Admin > Administrators.
Figure 119: Administrators list

Change password

Delete

Edit

Create New Add an administrator account.


Name The login name for an administrator account.
Trusted Hosts The IP address and netmask of trusted hosts from which the administrator can
log in. For more information, see “Using trusted hosts” on page 280.
Profile The admin profile for the administrator.
Type The type of authentication for this administrator, one of:
Local Authentication of an account with a local password stored on the FortiGate unit.
Remote Authentication of a specific account on a RADIUS, LDAP, or TACACS+ server.
Remote+ Authentication of any account on an LDAP, RADIUS, or TACACS+ server.
Wildcard
PKI PKI-based certificate authentication of an account.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 269
http://docs.fortinet.com/ • Feedback
Administrators System Admin

Delete icon Delete the administrator account.


You cannot delete the original “admin” account until you create another user with
the super_admin profile, log out of the “admin” account, and log in with the
alternate user that has the super_admin profile.
Edit or View Edit or view the administrator account.
icon
Change Change the password for the administrator account. See “Changing an
Password administrator account password” on page 272.
icon

Configuring an administrator account


You need to use the default “admin” account, an account with the super_admin admin
profile, or an administrator with read-write access control to create a new administrator.
To create a new administrator, go to System > Admin > Administrators and select Create
New. To configure the settings for an existing administrator, select the Edit icon beside the
administrator.

Figure 120: Administrator account configuration - Regular (local) authentication

Figure 121: Administrator account configuration - Remote authentication

FortiGate Version 4.0 MR1 Administration Guide


270 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

Figure 122: Administrator account configuration - PKI authentication

Administrator Enter the login name for the administrator account.


The name of the administrator should not contain the characters <>()#"'.
Using these characters in the administrator account name can result in a cross
site scripting (XSS) vulnerability.
Type Select the type of administrator account:
Regular Select to create a Local administrator account. For more information, see
“Configuring regular (password) authentication for administrators” on
page 272.
Remote Select to authenticate the administrator using a RADIUS, LDAP, or TACACS+
server. Server authentication for administrators must be configured first. For
more information, see “Configuring remote authentication for administrators”
on page 272.
PKI Select to enable certificate-based authentication for the administrator. Only
one administrator can be logged in with PKI authentication enabled. For more
information, see “Configuring PKI certificate authentication for administrators”
on page 278.
User Group Select the administrator user group that includes the Remote server/PKI
(peer) users as members of the User Group. The administrator user group
cannot be deleted once the group is selected for authentication.
This is available only if Type is Remote or PKI.
Wildcard Select to allow all accounts on the RADIUS, LDAP, or TACACS+ server to be
administrators.
This is available only if Type is Remote. Only one wildcard user is permitted
per VDOM.
Password Enter a password for the administrator account. For improved security, the
password should be at least 6 characters long.
This is not available if Wildcard is selected or when Type is PKI.
See the Fortinet Knowledge Center article Recovering lost administrator
account passwords if you forget or lose an administrator account password
and cannot log in to your FortiGate unit.
Confirm Password Type the password for the administrator account a second time to confirm that
you have typed it correctly.
This is not available if Wildcard is selected or when PKI authentication is
selected.
Trusted Host #1 Enter the trusted host IP address and netmask that administrator login is
Trusted Host #2 restricted to on the FortiGate unit. You can specify up to three trusted hosts.
Trusted Host #3 These addresses all default to 0.0.0.0/0 or 0.0.0.0/0.0.0.0.
For more information, see “Using trusted hosts” on page 280.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 271
http://docs.fortinet.com/ • Feedback
Administrators System Admin

IPv6 Trusted Host #1 Enter the trusted host IPv6 address and netmask that administrator login is
IPv6 Trusted Host #2 restricted to on the FortiGate unit. You can specify up to three trusted hosts.
IPv6 Trusted Host #3 These addresses all default to ::/0.
For more information, see “Using trusted hosts” on page 280.
Admin Profile Select the admin profile for the administrator. You can also select Create New
to create a new admin profile. For more information on admin profiles, see
“Configuring an admin profile” on page 284.

Changing an administrator account password


To change an administrator password, go to System > Admin >
Administrators, and select the Change Password icon next to the
administrator account you want to change the password for. Enter and confirm the new
password, and select OK to save the changes.

Configuring regular (password) authentication for administrators


You can use a password stored on the local FortiGate unit to authenticate an
administrator.

To configure an administrator to authenticate with a password stored on the


FortiGate unit
1 Go to System > Admin.
2 Select Create New, or select the Edit icon beside an existing administrator.
3 Enter the following information:
Administrator A name for the administrator.
Type Regular.
Password A password for the administrator to use to authenticate.
Confirm The password entered in Password.
Password
Admin Profile The admin profile to apply to the administrator.

4 Configure additional features as required. For more information, see “Configuring an


administrator account” on page 270.
5 Select OK.
When you select Type > Regular, you will see Local as the entry in the Type column when
you view the list of administrators. For more information, see “Viewing the administrators
list” on page 269.

Note: If you forget or lose an administrator account password and cannot log in to your
FortiGate unit, see the Fortinet Knowledge Center article Recovering lost administrator
account passwords.

Configuring remote authentication for administrators


You can authenticate administrators using RADIUS, LDAP, or TACACS+ servers. In order
to do this, you must configure the server, include the server as a user in a user group, and
create the administrator account to include in the user group.

FortiGate Version 4.0 MR1 Administration Guide


272 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

Configuring RADIUS authentication for administrators


Remote Authentication and Dial-in User Service (RADIUS) servers provide authentication,
authorization, and accounting functions. FortiGate units use the authentication and
authorization functions of the RADIUS server. To use the RADIUS server for
authentication, you must configure the server before you configure the FortiGate users or
user groups that will need it.
If you have configured RADIUS support and a user is required to authenticate using a
RADIUS server, the FortiGate unit sends the user’s credentials to the RADIUS server for
authentication. If the RADIUS server can authenticate the user, the user is successfully
authenticated with the FortiGate unit. If the RADIUS server cannot authenticate the user,
the FortiGate unit refuses the connection.
If you want to use a RADIUS server to authenticate administrators in your VDOM, you
must configure the authentication before you create the administrator accounts. To do this
you need to:
• configure the FortiGate unit to access the RADIUS server
• create a user group with the RADIUS server as its only member.

Note: Access to the FortiGate unit depends on the VDOM associated with the administrator
account.

The following instructions assume that there is a RADIUS server on your network
populated with the names and passwords of your administrators. For information on how
to set up a RADIUS server, see the documentation for your RADIUS server.
To view the RADIUS server list, go to User > Remote > RADIUS.

Figure 123: Example RADIUS server list

Delete

Edit

Create New Add a new RADIUS server.


Name The name that identifies the RADIUS server on the FortiGate unit.
Server Name/IP The domain name or IP address of the RADIUS server.
Delete icon Delete a RADIUS server configuration.
You cannot delete a RADIUS server that has been added to a user
group.
Edit icon Edit a RADIUS server configuration.

To configure the FortiGate unit to access the RADIUS server


1 Go to User > Remote > RADIUS.
2 Select Create New, or select the Edit icon beside an existing RADIUS server.
3 Enter a name that identifies the RADIUS server. Use this name when you create the
user group.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 273
http://docs.fortinet.com/ • Feedback
Administrators System Admin

4 For Primary Server Name/IP, enter the domain name or IP address of the RADIUS
server.
5 For Primary Server Secret, enter the RADIUS server secret. The RADIUS server
administrator can provide this information.
6 Optionally, provide information regarding a secondary RADIUS server, custom
authentication scheme, and a NAS IP/Called Station ID.
7 Optionally, configure the RADIUS server to be included in every user group in the
associated VDOM.
8 Select OK.
For further information about RADIUS authentication, see “Configuring a RADIUS server”
on page 656.

To create the user group (RADIUS)


1 Go to User > User Group.
2 Select Create New or select the Edit icon beside an existing RADIUS group.
3 Enter the name that identifies the user group.
4 For Type, enter Firewall.
5 In the Available Users/Groups list, select the RADIUS server name and move it to the
Members list.
6 Select OK.

To configure an administrator to authenticate with a RADIUS server


1 Go to System > Admin.
2 Select Create New, or select the Edit icon beside an existing administrator.
3 Enter the following information:
Name A name that identifies the administrator.
Type Remote.
User Group The user group that includes the RADIUS server as a member.
Password The password the administrator uses to authenticate.
Confirm The re-entered password that confirms the original entry in Password.
Password
Admin Profile The admin profile to apply to the administrator.

4 Configure additional features as required. For more information, see “Configuring an


administrator account” on page 270.
5 Select OK.
For more information about using a RADIUS server to authenticate system administrators,
see Fortinet Knowledge Centre article #3849 Using RADIUS for Admin Access and
Authorization.
• Admin profiles
• Configuring a RADIUS server
• Configuring a user group

FortiGate Version 4.0 MR1 Administration Guide


274 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

Configuring LDAP authentication for administrators


Lightweight Directory Access Protocol (LDAP) is an Internet protocol used to maintain
authentication data that may include departments, people, groups of people, passwords,
email addresses, printers, etc.
If you have configured LDAP support and an administrator is required to authenticate
using an LDAP server, the FortiGate unit contacts the LDAP server for authentication. If
the LDAP server cannot authenticate the administrator, the FortiGate unit refuses the
connection.
If you want to use an LDAP server to authenticate administrators in your VDOM, you must
configure the authentication before you create the administrator accounts. To do this you
need to:
• configure the LDAP server
• configure the FortiGate unit to access the LDAP server
• create a user group with the LDAP server as a member.
To view the LDAP server list, go to User > Remote > LDAP.

Figure 124: Example LDAP server list

Delete

Edit

Create New Add a new LDAP server.


Name The name that identifies the LDAP server on the FortiGate unit.
Server Name/IP The domain name or IP address of the LDAP server.
Port The TCP port used to communicate with the LDAP server.
Common Name Identifier The common name identifier for the LDAP server.
Distinguished Name The distinguished name used to look up entries on the LDAP server.
Delete icon Delete the LDAP server configuration.
Edit icon Edit the LDAP server configuration.

To configure an LDAP server


1 Go to User > Remote > LDAP.
2 Select Create New or select the Edit icon beside an existing LDAP server.
3 Enter or select the following and select OK.

Name The name that identifies the LDAP server on the FortiGate unit.
Server Name/IP The domain name or IP address of the LDAP server.
Server Port The TCP port used to communicate with the LDAP server.
Common Name The common name identifier for the LDAP server.
Identifier
Distinguished Name The base distinguished name for the server in the correct X.500 or
LDAP format.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 275
http://docs.fortinet.com/ • Feedback
Administrators System Admin

Query icon View the LDAP server Distinguished Name Query tree for the LDAP
server that you are configuring so that you can cross-reference to the
Distinguished Name.
For more information, see “Using Query” on page 660.
Bind Type The type of binding for LDAP authentication.
Anonymous Bind using anonymous user search.
Regular Bind using a user name/password and then search.
Simple Bind using a simple password authentication without a search.
Filter Filter used for group searching. Available only if Bind Type is
Anonymous or Regular.
User DN Distinguished name of user to be authenticated. Available only if Bind
Type is Regular.
Password Password of user to be authenticated. Available only if Bind Type is
Regular.
Secure Connection A check box that enables a secure LDAP server connection for
authentication.
Protocol The secure LDAP protocol to use for authentication. Available only if
Secure Connection is selected.
Certificate The certificate to use for authentication. Available only if Secure
Connection is selected.
For further information about LDAP authentication, see “Configuring an LDAP server” on
page 658.

To create the user group (LDAP)


1 Go to User > User Group.
2 Select Create New or select the Edit icon beside an existing user group.
3 Enter a Name that identifies the user group.
4 For Type, enter Firewall.
5 In the Available Users/Groups list, select the LDAP server name and move it to the
Members list.
6 Select OK.

To configure an administrator to authenticate with an LDAP server


1 Go to System > Admin.
2 Select Create New or select the Edit icon beside an existing administrator account.
3 Enter or select the following:

Administrator A name that identifies the administrator.


Type Remote.
User Group The user group that includes the LDAP server as a member.
Wildcard A check box that allows all accounts on the LDAP server to be administrators.
Password The password the administrator uses to authenticate. Not available if Wildcard
is enabled.
Confirm The re-entered password that confirms the original entry in Password. Not
Password available if Wildcard is enabled.
Admin Profile The admin profile to apply to the administrator.

4 Configure additional features as required. For more information, see “Configuring an


administrator account” on page 270.

FortiGate Version 4.0 MR1 Administration Guide


276 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

5 Select OK.

Configuring TACACS+ authentication for administrators


Terminal Access Controller Access-Control System (TACACS+) is a remote
authentication protocol that provides access control for routers, network access servers,
and other networked computing devices via one or more centralized servers.
If you have configured TACACS+ support and an administrator is required to authenticate
using a TACACS+ server, the FortiGate unit contacts the TACACS+ server for
authentication. If the TACACS+ server cannot authenticate the administrator, the
connection is refused by the FortiGate unit.
If you want to use an TACACS+ server to authenticate administrators in your VDOM, you
must configure the authentication before you create the administrator accounts. To do this
you need to:
• configure the TACACS+ server
• configure the FortiGate unit to access the TACACS+ server
• create a user group with the TACACS+ server as a member.
To view the TACACS+ server list, go to User > Remote > TACACS+.

Figure 125: Example TACACS+ server list

Delete

Edit

Create New Add a new TACACS+ server.


Server The server domain name or IP address of the TACACS+ server.
Authentication Type The supported authentication method. TACACS+ authentication
methods include: Auto, ASCII, PAP, CHAP, and MSCHAP.
Delete icon Delete this TACACS+ server
Edit icon Edit this TACACS+ server.

To configure the FortiGate unit to access the TACACS+ server


1 Go to User > Remote > TACACS+.
2 Select Create New, or select the Edit icon beside an existing TACACS+ server.
3 Enter the Name that identifies the TACACS+ server.
4 For Server Name/IP, enter the server domain name or IP address of the TACACS+
server.
5 For Server Key, enter the key to access the TACACS+ server. The maximum number
is 16.
6 For Authentication Type, enter one of Auto, ASCII, PAP, CHAP, and MSCHAP. Auto
authenticates using PAP, MSCHAP, and CHAP (in that order).
7 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 277
http://docs.fortinet.com/ • Feedback
Administrators System Admin

For further information about TACACS+ authentication, see “Configuring TACACS+


servers” on page 661.

To create the user group (TACACS+)


1 Go to User > User Group.
2 Select Create New, or select the Edit icon beside an existing user group.
3 Enter a Name that identifies the user group.
4 For Type, select Firewall.
5 In the Available Users/Groups list, select the TACACS+ server name and move it to
the Members list.
6 Select OK.

To configure an administrator to authenticate with a TACACS+ server


1 Go to System > Admin.
2 Select Create New, or select the Edit icon beside an existing administrator.
3 Enter or select the following:

Administrator A name that identifies the administrator.


Type Remote.
User Group The user group that includes the TACACS+ server as a member.
Wildcard Select to allow all accounts on the TACACS+ server to be administrators.
Password The password the administrator uses to authenticate. Not available if Wildcard
is enabled.
Confirm The re-entered password that confirms the original entry in Password. Not
Password available if Wildcard is enabled.
Admin Profile The admin profile to apply to the administrator.

4 Configure additional features as required. For more information, see “Configuring an


administrator account” on page 270.
5 Select OK.

Configuring PKI certificate authentication for administrators


Public Key Infrastructure (PKI) authentication uses a certificate authentication library that
takes a list of peers, peer groups, and user groups and returns authentication successful
or denied notifications. Users only need a valid certificate for successful authentication; no
username or password is necessary.
If you want to use PKI authentication for an administrator, you must configure the
authentication before you create the administrator accounts. To do this you need to:
• configure a PKI administrator to be included in the user group
• create a user group.
To view the PKI user list, go to User > PKI.

FortiGate Version 4.0 MR1 Administration Guide


278 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Administrators

Figure 126: Example PKI user list

Delete

Edit

Create New Add a new PKI user.


Name The name of the PKI user.
Subject The text string that appears in the subject field of the certificate of the
authenticating user.
CA The CA certificate that is used to authenticate this user.
Delete icon Delete this PKI user.
Edit icon Edit this PKI user.

To configure a PKI user


1 Go to User > PKI.
2 Select Create New, or select the Edit icon beside an existing PKI user.
3 Enter the Name of the PKI user.
4 For Subject, enter the text string that appears in the subject field of the certificate of the
authenticating user.
5 Select the CA certificate used to authenticate this user.
6 Select OK.

To create the user group (PKI)


1 Go to User > User Group.
2 Select Create New, or select the Edit icon beside an existing user group.
3 Enter the Name that identifies the user group.
4 For Type, enter Firewall.
5 In the Available Users/Groups list, select the PKI user name and move it to the
Members list.
6 Select OK.

To configure an administrator to authenticate with a PKI certificate


1 Go to System > Admin.
2 Select Create New, or select the Edit icon beside an existing administrator.
3 Enter or select the following:

Administrator A name that identifies the administrator.


Type PKI.
User Group The user group that includes the PKI user as a member.
Admin Profile The admin profile to apply to the administrator.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 279
http://docs.fortinet.com/ • Feedback
Admin profiles System Admin

4 Configure additional features as required. For more information, see “Configuring an


administrator account” on page 270.
5 Select OK.

Using trusted hosts


Setting trusted hosts for all of your administrators increases the security of your network
by further restricting administrative access. In addition to knowing the password, an
administrator must connect only through the subnet or subnets you specify. You can even
restrict an administrator to a single IP address if you define only one trusted host IP
address with a netmask of 255.255.255.255.
When you set trusted hosts for all administrators, the FortiGate unit does not respond to
administrative access attempts from any other hosts. This provides the highest security. If
you leave even one administrator unrestricted, the unit accepts administrative access
attempts on any interface that has administrative access enabled, potentially exposing the
unit to attempts to gain unauthorized access.
The trusted hosts you define apply both to the web-based manager and to the CLI when
accessed through Telnet or SSH. CLI access through the console connector is not
affected.
The trusted host addresses all default to 0.0.0.0/0.0.0.0 for IPv4, ::/0 for IPv6. If you set
one of the zero addresses to a non-zero address, the other zero addresses will be
ignored. The only way to use a wildcard entry is to leave the trusted hosts at
0.0.0.0/0.0.0.0 or ::0. However, this configuration is less secure.

Admin profiles
Each administrator account belongs to an admin profile. The admin profile separates
FortiGate features into access control categories for which an administrator with
read/write access can enable none (deny), read only, or read/write access.
The following table lists the web-based manager pages to which each category provides
access:

FortiGate Version 4.0 MR1 Administration Guide


280 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Admin profiles

Table 40: Admin profile control of access to Web-based manager pages

Access control Affected web-based manager pages


Admin Users System > Admin
System > Admin > Central Management
System > Admin > Settings
Antivirus Configuration UTM > AntiVirus
Auth Users User
Firewall Configuration Firewall
FortiGuard Update System > Maintenance > FortiGuard
IM, P2P & VoIP Configuration IM, P2P & VoIP > Statistics
IM, P2P & VoIP > User > Current Users
IM, P2P & VoIP > User > User List
IM, P2P & VoIP > User > Config
IPS Configuration UTM > Intrusion Protection
Log&Report Log&Report
Maintenance System > Maintenance
Network Configuration System > Network > Interface
System > Network > Zone
System > DHCP
Router Configuration Router
Spamfilter Configuration UTM > AntiSpam
System Configuration System > Status, including Session info
System > Config
System > Hostname
System > Network > Options
System > Admin > Central Management
System > Admin > Settings
System > Status > System Time
VPN Configuration VPN
Webfilter Configuration UTM > Web Filter

Read-only access enables the administrator to view the web-based manager page. The
administrator needs write access to change the settings on the page.
You can expand the firewall configuration access control to enable more granular control
of access to the firewall functionality. You can control administrator access to policy,
address, service, schedule, profile, and other virtual IP (VIP) configurations.

Note: When Virtual Domain Configuration is enabled (see “Settings” on page 286), only the
administrators with the admin profile super_admin have access to global settings. Other
administrator accounts are assigned to one VDOM and cannot access global configuration
options or the configuration for any other VDOM.
For information about which settings are global, see “VDOM configuration settings” on
page 160.

The admin profile has a similar effect on administrator access to CLI commands. The
following table shows which command types are available in each Access Control
category. You can access “get” and “show” commands with Read Only access. Access to
“config” commands requires Read-Write access.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 281
http://docs.fortinet.com/ • Feedback
Admin profiles System Admin

Table 41: Admin profile control of access to CLI commands

Access control Available CLI commands


Admin Users (admingrp) system admin
system accprofile
Antivirus Configuration (avgrp) antivirus
Auth Users (authgrp) user
Firewall Configuration (fwgrp) firewall
Use the set fwgrp custom and config fwgrp-
permission commands to set some firewall permissions
individually. You can make selections for policy, address,
service, schedule, profile, and other (VIP) configurations.
For more information, see the FortiGate CLI Reference.
FortiProtect Update (updategrp) system autoupdate
execute update-av
execute update-ips
execute update-now
IPS Configuration (ipsgrp) ips
Log & Report (loggrp) alertemail
log
system fortianalyzer
execute log
Maintenance (mntgrp) execute formatlogdisk
execute restore
execute backup
execute batch
execute usb-disk
Network Configuration (netgrp) system arp-table
system dhcp
system interface
system zone
execute dhcp lease-clear
execute dhcp lease-list
execute clear system arp table
execute interface

FortiGate Version 4.0 MR1 Administration Guide


282 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Admin profiles

Table 41: Admin profile control of access to CLI commands (Continued)

Access control Available CLI commands


Router Configuration (routegrp) router
execute router
execute mrouter
Spamfilter Configuration (spamgrp) spamfilter
System Configuration (sysgrp) system except accprofile, admin,
arp-table, autoupdate, fortianalyzer,
interface, and zone.
execute date
execute ha
execute ping
execute ping-options
execute ping6
execute time
execute traceroute
execute cfg
execute factoryreset
execute reboot
execute shutdown
execute deploy
execute set-next-reboot
execute ssh
execute telnet
execute disconnect-admin-session
execute usb
VPN Configuration (vpngrp) vpn
execute vpn
Webfilter Configuration (webgrp) webfilter
To add admin profiles for FortiGate administrators, go to System > Admin > Admin Profile.
Each administrator account belongs to an admin profile. An administrator with read/write
access can create admin profiles that deny access to, allow read-only, or allow both read-
and write-access to FortiGate features.
When an administrator has read-only access to a feature, the administrator can access
the web-based manager page for that feature but cannot make changes to the
configuration. There are no Create or Apply buttons and lists display only the View ( )
icon instead of icons for Edit, Delete or other modification commands.

Viewing the admin profiles list


You need to use the admin account or an account with Admin Users read/write access to
create or edit admin profiles. To view the admin profiles list, go to System > Admin >
Admin Profile.

Figure 127: Admin profile list

Delete

Edit

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 283
http://docs.fortinet.com/ • Feedback
Admin profiles System Admin

Create New Add a new admin profile.


Profile Name The name of the admin profile.
Delete icon Select to delete the admin profile.
You cannot delete an admin profile that has administrators assigned to
it.
Edit icon Select to modify the admin profile.

Configuring an admin profile


You need to use the admin account or an account with Admin Users read/write access to
edit an admin profile. To configure an admin profile, go to System > Admin > Admin
Profile. Select Create New or select the Edit icon beside an existing profile. Enter or select
the following, and select OK.

Figure 128: Admin profile options

Profile Name Enter the name of the admin profile.


Access Control List of the items that can customize access control settings if
configured.

FortiGate Version 4.0 MR1 Administration Guide


284 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Central Management

None Deny access to all Access Control categories.


Read Only Enable Read access in all Access Control categories.
Read-Write Select to allow read/write access in all Access Control categories.
Access Control Make specific control selections as required. For detailed information
(categories) about the Access Control categories, see “Admin profiles” on
page 280.
GUI Control Select Standard to use the default FortiGate web-based manager.
Select Customize to create a custom web-based manager
configuration for the administrators who login with this admin profile.
For more information, see “Customizable web-based manager” on
page 290.

Central Management
The Central Management tab provides the option of remotely managing your FortiGate
unit by either a FortiManager unit or the FortiGuard Analysis and Management Service.
From System > Admin > Central Management, you can configure your FortiGate unit to
back up or restore configuration settings automatically to the specified central
management server. The central management server is the type of service you enable,
either a FortiManager unit or the FortiGuard Analysis and Management Service. If you
have a subscription for FortiGuard Analysis and Management Service, you can also
remotely upgrade the firmware on the FortiGate unit.

Figure 129: Central Management using FortiManager

Figure 130: Central Management using the FortiGuard Management Service

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 285
http://docs.fortinet.com/ • Feedback
Settings System Admin

Enable Central Enables the Central Management feature on the FortiGate unit.
Management
Type Select the type of central management for this FortiGate unit. You can
select FortiManager or the FortiGuard Management Service.
FortiManager Select to use FortiManager as the central management service for the
FortiGate unit.
Enter the IP address or name of the FortiManager unit in the IP/Name
field.
If your organization is operating a FortiManager cluster, add the IP
address or name of the primary FortiManager unit to the IP/Name field
and add the IP address or name of the backup FortiManager units to
the Trusted FortiManager list.
Status indicates whether or not the FortiGate unit can communicate wit
the FortiManager unit added to the IP/Name field.
Select Register to include the FortiManager unit in the Trusted
FortiManager List.
A red arrow-down indicates that there is no connection enabled; a
green arrow-up indicates that there is a connection.
A yellow caution symbol appears when your FortiGate unit is
considered an unregistered device by the FortiManager unit.
FortiGuard Select to use the FortiGuard Management Service as the central
Management Service management service for the FortiGate unit.
Enter the Account ID in the Account ID field. If you do not have an
account ID, register for the FortiGuard Management Service on the
FortiGuard Management Service website.
Select Change to go directly to System > Maintenance > FortiGuard.
Under Analysis & Management Service Options, enter the account ID
in the Account ID field.

When you are configuring your FortiGate unit to connect to and communicate with a
FortiManager unit, the following steps must be taken because of the two different
deployment scenarios.
• FortiGate is directly reachable from FortiManager:
• In the FortiManager GUI, add the FortiGate unit to the FortiManager database in
the Device Manager module
• Change the FortiManager IP address
• Change the FortiGate IP address
• FortiGate behind NAT
• In System > Admin > Central Management, choose FortiManager
• Add the FortiManager unit to the Trusted FortiManager List, if applicable
• Change the FortiManager IP address
• Change the FortiGate IP address
• Contact the FortiManager administrator to verify the FortiGate unit displays in the
Device list in the Device Manager module

Revision control
The Revision Control tab displays a list of the backed up configuration files. The list
displays only when your FortiGate unit is managed by a central management server. For
more information, see “Managing configuration revisions” on page 319.

Settings
The Settings tab includes the following features that you can configure:

FortiGate Version 4.0 MR1 Administration Guide


286 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Settings

• ports for HTTP/HTTPS administrative access and SSL VPN login


• password policy for administrators and IPsec pre-shared keys
• the idle timeout setting
• settings for the language of the web-based manager and the number of lines displayed
in generated reports
• PIN protection for LCD and control buttons (LCD-equipped models only)
• SCP capability for users logged in via SSH
• Wireless controller capability
• IPv6 support on the web based manager.
To configure settings, go to System > Admin > Settings, enter or select the following and
select OK.

Figure 131: Administrators Settings

Figure 132: Administrators Settings

Web Administration Ports


HTTP TCP port to be used for administrative HTTP access. The default is
80.
HTTPS TCP port to be used for administrative HTTPS access. The default is
443.
SSLVPN Login Port An alternative HTTPS port number for remote client web browsers to
connect to the FortiGate unit. The default port number is 10443.
Telnet Port TCP port to be used for administrative telnet access. The default is 23.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 287
http://docs.fortinet.com/ • Feedback
Settings System Admin

SSH Port TCP port to be used for administrative SSH access. The default is 22.
Enable SSH v1 Enable compatibility with SSH v1 in addition to v2. (Optional)
compatibility
Password Policy
Enable Select to enable the password policy.
Minimum Length Set the minimum acceptable length for passwords.
Must contain Select any of the following special character types to require in a
password. Each selected type must occur at least once in the
password.
Upper Case Letters — A, B, C, ... Z
Lower Case Letters — a, b, c, ... z
Numerical digits — 0, 1, 2, 3, 4, 5, 6, 7 8, 9
Non-alphanumeric letters — punctuation marks, @,#, %, etc.
Apply Password Select where to apply the password policy:
Policy to Admin Password — Apply to administrator passwords. If any
password does not conform to the policy, require that administrator to
change the password at the next login.
IPSEC Preshared Key — Apply to preshared keys for IPSec VPNs.
The policy applies only to new preshared keys. You are not required to
change existing preshared keys.
Admin Password Require administrators to change password after a specified number
Expires after n days of days. Specify 0 if you do not want to require periodic password
changes.
Timeout Settings
Idle Timeout The number of minutes that an administrative connection can be idle
before the administrator must log in again. The maximum is 480
minutes (8 hours). To improve security, keep the idle timeout at the
default value of 5 minutes.
Display Settings
Language The language the web-based manager uses. Choose from English,
Simplified Chinese, Japanese, Korean, Spanish, Traditional Chinese
or French.
You should select the language that the management computer
operating system uses.
Lines per Page Number of lines per page to display in table lists. The default is 50.
Range is from 20 - 1000.
IPv6 Support on GUI Enable to configure IPv6 options from the GUI (Firewall policy, route,
address and address group). Default allows configuration from CLI
only.
LCD Panel (LCD-equipped models only)
PIN Protection Select and enter a 6-digit PIN.
Administrators must enter the PIN to use the control buttons and LCD.
Enable SCP Enable users logged in through the SSH to be able to use the SCP to
copy the configuration file.
Enable Wireless Controller Enable the Wireless Controller feature. Then you can access the
Wireless Controller menu in the web-based manager and the
corresponding CLI commands.

Note: If you make a change to the default port number for HTTP, HTTPS, Telnet, or SSH,
ensure that the port number is unique.

FortiGate Version 4.0 MR1 Administration Guide


288 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Monitoring administrators

Monitoring administrators
To see the number of logged-in administrators, go to System > Status. Under System
Information, you will see Current Administrators. Select Details to view information about
the administrators currently logged in to the FortiGate unit.

Figure 133: System Information displaying current administrators

Figure 134: Detailed view of Administrators logged in monitor window

Disconnect Select to disconnect the selected administrators. This is available only


if your admin profile gives you System Configuration write permission.
Refresh Select to update the list.
Close Select to close the window.
Select and then select Disconnect to log off this administrator. This is
available only if your admin profile gives you System Configuration
write access. You cannot log off the default “admin” user.
User Name The administrator account name.
Type The type of access: http, https, jsconsole, sshv2.
From If Type is jsconsole, the value in From is N/A.
Otherwise, Type contains the administrator’s IP address.
Time The date and time that the administrator logged on.

See also

FortiGate IPv6 support


IPv6 is version 6 of the Internet Protocol. It can provide billions more unique IP addresses
than the previous standard, IPv4. The internet is currently in transition from IPv4 to IPv6
addressing. IPv6 hosts and routers maintain interoperability with the existing IPv4
infrastructure in two ways:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 289
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

• implementing dual IP layers to support both IPv6 and IPv4


• using IPv6 over IPv4 tunneling to encapsulate IPv6 packets within IPv4 headers to
carry them over IPv4 infrastructure.
FortiGate units are dual IP layer IPv6/IPv4 nodes. They support IPv6 overIPv4 tunneling,
routing, firewall policies and IPSec VPN. You can assign both an IPv4 and an IPv6
address to any interface on a FortiGate unit—the interface functions as two interfaces,
one for IPv4-addressed packets and another for IPv6-addressed packets.
For more information, see the FortiGate IPv6 Support Technical Note.
Before you can work with IPv6 on the web-based manager, you must enable IPv6 support.
To enable IPv6 support, go to System > Admin > Settings, then under Display Settings,
select IPv6 Support on GUI.
After you enable IPv6 support in the web-based manager, you can:
• create IPv6 static routes (see Router Static)
• monitor IPv6 routes (see Router Monitor)
• create IPv6 firewall addresses (see Firewall Address)
• create IPv6 firewall address groups (see Firewall Address)
• create IPv6 firewall policies (see Firewall Policy)
• create VPNs that use IPv6 addressing (see IPSec VPN)
Once IPv6 support is enabled, you can configure the IPv6 options using the web-based
manager or the CLI.
See the FortiGate CLI Reference for information on configuring IPv6 support using the
CLI.

Customizable web-based manager


In addition to configuring administrators with varying levels of access to different parts of
the FortiGate unit configuration, you can customize the FortiGate web-based manager (or
GUI) to show, hide, and arrange widgets/menus/items according to your specific
requirements. In standard operation mode, the display is static. Customizing the display
allows you to vary or limit the GUI layout—to fulfill different administrator roles. There are
also several configuration widgets which you can enable for CLI-only options that are not
displayed by default. Only administrators with the super_admin admin profile may create
and edit GUI layouts. The customized GUI layouts are stored as part of the administrator
admin profile.
New admin profiles are based on the default layout. The FortiGate default layout cannot
be modified.
Terms used in this section include:
• Dialog box - HTML-layer pop-up window. Displayed via HTML with grayed-out
background (see Figure 138).
• GUI layout - web-based manager layout configured for a specific Admin Profile (see
Figure 149).
• Page layout - arrangement of widgets on a screen of the web-based manager (see
Figure 146).
• Tier 1 menu item - top-level menu item in web-based manager layout (see “To create
Tier-1 and Tier-2 menu items” on page 294).

FortiGate Version 4.0 MR1 Administration Guide


290 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Customizable web-based manager

• Tier 2 menu item - submenu item in web-based manager layout (see “To create Tier-1
and Tier-2 menu items” on page 294).

Tip: Increase the timeout settings before creating or editing a GUI layout. See “Settings” on
page 286.

GUI layout customization example


The following example illustrates the basic steps to customize the display. The example
assumes that you are an administrator with a super_admin profile performing the
customization. The super_admin will create a profile called Report Profile for a regular
admin user. This protection profile will allow the regular admin user read-only access to
logs and reports produced by the FortiGate unit, and also prevent him or her from viewing
additional FortiGate features.
Before customizing the GUI layout, you need to configure the administrative admin profile.
To configure the profile, go to System > Admin > Admin Profile and select Create New.

Figure 135: Admin profile dialog box (default settings)

Note: The current administrator Access Control settings apply only to the fixed components
of the layout (default), not to the customized items. If you want to create a completely
customized layout profile, you must set access for all fixed components to None and also
set all the standard menu items to Hide from within the GUI layout dialog box (see
Figure 138).

The following configuration will set up read-only administrative access to Log&Report


items for the Report Profile profile, and prevent access to the default layout.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 291
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

Figure 136: Admin Profile dialog box - Log & Report access

Access denied
to other layout
items

Read-only access
selected for Log &
Report

Standard GUI
Control Menu
Layout selection

To configure the admin profile


1 Enter the name Report Profile (see Figure 136).
2 To prevent access to the default layout items, set Access Control to None for all items
except Log & Report.
3 Under GUI Control > Menu Layout, select Standard.
4 Select OK to save the settings. The admin profiles list reappears.
5 From the list, select the Edit icon beside Report Profile.
6 Under GUI Control > Menu Layout, select Customize, and then select OK. (see
Figure 137 and Figure 138).

FortiGate Version 4.0 MR1 Administration Guide


292 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Customizable web-based manager

Figure 137: Selection of Customize GUI Control option for Report Profile
]

Select Customize
to access the
layout dialog box

Figure 138: Customize GUI layout dialog box for Report Profile

Customization Edit Layout Show Preview


drop-down menu icon Add Content

Customization
drop-down menu Save layout
Cancel layout changes

Layout preview icon

Create new Tier-1 menu item


Reset menu to default layout configuration

In the GUI layout dialog box, select the customization drop-down menu icon beside
System and select hide (see Figure 138). Repeat for each menu item except Log&Report.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 293
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

To start the configuration of customized menu items, select the Create New (Tier-1 menu
item) icon in the FortiGate menu. You will need to:
• configure Tier-1 and Tier-2 menu items
• add tabs to each of these items as required
• add content to the page layout.

To create Tier-1 and Tier-2 menu items


1 Select the Create New Tier-1 icon.
The first Tier-1 menu item with the default name custom menu will appear, with an
additional Create New Tier-1 icon below it (1).
2 Select and rename the default name to Custom Log Report (2).
3 Press Enter to save your change.
The Create New Tier-2 icon will appear, with the default name custom menu.
4 Select the Create New Tier-2 icon (3).
5 The first Tier-2 menu item with the default name custom menu will appear, with an
additional Create New Tier-2 icon below it (4).
6 Select and rename the default name to Custom Log Menu1 (5).
7 Press Enter to save your change.
8 Repeat steps 4 to 7 to create a second Tier-2 menu item called Custom Log Menu2 (5)
and (6).

Figure 139: Creating Tier-1 and Tier-2 menu items in the FortiGate menu

1 2
Creation of new
Tier-1 menu item
Custom Log Report

3 4
Creation of new
Tier-2 menu item
Custom Log Menu1

5 6
Creation of new
Tier-2 menu item
Custom Log Menu2

After you create Tier-1 and Tier-2 menu items, you need to create the subset of tab items
across the page layout. The Create New tab icon is not available until you have created
the Tier-1 and Tier-2 menu items.

To create a new tab


1 Select the Create New tab item icon (see Figure 5).
A tab is created with the default name custom menu, and an additional Create New
icon appears beside it.

FortiGate Version 4.0 MR1 Administration Guide


294 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Customizable web-based manager

2 Select and rename the default name to Custom Log Report Tab1 (see Figure 141).
3 Press Enter to save your change.
4 Repeat steps 1 to 3 to create a second tab called Custom Log Report Tab2.
5 To save your customized layout, select Save in the GUI layout dialog box (see
Figure 138).

Figure 140: Create New tab

Create New tab item icon

Figure 141: Creating tabs in page layout

Creation of tab
Custom Log Report Tab1

Creation of tab Custom Log Report Tab2

To modify the configuration of the current page


1 Select the required tab, then select Edit Layout.
The Edit this tab dialog box appears (see Figure 142). You may configure the page
layout to display only one widget (Full page), a page layout with one column that
displays up to 8 widgets (1 column), or a page layout with two columns (2 columns)
that displays up to 8 widgets.
2 For the Custom Log Report Tab1, select 2 columns.
3 To save your modified configuration, select Save in the Edit this tab dialog box.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 295
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

Figure 142: Edit this tab dialog box

To add content to the page layout, select Add Content (see Figure 138). The Add content
to the Custom Log Report Tab1 dialog box appears (see Figure 143).

Figure 143: Add content dialog box

Search text box

The Add content dialog box includes a search feature that you can use to find widgets.
This search employs a real-time filtering mechanism with a “contains” type search on the
widget names. For example, if you search on “use”, you will be shown User Group, IM
User Monitor, Firewall User Monitor, Banned User, and Top Viruses (see Figure 144).

FortiGate Version 4.0 MR1 Administration Guide


296 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Customizable web-based manager

Figure 144: Search mechanism - results for “use”


Search on “use”

Search results

For Custom Log Report Tab1, select the Log&Report category. All the items related to the
Log&Report menu item are listed (see Figure 145). Select Add next to an item that you
want to include in the tab. The item is placed in the page layout behind the Custom Log
Report Tab1 dialog box. You will see the configured layout when you close the Add
content to the Custom Log Report Tab1 dialog box. The maximum number of items that
can be placed in a page layout is 8.
For the Custom Log Report Tab1, select the following items for inclusion in the layout:
• Alert E-mail
• Schedule.
Close the Edit Layout dialog box.

Figure 145: Log&Report category selection for Custom Log Report Tab1

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 297
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

Figure 146: Custom Log Report Tab1 page layout preview

For the Custom Log Report Tab2, select the following items for inclusion in the layout:
• Event Log
• Log Setting.

FortiGate Version 4.0 MR1 Administration Guide


298 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Admin Customizable web-based manager

Figure 147: Log&Report category selection for Custom Log Report Tab2

Figure 148: Custom Log Report Tab2 page layout preview

To preview a customized layout in the custom GUI layout dialog box, select Show Preview
(see Figure 149). When you have completed the configuration selections for the page
layout, select Save to close the custom GUI layout dialog box (see Figure 149). To
abandon the configuration, select Reset menus (see Figure 149). To exit the GUI layout
dialog box without saving your changes, select Cancel (see Figure 149).

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 299
http://docs.fortinet.com/ • Feedback
Customizable web-based manager System Admin

Figure 149: Report Profile customized GUI layout dialog box - complete
Cancel
Show Preview
Save

Reset menus

When you complete the customization, close the dialog box to return to the Admin Profile
dialog box in which you configured the custom GUI. To save the configuration, select OK
to close the Admin Profile dialog box (see Figure 135).
To view the web-based manager configuration created in Report Profile, you must log out
of the FortiGate unit, then log back in using the name and password of an administrator
assigned the Report Profile administrative profile. The FortiGate web-based manager
reflects the customized configuration of Report Profile (see Figure 150).

Figure 150: Customized web-based manager page

FortiGate Version 4.0 MR1 Administration Guide


300 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Certificates

System Certificates
This section explains how to manage X.509 security certificates using the FortiGate web-
based manager. Certificate authentication allows administrators to generate certificate
requests, install signed certificates, import CA root certificates and certificate revocation
lists, and back up and restore installed certificates and private keys.
Authentication is the process of determining if a remote host can be trusted with access to
network resources. To establish its trustworthiness, the remote host must provide an
acceptable authentication certificate by obtaining a certificate from a certification authority
(CA). The FortiGate unit can then use certificate authentication to reject or allow
administrative access via HTTPS, and to authenticate IPSec VPN peers or clients, as well
as SSL VPN user groups or clients.
If you enable virtual domains (VDOMs) on the FortiGate unit, system certificates are
configured globally for the entire FortiGate unit. For details, see “Using virtual domains” on
page 159.
There are several certificates on the FortiGate unit that have been automatically
generated.

Table 42: Automatically generated FortiGate certificates

Fortinet_Firmware Embedded inside the firmware. Signed by Fortinet_CA. Same on all


FortiGate units. Used so FortiGate units without Fortinet_Factory2
certificates have a built-in certificate signed by a FortiGate CA.
Listed under Certificates > Local, or in FortiGate CLI under vpn
certificate local.
Fortinet_Factory Embedded inside BIOS. Signed by Fortinet_CA. Unique to each FortiGate
unit. Used for FortiGate/FortiManager tunnel, HTTPS administrative
access if Fortinet_Factory2 is not available.
Listed under Certificates > Local, or in FortiGate CLI under vpn
certificate local.
Fortinet_Factory2 Embedded inside BIOS. Signed by Fortinet_CA2. Unique to each
FortiGate unit. Used for FortiGate/FortiManager tunnel and HTTPS
administrative access.
Listed under Certificates > Local, or in FortiGate CLI under vpn
certificate local. Found only on units shipped at the end of 2008
onward.
Fortinet_CA Embedded inside firmware and BIOS. Fortinet’s CA certificate. Used to
verify certificates that claim to be signed by Fortinet, for example with a
FortiGate/FortiManager tunnel or an SSL connection to a FortiGuard
server.
Listed under Certificates > CA, or in FortiGate CLI under vpn
certificate ca or vpn certificate ocsp.
Fortinet_CA2 Embedded inside BIOS. Fortinet’s CA certificate. Will eventually replace
Fortinet_CA, as Fortinet_CA will expire in 2020.
Listed under Certificates > CA, or in FortiGate CLI under vpn
certificate ca or vpn certificate ocsp. Found only on units
shipped at the end of 2008 onward.

System administrators can use these certificates wherever they may be required, for
example, with SSL VPN, IPSec, LDAP, and PKI.
For additional background information on certificates, see the FortiGate Certificate
Management User Guide.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 301
http://docs.fortinet.com/ • Feedback
Local Certificates System Certificates

This section describes:


• Local Certificates
• Remote Certificates
• CA Certificates
• CRL

Local Certificates
Certificate requests and installed server certificates are displayed in the Local Certificates
list. After you submit the request to a CA, the CA will verify the information and register the
contact information on a digital certificate that contains a serial number, an expiration date,
and the public key of the CA. The CA will then sign the certificate and send it to you to
install on the FortiGate unit.
Local certificates can update automatically online prior to expiry. This must be configured
in the CLI. See the vpn certificate local command in the FortiGate CLI Reference.
To view certificate requests and/or import signed server certificates, go to System >
Certificates > Local Certificates. To view certificate details, select the View Certificate
Detail icon in the row that corresponds to the certificate.

Figure 151: Local Certificates list

Download
View Certificate Detail

Delete

Generate Generate a local certificate request. For more information, see “Generating a
certificate request” on page 303.
Import Import a signed local certificate. For more information, see “Importing a signed
server certificate” on page 305.
Name The names of existing local certificates and pending certificate requests.
Subject The Distinguished Names (DNs) of local signed certificates.

FortiGate Version 4.0 MR1 Administration Guide


302 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Certificates Local Certificates

Comments A description of the certificate.


Status The status of the local certificate. PENDING designates a certificate request
that needs to be downloaded and signed.
View Certificate Display certificate details such as the certificate name, issuer, subject, and
Detail icon valid certificate dates.
Delete icon Delete the selected certificate request or installed server certificate from the
FortiGate configuration. This is available only if the certificate has PENDING
status.
Download icon Save a copy of the certificate request to a local computer. You can send the
request to your CA to obtain a signed server certificate for the FortiGate unit
(SCEP-based certificates only).
For detailed information and step-by-step procedures related to obtaining and installing
digital certificates, see the FortiGate Certificate Management User Guide.

Generating a certificate request


The FortiGate unit generates a certificate request based on the information you enter to
identify the FortiGate unit. Generated requests are displayed in the Local Certificates list
with a status of PENDING. After you generate a certificate request, you can download the
request to a computer that has management access to the FortiGate unit and then forward
the request to a CA.
To fill out a certificate request, go to System > Certificates > Local Certificates, select
Generate, and complete the fields in the table below. To download and send the certificate
request to a CA, see “Downloading and submitting a certificate request” on page 304.

Figure 152: Generate Certificate Signing Request

Remove/Add OU

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 303
http://docs.fortinet.com/ • Feedback
Local Certificates System Certificates

Certification Name Enter a certificate name. Typically, this would be the name of the
FortiGate unit. To enable the export of a signed certificate as a PKCS12
file later on if required, do not include spaces in the name.
Subject Information Enter the information needed to identify the FortiGate unit:
Host IP If the FortiGate unit has a static IP address, select Host IP and enter the
public IP address of the FortiGate unit. If the FortiGate unit does not have
a public IP address, use an email address (or domain name if available)
instead.
Domain Name If the FortiGate unit has a static IP address and subscribes to a dynamic
DNS service, use a domain name if available to identify the FortiGate unit.
If you select Domain Name, enter the fully qualified domain name of the
FortiGate unit. Do not include the protocol specification (http://) or any
port number or path names. If a domain name is not available and the
FortiGate unit subscribes to a dynamic DNS service, an “unable to verify
certificate” message may be displayed in the user’s browser whenever
the public IP address of the FortiGate unit changes.
E-Mail If you select E-mail, enter the email address of the owner of the FortiGate
unit.
Optional Information Complete as described or leave blank.
Organization Unit Enter the name of your department or departments. You can enter a
maximum of 5 Organization Units. To add or remove a unit, use the plus
(+) or minus (-) icon.
Organization Enter the legal name of your company or organization.
Locality (City) Enter the name of the city or town where the FortiGate unit is installed.
State/Province Enter the name of the state or province where the FortiGate unit is
installed.
Country Select the country where the FortiGate unit is installed.
e-mail Enter the contact email address.
Key Type Only RSA is supported.
Key Size Select 1024 Bit, 1536 Bit or 2048 Bit. Larger keys are slower to generate
but they provide better security.
Enrollment Method Select one of the following methods:
File Based Select to generate the certificate request.
Online SCEP Select to obtain a signed SCEP-based certificate automatically over the
network.
CA Server URL: Enter the URL of the SCEP server from which to retrieve
the CA certificate.
Challenge Password: Enter the CA server challenge password.

Downloading and submitting a certificate request


You have to fill out a certificate request and generate the request before you can submit
the results to a CA. For more information, see “Generating a certificate request” on
page 303.

To download and submit a certificate request


1 Go to System > Certificates > Local Certificates.
2 In the Local Certificates list, select the Download icon in the row that corresponds to
the generated certificate request.
3 In the File Download dialog box, select Save to Disk.
4 Name the file and save it to the local file system.

FortiGate Version 4.0 MR1 Administration Guide


304 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Certificates Local Certificates

5 Submit the request to your CA as follows:


• Using the web browser on the management computer, browse to the CA web site.
• Follow the CA instructions to place a base-64 encoded PKCS#12 certificate request
and upload your certificate request.
• Follow the CA instructions to download their root certificate and Certificate
Revocation List (CRL), and then install the root certificate and CRL on each remote
client (refer to the browser documentation).
6 When you receive the signed certificate from the CA, install the certificate on the
FortiGate unit. See “Importing a signed server certificate” on page 305.

Importing a signed server certificate


Your CA will provide you with a signed server certificate to install on the FortiGate unit.
When you receive the signed certificate from the CA, save the certificate on a computer
that has management access to the FortiGate unit.
To install the signed server certificate, go to System > Certificates > Local Certificates and
select Import. The certificate file can be in either PEM or DER format. The other dialog
boxes are for importing previously exported certificates and private keys.

Figure 153: Upload Local Certificate

Certificate File Enter the full path to and file name of the signed server certificate.
Browse Alternatively, browse to the location on the management computer where the
certificate has been saved, select the certificate, and then select OK.

Importing an exported server certificate and private key


. The file is associated with a password, which you will need to know in order to import the
file. Before you begin, save a copy of the file on a computer that has management access
to the FortiGate unit. For more information, see the FortiGate Certificate Management
User Guide.
To import the PKCS12 file, go to System > Certificates > Local Certificates and select
Import.

Figure 154: Upload PKCS12 Certificate

Certificate with key Enter the full path to and file name of the previously exported PKCS12 file.
file

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 305
http://docs.fortinet.com/ • Feedback
Remote Certificates System Certificates

Browse Alternatively, browse to the location on the management computer where the
PKCS12 file has been saved, select the file, and then select OK.
Password Type the password needed to upload the PKCS12 file.

Importing separate server certificate and private key files


You need to use the Upload Certificate dialog box to import a server certificate and the
associated private key file when the server certificate request and private key were not
generated by the FortiGate unit. The two files to import must be available on the
management computer.

Figure 155: Upload Certificate

Certificate file Enter the full path to and file name of the previously exported certificate file.
Browse Alternatively, browse to the location of the previously exported certificate file,
select the file, and then select OK.
Key file Enter the full path to and file name of the previously exported key file.
Browse Alternatively, browse to the location of the previously exported key file, select the
file, and then select OK.
Password If a password is required to upload and open the files, type the password.

Remote Certificates
Note: The certificate file must not use 40-bit RC2-CBC encryption.

For dynamic certificate revocation, you need to use an Online Certificate Status Protocol
(OCSP) server. Remote certificates are public certificates without a private key. The
OCSP is configured in the CLI only. For more information, see the FortiGate CLI
Reference.
Installed Remote (OCSP) certificates are displayed in the Remote Certificates list.
To view installed Remote (OCSP) certificates or import a Remote (OCSP) certificate, go to
System > Certificates > Remote. To view certificate details, select the View Certificate
Detail icon in the row that corresponds to the certificate.

Note: There is one OCSP per VDOM.

FortiGate Version 4.0 MR1 Administration Guide


306 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Certificates CA Certificates

Figure 156: Remote certificate list

Import Import a public OCSP certificate. See “Importing CA certificates” on page 308.
Name The names of existing Remote (OCSP) certificates. The FortiGate unit assigns
unique names (REMOTE_Cert_1, REMOTE_Cert_2, REMOTE_Cert_3, and so
on) to the Remote (OCSP) certificates when they are imported.
Subject Information about the Remote (OCSP) certificate.
Delete icon Delete a Remote (OCSP) certificate from the FortiGate configuration.
View Certificate Display certificate details.
Detail icon
Download icon Save a copy of the Remote (OCSP) certificate to a local computer.

Importing Remote (OCSP) certificates


To import a Remote (OCSP) certificate, go to System > Certificates > Remote and select
Import.

Figure 157: Upload Remote Certificate

Local PC Enter the location in a management PC to upload a public certificate.


Browse Alternatively, browse to the location on the management computer where
the certificate has been saved, select the certificate, and then select OK.

The system assigns a unique name to each Remote (OCSP) certificate. The names are
numbered consecutively (REMOTE_Cert_1, REMOTE_Cert_2, REMOTE_Cert_3, and
so on).

CA Certificates
When you apply for a signed personal or group certificate to install on remote clients, you
must obtain the corresponding root certificate and CRL from the issuing CA.
When you receive the certificate, install it on the remote clients according to the browser
documentation. Install the corresponding root certificate and CRL from the issuing CA on
the FortiGate unit.
CA certificates can update automatically online prior to expiry. This must be configured in
the CLI. See the vpn certificate local command in the FortiGate CLI Reference.
Installed CA certificates are displayed in the CA Certificates list. You cannot delete the
Fortinet_CA certificate. To view installed CA root certificates or import a CA root
certificate, go to System > Certificates > CA Certificates. To view root certificate details,
select the View Certificate Detail icon in the row that corresponds to the certificate.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 307
http://docs.fortinet.com/ • Feedback
CA Certificates System Certificates

Figure 158: CA Certificates list

View Certificate Detail


Download

Import Import a CA root certificate. See “Importing CA certificates” on page 308.


Name The names of existing CA root certificates. The FortiGate unit assigns unique
names (CA_Cert_1, CA_Cert_2, CA_Cert_3, and so on) to the CA
certificates when they are imported.
Subject Information about the issuing CA.
Delete icon Delete a CA root certificate from the FortiGate configuration.
View Certificate Display certificate details.
Detail icon
Download icon Save a copy of the CA root certificate to a local computer.

For detailed information and step-by-step procedures related to obtaining and installing
digital certificates, see the FortiGate Certificate Management User Guide.

Importing CA certificates
After you download the root certificate of the CA, save the certificate on a PC that has
management access to the FortiGate unit.
To import a CA root certificate, go to System > Certificates > CA Certificates and select
Import.

Figure 159: Import CA Certificate

SCEP Select to use an SCEP server to access CA certificate for user


authentication. Enter the URL of the SCEP server from which to retrieve
the CA certificate. Optionally, enter identifying information of the CA, such
as the file name. Select OK.
Local PC Select to use a local administrator’s PC to upload a public certificate. Enter
the location, or browse to the location on the management computer where
the certificate has been saved, select the certificate, and then select OK.

If you choose SCEP, the system starts the retrieval process as soon as you select OK.
The system assigns a unique name to each CA certificate. The names are numbered
consecutively (CA_Cert_1, CA_Cert_2, CA_Cert_3, and so on).

FortiGate Version 4.0 MR1 Administration Guide


308 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Certificates CRL

CRL
A Certificate Revocation List (CRL) is a list of CA certificate subscribers paired with
certificate status information. Installed CRLs are displayed in the CRL list. The FortiGate
unit uses CRLs to ensure that the certificates belonging to CAs and remote clients are
valid.
To view installed CRLs, go to System > Certificates > CRL.

Figure 160: Certificate revocation list

View Certificate Detail

Download

Import Import a CRL. For more information, see “Importing a certificate revocation list”
on page 309.
Name The names of existing certificate revocation lists. The FortiGate unit assigns
unique names (CRL_1, CRL_2, CRL_3, and so on) to certificate revocation lists
when they are imported.
Subject Information about the certificate revocation lists.
Delete icon Delete the selected CRL from the FortiGate configuration.
View Certificate Display CRL details such as the issuer name and CRL update dates.
Detail icon
Download icon Save a copy of the CRL to a local computer.

Importing a certificate revocation list


Certificate revocation lists from CA web sites must be kept updated on a regular basis to
ensure that clients having revoked certificates cannot establish a connection with the
FortiGate unit. After you download a CRL from the CA web site, save the CRL on a
computer that has management access to the FortiGate unit.

Note: When the CRL is configured with an LDAP, HTTP, and/or SCEP server, the latest
version of the CRL is retrieved automatically from the server when the FortiGate unit does
not have a copy of it or when the current copy expires.

To import a certificate revocation list, go to System > Certificates > CRL and select Import.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 309
http://docs.fortinet.com/ • Feedback
CRL System Certificates

Figure 161: Import CRL

HTTP Select to use an HTTP server to retrieve the CRL. Enter the URL of the HTTP
server.
LDAP Select to use an LDAP server to retrieve the CRL, then select the LDAP
server from the list.
SCEP Select to use an SCEP server to retrieve the CRL, then select the Local
Certificate from the list. Enter the URL of the SCEP server from which the
CRL can be retrieved.
Local PC Select to use a local administrator’s PC to upload a public certificate. Enter
the location, or browse to the location on the management computer where
the certificate has been saved, select the certificate, and then select OK.

The system assigns a unique name to each CRL. The names are numbered consecutively
(CRL_1, CRL_2, CRL_3, and so on).

FortiGate Version 4.0 MR1 Administration Guide


310 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance About the Maintenance menu

System Maintenance
This section describes how to maintain your system configuration as well as how to enable
and update FDN services. This section also explains the types of FDN services that are
available for your FortiGate unit.
If you enable virtual domains (VDOMs) on the FortiGate unit, system maintenance is
configured globally for the entire FortiGate unit. For more information, see “Using virtual
domains” on page 159.
This section includes the following topics:
• About the Maintenance menu
• Managing configuration revisions
• Using script files
• Configuring FortiGuard Services
• Troubleshooting FDN connectivity
• Updating antivirus and attack definitions
• Enabling push updates
• Adding VDOM Licenses

About the Maintenance menu


The maintenance menu provides help with maintaining and managing firmware,
configuration revisions, script files, and FortiGuard subscription-based services. From this
menu, you can upgrade or downgrade the firmware, view historical backups of
configuration files, or update FortiGuard services.
The maintenance menu has the following tabs:
• Backup & Restore - allows you to back up and restore your system configuration file,
remotely upgrade firmware, and import CLI commands.
• Revision Control - displays all system configuration backups with the date and time of
when they were backed up. Before you can use revision control, a Central
Management server must be configured and enabled.
• Scripts - displays script history execution and provides a way to upload script files to
the FortiGuard Analysis & Management Service portal web site
• FortiGuard - displays all FDN subscription services, such as antivirus and IPS
definitions as well as the FortiGuard Analysis & Management Service. This tab also
provides configuration options for antivirus, IPS, web filtering, and antispam services.
• License - allows you to increase the maximum number of VDOMs (on some FortiGate
models).
When backing up the system configuration, web content files and spam filtering files are
also included. You can save the configuration to the management computer or to a USB
disk if your FortiGate unit includes a USB port (see “Formatting USB Disks” on page 318).
You can also restore the system configuration from previously downloaded backup files in
the Backup & Restore menu.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 311
http://docs.fortinet.com/ • Feedback
Backing up and restoring System Maintenance

When virtual domain configuration 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 global settings and the settings included in each VDOM.
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 that the regular administrator belongs to. A
regular administrator is the only user account that can restore the configuration from this
file.
Some FortiGate models support FortiClient by storing a FortiClient image that users can
download. The FortiClient section of Backup & Restore is available if your FortiGate model
supports FortiClient.

Tip: For simplified procedures on managing firmware, including backup and restore
options, and on uploading and downloading firmware for your FortiGate unit, see
For
“Managing firmware versions” on page 147.

Backing up and restoring


The Backup & Restore tab allows you to back up and restore your FortiGate configuration
to your management PC, a central management server, or a USB disk. You can back up
and restore your configuration to a USB disk if the FortiGate unit includes a USB port and
if you have connected a USB disk to the USB port. FortiGate units support most USB
disks including USB keys and external USB hard disks (see “Formatting USB Disks” on
page 318). The central management server is whatever remote management service the
FortiGate unit is connected to. For example, if the current configuration on a FortiGate-60
is backed up to a FortiManager unit, the central management server is the FortiManager
unit.
You must configure central management in System > Admin > Central Management
before these options are available in the Backup & Restore section. For more information,
see “Central Management” on page 285.
To view the backup and restore options, go to System > Maintenance > Backup and
Restore.

Figure 162: Backup and restore

FortiGate Version 4.0 MR1 Administration Guide


312 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Backing up and restoring

Basic backup and restore options


This section of the Backup & Restore page provides the option of backing up the current
configuration file to several different locations, including encryption for added security. You
can also restore a backed-up configuration file.
To view the backup and restore options, go to System > Maintenance >
Backup & Restore.

Figure 163: Backup & Restore options with FortiGuard services option enabled

Backup
Backup configuration to: The options available for backing up your current configuration. Select
one of the displayed options:
Local PC Back up the configuration to the management computer the FortiGate
unit is connected to. Local PC is always displayed regardless of
whether a USB disk is available, FortiGuard Analysis & Management
Service is enabled, or the FortiGate unit is connected to a
FortiManager unit.
FortiGuard | Back up the configuration to the FortiGuard Analysis & Management
Management Station Service. If the service is not enabled, Management Station is
displayed.
USB Disk Back up the configuration file to the USB disk connected to the
FortiGate unit. USB Disk is displayed only if the FortiGate unit includes
a USB port. If you do not connect a USB disk, this option is grayed out.
For more information, see “Formatting USB Disks” on page 318.
FortiManager Back up the configuration to the configured FortiManager unit. If the
FortiGate unit is not connected to a FortiManager unit, this option is not
displayed.
Encrypt configuration Select to encrypt the backup file.
file Encryption must be enabled to save VPN certificates with the
configuration.
This option is not available for configurations backed up to a
FortiManager unit.
Password Enter a password to encrypt the configuration file. You will need this
password to restore the configuration file.
Confirm Enter the password again to confirm the password.
Filename Enter the name of the backup file or select Browse to locate the file.
The Filename field is available only when you choose to back up the
configuration to a USB disk.
Backup Select to back up the configuration.
If you are backing up to a FortiManager device, a confirmation
message is displayed after successfully completion of the backup.
Restore

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 313
http://docs.fortinet.com/ • Feedback
Backing up and restoring System Maintenance

Restore configuration The options available for restoring the configuration from a specific file.
from: Select one of the displayed options:
Local PC Restore a configuration file from the management computer the
FortiGate unit is connected to. Local PC is always displayed regardless
of whether a USB disk is available, FortiGuard Analysis &
Management Service is enabled, or the FortiGate unit is connected to
a FortiManager unit.
USB disk Restore a configuration file from the USB disk connected to the
FortiGate unit. USB Disk is displayed only if the FortiGate unit includes
a USB port. If you do not connect a USB disk, this option is grayed out.
See “Formatting USB Disks” on page 318.
FortiGuard Restore a configuration from the FortiGuard Analysis & Management
Service. If FortiGuard Management Services is not enabled, this option
is not displayed and instead displays Management Station.
FortiManager Restore a configuration from the configured FortiManager unit. If the
FortiGate unit is not connected to a FortiManager unit, this option is not
displayed.
Filename Select the configuration file name from the Browse list if you are
restoring the configuration from a USB disk.
Enter the configuration file name or select Browse if you are restoring
the configuration from a file on the management computer.
Password Enter the password you entered when backing up the configuration file.
Restore Select to restore the configuration.

Note: When central management is disabled, Management Station appears. FortiGuard


appears when the FortiGuard Analysis & Management Service is enabled.

Remote FortiManager backup and restore options


Your FortiGate unit can be remotely managed by a FortiManager unit. The FortiGate unit
connects using the FortiGuard-FortiManager protocol. This protocol provides
communication between a FortiGate unit and a FortiManager unit, and runs over SSL
using IPv4/TCP port 541.
For detailed instructions on how to install a FortiManager unit, see the FortiManager Install
Guide.
After successfully connecting to the FortiManager unit from your FortiGate unit, you can
back up your configuration to the FortiManager unit. You can also restore your
configuration.
The automatic configuration backup is available only in local mode on the FortiManager
unit.
A list of revisions is displayed when restoring the configuration from a remote location.
The list allows you to choose the configuration to restore.
To view the basic backup and restore options, go to System > Maintenance >
Backup & Restore.

FortiGate Version 4.0 MR1 Administration Guide


314 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Backing up and restoring

Figure 164: Backup & Restore options with FortiManager option enabled
\

Backup The options available for backing up your current configuration to a


FortiManager unit.
Backup configuration Select FortiManager to upload the configuration to the FortiManager
to: unit.
The Local PC option is always available.
Comments: Enter a description or information about the file in the Comments field.
This is optional.
Backup Select to back up the configuration file to the FortiManager unit.
A confirmation message appears after successful completion of the
backup.
Restore The options for restoring a configuration file.
Restore configuration Select the FortiManager option to download and restore the
from: configuration from the FortiManager unit.
Please Select: Select the configuration file you want to restore from the list. This list
includes the comments you included in the Comment field before it
was uploaded to the FortiManager unit.
The list is in numerical order, with the recent uploaded configuration
first.
Restore Select to restore the configuration from the FortiManager unit.

Remote FortiGuard backup and restore options


Your FortiGate unit can be remotely managed by a central management server, which is
available when you register for the FortiGuard Analysis & Management Service. The
FortiGuard Analysis & Management Service is a subscription-based service and is
purchased by contacting support. Additional information, including how to register you
FortiGate unit for the FortiGuard Analysis & Management Service, is available in the
FortiGuard Analysis & Management Service Users Guide.
After registering, you can back up or restore your configuration. The FortiGuard Analysis &
Management Service is useful when administering multiple FortiGate units without having
a FortiManager unit.
You can also upgrade the firmware on your FortiGate unit using the FortiGuard Analysis &
Management Service. Upgrading the firmware is available in the Firmware Upgrade
section of the backup and restore menu. See “Upgrading and downgrading firmware
through FortiGuard” on page 317 for more information about upgrading firmware from the
backup and restore menu.

Tip: For simplified procedures on managing firmware, including backup and restore
options, and on uploading and downloading firmware for your FortiGate unit, see
For
“Managing firmware versions” on page 147.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 315
http://docs.fortinet.com/ • Feedback
Backing up and restoring System Maintenance

When restoring the configuration from a remote location, a list of revisions is displayed so
that you can choose the configuration file to restore.
To view the basic backup and restore options, go to System > Maintenance >
Backup & Restore.

Figure 165: Backup & Restore Central Management options

Backup The options available for backing up your current configuration to the
FortiGuard Analysis & Management Service.
Backup configuration Select the FortiGuard option to upload the configuration to the
to: FortiGuard Analysis & Management Service.
The Local PC option is always available.
Comments: Enter a description or information about the file in the Comments field.
This is optional.
Backup Select to back up the configuration file to the FortiGuard Analysis &
Management Service.
A confirmation message appears after successful completion of the
backup.
Restore The options for restoring a configuration file.
Restore configuration Select the FortiGuard option to download the configuration file from
from: the FortiGuard Analysis & Management Service.
Please Select: Select the configuration file you want to restore from the list. This list
includes the comments you included in the Comment field before it
was uploaded to the FortiGuard Analysis & Management Service.
The list is in numerical order, with the recent uploaded configuration
first.
Restore Select to restore the configuration from the FortiGuard Analysis &
Management Service.

Note: The FortiGuard-FortiManager protocol is used when connecting to the FortiGuard


Analysis & Management Service. This protocol runs over SSL using IPv4/TCP port 541 and
includes the following functions:
• detects FortiGate unit dead or alive status
• detects management service dead or alive status
• notifies the FortiGate units about configuration changes, AV/IPS database update and
firewall changes.

Upgrading and downgrading firmware


The firmware section displays the current version of firmware installed on your FortiGate
unit, as well as the firmware version currently in use if there is more than one firmware
image saved on the FortiGate unit.
To view the firmware options, go to System > Maintenance > Backup & Restore.

FortiGate Version 4.0 MR1 Administration Guide


316 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Backing up and restoring

Figure 166: Firmware images

Partition A partition can contain one version of the firmware and the system
configuration. FortiGate-100A units and higher have two partitions.
One partition is active and the other is used as a backup.
Active A green check mark indicates the partition currently in use.
Last upgrade The date and time of the last update to this partition.
Firmware Version The version and build number of the FortiGate firmware. If your
FortiGate model has a backup partition, you can:
• Select Upload to replace with firmware from the management
computer or a USB disk. The USB disk must be connected to the
FortiGate unit USB port. See “Formatting USB Disks” on page 318.
• Select Upload and Reboot to replace the existing firmware and
make this the active partition.
Boot alternate firmware Restart the FortiGate unit using the backup firmware.
This is available only for FortiGate-100 units or higher.

Upgrading and downgrading firmware through FortiGuard


The Firmware Upgrade section of the backup and restore page displays options for
upgrading to a new version using the FortiGuard Analysis & Management Service if that
option is available to you. Using the FortiGuard Analysis & Management Service to
upgrade the firmware on your FortiGate unit is only available on certain FortiGate units.
You must register for the service by contacting customer support.
Detailed firmware version information is provided if you have subscribed for the
FortiGuard Analysis & Management Service.
To view the firmware options, go to System > Maintenance > Backup & Restore.

Figure 167: Firmware Upgrade section of the Backup & Restore page

Upgrade from FortiGuard Select one of the available firmware versions. The list contains the
network to firmware following information for each available firmware release:
version: [Please Select] • continent (for example, North America)
• maintenance release number
• patch release number
• build number.
For example, if you are upgrading to FortiOS 3.0 MR6 and the
FortiGate unit is located in North America, the firmware version
available is v3.0 MR6-NA (build 0700).
Allow firmware Select to allow installation of older versions than the one currently
downgrade installed.
This is useful if the current version changed functionality you need and
you have to revert to an older firmware image.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 317
http://docs.fortinet.com/ • Feedback
Backing up and restoring System Maintenance

Upgrade by File Select Browse to locate a file on your local PC to upload to the
FortiGate unit.
OK Select OK to enable your selection.

Configuring advanced options


The Advanced section on the backup and restore page includes the USB Auto Install
feature and the debug log. The USB settings are available only if the FortiGate unit
includes a USB port. You must connect a USB disk to the FortiGate unit USB port to use
the USB auto-install feature. See “Formatting USB Disks” on page 318.
To view the advanced options, go to System > Maintenance > Backup & Restore.

Figure 168: Options available in the Advanced section

On system restart, Automatically update the configuration on restart. Ensure that the
automatically update default configuration file name matches the configuration file name on
FortiGate the USB disk.
configuration... If the configuration file on the disk matches the currently installed
configuration, the FortiGate unit skips the configuration update
process.
On system restart, Automatically update the firmware on restart. Ensure that the default
automatically update image name matches the firmware file name on the USB disk.
FortiGate firmware... If the firmware image on the disk matches the currently installed
firmware, the FortiGate unit skips the firmware update process.
Apply Select to apply the selected settings.
Download Debug Log Download an encrypted debug log to a file. You can send this debug
log to Fortinet Technical Support to help diagnose problems with your
FortiGate unit.

Formatting USB Disks


FortiGate units with USB ports support USB disks for backing up and restoring
configurations.
FortiUSB and generic USB disks are supported, but the generic USB disk must be
formatted as a FAT16 disk. No other partition type is supported.

Caution: Formatting the USB disk deletes all information on the disk. Back up the
information on the USB disk before formatting to ensure all information on the disk is
recoverable.

There are two ways that you can format the USB disk, either by using the CLI or a
Windows system. You can format the USB disk in the CLI using the command syntax,
exe usb-disk format. When using a Windows system to format the disk, at the
command prompt type, “format <drive_letter>: /FS:FAT /V:<drive_label>”
where <drive_letter> is the letter of the connected USB drive you want to format, and
<drive_label> is the name you want to give the USB drive for identification.

FortiGate Version 4.0 MR1 Administration Guide


318 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Managing configuration revisions

Managing configuration revisions


The Revision Control tab enables you to manage multiple versions of configuration files.
Revision control requires a configured central management server. This server can either
be a FortiManager unit or the FortiGuard Analysis & Management Service.
If central management is not configured on your FortiGate unit, a message appears to tell
you to do one of the following:
• enable central management (see “Central Management” on page 285)
• obtain a valid license.
When revision control is enabled on your FortiGate unit, and configurations have been
backed up, a list of saved revisions of those backed-up configurations appears.
To view the configuration revisions, go to System > Maintenance > Revision Control.

Figure 169: Revision Control page displaying system configuration backups


Current
Page

Diff
Revert
Download

Current Page The current page number of list items that are displayed. Select the left
and right arrows to display the first, previous, next or last page of
system configuration backups.
For more information, see “Using page controls on web-based
manager lists” on page 102.
Revision An incremental number indicating the order in which the configurations
were saved. These may not be consecutive numbers if configurations
are deleted.
The most recent, and highest, number is first in the list.
Date/Time The date and time this configuration was saved on the FortiGate unit.
Administrator The administrator account that was used to back up this revision.
Comments Any relevant information saved with the revision, such as why the
revision was saved, who saved it, and if there is a date when it can be
deleted to free up space.
Diff icon Select to compare two revisions.
A window will appear, from which you can view and compare the
selected revision to one of:
• the current configuration
• a selected revision from the displayed list including revision history
and templates
• a specified revision number.
Download icon Download this revision to your local PC.
Revert icon Restore the previous selected revision. You will be prompted to confirm
this action.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 319
http://docs.fortinet.com/ • Feedback
Using script files System Maintenance

Using script files


Scripts are text files containing CLI command sequences. These can be uploaded and
executed to run complex command sequences easily. Scripts can be used to deploy
identical configurations to many devices. For example, if all of your devices use identical
administrator admin profiles, you can enter the commands required to create the admin
profiles in a script, and then deploy the script to all the devices which should use those
same settings.
If you are using a FortiGate unit without a FortiManager unit or the FortiGuard Analysis &
Management Service, the scripts you upload are executed and discarded. If you want to
execute a script more than once, you must keep a copy on your management PC.
If your FortiGate unit is configured to use a FortiManager unit, you can upload your scripts
to the FortiManager unit, and run them from any FortiGate unit configured to use the
FortiManager unit. If you upload a script directly to a FortiGate unit, it is executed and
discarded.
If your FortiGate unit is configured to use the FortiGuard Analysis & Management Service,
scripts you upload are executed and stored. You can run uploaded scripts from any
FortiGate unit configured with your FortiGuard Analysis & Management Service account.
The uploaded script files appear on the FortiGuard Analysis & Management Service portal
web site.
After executing scripts, you can view the script execution history on the script page. The
list displays the last 10 executed scripts.
To view the script options, go to System > Maintenance > Scripts.

Figure 170: Script execution history

Execute Script from Scripts can be uploaded directly to the FortiGate unit from the
management PC. If you have configured either a FortiManager unit or
the FortiGuard Analysis & Management Service, scripts that have
been stored remotely can also be run on the FortiGate unit.
Upload Bulk CLI Select Browse to locate the script file and then select Apply to upload
Command File and execute the file.
If the FortiGate unit is configured to use the FortiGuard Analysis &
Management Service, the script will be saved on the server for later
use.
Select From remote Select to execute a script from the FortiManager unit or the FortiGuard
management station Analysis & Management Service. Choose the script you want to run
from the list of all scripts stored remotely.

FortiGate Version 4.0 MR1 Administration Guide


320 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Using script files

Script Execution History A list of the 10 most recently executed scripts.


(past 10 scripts)
Name The name of the script file.
Type The source of the script file. A local file is uploaded directly to the
FortiGate unit from the management PC and executed. A remote file
is executed on the FortiGate unit after being sent from a FortiManager
unit or the FortiGuard Analysis & Management Service.
Time The date and time the script file was executed.
Status The status of the script file, if its execution succeeded or failed.
Delete icon Delete the script entry from the list.

Creating script files


Script files are text files with CLI command sequences. When a script file is uploaded to a
FortiGate unit, the commands are executed in sequence.

To create a script file


1 Open a text editor application. Notepad on Windows, GEdit on Linux, Textedit on the
Mac, or any editor that will save plain text can create a script file.
2 Enter the CLI commands you want to run.
The commands must be entered in sequence, with one command per line.
3 Save the file to your maintenance PC.

Tip: An unencrypted configuration file uses the same structure and syntax as a script file.
You can save a configuration file and copy the required parts to a new file, making any edits
you require. You can generate script files more quickly this way.

Uploading script files


After you have created a script file, you can then upload it through System >
Maintenance > Scripts. When a script is uploaded, it is automatically executed.

Caution: Commands that require the FortiGate unit to reboot when entered on the
command line will also force a reboot if included in a script.

To execute a script
1 Go to System > Maintenance > Scripts.
2 Verify that Upload Bulk CLI Command File is selected.
3 Select Browse to locate the script file.
4 Select Apply.
If the FortiGate unit is not configured for remote management, or if it is configured to use a
FortiManager unit, uploaded scripts are discarded after execution. Save script files to your
management PC if you want to execute them again later.
If the FortiGate unit is configured to use the FortiGuard Analysis & Management Service,
the script file is saved to the remote server for later reuse. You can view the script or run it
from the FortiGuard Analysis & Management Service portal web site. For more
information about viewing or running an uploaded script on the portal web site, see the
FortiGuard Analysis & Management Service Users Guide.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 321
http://docs.fortinet.com/ • Feedback
Configuring FortiGuard Services System Maintenance

Configuring FortiGuard Services


Go to System > Maintenance > FortiGuard to configure your FortiGate unit to use the
FortiGuard Distribution Network (FDN) and FortiGuard Services. The FDN provides
updates to antivirus definitions, IPS definitions, and the Antispam rule set. FortiGuard
Services include FortiGuard web filtering and the FortiGuard Analysis and Management
Service.

FortiGuard Distribution Network


The FDN is a world-wide network of FortiGuard Distribution Servers (FDS). The FDN
provides updates to antivirus (including grayware) definitions, IPS definitions, and the
antispam rule set. When the FortiGate unit contacts the FDN, it connects to the nearest
FDS based on the current time zone setting.
The FortiGate unit supports the following update options:
• user-initiated updates from the FDN
• hourly, daily, or weekly scheduled antivirus definition, IPS definition, and antispam rule
set updates from the FDN
• push updates from the FDN
• update status including version numbers, expiry dates, and update dates and times
• push updates through a NAT device.
Registering your FortiGate unit on the Fortinet Support web page provides a valid license
contract and connection to the FDN. On the Fortinet Support web page, go to Product
Registration and follow the instructions.
The FortiGate unit must be able to connect to the FDN using HTTPS on port 443 to
receive scheduled updates. For more information, see “To enable scheduled updates” on
page 329.
You can also configure the FortiGate unit to receive push updates. When the FortiGate
unit is receiving push updates, the FDN must be able to route packets to the FortiGate unit
using UDP port 9443. For more information, see “Enabling push updates” on page 330. If
the FortiGate unit is behind a NAT device, see “Enabling push updates through a NAT
device” on page 331.

FortiGuard services
Worldwide coverage of FortiGuard services is provided by FortiGuard service points.
When the FortiGate unit is connecting to the FDN, it is connecting to the closest
FortiGuard service point. Fortinet adds new service points as required.
If the closest service point becomes unreachable for any reason, the FortiGate unit
contacts another service point and information is available within seconds. By default, the
FortiGate unit communicates with the service point via UDP on port 53. Alternately, you
can switch the UDP port used for service point communication to port 8888 by going to
System > Maintenance > FortiGuard.
If you need to change the default FortiGuard service point host name, use the hostname
keyword in the system fortiguard CLI command. You cannot change the FortiGuard
service point name using the web-based manager.
For more information about FortiGuard services, see the FortiGuard Center web page.

FortiGate Version 4.0 MR1 Administration Guide


322 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Configuring FortiGuard Services

FortiGuard Antispam service


FortiGuard Antispam is an antispam system from Fortinet that includes an IP address
black list, a URL black list, spam filtering tools, contained in an antispam rule set that is
downloaded to the FortiGate unit. The IP address black list contains IP addresses of email
servers known to generate spam. The URL black list contains URLs that are found in
spam email.
FortiGuard Antispam processes are completely automated and configured by Fortinet.
With constant monitoring and dynamic updates, FortiGuard Antispam is always current.
You can either enable or disable FortiGuard Antispam in the Firewall menu in a protection
profile. For more information, see “Email Filtering options” on page 498.
Every FortiGate unit comes with a free 30-day FortiGuard Antispam trial license.
FortiGuard Antispam license management is performed by Fortinet servers; there is no
need to enter a license number. The FortiGate unit automatically contacts a FortiGuard
Antispam service point when enabling FortiGuard Antispam. Contact Fortinet Technical
support to renew the FortiGuard Antispam license after the free trial expires.
You can globally enable FortiGuard Antispam in System > Maintenance > FortiGuard and
then configure Spam Filtering options in each firewall protection profile in Firewall >
Protection Profile. For more information, see “Email Filtering options” on page 498.

FortiGuard Web Filtering service


FortiGuard Web Filtering is a managed web filtering solution provided by Fortinet.
FortiGuard Web Filtering sorts hundreds of millions of web pages into a wide range of
categories users can allow, block, or monitor. The FortiGate unit accesses the nearest
FortiGuard Web Filtering service point to determine the category of a requested web
page, then follows the firewall policy configured for that user or interface.
Every FortiGate unit comes with a free 30-day FortiGuard Web Filtering trial license.
FortiGuard license management is performed by Fortinet servers. There is no need to
enter a license number. The FortiGate unit automatically contacts a FortiGuard service
point when enabling FortiGuard category blocking. Contact Fortinet Technical Support to
renew a FortiGuard license after the free trial.
You can globally enable FortiGuard Web Filtering in System > Maintenance > FortiGuard
and then configure FortiGuard Web Filtering options for each profile in Firewall >
Protection Profiles. For more information, see “FortiGuard Web Filtering options” on
page 495.

FortiGuard Analysis & Management Service


FortiGuard Analysis & Management Service is a subscription-based service that provides
remote management services, including logging and reporting capabilities for all FortiGate
units. These services were previously available only on FortiAnalyzer and FortiManager
units.
The subscription-based service is available from the FortiGuard Analysis & Management
Service portal web site, which provides a central location for configuring logging and
reporting and remote management, and for viewing subscription contract information,
such as daily quota and the expiry date of the service.

Configuring the FortiGate unit for FDN and FortiGuard subscription services
FDN updates, as well as FortiGuard services, are configured in System > Maintenance >
FortiGuard. The FDN page contains four sections of FortiGuard services:
• Support Contract and FortiGuard Subscription Services

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 323
http://docs.fortinet.com/ • Feedback
Configuring FortiGuard Services System Maintenance

• Downloading antivirus and IPS updates


• Configuring Web Filtering and AntiSpam Options
• Configuring FortiGuard Analysis & Management Service Options

Support Contract and FortiGuard Subscription Services


The Support Contract and FortiGuard Subscription Services sections are displayed in
abbreviated form on the System Status page. See “Viewing the system dashboard” on
page 108.
To view the FortiGuard options, go to System > Maintenance > FortiGuard.

Figure 171: Support Contract and FortiGuard Subscription Services section

License status icon


License expiry
Valid license

Support Contract The availability or status of your FortiGate unit support contract. The
status displays can be one of the following: Unreachable, Not
Registered or Valid Contract.
If Valid Contract is shown, the FortiOS firmware version and contract
expiry date appear. A green checkmark also appears.
[Register] Select to register your FortiGate unit support contract.
This option is available only when the support contract is not
registered.
FortiGuard Subscription Availability and status information for each of the FortiGuard
Services subscription services including:
• AntiVirus
• Intrusion Protection
• Web Filtering
• AntiSpam
• Analysis & Management Service
[Availability] The availability of this service on this FortiGate unit, dependent on
your service subscription. The status can be Unreachable, Not
Registered, Valid License, or Valid Contract.
The option Subscribe appears if Availability is Not Registered.
The option Renew appears if Availability has expired.
[Update] Select to manually update this service on your FortiGate unit. This will
prompt you to download the update file from your local computer.
Select Update Now to immediately download current updates from
FDN directly.

FortiGate Version 4.0 MR1 Administration Guide


324 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Configuring FortiGuard Services

[Register] Select to register the service. This is displayed in Analysis &


Management Service.
Status Icon Indicates the status of the subscription service. The icon corresponds
to the availability description.
Gray (Unreachable) – FortiGate unit is not able to connect to service.
Orange (Not Registered) – FortiGate unit can connect, but is not
subscribed to this service.
Yellow (Expired) – FortiGate unit had a valid license that has expired.
Green (Valid license) – FortiGate unit can connect to FDN and has a
registered support contract.
If the Status icon is green, the expiry date is displayed.
[Version] The version number of the definition file currently installed on the
FortiGate unit for this service.
[Last update date and The date of the last update and method used for last attempt to
method] download definition updates for this service.
[Date] Local system date when the FortiGate unit last checked for updates
for this service.

Downloading antivirus and IPS updates


In the Antivirus and IPS Options section, you can schedule antivirus and IPS updates,
configure an override server, or allow push updates. You can access these options by
selecting the expand arrow.
The SETUP message that the FortiGate unit sends when you enable push updates
includes the IP address of the FortiGate interface that the FDN connects to. Use the Use
override push IP option when your FortiGate unit is behind a NAT device. The FortiGate
unit sends the FDS the IP and port numbers of the NAT device to the FDS. The NAT
device must also be configured to forward the FDS traffic to the FortiGate unit on port
9443.
For more information, see “Enabling push updates through a NAT device” on page 331.

Figure 172: AntiVirus and IPS Options section

Expand arrow Allow Push Update Status

Use override server Select to configure an override server if you cannot connect to the
address FDN or if your organization provides updates using their own
FortiGuard server.
When selected, enter the IP address or domain name of a FortiGuard
server and select Apply. If the FDN Status still indicates no connection
to the FDN, see “Troubleshooting FDN connectivity” on page 328.
Allow Push Update Select to allow push updates. Updates are then sent automatically to
your FortiGate unit when they are available, eliminating any need for
you to check if they are available.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 325
http://docs.fortinet.com/ • Feedback
Configuring FortiGuard Services System Maintenance

Allow Push Update The status of the FortiGate unit for receiving push updates:
status icon Gray (Unreachable) - theFortiGate unit is not able to connect to push
update service
Yellow (Not Available) - the push update service is not available with
current support license
Green (Available) - the push update service is allowed. See
“Enabling push updates” on page 330.
If the icon is gray or yellow, see “Troubleshooting FDN connectivity” on
page 328.
Use override push IP Available only if both Use override server address and Allow Push
Update are enabled.
Select to allow you to create a forwarding policy that redirects
incoming FDS push updates to your FortiGate unit.
Enter the IP address of the NAT device in front of your FortiGate unit.
FDS will connect to this device when attempting to reach the FortiGate
unit.
The NAT device must be configured to forward the FDS traffic to the
FortiGate unit on UDP port 9443. See “Enabling push updates through
a NAT device” on page 331.
Port Select the port on the NAT device that will receive the FDS push
updates. This port must be forwarded to UDP port 9443 on the
FortiGate unit.
Available only if Use override push is enabled.
Schedule Updates Select this check box to enable scheduled updates.
Every Attempt to update once every 1 to 23 hours. Select the number of
hours between each update request.
Daily Attempt to update once a day. You can specify the hour of the day to
check for updates. The update attempt occurs at a randomly
determined time within the selected hour.
Weekly Attempt to update once a week. You can specify the day of the week
and the hour of the day to check for updates. The update attempt
occurs at a randomly determined time within the selected hour.
Update Now Select to manually initiate an FDN update.
Submit attack Fortinet recommends that you select this check box. It helps to
characteristics… improve the quality of IPS signature.
(recommended)

Configuring Web Filtering and AntiSpam Options


You can access this section by selecting the expand arrow to view Web Filtering and
AntiSpam Options.

Figure 173: Web Filtering and AntiSpam Options section

FortiGate Version 4.0 MR1 Administration Guide


326 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Configuring FortiGuard Services

Enable Web Filter Select to enable the FortiGuard Web Filter service.
Enable Cache Select to enable caching of web filter queries.
This improves performance by reducing FortiGate unit requests to the
FortiGuard server. The cache uses 6 percent of the FortiGate memory.
When the cache is full, the least recently used IP address or URL is
deleted.
Available if Enable Web Filter is selected.
TTL Time to live. The number of seconds to store blocked IP addresses
and URLs in the cache before contacting the server again.TTL must
be between 300 and 86400 seconds.
Available only if both Enable Web Filter and Enable Cache are
selected.
Enable AntiSpam Select to enable the FortiGuard AntiSpam service.
Enable Cache Select to enable caching of antispam queries.
This improves performance by reducing FortiGate unit requests to the
FortiGuard server. The cache uses 6 percent of the FortiGate memory.
When the cache is full, the least recently used IP address or URL is
deleted.
Available only if Enable AntiSpam is selected.
TTL Time to live. The number of seconds to store blocked IP addresses
and URLs in the cache before contacting the server again.TTL must
be between 300 and 86400 seconds.
Port Section Select one of the following ports for your web filtering and antispam
requirements:
Use Default Port (53) Select to use port 53 for transmitting with FortiGuard Antispam
servers.
Use Alternate Port Select to use port 8888 for transmitting with FortiGuard Antispam
(8888) servers.
Test Availability Select to test the connection to the servers. Results are shown below
the button and on the Status indicators.
To have a URL's category Select to re-evaluate a URL’s category rating on the FortiGuard Web
rating re-evaluated, please Filter service.
click here.

Configuring FortiGuard Analysis & Management Service Options


The Analysis & Management Service Options section contains the Account ID and other
options regarding the FortiGuard Analysis & Management Service.
You can access this section by selecting the expand arrow.

Figure 174: FortiGuard Analysis & Management Service options

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 327
http://docs.fortinet.com/ • Feedback
Troubleshooting FDN connectivity System Maintenance

Account ID Enter the name for the Analysis & Management Service that identifies
the account.
The account ID that you entered in the Account ID field when
registering is used in this field.
To launch the service Select to go directly to the FortiGuard Analysis & Management Service
portal, please click here portal web site to view logs or configuration. You can also select this to
register your FortiGate unit with the FortiGuard Analysis &
Management Service.
To configure FortiGuard Select the link please click here to configure and enable logging to the
Analysis Service options, FortiGuard Analysis & Management server. The link redirects you to
please click here Log&Report > Log Config > Log Setting.
This appears only after registering for the service.
To purge logs older than n Select the number of months from the list that will remove those logs
months, please click here from the FortiGuard Analysis & Management server and select the link
please click here. For example, if you select 2 months, the logs from
the past two months will be removed from the server.
You can also use this option to remove logs that may appear on a
current report.
This appears only after logging is enabled and log messages are sent
to the FortiGuard Analysis server.

Troubleshooting FDN connectivity


If your FortiGate unit is unable to connect to the FDN, check your configuration. For
example, you may need to add routes to the FortiGate routing table or configure your
network to allow the FortiGate unit to use HTTPS on port 443 to connect to the Internet.
You might have to connect to an override FortiGuard server to receive updates. For more
information, see “To add an override server” on page 329. If this is not successful, check
your configuration to make sure you can connect to the override FortiGuard server from
the FortiGate unit.
Push updates might be unavailable if:
• you have not registered the FortiGate unit (go to Product Registration and follow the
instructions on the web site if you have not already registered your FortiGate unit)
• there is a NAT device installed between the FortiGate unit and the FDN (see “Enabling
push updates through a NAT device” on page 331)
• your FortiGate unit connects to the Internet using a proxy server (see “To enable
scheduled updates through a proxy server” on page 330).

Updating antivirus and attack definitions


Use the following procedures to configure the FortiGate unit to connect to the FDN to
update the antivirus (including grayware) definitions and IPS attack definitions.

Note: Updating antivirus and IPS attack definitions can cause a very short disruption in
traffic scanning while the FortiGate unit applies the new signature definitions. Fortinet
recommends scheduling updates when traffic is light to minimize disruption.

To make sure the FortiGate unit can connect to the FDN


1 Go to System > Status and select Change on the System Time line in the System
Information section.
Verify that the time zone is set correctly, corresponding to the region where your
FortiGate unit is located.

FortiGate Version 4.0 MR1 Administration Guide


328 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Updating antivirus and attack definitions

2 Go to System > Maintenance > FortiGuard.


3 Select the expand arrow beside Web Filtering and AntiSpam Options to reveal the
available options.
4 Select Test Availability.
The FortiGate unit tests its connection to the FDN. The test results displays at the top
of the FortiGuard page.

To update antivirus and attack definitions


1 Go to System > Maintenance > FortiGuard.
2 Select the expand arrow beside Antivirus and IPS Options to reveal the available
options.
3 Select Update Now to update the antivirus and attack definitions.
If the connection to the FDN or override server is successful, the web-based manager
displays a message similar to the following:
Your update request has been sent. Your database will be updated in
a few minutes. Please check your update page for the status of the
update.
After a few minutes, if an update is available, the FortiGuard page lists new version
information for antivirus definitions and IPS attack definitions. The page also displays new
dates and version numbers for the updated definitions and engines. Messages are
recorded to the event log, indicating whether the update was successful or not.

To enable scheduled updates


1 Go to System > Maintenance > FortiGuard.
2 Select the expand arrow beside AntiVirus and IPS Options to reveal the available
options.
3 Select the Scheduled Update check box.
4 Select one of the following:

Every Once every 1 to 23 hours. Select the number of hours and minutes
between each update request.
Daily Once a day. You can specify the time of day to check for updates.
Weekly Once a week. You can specify the day of the week and the time of
day to check for updates.

5 Select Apply.
The FortiGate unit starts the next scheduled update according to the new update
schedule.
Whenever the FortiGate unit runs a scheduled update, the event is recorded in the
FortiGate event log.
If you cannot connect to the FDN, or if your organization provides antivirus and IPS
attack updates using its own FortiGuard server, you can use the following procedure to
add the IP address of an override FortiGuard server.

To add an override server


1 Go to System > Maintenance > FortiGuard.
2 Select the Use override server address check box.
3 Type the fully qualified domain name or IP address of the FortiGuard server.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 329
http://docs.fortinet.com/ • Feedback
Enabling push updates System Maintenance

4 Select Apply.
The FortiGate unit tests the connection to the override server.
If the FortiGuard Distribution Network availability icon changes from gray to green, the
FortiGate unit has successfully connected to the override server.
If the FortiGuard Distribution Network availability icon stays gray, the FortiGate unit
cannot connect to the override server. Check the FortiGate configuration and network
configuration for settings that may prevent the FortiGate unit from connecting to the
override FortiGuard server.

To enable scheduled updates through a proxy server


If your FortiGate unit must connect to the Internet through a proxy server, you can use the
config system autoupdate tunneling command syntax to allow the FortiGate unit
to connect (or tunnel) to the FDN using the proxy server. For more information, see the
FortiGate CLI Reference.

Enabling push updates


The FDN can push updates to FortiGate units to provide the fastest possible response to
critical situations. You must register the FortiGate unit before it can receive push updates.
Register your FortiGate unit by going to the Fortinet Support web site, Product
Registration, and following the instructions.
When you configure a FortiGate unit to allow push updates, the FortiGate unit sends a
SETUP message to the FDN. The next time new antivirus or IPS attack definitions are
released, the FDN notifies all FortiGate units that are configured for push updates, that a
new update is available. Within 60 seconds of receiving a push notification, the FortiGate
unit requests the update from the FDN.
When the network configuration permits, configuring push updates is recommended in
addition to scheduled updates. Scheduled updates ensure that the FortiGate unit receives
current updates, but if push updates are also enabled, the FortiGate unit will usually
receive new updates sooner.
Fortinet does not recommend enabling push updates as the only method for obtaining
updates. The FortiGate unit might not receive the push notification. When the FortiGate
unit receives a push notification, it makes only one attempt to connect to the FDN and
download updates.

Enabling push updates when a FortiGate unit IP address changes


The SETUP message that the FortiGate unit sends when you enable push updates
includes the IP address of the FortiGate interface that the FDN connects to. The interface
used for push updates is the interface configured in the default route of the static routing
table.
The FortiGate unit sends the SETUP message if you:
• change the IP address of this interface manually
• have set the interface addressing mode to DHCP or PPPoE and your DHCP or PPPoE
server changes the IP address.
The FDN must be able to connect to this IP address so that your FortiGate unit can
receive push update messages. If your FortiGate unit is behind a NAT device, see
“Enabling push updates through a NAT device” on page 331.

FortiGate Version 4.0 MR1 Administration Guide


330 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Enabling push updates

If you have redundant connections to the Internet, the FortiGate unit also sends the
SETUP message when one Internet connection goes down and the FortiGate unit fails
over to another Internet connection.
In transparent mode, if you change the management IP address, the FortiGate unit also
sends the SETUP message to notify the FDN of the address change.

Enabling push updates through a NAT device


If the FDN connects only to the FortiGate unit through a NAT device, you must configure
port forwarding on the NAT device and add the port forwarding information to the push
update configuration. Port forwarding enables the FDN to connect to the FortiGate unit
using UDP on either port 9443 or an override push port that you specify.
If the external IP address of the NAT device is dynamic (PPPoE or DHCP), the FortiGate
unit is unable to receive push updates through a NAT device.
The following procedures configure the FortiGate unit to push updates through a NAT
device. These procedures also include adding port forwarding virtual IP and a firewall
policy to the NAT device.

Figure 175: Example network: Push updates through a NAT device

Internal Virtual IP
network 172.16.35.144 10.20.6.135
(external interface) (external interface)

Internet

NAT Device FDN Server

The overall process is:


1 Register the FortiGate unit on the internal network so that it has a current support
license and can receive push updates. For more information, see “Registering your
Fortinet product” on page 26.
2 Configure the following FortiGuard options on the FortiGate unit on the internal
network.
• Enable Allow push updates.
• Enable Use override push IP and enter the IP address. Usually this is the IP
address of the external interface of the NAT device.
• If required, change the override push update port.
3 Add a port forwarding virtual IP to the NAT device.
• Set the external IP address of the virtual IP to match the override push update IP.
Usually this is the IP address of the external interface of the NAT device.
Add a firewall policy to the FortiGate NAT device that includes the port forwarding virtual
IP.

Note: Push updates are not supported if the FortiGate unit must use a proxy server to
connect to the FDN. See “To enable scheduled updates through a proxy server” on
page 330 for more information.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 331
http://docs.fortinet.com/ • Feedback
Enabling push updates System Maintenance

To configure FortiGuard options on the FortiGate unit on the internal network


1 Go to System > Maintenance > FortiGuard.
2 Select the expand arrow beside AntiVirus and IPS Options to reveal the available
options.
3 Select the Allow Push Update check box.
4 Select the Use override push IP check box.
5 Enter the IP address of the external interface of the NAT device.
UDP port 9943 is changed only if it is blocked or in use.
6 Select Apply.
You can change to the push override configuration if the external IP address of the
external service port changes; select Apply to have the FortiGate unit send the updated
push information to the FDN.
When the FortiGate unit sends the override push IP address and port to the FDN, the FDN
uses this IP address and port for push updates to the FortiGate unit. However, push
updates will not actually work until a virtual IP is added to the NAT device so that the NAT
device accepts push update packets and forwards them to the FortiGate unit on the
internal network.
If the NAT device is also a FortiGate unit, the following procedure, To add a port
forwarding virtual IP to the FortiGate NAT device, allows you to configure the NAT device
to use port forwarding to push update connections from the FDN to the FortiGate unit on
the internal network.

To add a port forwarding virtual IP to the FortiGate NAT device


1 Go to Firewall > Virtual IP.
2 Select Create New.
3 Enter the appropriate information for the following:

Name Enter a name for the Virtual IP.


External Interface Select an external interface from the list. This is the interface that
connects to the Internet.
External IP Enter the IP address and/or range. This is the IP address to which
Address/Range the FDN sends the push updates. This is usually the IP address of
the external interface of the NAT device. This IP address must be
the same as the IP address in User override push update for the
FortiGate unit on the internal network.
Mapped IP Enter the IP address and/or range of the FortiGate unit on the
Address/Range internal network.
Port Forwarding Select Port Forwarding. When you select Port Forwarding, the
options Protocol, External Services Port and Map to Port appear.
Protocol Select UDP.
External Service Port Enter the external service port. The external service port is the port
that the FDN connects to. The external service port for push
updates is usually 9443. If you changed the push update port in the
FortiGuard configuration of the FortiGate unit on the internal
network, you must set the external service port to the changed push
update port.
Map to Port Enter 9443. This is the port number to which the NAT FortiGate unit
will send the push update after it comes through the virtual IP.
FortiGate units expect push update notifications on port 9443.

4 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


332 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
System Maintenance Adding VDOM Licenses

To add a firewall policy to the FortiGate NAT device


1 Go to Firewall > Policy.
2 Select Create New.
3 Configure the external to internal firewall policy.

Source Interface/Zone Select the name of the interface that connects to the Internet.
Source Address Select All
Destination Select the name of the interface of the NAT device that connects to
Interface/Zone the internal network.
Destination Address Select the virtual IP added to the NAT device.
Schedule Select Always.
Service Select ANY.
Action Select Accept.
NAT Select NAT.

4 Select OK.
Verify that push updates to the FortiGate unit on the internal network are working by going
to System > Maintenance > FortiGuard and selecting Test Availability under Web Filtering
and AntiSpam Options. The Push Update indicator should change to green.

Adding VDOM Licenses


If you have you can increase the maximum number of VDOMs on your FortiGate unit you
can purchase a license key from Fortinet to increase the maximum number of VDOMs to
25, 50, 100 or 250. By default, FortiGate units support a maximum of 10 VDOMs.
The license key is a 32-character string supplied by Fortinet. Fortinet requires the serial
number of the FortiGate unit to generate the license key.
The license key is entered in System > Maintenance > License in the Input License Key
field. This appears only on high-end FortiGate models.

Figure 176: License key for additional VDOMs

Current License The current maximum number of virtual domains.


Input License key Enter the license key supplied by Fortinet and select Apply.

Note: VDOMs created on a registered FortiGate unit are recognized as real devices by any
connected FortiAnalyzer unit. The FortiAnalyzer unit includes VDOMs in its total number of
registered devices. For example, if three FortiGate units are registered on the FortiAnalyzer
unit and they contain a total of four VDOMs, the total number of registered FortiGate units
on the FortiAnalyzer unit is seven. For more information, see the FortiAnalyzer
Administration Guide.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 333
http://docs.fortinet.com/ • Feedback
Adding VDOM Licenses System Maintenance

FortiGate Version 4.0 MR1 Administration Guide


334 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Routing concepts

Router Static
This section explains some general routing concepts, and how to define static routes and
route policies.
A route provides the FortiGate unit with the information it needs to forward a packet to a
particular destination on the network. A static route causes packets to be forwarded to a
destination other than the factory configured default gateway.
The factory configured static default route provides you with a starting point to configure
the default gateway. You must either edit the factory configured static default route to
specify a different default gateway for the FortiGate unit, or delete the factory configured
route and specify your own static default route that points to the default gateway for the
FortiGate unit. For more information, see “Default route and default gateway” on
page 340.
You define static routes manually. Static routes control traffic exiting the FortiGate unit—
you can specify through which interface the packet will leave and to which device the
packet should be routed.
As an option, you can define route policies. Route policies specify additional criteria for
examining the properties of incoming packets. Using route policies, you can configure the
FortiGate unit to route packets based on the IP source and destination addresses in
packet headers and other criteria such as on which interface the packet was received and
which protocol (service) and port are being used to transport the packet.
If you enable virtual domains (VDOMs) on the FortiGate unit, static routing is configured
separately for each virtual domain. For more information, see “Using virtual domains” on
page 159.
This section describes:
• Routing concepts
• Static Route
• ECMP route failover and load balancing
• Policy Route

Routing concepts
The FortiGate unit works as a security device on a network and packets must pass
through it. You need to understand a number of basic routing concepts in order to
configure the FortiGate unit appropriately.
Whether you administer a small or large network, this module will help you understand
how the FortiGate unit performs routing functions.
The following topics are covered in this section:
• How the routing table is built
• How routing decisions are made
• Multipath routing and determining the best route
• Route priority
• Route priority

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 335
http://docs.fortinet.com/ • Feedback
Routing concepts Router Static

• Blackhole Route

How the routing table is built


In the factory default configuration, the FortiGate routing table contains a single static
default route. You can add routing information to the routing table by defining additional
static routes. The table may include several different routes to the same destination—the
IP addresses of the next-hop router specified in those routes or the FortiGate interfaces
associated with those routes may vary.
The FortiGate unit selects the “best” route for a packet by evaluating the information in the
routing table. The best route to a destination is typically associated with the shortest
distance between the FortiGate unit and the closest next-hop router. In some cases, the
next best route may be selected if the best route is unavailable. The FortiGate unit installs
the best available routes in the unit’s forwarding table, which is a subset of the unit’s
routing table. Packets are forwarded according to the information in the forwarding table.

How routing decisions are made


Whenever a packet arrives at one of the FortiGate unit’s interfaces, the unit determines
whether the packet was received on a legitimate interface by doing a reverse lookup using
the source IP address in the packet header. If the FortiGate unit cannot communicate with
the computer at the source IP address through the interface on which the packet was
received, the FortiGate unit drops the packet as it is likely a hacking attempt.
If the destination address can be matched to a local address (and the local configuration
permits delivery), the FortiGate unit delivers the packet to the local network. If the packet
is destined for another network, the FortiGate unit forwards the packet to a next-hop router
according to a policy route and the information stored in the FortiGate forwarding table.
For more information, see “Policy Route” on page 351.

Multipath routing and determining the best route


Multipath routing occurs when more than one entry to the same destination is present in
the routing table. When multipath routing happens, the FortiGate unit may have several
possible destinations for an incoming packet, forcing the FortiGate unit to decide which
next-hop is the best one.
Two methods to manually resolve multiple routes to the same destination are to lower the
administrative distance of one route or to set the priority of both routes. For the FortiGate
unit to select a primary (preferred) route, manually lower the administrative distance
associated with one of the possible routes.
Administrative distance is based on the expected reliability of a given route. It is
determined through a combination of the number of hops from the source and the protocol
used. More hops from the source means more possible points of failure. The
administrative distance can be from 1 to 255, with lower numbers being preferred. A
distance of 255 is seen as infinite and will not be installed in the routing table. Here is an
example to illustrate how administration distance works—if there are two possible routes
traffic can take between 2 destinations with administration distances of 5 (always up) and
31 (sometimes not available), the traffic will use the route with an administrative distance
of 5. Different routing protocols have different default administrative distances. The default
administrative distances for any of these routing protocols are configurable.

FortiGate Version 4.0 MR1 Administration Guide


336 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Routing concepts

Table 43: Default administrative distances for routing protocols

Routing protocol Default administrative distance


Direct physical connection 1
Static 10
EBGP 20
OSPF 110
RIP 120
IBGP 200

Another method is to manually change the priority of both of the routes. If the next-hop
administrative distances of two routes on the FortiGate unit are equal, it may not be clear
which route the packet will take. Configuring the priority for each of those routes will make
it clear which next-hop will be used in the case of a tie. You can set the priority for a route
only from the CLI. Lower priorities are preferred. For more information, see the FortiGate
CLI Reference.
All entries in the routing table are associated with an administrative distance. If the routing
table contains several entries that point to the same destination (the entries may have
different gateways or interface associations), the FortiGate unit compares the
administrative distances of those entries, selects the entries having the lowest distances,
and installs them as routes in the FortiGate forwarding table. As a result, the FortiGate
forwarding table contains only those routes having the lowest distances to every possible
destination. For information about how to change the administrative distance associated
with a static route, see “Adding a static route to the routing table” on page 343.

Route priority
After the FortiGate unit selects static routes for the forwarding table based on their
administrative distances, the priority field of those routes determines routing preference.
You configure the priority field through the CLI. The route with the lowest value in the
priority field is considered the best route, and it is also the primary route. The command to
set the priority field is: set priority <integer> under the config route static
command. For more information, see the FortiGate CLI Reference.
In summary, because you can use the CLI to specify which sequence numbers or priority
field settings to use when defining static routes, you can prioritize routes to the same
destination according to their priority field settings. For a static route to be the preferred
route, you must create the route using the config router static CLI command and
specify a low priority for the route. If two routes have the same administrative distance and
the same priority, then they are equal cost multipath (ECMP) routes. Since this means
there is more than one route to the same destination, it can be confusing which route or
routes to install and use. However, you can configure ECMP Route Failover and Load
Balancing to control how sessions are load balanced among ECMP routes. See “ECMP
route failover and load balancing” on page 344.

Blackhole Route
A blackhole route is a route that drops all traffic sent to it. It is very much like /dev/null in
Linux programming.
Blackhole routes are used to dispose of packets instead of responding to suspicious
inquiries. This provides added security since the originator will not discover any
information from the target network.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 337
http://docs.fortinet.com/ • Feedback
Static Route Router Static

Blackhole routes can also limit traffic on a subnet. If some subnet addresses are not in
use, traffic to those addresses (traffic which may be valid or malicious) can be directed to
a blackhole for added security and to reduce traffic on the subnet.
The loopback interface, a virtual interface that does not forward traffic, was added to
enable easier configuration of blackhole routing. Similar to a normal interface, this
loopback interface has fewer parameters to configure, and all traffic sent to it stops there.
Since it cannot have hardware connection or link status problems, it is always available,
making it useful for other dynamic routing roles. Once configured, you can use a loopback
interface in firewall policies, routing, and other places that refer to interfaces. You
configure this feature only from the CLI. For more information, see the system chapter of
the FortiGate CLI Reference.

Static Route
You configure static routes by defining the destination IP address and netmask of packets
that you intend the FortiGate unit to intercept, and by specifying a (gateway) IP address
for those packets. The gateway address specifies the next-hop router to which traffic will
be routed.

Note: You can use the config router static6 CLI command to add, edit, or delete
static routes for IPv6 traffic. For more information, see the “router” chapter of the FortiGate
CLI Reference.

Working with static routes


The Static Route list displays information that the FortiGate unit compares to packet
headers in order to route packets. Initially, the list contains the factory configured static
default route. For more information, see “Default route and default gateway” on page 340.
You can add new entries manually.
When you add a static route to the Static Route list, the FortiGate unit performs a check to
determine whether a matching route and destination already exist in the FortiGate routing
table. If no match is found, the FortiGate unit adds the route to the routing table.
When IPv6 is enabled in the GUI, IPv6 routes are visible on the Static Route list.
Otherwise, IPv6 routes are not displayed. For more information on IPv6, see “FortiGate
IPv6 support” on page 289.

Note: Unless otherwise specified, static route examples and procedures are for IPv4 static
routes.

To view the static route list, go to Router > Static > Static Route.
Figure 177 shows the static route list belonging to a FortiGate unit that has interfaces
named “port1” and “port2”. The names of the interfaces on your FortiGate unit may be
different.

FortiGate Version 4.0 MR1 Administration Guide


338 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Static Route

Figure 177: Static Route list when IPv6 is enabled in the GUI

Expand Delete
Arrow Edit

Create New Add a static route to the Static Route list. For more information, see “Adding a
static route to the routing table” on page 343.
Select the down arrow to create an IPv6 static Route.
ECMP Route Select the load balancing and failover method for ECMP routes. See “ECMP
Failover & Load route failover and load balancing” on page 344.
Balance Method
Source based The FortiGate unit load balances sessions among ECMP routes based on the
source IP address of the sessions to be load balanced. This is the default
load balancing method. No configuration changes are required to support
source IP load balancing.
Weighted The FortiGate unit load balances sessions among ECMP routes based on
weights added to ECMP routes. More traffic is directed to routes with higher
weights.
After selecting weight-based you must add weights to static routes. See
“Configuring weighted static route load balancing” on page 348.
Spill-over The FortiGate unit distributes sessions among ECMP routes based on how
busy the FortiGate interfaces added to the routes are.
After selecting spill-over you add route Spillover Thresholds to interfaces
added to ECMP routes. See “Interface status detection for gateway load
balancing” on page 193.
The FortiGate unit sends all ECMP-routed sessions to the lowest numbered
interface until the bandwidth being processed by this interface reaches its
spillover threshold. The FortiGate unit then spills additional sessions over to
the next lowest numbered interface.
For more information, including the order in which interfaces are selected,
see “Configuring spill-over or usage-based ECMP” on page 346.
Apply Select to save the ECMP Route Failover and load balance method.
Route Select the Expand Arrow to display or hide the IPv4 static routes. By default
these routes are displayed.
This is displayed only when IPv6 is enabled in the GUI.
IPv6 Route Select the Expand Arrow to display or hide the IPv6 static routes. By default
these routes are hidden.
This is displayed only when IPv6 is enabled in the GUI.
IP/Mask The destination IP addresses and network masks of packets that the
FortiGate unit intercepts.
Gateway The IP addresses of the next-hop routers to which intercepted packets are
forwarded.
Device The names of the FortiGate interfaces through which intercepted packets are
received and sent.
Distance The administrative distances associated with each route. The values
represent distances to next-hop routers.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 339
http://docs.fortinet.com/ • Feedback
Static Route Router Static

Weight If ECMP Route Failover & Load Balance Method is set to weighted add
weights for each route. Add higher weights to routes that you want to load
balance more sessions to. See “Configuring weighted static route load
balancing” on page 348.
Delete and Edit Delete or edit an entry in the list.
icons

Default route and default gateway


In the factory default configuration, entry number 1 in the Static Route list is associated
with a destination address of 0.0.0.0/0.0.0.0, which means any/all destinations. This route
is called the “static default route”. If no other routes are present in the routing table and a
packet needs to be forwarded beyond the FortiGate unit, the factory configured static
default route causes the FortiGate unit to forward the packet to the default gateway.
To prevent this you must either edit the factory configured static default route to specify a
different default gateway for the FortiGate unit, or delete the factory configured route and
specify your own static default route that points to the default gateway for the FortiGate
unit.

Note: For network traffic to pass, even with the correct routes configured, you must have
the appropriate firewall policies. For details, see “Configuring firewall policies” on page 391.

For example, Figure 178 shows a FortiGate unit connected to a router. To ensure that all
outbound packets destined to any network beyond the router are routed to the correct
destination, you must edit the factory default configuration and make the router the default
gateway for the FortiGate unit.

FortiGate Version 4.0 MR1 Administration Guide


340 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Static Route

Figure 178: Making a router the default gateway

Internet

Gateway
Router
192.168.10.1

external

FortiGate_1

internal

Internal network
192.168.20.0/24

To route outbound packets from the internal network to destinations that are not on
network 192.168.20.0/24, you would edit the default route and include the following
settings:
• Destination IP/mask: 0.0.0.0/0.0.0.0
• Gateway: 192.168.10.1
• Device: Name of the interface connected to network 192.168.10.0/24 (for example
“external”).
• Distance: 10
The Gateway setting specifies the IP address of the next-hop router interface to the
FortiGate external interface. The interface behind the router (192.168.10.1) is the default
gateway for FortiGate_1.
In some cases, there may be routers behind the FortiGate unit. If the destination IP
address of a packet is not on the local network but is on a network behind one of those
routers, the FortiGate routing table must include a static route to that network. For
example, in Figure 179, the FortiGate unit must be configured with static routes to
interfaces 192.168.10.1 and 192.168.11.1 in order to forward packets to Network_1 and
Network_2 respectively.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 341
http://docs.fortinet.com/ • Feedback
Static Route Router Static

Figure 179: Destinations on networks behind internal routers

Internet

FortiGate_1

internal dmz
192.168.10.1 192.168.11.1

Gateway Gateway
Router_1 Router_2

Network_1 Network_2
192.168.20.0/24 192.168.30.0/24

To route packets from Network_1 to Network_2, Router_1 must be configured to use the
FortiGate internal interface as its default gateway. On the FortiGate unit, you would create
a new static route with these settings:
Destination IP/mask: 192.168.30.0/24
Gateway: 192.168.11.1
Device: dmz
Distance: 10
To route packets from Network_2 to Network_1, Router_2 must be configured to use the
FortiGate dmz interface as its default gateway. On the FortiGate unit, you would create a
new static route with these settings:
Destination IP/mask: 192.168.20.0/24
Gateway: 192.168.10.1
Device: internal
Distance: 10

Changing the gateway for the default route


The default gateway determines where packets matching the default route will be
forwarded.

Note: If you are using DHCP or PPPoE FortiGate over a modem interface on your
FortiGate unit, you may have problems configuring a static route. After trying to either
Renew your DHCP license, or Reconnect the PPPoE connection, go to the CLI and enable
dynamic-gateway under config system interface for the modem interface. Doing
this will remove the need to specify a gateway for this interface’s route. For more
information see FortiGate CLI Reference.

To change the gateway for the default route


1 Go to Router > Static > Static Route.

FortiGate Version 4.0 MR1 Administration Guide


342 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Static Route

2 Select the Edit icon in row 1.


3 If the FortiGate unit reaches the next-hop router through an interface other than the
interface that is currently selected in the Device field, select the name of the interface
from the Device field.
4 In the Gateway field, type the IP address of the next-hop router to which outbound
traffic may be directed.
5 In the Distance field, optionally adjust the administrative distance value.
6 Select OK.

Adding a static route to the routing table


A route provides the FortiGate unit with the information it needs to forward a packet to a
particular destination. A static route causes packets to be forwarded to a destination other
than the default gateway.
You define static routes manually. Static routes control traffic exiting the FortiGate unit—
you can specify through which interface the packet will leave and to which device the
packet should be routed.

To add a static route entry


1 Go to Router > Static > Static Route.
2 Select Create New.
3 Enter the IP address and netmask.
For example, 172.1.2.0/255.255.255.0 would be a route for all addresses on the
subnet 172.1.2.x.
4 Enter the FortiGate unit interface closest to this subnet, or connected to it.
5 Enter the gateway IP address. Continuing with the example, 172.1.2.3 would be a
valid address.
6 Enter the administrative distance of this route.
The administrative distance allows you to weight one route to be preferred over
another. This is useful when one route is unreliable. For example, if route A has an
administrative distance of 30 and route B has an administrative distance of 10, the
preferred route is route A with the smaller administrative distance of 10. If you discover
that route A is unreliable, you can change the administrative distance for route A from
10 to 40, which will make the route B the preferred route.
7 Select OK to confirm and save your new static route.
When you add a static route through the web-based manager, the FortiGate unit assigns
the next unassigned sequence number to the route automatically and adds the entry to
the Static Route list.
Figure 180 shows the Edit Static Route dialog box belonging to a FortiGate unit that has
an interface named “internal”. The names of the interfaces on your FortiGate unit may be
different.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 343
http://docs.fortinet.com/ • Feedback
ECMP route failover and load balancing Router Static

Figure 180: Edit Static Route

Destination Type the destination IP address and network mask of packets that the
IP/Mask FortiGate unit has to intercept. The value 0.0.0.0/0.0.0.0 is reserved
for the default route.
Gateway Type the IP address of the next-hop router to which the FortiGate unit will forward
intercepted packets.
Device Select the name of the FortiGate interface through which the intercepted packets
may be routed to the next-hop router.
Distance Type an administrative distance from 1 to 255 for the route. The distance value is
arbitrary and should reflect the distance to the next-hop router. A lower value
indicates a more preferred route.
Weight If ECMP Route Failover & Load Balance Method is set to weighted add weights for
each route. Add higher weights to routes that you want to load balance more
sessions to. See “Configuring weighted static route load balancing” on page 348.

ECMP route failover and load balancing


FortiOS uses equal-cost multi-path (ECMP) to distribute traffic to the same destination
such as the Internet or another network. Using ECMP you can add multiple routes to the
destination and give each of those routes the same distance and priority.

Note: If multiple routes to the same destination have the same priority but different
distances, the route with the lowest distance is used. If multiple routes to the same
destination have the same distance but different priorities, the route with the lowest priority
is used. Distance takes precedence over priority. If multiple routes to the same destination
have the different distances and different priorities, the route with the lowest distance is
always used even if it has the highest priority.

Using ECMP, if more than one ECMP route is available you can configure how the
FortiGate unit selects the route to be used for a communication session. If only one ECMP
route is available (for example, because an interface cannot process traffic because
interface status detection does not receive a reply from the configured server) then all
traffic uses this route.
Previous versions of FortiOS provided source IP-based load balancing for ECMP routes.
FortiOS 4.0 MR1 includes three configuration options for ECMP route failover and load
balancing:

Source based The FortiGate unit load balances sessions among ECMP routes based on the
(also called source IP address of the sessions to be load balanced. This is the default load
source IP based) balancing method. No configuration changes are required to support source IP
load balancing.

FortiGate Version 4.0 MR1 Administration Guide


344 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static ECMP route failover and load balancing

Weighted (also The FortiGate unit load balances sessions among ECMP routes based on
called weights added to ECMP routes. More traffic is directed to routes with higher
weight-based) weights.
After selecting weight-based you must add weights to static routes. See
“Configuring weighted static route load balancing” on page 348.
Spill-over (also The FortiGate unit distributes sessions among ECMP routes based on how busy
called the FortiGate interfaces added to the routes are.
usage-based) After selecting spill-over you add route Spillover Thresholds to interfaces added
to ECMP routes. The FortiGate unit sends all ECMP-routed sessions to the
lowest numbered interface until the bandwidth being processed by this interface
reaches its spillover threshold. The FortiGate unit then spills additional sessions
over to the next lowest numbered interface.
The Spillover Thresholds range is 0-2097000 KBps.
For more information, including the order in which interfaces are selected, see
“Configuring spill-over or usage-based ECMP” on page 346.
You can configure only one of these ECMP route failover and load balancing methods in a
single VDOM. If your FortiGate unit is configured for multiple VDOM operation, each
VDOM can have its own ECMP route failover and load balancing configuration.

To configure the ECMP route failover and load balancing method from the
web-based manager
1 Go to Router > Static > Static Route.
2 Set ECMP Route failover & Load Balance Method to source based, weighted, or
spill-over.
3 Select Apply.

Figure 181: Configuring ECMP route failover and load balancing method

To configure the ECMP route failover and load balancing method from the CLI
1 Enter the following command:
config system settings
set v4-ecmp-mode {source-ip-based | usage-based |
weight-based}
end

ECMP routing of simultaneous sessions to the same destination IP


address
When the FortiGate unit selects an ECMP route for a session, a route cache is created
that matches the route with the destination IP address of the session. All new sessions to
the same destination IP address use the same route until the route is flushed from the
cache. Routes are flushed from the cache after a period of time when no new sessions to
the destination IP address are received.
The route cache improves FortiGate routing performance by reducing how often the
FortiGate unit looks up routes in the routing table.
If the FortiGate unit receives a large number of sessions with the same destination IP
address, because all of these sessions will be processed by the same route, it may appear
that sessions are not distributed according to the ECMP route failover and load balancing
configuration.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 345
http://docs.fortinet.com/ • Feedback
ECMP route failover and load balancing Router Static

Configuring spill-over or usage-based ECMP


Spill-over or usage-based ECMP routes new sessions to interfaces that have not reached
a configured bandwidth limit (called the Spillover Threshold or a route-spillover threshold).
To configure spill-over or usage-based ECMP routing, you enable spill-over ECMP, add
ECMP routes, and add a Spillover Threshold to the interfaces used by the ECMP routes.
Set the Spillover Thresholds to limit the amount of bandwidth processed by each interface.
With spill-over ECMP routing configured, the FortiGate unit routes new sessions to an
interface used by an ECMP route until that interface reaches its Spillover Threshold. Then,
when the threshold of that interface is reached, new sessions are routed to one of the
other interfaces used by the ECMP routes.

To add Spillover Thresholds to interfaces from the web-based manager


Use the following steps to enable usage based ECMP routing, add Spillover Thresholds to
FortiGate interfaces port3 and port4, and then to configure EMCP routes with device set to
port3 and port4.
1 Go to Router > Static > Static Route.
2 Set ECMP Route failover & Load Balance Method to usage-based.
3 Go to Router > Static > Static Route.
4 Add ECMP routes for port3 and port4.

Destination IP/Mask 192.168.20.0/24


Device port3
Gateway 172.20.130.3
Distance 10

Destination IP/Mask 192.168.20.0/24


Device port4
Gateway 172.20.140.4
Distance 10

5 Go to System > Network > Interface.


6 Edit port3 and port4 and add the following spillover-thresholds:

Interface port3
Spillover Threshold (KBps) 100

Interface port4
Spillover Threshold (KBps) 200

7 Go to Router > Monitor to view the routing table.


The routes could be displayed in the order shown in Table 44.
Table 44: Example ECMP routes as listed on the routing monitor

Type Network Distance Metric Gateway Interface


Static 192.168.20.0/24 10 0 172.20.130.3 port3
Static 192.168.20.0/24 10 0 172.20.140.4 port4

In this example, the FortiGate unit sends all sessions to the 192.168.20.0 network through
port3. When port3 exceeds its spillover threshold of 100 Kbps the FortiGate unit sends all
new sessions to the 192.168.20.0 network through port4.

FortiGate Version 4.0 MR1 Administration Guide


346 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static ECMP route failover and load balancing

To add route-spillover thresholds to interfaces from the CLI


1 Enter the following command to set the ECMP route failover and load balance method
to usage-based.
config system settings
set v4-ecmp-mode usage-based
end
2 Enter the following commands to add three route-spillover thresholds to three
interfaces.
config system interface
edit port1
set spillover-threshold 400
next
edit port2
set spillover-threshold 200
next
edit port3
set spillover-threshold 100
end
3 Enter the following commands to add three ECMP default routes, one for each
interface.
config router static
edit 1
set dst 0.0.0.0/0.0.0.0
set gwy 172.20.110.1
set dev port1
next
edit 2
set dst 0.0.0.0/0.0.0.0
set gwy 172.20.120.2
set dev port2
next
edit 3
set dst 0.0.0.0/0.0.0.0
set gwy 172.20.130.3
set dev port3
end
4 Enter the following command to display static routes in the routing table:
get router info routing-table static
S 0.0.0.0/0 [10/0] via 172.20.110.1, port1
[10/0] via 172.20.120.2, port2
[10/0] via 172.20.130.3, port3
In this example, the FortiGate unit sends all sessions to the Internet through port1. When
port1 exceeds its spillover threshold of 400 KBps the FortiGate unit sends all new
sessions to the Internet through port2. If both port1 and port2 exceed their spillover
thresholds the FortiGate unit would send all new sessions to the Internet through port3.

Detailed description of how spill-over ECMP selects routes


When you add ECMP routes they are added to the routing table in the order displayed by
the routing monitor or by the get router info routing-table static command.
This order is independent of the configured bandwidth limit.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 347
http://docs.fortinet.com/ • Feedback
ECMP route failover and load balancing Router Static

The FortiGate unit selects an ECMP route for a new session by finding the first route in the
routing table that sends the session out a FortiGate interface that is not processing more
traffic that its configured route spill-over limit.

Note: A new session to a destination IP address that already has an entry in the routing
cache is routed using the route already added to the cache for that destination address.
See “ECMP routing of simultaneous sessions to the same destination IP address” on
page 345.

For example, consider a FortiGate unit with interfaces port3 and port4 both connected to
the Internet through different ISPs. ECMP routing is set to usage-based and route
spillover for to 100 KBps for port3 and 200 KBps for port4. Two ECMP default routes are
added, one for port3 and one for port4.
If the route to port3 is higher in the routing table than the route to port4, the FortiGate unit
sends all default route sessions out port3 until port3 is processing 10Mbps of data. When
port3 reaches its configured bandwidth limit, the FortiGate unit sends all default route
sessions out port4. When the bandwidth usage of port3 falls below 10Mbps, the FortiGate
again sends all default route sessions out port3.
New sessions to designating IP addresses that are already in the routing cache; however,
use the cached routes. This means that even of port3 is exceeding its bandwidth limit, new
sessions can continue to be sent out port3 if their destination addresses are already in the
routing cache. As a result, new sessions are sent out port4 only if port3 exceeds its
bandwidth limit and if the routing cache does not contain a route for the destination IP
address of the new session.
Also, the switchover to port4 does not occur as soon as port3 exceeds its bandwidth limit.
Bandwidth usage has to exceed the limit for a period of time before the switchover takes
place. If port3 bandwidth usage drops below the bandwidth limit during this time period,
sessions are not switched over to port4. This delay reduces route flapping.
FortiGate usage-based ECMP routing is not actually load balancing, since routes are not
distributed evenly among FortiGate interfaces. Depending on traffic volumes, most traffic
would usually be processed by the first interface with only spillover traffic being processed
by other interfaces.
If you are configuring usage-based ECMP in most cases you should add spillover
thresholds to all of the interfaces with ECMP routes. The default spillover threshold is 0
which means no bandwidth limiting. If any interface has a spillover threshold of 0, no
sessions will be routed to interfaces lower in the list unless the interface goes down or is
disconnected. An interface can go down if Detect interface status for Gateway Load
Balancing does not receive a response from the configured server.

Determining of a interface has exceeded its Spillover Threshold


You can use the diagnose netlink dstmac list CLI command to determine if an
interface is exceeding its Spillover Threshold. If the command displays over_bps=1 the
interface is exceeding its threshold. If over_bps=0 the interface has not exceeded its
threshold.

Configuring weighted static route load balancing


Configure weighted load balancing to control how the FortiGate unit distributes sessions
among ECMP routes by adding weights for each route. Add higher weights to routes that
you want to load balance more sessions to.

FortiGate Version 4.0 MR1 Administration Guide


348 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static ECMP route failover and load balancing

With the ECMP load balancing method set to weighted, the FortiGate unit distributes
sessions with different destination IPs by generating a random value to determine the
route to select. The probability of selecting one route over another is based on the weight
value of each route. Routes with higher weights are more likely to be selected.
Large numbers of sessions are evenly distributed among ECMP routes according to the
route weight values. If all weights are the same, sessions are distributed evenly. The
distribution of a small number of sessions; however, may not be even. For example, its
possible that if there are two ECMP routes with the same weight; two sessions to different
IP addresses could use the same route. On the other hand, 10,000 sessions with different
destination IPs should be load balanced evenly between two routes with equal rates. The
distribution could be 5000:5000 or 50001:4999. Also, 10,000 sessions with different
destination IP addresses should be load balanced in the following way if the weights for
the two routes are 100 and 200: 3333:6667.
Weights only affect how routes are selected for sessions to new destination IP addresses.
New sessions to IP addresses already in the routing cache are routed using the route for
the session already in the cache. So in practice sessions will not always be distributed
according to the routing weight distribution.

To add weights to static routes from the web-based manager


1 Go to Router > Static > Static Route.
2 Set ECMP Route failover & Load Balance Method to weighted.
3 Go to Router > Static > Static Route.
4 Add new or edit static routes and add weights to them.
The following example shows two ECMP routes with weights added.

Destination IP/Mask 192.168.20.0/24


Device port1
Gateway 172.20.110.1
Distance 10
Weight 100

Destination IP/Mask 192.168.20.0/24


Device port2
Gateway 172.20.120.2
Distance 10
Weight 200

Figure 182: Adding a weighted static route

In this example:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 349
http://docs.fortinet.com/ • Feedback
ECMP route failover and load balancing Router Static

• one third of the sessions to the 192.168.20.0 network will use the first route and be
sent out port1 to the gateway with IP address 172.20.110.1.
• the other two thirds of the sessions to the 192.168.20.0 network will use the second
route and be sent out port2 to the gateway with IP address 172.20.120.2.

To add weights to static routes from the CLI


1 Enter the following command to set the ECMP route failover and load balance method
to weighted.
config system settings
set v4-ecmp-mode weight-based
end
2 Enter the following commands to add three ECMP static routes and add weights to
each route.
config router static
edit 1
set dst 192.168.20.0/24
set gwy 172.20.110.1
set dev port1
set weight 100
next
edit 2
set dst 192.168.20.0/24
set gwy 172.20.120.2
set dev port2
set weight 200
next
edit 3
set dst 192.168.20.0/24
set gwy 172.20.130.3
set dev port3
set weight 300
end

Note: In this example the priority remains set to 0 and the distance remains set to 10
for all three routes.

In this example:
• one sixth of the sessions to the 192.168.20.0 network will use the first route and be
sent out port1 to the gateway with IP address 172.20.110.1.
• one third of the sessions to the 192.168.20.0 network will use the second route and be
sent out port2 to the gateway with IP address 172.20.120.2.
• one half of the sessions to the 192.168.20.0 network will use the third route and be
sent out port3 to the gateway with IP address 172.20.130.3.

FortiGate Version 4.0 MR1 Administration Guide


350 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Policy Route

Policy Route
A routing policy allows you to redirect traffic away from a static route. This can be useful if
you want to route certain types of network traffic differently. You can use incoming traffic’s
protocol, source address or interface, destination address, or port number to determine
where to send the traffic. For example, generally network traffic would go to the router of a
subnet, but you might want to direct SMTP or POP3 traffic addressed to that subnet
directly to the mail server.
If you have configured the FortiGate unit with routing policies and a packet arrives at the
FortiGate unit, the FortiGate unit starts at the top of the Policy Route list and attempts to
match the packet with a policy. If a match is found and the policy contains enough
information to route the packet (a minimum of the IP address of the next-hop router and
the FortiGate interface for forwarding packets to it), the FortiGate unit routes the packet
using the information in the policy. If no policy route matches the packet, the FortiGate unit
routes the packet using the routing table.

Note: Most policy settings are optional, so a matching policy alone might not provide
enough information for forwarding the packet. The FortiGate unit may refer to the routing
table in an attempt to match the information in the packet header with a route in the routing
table. For example, if the outgoing interface is the only item in the policy, the FortiGate unit
looks up the IP address of the next-hop router in the routing table. This situation could
happen when the interfaces are dynamic (such as DHCP or PPPoE) and you do not want
or are unable to specify the IP address of the next-hop router.

Policy route options define which attributes of a incoming packet cause policy routing to
occur. If the attributes of a packet match all the specified conditions, the FortiGate unit
routes the packet through the specified interface to the specified gateway.
Figure 183 shows the policy route list belonging to a FortiGate unit that has interfaces
named “external” and “internal”. The names of the interfaces on your FortiGate unit may
be different.
To edit an existing policy route, see “Adding a policy route” on page 352.

Figure 183: Policy Route list

Delete
Edit
Move To

Create New Add a policy route. See “Adding a policy route” on page 352.
# The ID numbers of configured route policies. These numbers are sequential
unless policies have been moved within the table.
Incoming The interfaces on which packets subjected to route policies are received.
Outgoing The interfaces through which policy routed packets are routed.
Source The IP source addresses and network masks that cause policy routing to occur.
Destination The IP destination addresses and network masks that cause policy routing to
occur.
Delete icon Delete a policy route.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 351
http://docs.fortinet.com/ • Feedback
Policy Route Router Static

Edit icon Edit a policy route.


Move To icon After selecting this icon, enter the destination position in the window that
appears, and select OK.
For more information, see “Moving a policy route” on page 354.

Adding a policy route


To add a policy route, go to Router > Static > Policy Route and select Create New.
For more information on Type of Service, see “Type of Service” on page 353.
Figure 184 shows the New Routing Policy dialog box belonging to a FortiGate unit that
has interfaces named “external” and “internal”. The names of the interfaces on your
FortiGate unit may be different.

Figure 184: Example policy route to route all HTTP traffic received at port5 to port4

Protocol To perform policy routing based on the value in the protocol field of the
packet, enter the protocol number to match. The Internet Protocol Number is
found in the IP packet header. RFC 5237 describes protocol numbers and
you can find a list of the assigned protocol numbers here. The range is from 0
to 255. A value of 0 disables the feature.
Tip: Commonly used Protocol settings include 6 to route TCP sessions, 17
for UDP sessions, 1 for ICMP sessions, 47 for GRE sessions, and 92 for
multicast sessions.
Incoming Interface Select the name of the interface through which incoming packets subjected to
the policy are received.
Source Address / To perform policy routing based on the IP source address of the packet, type
Mask the source address and network mask to match. A value of
0.0.0.0/0.0.0.0 disables the feature.
Destination To perform policy routing based on the IP destination address of the packet,
Address / Mask type the destination address and network mask to match. A value of
0.0.0.0/0.0.0.0 disables the feature.
Destination Ports To perform policy routing based on the port on which the packet is received,
type the same port number in the From and To fields. To apply policy routing
to a range of ports, type the starting port number in the From field and the
ending port number in the To field. A value of 0 disables this feature.
The Destination Ports fields are only used for TCP and UDP protocols. The
ports are skipped over for all other protocols.
Type of Service Use a two digit hexadecimal bit pattern to match the service, or use a two digit
hexadecimal bit mask to mask out. For more information, see “Type of
Service” on page 353.

FortiGate Version 4.0 MR1 Administration Guide


352 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Policy Route

Outgoing Interface Select the name of the interface through which packets affected by the policy
will be routed.
Gateway Address Type the IP address of the next-hop router that the FortiGate unit can access
through the specified interface. A value of 0.0.0.0 is not valid.

Example policy route


Configure the following policy route to send all FTP traffic received at port1 out the port10
interface and to a next hop router at IP address 172.20.120.23. To route FTP traffic set
protocol to 6 (for TCP) and set both of the destination ports to 21, the FTP port.

Protocol 6
Incoming interface port1
Source address / mask 0.0.0.0/0.0.0.0
Destination address / mask 0.0.0.0/0.0.0.0
Destination Ports From 21 to 21
Type of Service bit pattern: 00 (hex) bit mask: 00 (hex)
Outgoing interface port10
Gateway Address 172.20.120.23

Figure 185: Example policy route to route all FTP traffic received at port1 to port10

Type of Service
Type of service (TOS) is an 8-bit field in the IP header that enables you to determine how
the IP datagram should be delivered, with such qualities as delay, priority, reliability, and
minimum cost.
Each quality helps gateways determine the best way to route datagrams. A router
maintains a ToS value for each route in its routing table.The lowest priority TOS is 0, the
highest is 7 - when bits 3, 4,and 5 are all set to 1. The router tries to match the TOS of the
datagram to the TOS on one of the possible routes to the destination. If there is no match,
the datagram is sent over a zero TOS route.
Using increased quality may increase the cost of delivery because better performance
may consume limited network resources. For more information, see RFC 791 and RFC
1349.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 353
http://docs.fortinet.com/ • Feedback
Policy Route Router Static

Table 45: The role of each bit in the IP header TOS 8-bit field

bits 0, 1, 2 Precedence Some networks treat high precedence traffic as more important
traffic. Precedence should only be used within a network, and
can be used differently in each network. Typically you do not
care about these bits.
bit 3 Delay When set to 1, this bit indicates low delay is a priority. This is
useful for such services as VoIP where delays degrade the
quality of the sound.
bit 4 Throughput When set to 1, this bit indicates high throughput is a priority.
This is useful for services that require lots of bandwidth such
as video conferencing.
bit 5 Reliability When set to 1, this bit indicates high reliability is a priority. This
is useful when a service must always be available such as with
DNS servers.
bit 6 Cost When set to 1, this bit indicates low cost is a priority. Generally
there is a higher delivery cost associated with enabling bits 3,4,
or 5, and bit 6 indicates to use the lowest cost route.
bit 7 Reserved for Not used at this time.
future use

For example, if you want to assign low delay, and high reliability, say for a VoIP application
where delays are unacceptable, you would use a bit pattern of xxx1x1xx where an ‘x’
indicates that bit can be any value. Since all bits are not set, this is a good use for the bit
mask; if the mask is set to 0x14, it will match any TOS packets that are set to low delay
and high reliability.

Moving a policy route


A routing policy is added to the bottom of the routing table when it is created. If you prefer
to use one policy over another, you may want to move it to a different location in the
routing policy table.
The option to use one of two routes happens when both routes are a match, for example
172.20.0.0/255.255.0.0 and 172.20.120.0/255.255.255.0. If both of these
routes are in the policy table, both can match a route to 172.20.120.112 but you
consider the second one as a better match. In that case the best match route should be
positioned before the other route in the policy table.
In the case of two matches in the routing table, alternating sessions will use both routes in
a load balancing configuration. You can also manually assign priorities to routes. For two
matches in the routing table, the priority will determine which route is used. This feature is
available only through the CLI. For details, see the FortiGate CLI Reference.
To change the position of a policy route in the table, go to Router > Static > Policy Route
and select Move To for the policy route you want to move.

Figure 186: Moving a policy route

Before/After Select Before to place the selected Policy Route before the indicated route.
Select After to place it following the indicated route.
Policy route ID Enter the Policy route ID of the route in the Policy route table to move the
selected route before or after.

FortiGate Version 4.0 MR1 Administration Guide


354 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Static Policy Route

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 355
http://docs.fortinet.com/ • Feedback
Policy Route Router Static

FortiGate Version 4.0 MR1 Administration Guide


356 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic RIP

Router Dynamic
This section explains how to configure dynamic protocols to route traffic through large or
complex networks. Dynamic routing protocols enable the FortiGate unit to automatically
share information about routes with neighboring routers and learn about routes and
networks advertised by them. The FortiGate unit supports these dynamic routing
protocols:
• Routing Information Protocol (RIP)
• Open Shortest Path First (OSPF)
• Border Gateway Protocol (BGP).

The FortiGate unit selects routes and updates its routing table dynamically based on the
rules you specify. Given a set of rules, the unit can determine the best route or path for
sending packets to a destination. You can also define rules to suppress the advertising of
routes to neighboring routers and change FortiGate routing information before it is
advertised.
If you enable virtual domains (VDOMs) on the FortiGate unit, dynamic routing is
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.

Note: A FortiGate unit can operate as a Protocol Independent Multicast (PIM) version 2
router in the root virtual domain. FortiGate units support PIM sparse mode and dense mode
and can service multicast servers or receivers on the network segment to which a FortiGate
interface is connected. PIM can use static routes, RIP, OSPF, or BGP to forward multicast
packets to their destinations.

Bi-Directional Forwarding (BFD) is a protocol that works with BGP and OSPF to quickly
discover routers on the network that cannot be contacted, and to re-route traffic
accordingly until those routers can be contacted.
A useful part of the FortiOS web-based management interface is the customizable menus
and widgets. These widgets include the following routing widgets: access list, distribute
list, key chain, offset list, prefix list, and route map. For more information on these routing
widgets, see “Customizable routing widgets” on page 377.
This section describes:
• RIP
• OSPF
• BGP
• Multicast
• Bi-directional Forwarding Detection (BFD)
• Customizable routing widgets

RIP
Routing Information Protocol (RIP) is a distance-vector routing protocol intended for small,
relatively homogeneous networks. The FortiGate implementation of RIP supports RIP
version 1 (see RFC 1058) and RIP version 2 (see RFC 2453).

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 357
http://docs.fortinet.com/ • Feedback
RIP Router Dynamic

How RIP works


When RIP is enabled, the FortiGate unit broadcasts requests for RIP updates from each
of its RIP-enabled interfaces. Neighboring routers respond with information from their
routing tables. The FortiGate unit adds routes from neighbors to its own routing table only
if those routes are not already recorded in the routing table. When a route already exists in
the routing table, the unit compares the advertised route to the recorded route and
chooses the shortest route for the routing table.
RIP uses hop count as the metric for choosing the best route. A hop count of 1 represents
a network that is connected directly to the unit, while a hop count of 16 represents a
network that the FortiGate unit cannot reach. Each network that a packet travels through
to reach its destination usually counts as one hop. When the FortiGate unit compares two
routes to the same destination, it adds the route having the lowest hop count to the routing
table.
Similarly, when RIP is enabled on an interface, the FortiGate unit sends RIP responses to
neighboring routers on a regular basis. The updates provide information about the routes
in the FortiGate unit’s routing table, subject to the rules that you specify for advertising
those routes. You can specify how often the FortiGate unit sends updates, the period of
time a route can be kept in the routing table without being updated, and for routes that are
not updated regularly you can specify the period of time that the unit advertises a route as
unreachable before it is removed from the routing table.

Viewing and editing basic RIP settings


When you configure RIP settings, you have to specify the networks that are running RIP
and specify any additional settings needed to adjust RIP operation on the FortiGate
interfaces that are connected to the RIP-enabled network.
To view and edit RIP settings go to Router > Dynamic > RIP.
Figure 187 shows the basic RIP settings on a FortiGate unit that has interfaces named
“dmz” and “external”. The names of the interfaces on your FortiGate unit may be different.

FortiGate Version 4.0 MR1 Administration Guide


358 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic RIP

Figure 187: Basic RIP settings

Expand
Arrow

Delete
Edit

RIP Version Select the level of RIP compatibility needed at the FortiGate unit. You
can enable global RIP settings on all FortiGate interfaces connected
to RIP-enabled networks:
1 — send and receive RIP version 1 packets.
2 — send and receive RIP version 2 packets.
You can override the global settings for a specific FortiGate interface if
required. For more information, see “Configuring a RIP-enabled
interface” on page 361.
Advanced Options Select the Expand Arrow to view or hide advanced RIP options. For
more information, see “Selecting advanced RIP options” on page 360.
Networks The IP addresses and network masks of the major networks
(connected to the FortiGate unit) that run RIP. When you add a
network to the Networks list, the FortiGate interfaces that are part of
the network are advertised in RIP updates. You can enable RIP on all
FortiGate interfaces whose IP addresses match the RIP network
address space.
IP/Netmask Enter the IP address and netmask that defines the RIP-enabled
network.
Add Select to add the network information to the Networks list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 359
http://docs.fortinet.com/ • Feedback
RIP Router Dynamic

Interfaces Any additional settings needed to adjust RIP operation on a FortiGate


interface.
Create New Add new RIP operating parameters for an interface. These
parameters will override the global RIP settings for that interface. For
more information, see “Configuring a RIP-enabled interface” on
page 361.
Interface The name of the unit RIP interface.
Send Version The version of RIP used to send updates through each interface: 1, 2,
or both.
Receive Version The versions of RIP used to listen for updates on each interface: 1, 2,
or both.
Authentication The type of authentication used on this interface: None, Text or MD5.
Passive Permissions for RIP broadcasts on this interface. A green checkmark
means the RIP broadcasts are blocked.
Delete and Edit icons Delete or edit a RIP network entry or a RIP interface definition.

Selecting advanced RIP options


With advanced RIP options, you can specify settings for RIP timers and define metrics for
redistributing routes that the FortiGate unit learns through some means other than RIP
updates. For example, if the unit is connected to an OSPF or BGP network or you add a
static route to the FortiGate routing table manually, you can configure the unit to advertise
those routes on RIP-enabled interfaces.
To select advanced RIP options, go to Router > Dynamic > RIP and expand Advanced
Options. After you select the options, select Apply.

Note: You can configure additional advanced options through customizable GUI widgets,
and the CLI. For example, you can filter incoming or outgoing updates by using a route
map, an access list, or a prefix list. The FortiGate unit also supports offset lists, which add
the specified offset to the metric of a route. For more information on customizable GUI
widgets, see “Customizable routing widgets” on page 377. For more information on CLI
routing commands, see the “router” chapter of the FortiGate CLI Reference.

Figure 188: Advanced Options (RIP)

Expand
Arrow

Rip Version Select the version of RIP packets to send and receive.
Advanced Options Select the Expand Arrow to view or hide advanced options.
Default Metric Enter the default hop count that the FortiGate unit should assign to routes
that are added to the FortiGate routing table. The range is from 1 to 16. This
metric is the hop count, with 1 being best or shortest.
This value also applies to Redistribute unless otherwise specified.

FortiGate Version 4.0 MR1 Administration Guide


360 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic RIP

Default-information- Select to generate and advertise a default route into the FortiGate unit’s RIP-
originate enabled networks. The generated route may be based on routes learned
through a dynamic routing protocol, routes in the routing table, or both.
RIP Timers Enter new values to override the default RIP timer settings. The default
settings are effective in most configurations — if you change these settings,
ensure that the new settings are compatible with local routers and access
servers.
If the Update timer is smaller than Timeout or Garbage timers, you will get an
error.
Update Enter the amount of time (in seconds) that the FortiGate unit will wait
between sending RIP updates.
Timeout Enter the maximum amount of time (in seconds) that a route is considered
reachable while no updates are received for the route. This is the maximum
time the FortiGate unit will keep a reachable route in the routing table while
no updates for that route are received. If the FortiGate unit receives an
update for the route before the timeout period expires, the timer is restarted.
The Timeout period should be at least three times longer than the Update
period.
Garbage Enter the amount of time (in seconds) that the FortiGate unit will advertise a
route as being unreachable before deleting the route from the routing table.
The value determines how long an unreachable route is kept in the routing
table.
Redistribute Select one or more of the options to redistribute RIP updates about routes
that were not learned through RIP. The FortiGate unit can use RIP to
redistribute routes learned from directly connected networks, static routes,
OSPF, and BGP.
Connected Select to redistribute routes learned from directly connected networks. To
specify a hop count for those routes, select Metric, and enter the hop count
in the Metric field. The valid hop count range is from 1 to 16.
Static Select to redistribute routes learned from static routes. To specify a hop
count for those routes, select Metric, and enter the hop count in the Metric
field. The range is from 1 to 16.
OSPF Select to redistribute routes learned through OSPF. To specify a hop count
for those routes, select Metric, and enter the hop count in the Metric field.
The range is from 1 to 16.
BGP Select to redistribute routes learned through BGP. To specify a hop count for
those routes, select Metric, and enter the hop count in the Metric field. The
range is from 1 to 16.

Configuring a RIP-enabled interface


You can use RIP interface options to override the global RIP settings that apply to all
FortiGate unit interfaces connected to RIP-enabled networks. For example, if you want to
suppress RIP advertising on an interface that is connected to a subnet of a RIP-enabled
network, you can set the interface to operate passively. Passive interfaces listen for RIP
updates but do not respond to RIP requests.
If RIP version 2 is enabled on the interface, you can optionally choose password
authentication to ensure that the FortiGate unit authenticates a neighboring router before
accepting updates from that router. The unit and the neighboring router must both be
configured with the same password. Authentication guarantees the authenticity of the
update packet, not the confidentiality of the routing information in the packet.
To set specific RIP operating parameters for a RIP-enabled interface, go to Router >
Dynamic > RIP and select Create New.

Note: Additional options such as split-horizon and key-chains can be configured per
interface through the CLI. For more information, see the “router” chapter of the FortiGate
CLI Reference or the Fortinet Knowledge Center.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 361
http://docs.fortinet.com/ • Feedback
OSPF Router Dynamic

Figure 189 shows the New/Edit RIP Interface dialog box belonging to a FortiGate unit that
has an interface named “internal”. The names of the interfaces on your FortiGate unit may
be different.

Figure 189: New/Edit RIP Interface

Interface Select the name of the FortiGate interface to which these settings apply. The
interface must be connected to a RIP-enabled network. The interface can be a
virtual IPSec or GRE interface.
Send Version, Select to override the default RIP-compatibility setting for sending and
Receive Version receiving updates through the interface: RIP version 1, version 2 or Both.
Authentication Select an authentication method for RIP exchanges on the specified interface:
None — Disable authentication.
Text — Select if the interface is connected to a network that runs RIP version
2. Type a password (up to 35 characters) in the Password field. The FortiGate
unit and the RIP updates router must both be configured with the same
password. The password is sent in clear text over the network.
MD5 — Authenticate the exchange using MD5.
Passive Interface Select to suppress the advertising of FortiGate unit routing information over
the specified interface. Clear the check box to allow the interface to respond
normally to RIP requests.

OSPF
Open Shortest Path First (OSPF) is a link-state routing protocol that is most often used in
large heterogeneous networks to share routing information among routers in the same
Autonomous System (AS). FortiGate units support OSPF version 2 (see RFC 2328).
The main benefit of OSPF is that it advertises routes only when neighbors change state
instead of at timed intervals, so routing overhead is reduced.

How OSPF works


An OSPF network consists of one or more Autonomous Systems (ASes). An OSPF AS is
typically divided into logical areas linked by Area Border Routers. A group of contiguous
networks form an area. An Area Border Router (ABR) links one or more ASes to the
OSPF network backbone (area ID 0). For information on configuring an OSPF AS, see
“Defining an OSPF AS—Overview” on page 363.
When a FortiGate unit interface is connected to an OSPF area, that unit can participate in
OSPF communications. FortiGate units use the OSPF Hello protocol to acquire neighbors
in an area. A neighbor is any router that directly connected to the same area as the
FortiGate unit. After initial contact, the FortiGate unit exchanges Hello packets with its
OSPF neighbors regularly to confirm that the neighbors can be reached.

FortiGate Version 4.0 MR1 Administration Guide


362 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic OSPF

OSPF-enabled routers generate Link-State Advertisements (LSA) and send them to their
neighbors whenever the status of a neighbor changes or a new neighbor comes online. As
long as the OSPF network is stable, LSAs between OSPF neighbors do not occur. 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. All LSA
exchanges between OSPF-enabled routers are authenticated.
The FortiGate unit maintains a database of link-state information based on the
advertisements that it receives from OSPF-enabled routers. To calculate the best route
(shortest path) to a destination, the FortiGate unit applies the Shortest Path First (SPF)
algorithm to the accumulated link-state information. OSPF uses relative path cost metric
for choosing the best route. The path cost can be any metric, but is typically the speed of
the path—how fast traffic will get from one point to another. The path cost, similar to
“distance” for RIP, imposes a penalty on the outgoing direction of a FortiGate interface.
The path cost of a route is calculated by adding together all of the costs associated with
the outgoing interfaces along the path to a destination. The lowest overall path cost
indicates the best route, and generally the fastest route.

Note: The inter-area routes may not be calculated when a Cisco type ABR has no fully
adjacent neighbor in the backbone area. In this situation, the router considers summary-
LSAs from all Actively summary-LSAs from all Actively Attached areas (RFC 3509).

The FortiGate unit dynamically updates its routing table based on the results of the SPF
calculation to ensure that an OSPF packet will be routed using the shortest path to its
destination. Depending on the network topology, the entries in the FortiGate routing table
may include:
• the addresses of networks in the local OSPF area (to which packets are sent directly)
• routes to OSPF area border routers (to which packets destined for another area are
sent)
• if the network contains OSPF areas and non-OSPF domains, routes to AS boundary
routers, which reside on the OSPF network backbone and are configured to forward
packets to destinations outside the OSPF AS.
The number of routes that a FortiGate unit can learn through OSPF depends on the
network topology. A single unit can support tens of thousands of routes if the OSPF
network is configured properly.

Defining an OSPF AS—Overview


Defining an OSPF Autonomous System (AS), involves:
• defining the characteristics of one or more OSPF areas
• creating associations between the OSPF areas that you defined and the local networks
to include in the OSPF AS
• if required, adjusting the settings of OSPF-enabled interfaces.
If you are using the web-based manager to perform these tasks, follow the procedures
summarized below.

To define an OSPF AS
1 Go to Router > Dynamic > OSPF.
2 Under Areas, select Create New.
3 Define the characteristics of one or more OSPF areas. See “Defining OSPF areas” on
page 367.
4 Under Networks, select Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 363
http://docs.fortinet.com/ • Feedback
OSPF Router Dynamic

5 Create associations between the OSPF areas that you defined and the local networks
to include in the OSPF AS. See “Specifying OSPF networks” on page 368.
6 If you need to adjust the default settings of an OSPF-enabled interface, select Create
New under Interfaces.
7 Select the OSPF operating parameters for the interface. See “Selecting operating
parameters for an OSPF interface” on page 369.
Repeat steps 6 and 7 for any additional OSPF-enabled interfaces.
8 Optionally select advanced OSPF options for the OSPF AS. See “Selecting advanced
OSPF options” on page 366.
9 Select Apply.

Configuring basic OSPF settings


When you configure OSPF settings, you have to define the AS in which OSPF is enabled
and specify which of the FortiGate interfaces participate in the AS. As part of the AS
definition, you specify the AS areas and specify which networks to include those areas.
You may optionally adjust the settings associated with OSPF operation on the FortiGate
interfaces.
To view and edit OSPF settings, go to Router > Dynamic > OSPF.
Figure 190 shows the basic OSPF settings on a FortiGate unit that has an interface
named “port1”. The names of the interfaces on your FortiGate unit may be different.

Figure 190: Basic OSPF settings

Expand
Arrow

Router ID Enter a unique router ID to identify the FortiGate unit to other OSPF routers.
By convention, the router ID is the numerically highest IP address assigned to
any of the FortiGate interfaces in the OSPF AS.
If you change the router ID while OSPF is configured on an interface, all
connections to OSPF neighbors will be broken temporarily. The connections
will re-establish themselves.
If Router ID is not explicitly set, the highest IP address of the VDOM or unit
will be used.
Advanced Options Select the Expand Arrow to view or hide advanced OSPF settings. For more
information, see “Selecting advanced OSPF options” on page 366.

FortiGate Version 4.0 MR1 Administration Guide


364 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic OSPF

Areas Information about the areas making up an OSPF AS. The header of an OSPF
packet contains an area ID, which helps to identify the origination of a packet
inside the AS.
Create New Define and add a new OSPF area to the Areas list. For more information, see
“Defining OSPF areas” on page 367.
Area The unique 32-bit identifiers of areas in the AS, in dotted-decimal notation.
Area ID 0.0.0.0 references the backbone of the AS and cannot be changed or
deleted.
Type The types of areas in the AS:
• Regular - a normal OSPF area
• NSSA - a not so stubby area
• Stub - a stub area.
For more information, see “Defining OSPF areas” on page 367.
Authentication The methods for authenticating OSPF packets sent and received through all
FortiGate interfaces linked to each area:
None — authentication is disabled
Text — text-based authentication is enabled
MD5 — MD5 authentication is enabled.
A different authentication setting may apply to some of the interfaces in an
area, as displayed under Interfaces. For example, if an area employs simple
passwords for authentication, you can configure a different password for one
or more of the networks in that area.
Networks The networks in the OSPF AS and their area IDs. When you add a network to
the Networks list, all FortiGate interfaces that are part of the network are
advertised in OSPF link-state advertisements. You can enable OSPF on all
FortiGate interfaces whose IP addresses match the OSPF network address
space. For more information, see “Specifying OSPF networks” on page 368.
Create New Add a network to the AS, specify its area ID, and add the definition to the
Networks list.
Network The IP addresses and network masks of networks in the AS on which OSPF
runs. The FortiGate unit may have physical or VLAN interfaces connected to
the network.
Area The area IDs that have been assigned to the OSPF network address space.
Interfaces Any additional settings needed to adjust OSPF operation on a FortiGate
interface. For more information, see “Selecting operating parameters for an
OSPF interface” on page 369.
Create New Create additional/different OSPF operating parameters for a unit interface
and add the configuration to the Interfaces list.
Name The names of OSPF interface definitions.
Interface The names of FortiGate physical or VLAN interfaces having OSPF settings
that differ from the default values assigned to all other interfaces in the same
area.
IP The IP addresses of the OSPF-enabled interfaces having additional/different
settings.
Authentication The methods for authenticating LSA exchanges sent and received on specific
OSPF-enabled interfaces. These settings override the area Authentication
settings.
Delete and Edit Delete or edit an OSPF area entry, network entry, or interface definition. Icons
icons are visible only when there are entries in Areas, Networks, and Interfaces
sections.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 365
http://docs.fortinet.com/ • Feedback
OSPF Router Dynamic

Selecting advanced OSPF options


By selecting advanced OSPF options, you can specify metrics for redistributing routes that
the FortiGate unit learns through some means other than OSPF link-state advertisements.
For example, if the FortiGate unit is connected to a RIP or BGP network or you add a
static route to the FortiGate routing table manually, you can configure the unit to advertise
those routes on OSPF-enabled interfaces.
To select advanced RIP options, go to Router > Dynamic > RIP and expand Advanced
Options. After you select the options, select Apply.

Figure 191: Advanced Options (OSPF)

Expand
Arrow

Router ID Enter a unique router ID to identify the FortiGate unit to other OSPF routers.
Expand Arrow Select to view or hide Advanced Options.
Default Information Generate and advertise a default (external) route to the OSPF AS. You may
base the generated route on routes learned through a dynamic routing
protocol, routes in the routing table, or both.
None Prevent the generation of a default route.
Regular Generate a default route into the OSPF AS and advertise the route to
neighboring autonomous systems only if the route is stored in the FortiGate
routing table.
Always Generate a default route into the OSPF AS and advertise the route to
neighboring autonomous systems unconditionally, even if the route is not
stored in the FortiGate routing table.
Redistribute Select one or more of the options listed to redistribute OSPF link-state
advertisements about routes that were not learned through OSPF. The
FortiGate unit can use OSPF to redistribute routes learned from directly
connected networks, static routes, RIP, and BGP.
Connected Select to redistribute routes learned from directly connected networks.
Enter a cost for those routes in the Metric field. The range is from 1 to
16 777 214.
Static Select to redistribute routes learned from static routes.
Enter a cost for those routes in the Metric field. The range is from 1 to
16 777 214.
RIP Select to redistribute routes learned through RIP.
Enter a cost for those routes in the Metric field. The range is from 1 to
16 777 214.
BGP Select to redistribute routes learned through BGP.
Enter a cost for those routes in the Metric field. The range is from 1 to
16 777 214.

FortiGate Version 4.0 MR1 Administration Guide


366 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic OSPF

Note: You can configure additional advanced options through customizable GUI widgets,
and the CLI. For example, you can filter incoming or outgoing updates by using a route
map, an access list, or a prefix list. The FortiGate unit also supports offset lists, which add
the specified offset to the metric of a route. For more information on customizable GUI
widgets, see “Customizable routing widgets” on page 377. For more information on CLI
routing commands, see the “router” chapter of the FortiGate CLI Reference.

Defining OSPF areas


An area logically defines part of the OSPF AS. Each area is identified by a 32-bit area ID
expressed in dotted-decimal notation, for example 192.168.0.1. Area ID 0.0.0.0 is
reserved for the OSPF network backbone. You can classify the remaining areas of an AS
as regular, stub, or NSSA.
A regular area contains more than one router, each having at least one OSPF-enabled
interface to the area.
To reach the OSPF backbone, the routers in a stub area must send packets to an area
border router. Routes leading to non-OSPF domains are not advertised to the routers in
stub areas. The area border router advertises to the OSPF AS a single default route
(destination 0.0.0.0) into the stub area, which ensures that any OSPF packet that cannot
be matched to a specific route will match the default route. Any router connected to a stub
area is considered part of the stub area.
In a Not-So-Stubby Area (NSSA), routes that lead out of the area into a non-OSPF domain
are made known to OSPF AS. However, the area itself continues to be treated like a stub
area by the rest of the AS.
Regular areas and stub areas (including not-so-stubby areas) are connected to the OSPF
backbone through area border routers.
To define an OSPF area, go to Router > Dynamic > OSPF, and then under Areas, select
Create New. To edit the attributes of an OSPF area, go to Router > Dynamic > OSPF and
select the Edit icon in the row that corresponds to the area.

Note: If required, you can define a virtual link to an area that has lost its physical
connection to the OSPF backbone. Virtual links can be set up only between two FortiGate
units that act as area border routers. For more information on virtual links, see the
FortiGate CLI Reference.

Figure 192: New/Edit OSPF Area

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 367
http://docs.fortinet.com/ • Feedback
OSPF Router Dynamic

Area Type a 32-bit identifier for the area. The value must resemble an IP address in
dotted-decimal notation. Once you have created the OSPF area, the area IP
value cannot be changed; you must delete the area and restart.
Type Select an area type to classify the characteristics of the network that will be
assigned to the area:
Regular — If the area contains more than one router, each having at least one
OSPF-enabled interface to the area.
NSSA — If you want routes to external non-OSPF domains made known to
OSPF AS and you want the area to be treated like a stub area by the rest of the
AS.
STUB — If the routers in the area must send packets to an area border router in
order to reach the backbone and you do not want routes to non-OSPF domains to
be advertised to the routers in the area.
Authentication Select the method for authenticating OSPF packets sent and received through all
interfaces in the area:
None — Disable authentication.
Text — Enables text-based password authentication. to authenticate LSA
exchanges using a plain-text password. The password is sent in clear text over
the network.
MD5 — Enable MD5-based authentication using an MD5 cryptographic hash
(RFC 1321).
If required, you can override this setting for one or more of the interfaces in the
area. For more information, see “Selecting operating parameters for an OSPF
interface” on page 369.

Note: To assign a network to the area, see “Specifying OSPF networks” on page 368.

Specifying OSPF networks


OSPF areas group a number of contiguous networks together. When you assign an area
ID to a network address space, the attributes of the area are associated with the network.
To assign an OSPF area ID to a network, go to Router > Dynamic > OSPF, and then
under Networks, select Create New. To change the OSPF area ID assigned to a network,
go to Router > Dynamic > OSPF and select the Edit icon in the row that corresponds to
the network.

Figure 193: New/Edit OSPF Network

IP/Netmask Enter the IP address and network mask of the local network that you want
to assign to an OSPF area.
Area Select an area ID for the network. The attributes of the area must match
the characteristics and topology of the specified network. You must define
the area before you can select the area ID. For more information, see
“Defining OSPF areas” on page 367.

FortiGate Version 4.0 MR1 Administration Guide


368 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic OSPF

Selecting operating parameters for an OSPF interface


An OSPF interface definition contains specific operating parameters for a FortiGate
OSPF-enabled interface. The definition includes the name of the interface (for example,
external or VLAN_1), the IP address assigned to the interface, the method for
authenticating LSA exchanges through the interface, and timer settings for sending and
receiving OSPF Hello and dead-interval packets.
You can enable OSPF on all FortiGate interfaces whose IP addresses match the OSPF-
enabled network space. For example, define an area of 0.0.0.0 and the OSPF network as
10.0.0.0/16. Then define vlan1 as 10.0.1.1/24, vlan2 as 10.0.2.1/24 and vlan3 as
10.0.3.1/24. All three VLANs can run OSPF in area 0.0.0.0. To enable all interfaces, you
would create an OSPF network 0.0.0.0/0
You can configure different OSPF parameters for the same FortiGate interface when more
than one IP address has been assigned to the interface. For example, the same FortiGate
interface could be connected to two neighbors through different subnets. You could
configure an OSPF interface definition containing one set of Hello and dead-interval
parameters for compatibility with one neighbor’s settings, and a second OSPF interface
definition for the same interface to ensure compatibility with the second neighbor’s
settings.
To select OSPF operating parameters for a FortiGate interface, go to Router > Dynamic >
OSPF, and then under Interfaces, select Create New. To edit the operating parameters of
an OSPF-enabled interface, go to Router > Dynamic > OSPF and select the Edit icon in
the row that corresponds to the OSPF-enabled interface.
Figure 194 shows the New/Edit OSPF Interface dialog box belonging to a FortiGate unit
that has an interface named “port1”. The interface names on your FortiGate unit may
differ.

Figure 194: New/Edit OSPF Interface

Add

Name Enter a name to identify the OSPF interface definition. For example, the
name could indicate to which OSPF area the interface will be linked.
Interface Select the name of the FortiGate interface to associate with this OSPF
interface definition (for example, port1, external, or VLAN_1). The
FortiGate unit can have physical, VLAN, virtual IPSec or GRE interfaces
connected to the OSPF-enabled network.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 369
http://docs.fortinet.com/ • Feedback
BGP Router Dynamic

IP Enter the IP address that has been assigned to the OSPF-enabled


interface. The interface becomes OSPF-enabled because its IP address
matches the OSPF network address space.
For example, if you defined an OSPF network of 172.20.120.0/24 and
port1 has been assigned the IP address 172.20.120.140, type
172.20.120.140.
Authentication Select an authentication method for LSA exchanges on the specified
interface:
None — Disable authentication.
Text — Authenticate LSA exchanges using a plain-text password. The
password can be up to 35 characters, and is sent in clear text over the
network.
MD5 — Use one or more keys to generate an MD5 cryptographic hash.
Password Enter the plain-text password. Enter an alphanumeric value of up to 15
characters. The OSPF neighbors that send link-state advertisements to
this FortiGate interface must be configured with an identical password.
This field is available only if you selected plain-text authentication.
MD5 Keys Enter the key identifier for the (first) password in the ID field (the range is
from 1 to 255) and then type the associated password in the Key field.
The password is a 128-bit hash, represented by an alphanumeric string of
up to 16 characters.
The OSPF neighbors that send link-state advertisements to this FortiGate
interface must be configured with an identical MD5 key. If the OSPF
neighbor uses more than one password to generate MD5 hash, select the
Add icon to add additional MD5 keys to the list.
This field is available only if you selected MD5 authentication.
Hello Interval Optionally, set the Hello Interval to be compatible with Hello Interval
settings on all OSPF neighbors.
This setting defines the period of time (in seconds) that the FortiGate unit
waits between sending Hello packets through this interface.
Dead Interval Optionally, set the Dead Interval to be compatible with Dead Interval
settings on all OSPF neighbors.
This setting defines the period of time (in seconds) that the FortiGate unit
waits to receive a Hello packet from an OSPF neighbor through the
interface. If the FortiGate unit does not receive a Hello packet within the
specified amount of time, the FortiGate unit declares the neighbor
inaccessible.
By convention, the Dead Interval value is usually four times greater than
the Hello Interval value.

BGP
Border Gateway Protocol (BGP) is an Internet routing protocol typically used by ISPs to
exchange routing information between different ISP networks. For example, BGP enables
the sharing of network paths between the ISP network and an autonomous system (AS)
that uses RIP, OSPF, or both to route packets within the AS. The FortiGate implementation
of BGP supports BGP-4 and complies with RFC 1771 and RFC 2385.

How BGP works


When BGP is enabled on an interface, the FortiGate unit sends routing table updates to
neighboring autonomous systems connected to that interface whenever any part of the
FortiGate routing table changes. Each AS to which the unit belongs is associated with an
AS number. The AS number references a particular destination network.
BGP updates advertise the best path to a destination network. When the FortiGate unit
receives a BGP update, the FortiGate unit examines the Multi-Exit Discriminator (MED)
attributes of potential routes to determine the best path to a destination network before
recording the path in the FortiGate unit routing table.

FortiGate Version 4.0 MR1 Administration Guide


370 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic BGP

BGP has the capability to gracefully restart. This capability limits the effects of software
problems by allowing forwarding to continue when the control plane of the router fails. It
also reduces routing flaps by stabilizing the network.

Note: You can configure graceful restarting and other advanced settings only through CLI
commands. For more information on advanced BGP settings, see the “router” chapter of
the FortiGate CLI Reference.

Viewing and editing BGP settings


When you configure BGP settings, you need to specify the AS to which the FortiGate unit
belongs and enter a router ID to identify this unit to other BGP routers. You must also
identify the FortiGate unit’s BGP neighbors and specify which of the networks local to the
FortiGate unit should be advertised to BGP neighbors.
To view and edit BGP settings, go to Router > Dynamic > BGP. The web-based manager
offers a simplified user interface to configure basic BGP options. You can also configure
many advanced BGP options through the CLI. For more information, see the “router”
chapter of the FortiGate CLI Reference.

Figure 195: Basic BGP options

Delete

Local AS Enter the number of the local AS to which the FortiGate unit belongs.
Router ID Enter a unique router ID to identify the FortiGate unit to other BGP routers. The
router ID is an IP address written in dotted-decimal format, for example
192.168.0.1.
If you change the router ID while BGP is configured on an interface, all
connections to BGP peers will be broken temporarily. The connections will re-
establish themselves.
If Router ID is not explicitly set, the highest IP address of the VDOM will be
used.
Neighbors The IP addresses and AS numbers of BGP peers in neighboring autonomous
systems.
IP Enter the IP address of the neighbor interface to the BGP-enabled network.
Remote AS Enter the number of the AS that the neighbor belongs to.
Add/Edit Add the neighbor information to the Neighbors list, or edit an entry in the list.
Neighbor The IP addresses of BGP peers.
Remote AS The numbers of the autonomous systems associated with the BGP peers.
Delete icon Delete a BGP neighbor entry.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 371
http://docs.fortinet.com/ • Feedback
Multicast Router Dynamic

Networks The IP addresses and network masks of networks to advertise to BGP peers.
The FortiGate unit may have a physical or VLAN interface connected to those
networks.
IP/Netmask Enter the IP address and netmask of the network to be advertised.
Add Add the network information to the Networks list.
Network The IP addresses and network masks of major networks that are advertised to
BGP peers.
Delete icon Delete a BGP network definition.

Note: The get router info bgp CLI command provides detailed information about
configured BGP settings. For a complete list of the command options, see the “router”
chapter of the FortiGate CLI Reference.

Multicast
A FortiGate unit can operate as a Protocol Independent Multicast (PIM) version 2 router in
the root virtual domain. FortiGate units support PIM sparse mode (RFC 2362) and PIM
dense mode (RFC 3973) and can service multicast servers or receivers on the network
segment to which a FortiGate interface is connected.

How multicast works


Multicast server applications use a (Class D) multicast address to send one copy of a
packet to a group of receivers. The PIM routers throughout the network ensure that only
one copy of the packet is forwarded through the network until it reaches an end-point
destination. At the end-point destination, copies of the packet are made only when
required to deliver the information to multicast client applications that request traffic
destined for the multicast address.

Note: To support PIM communications, the sending/receiving applications and all


connecting PIM routers in between must be enabled with PIM version 2. PIM can use static
routes, RIP, OSPF, or BGP to forward multicast packets to their destinations. To support
source-to-destination packet delivery, either sparse mode or dense mode must be enabled
on all the PIM-router interfaces. Sparse mode routers cannot send multicast messages to
dense mode routers. In addition, if a FortiGate unit is located between a source and a PIM
router, or between two PIM routers, or is connected directly to a receiver, you must create a
firewall policy manually to pass encapsulated (multicast) packets or decapsulated data (IP
traffic) between the source and destination.

A PIM domain is a logical area comprising a number of contiguous networks. The domain
contains at least one Boot Strap Router (BSR). If sparse mode is enabled, the domain
also contains a number of Rendezvous Points (RPs) and Designated Routers (DRs).
When you enable PIM on a FortiGate unit, the FortiGate unit can perform any of these
functions at any time as configured. If required for sparse mode operation, you can define
static RPs.

Note: You can configure basic options through the web-based manager. Many additional
options are available, but only through the CLI. For complete descriptions and examples of
how to use CLI commands to configure PIM settings, see multicast in the “router”
chapter of the FortiGate CLI Reference.

Note: For more information about FortiGate multicast support, see the FortiGate Multicast
Technical Note or the FortiGate Routing Guide.

FortiGate Version 4.0 MR1 Administration Guide


372 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic Multicast

Viewing and editing multicast settings


When multicast (PIM) routing is enabled, you can configure sparse mode or dense mode
operation on any FortiGate interface.
To view and edit PIM settings, go to Router > Dynamic > Multicast. The web-based
manager offers a simplified user interface to configure basic PIM options. You can also
configure advanced PIM options through the CLI. For more information, see the “router”
chapter of the FortiGate CLI Reference.

Figure 196: Basic Multicast options

Add Static RP

Delete
Edit

Enable Multicast Select to enable PIM version 2 routing. A firewall policy must be created on
Routing PIM-enabled interfaces to pass encapsulated packets and decapsulated data
between the source and destination,
Add Static RP If required for sparse mode operation, enter the IP address of a Rendezvous
Point (RP) that may be used as the root of a packet distribution tree for a
multicast group. Join messages from the multicast group are sent to the RP,
and data from the source is sent to the RP.
If an RP for the specified IP’s multicast group is already known to the Boot
Strap Router (BSR), the RP known to the BSR is used and the static RP
address that you specify is ignored.
Apply Save the specified static RP addresses.
Create New Create a new multicast entry for an interface.
You can use the new entry to fine-tune PIM operation on a specific FortiGate
interface or override the global PIM settings on a particular interface. For
more information, see “Overriding the multicast settings on an interface” on
page 374.
Interface The names of FortiGate interfaces having specific PIM settings.
Mode The mode of PIM operation (Sparse or Dense) on that interface.
Status The status of parse-mode RP candidacy on the interface.
To change the status of RP candidacy on an interface, select the Edit icon in
the row that corresponds to the interface.
Priority The priority number assigned to RP candidacy on that interface. Available
only when RP candidacy is enabled.
DR Priority The priority number assigned to Designated Router (DR) candidacy on the
interface. Available only when sparse mode is enabled.
Delete and Edit Delete or edit the PIM settings on the interface.
icons

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 373
http://docs.fortinet.com/ • Feedback
Multicast Router Dynamic

Overriding the multicast settings on an interface


You use multicast (PIM) interface options to set operating parameters for FortiGate
interfaces connected to PIM domains. For example, you can enable dense mode on an
interface that is connected to a PIM-enabled network segment. When sparse mode is
enabled, you can adjust the priority number that is used to advertise Rendezvous Point
(RP) and/or Designated Router (DR) candidacy on the interface.

Figure 197: Multicast interface settings

Interface Select the name of the root VDOM FortiGate interface to which these
settings apply. The interface must be connected to a PIM version 2 enabled
network segment.
PIM Mode Select the mode of operation: Sparse Mode or Dense Mode. All PIM routers
connected to the same network segment must be running the same mode
of operation. If you select Sparse Mode, adjust the remaining options as
described below.
DR Priority Enter the priority number for advertising DR candidacy on the FortiGate
unit’s interface. The range is from 1 to 4 294 967 295.
The unit compares this value to the DR interfaces of all other PIM routers on
the same network segment, and selects the router having the highest DR
priority to be the DR.
RP Candidate Enable RP candidacy on the interface.
RP Candidate Priority Enter the priority number for advertising RP candidacy on the FortiGate
interface. The range is from 1 to 255.

Multicast destination NAT


Multicast destination NAT (DNAT) allows you translate externally received multicast
destination addresses to addresses that conform to an organization's internal addressing
policy.
By using this feature that is available only in the CLI, you can avoid redistributing routes at
the translation boundary into their network infrastructure for Reverse Path Forwarding
(RPF) to work properly. They can also receive identical feeds from two ingress points in
the network and route them independently.
Configure multicast DNAT in the CLI by using the following command:
config firewall multicast-policy
edit p1
set dnat <dnatted-multicast-group>
set ...
next
end
For more information, see the “firewall” chapter of the FortiGate CLI Reference.

FortiGate Version 4.0 MR1 Administration Guide


374 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic Bi-directional Forwarding Detection (BFD)

Bi-directional Forwarding Detection (BFD)


The bi-directional Forwarding Detection (BFD) protocol is designed to deal with dynamic
routing protocols' lack of a fine granularity for detecting device failures on the network and
re-routing around those failures. BFD can more quickly react to these failures, since it
detects them on a millisecond timer, where other dynamic routing protocols can only
detect them on a second timer.
Your unit supports BFD as part of OSPF and BGP dynamic networking.

Note: You can configure BFD only from the CLI.

How BFD works


When you enable BFD on your FortiGate unit, BFD starts trying to connect to other routers
on the network. You can limit where BFD looks for routers by enabling one interface only,
and by enabling BFD for specific neighboring routers on the network.
Once the connection has been made, BFD will continue to send periodic packets to the
router to make sure it is still operational. These small packets are sent frequently.
If there is no response from the neighboring router within the set period of time, BFD on
your unit reports that router down and changes routing accordingly. BFD continues to try
to reestablish a connection with the non-responsive router.
Once that connection is reestablished, routes are reset to include the router once again.

Configuring BFD
BFD is intended for networks that use BGP or OSPF routing protocols. This generally
excludes smaller networks.
BFD configuration on your FortiGate unit is very flexible. You can enable BFD for the
whole unit, and turn it off for one or two interfaces. Alternatively you can specifically
enable BFD for each neighbor router, or interface. Which method you choose will be
determined by the amount of configuring required for your network
The timeout period determines how long the unit waits before labeling a connection as
down. The length of the timeout period is important—if it is too short connections will be
labeled down prematurely, and if it is too long time will be wasted waiting for a reply from a
connection that is down. There is no easy number, as it varies for each network and unit.
High end FortiGate models will respond very quickly unless loaded down with traffic. Also
the size of the network will slow down the response time—packets need to make more
hops than on a smaller network. Those two factors (CPU load and network traversal time)
affect how long the timeout you select should be. With too short a timeout period, BFD will
not connect to the network device but it will keep trying. This state generates unnecessary
network traffic, and leaves the device unmonitored. If this happens, you should try setting
a longer timeout period to allow BFD more time to discover the device on the network.

Configuring BFD on your FortiGate unit


For this example, BFD is enabled on the FortiGate unit using the default values. This
means that once a connection is established, your unit will wait for up to 150 milliseconds
for a reply from a BFD router before declaring that router down and rerouting traffic—a 50
millisecond minimum transmit interval multiplied by a detection multiplier of 3. The port
that BFD traffic originates from will be checked for security purposes as indicated by
disabling bfd-dont-enforce-src-port.
config system settings

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 375
http://docs.fortinet.com/ • Feedback
Bi-directional Forwarding Detection (BFD) Router Dynamic

set bfd enable


set bfd-desired-min-tx 50
set bfd-required-min-rx 50
set bfd-detect-mult 3
set bfd-dont-enforce-src-port disable
end
Note: The minimum receive interval (bfd-required-min-rx) and the detection
multiplier (bfd-detect-mult) combine to determine how long a period your unit will wait
for a reply before declaring the neighbor down. The correct value for your situation will vary
based on the size of your network and the speed of your unit’s CPU. The numbers used in
this example may not work for your network.

Disabling BFD for a specific interface


The previous example enables BFD for your entire FortiGate unit. If an interface is not
connected to any BFD enabled routers, you can reduce network traffic by disabling BFD
for that interface. For this example, BFD is disabled for the internal interface using CLI
commands.
config system interface
edit <interface>
set bfd disable
end

Configuring BFD on BGP


Configuring BFD on a BGP network involves only one step— enable BFD globally and
then disable it for each neighbor that is running the protocol.
config system settings
set bfd enable
end

config router bgp


config neighbor
edit <ip_address>
set bfd disable
end
end

Configuring BFD on OSPF


Configuring BFD on an OSPF network is very much like enabling BFD on your unit—you
can enable it globally for OSPF, and you can override the global settings at the interface
level.
To enable BFD on OSPF:
configure routing OSPF
set bfd enable
end
To override BFD on an interface:
configure routing OSPF
configure ospf-interface
edit <interface_name>
set bfd disable
end
end

FortiGate Version 4.0 MR1 Administration Guide


376 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic Customizable routing widgets

Customizable routing widgets


You can customize the FortiGate web-based manager (or GUI) to show, hide, and arrange
widgets/menus/items according to your specific requirements. Customizing the display
allows you to vary or limit the GUI layout to address different administrator needs such as
advanced routing.
Only administrators with the super_admin admin profile may create and edit GUI layouts.
For more information on GUI layouts, see “Customizable web-based manager” on
page 290.
Each of the customizable GUI widgets can be minimized or maximized using the arrow
next to the widget title.
Customizable routing widgets include:
• Access List
• Distribute List
• Key Chain
• Offset List
• Prefix List
• Route Map

Access List
Access lists are filters used by FortiGate unit routing processes to limit access to the
network based on IP addresses. For an access list to take effect, it must be called by a
FortiGate unit routing process (for example, a process that supports RIP or OSPF). The
offset list is part of the RIP and OSPF routing protocols. For more information about RIP,
see “RIP” on page 357. For more information about OSPF, see “OSPF” on page 362.
Each rule in an access list consists of a prefix (IP address and netmask), the action to take
for this prefix (permit or deny), and whether to match the prefix exactly or to match the
prefix and any more specific prefix.

Note: If you are setting a prefix of 128.0.0.0, use the format 128.0.0.0/1. The default route,
0.0.0.0/0 can not be exactly matched with an access-list. A prefix-list must be used for this
purpose. For more information, see “Prefix List” on page 380.

The FortiGate unit attempts to match a packet against the rules in an access list starting at
the top of the list. If it finds a match for the prefix, it takes the action specified for that
prefix. If no match is found the default action is deny.

Figure 198: Access List GUI widget

Access-list Enter the name of a new access list. Select Add to save the new access list.
Name The name of the access list.
Action The action to take when the prefix of this access list is matched. Actions can
be either permit or deny.
Prefix The IP address prefix for this access-list. When this prefix is matched, the
action is taken. The prefix can match any address, or a specific address.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 377
http://docs.fortinet.com/ • Feedback
Customizable routing widgets Router Dynamic

Delete Icon Select delete to remove this access-list.


Add Icon Select to add a rule to this access-list. Rules include actions and prefixes.
Rules are processed from smallest to highest number.
For more information on access list, see the “router” chapter of the FortiGate CLI
Reference.

Distribute List
The distribute list is a subcommand of OSPF. It filters the networks in routing updates
using an access or prefix list. Routes not matched by any of the distribution lists will not be
advertised. The offset list is part of the RIP and OSPF routing protocols. For more
information about OSPF, see “OSPF” on page 362.

Note: You must configure the access list that you want the distribution list to use before you
configure the distribution list. To configure an access list, see “Access List” on page 377.

Figure 199: Distribute List GUI widget

Create New Select to create a new distribute list. This includes setting the direction,
selecting either the prefix-list or access-list, and interface.
Direction The name of the access list.
Filter The prefix-list or access-list to apply to this interface.
Interface The interface to apply the filter on.
Enable A green check indicates this distribute list is enabled.
Delete Icon Select to remove a distribution list rule.
Edit Icon Select to change the direction, filter, or interface of the distribute list.

For more information on the distribute list, see the “router” chapter of the FortiGate CLI
Reference.

Key Chain
A key chain is a list of one or more keys and the send and receive lifetimes for each key.
Keys are used for authenticating routing packets only during the specified lifetimes. The
FortiGate unit migrates from one key to the next according to the scheduled send and
receive lifetimes. The sending and receiving routers should have their system dates and
times synchronized, but overlapping the key lifetimes ensures that a key is always
available even if there is some difference in the system times.
RIP version 2 uses authentication keys to ensure that the routing information exchanged
between routers is reliable. For authentication to work both the sending and receiving
routers must be set to use authentication, and must be configured with the same keys.
The offset list is part of the RIP and OSPF routing protocols. For more information about
RIP, see “RIP” on page 357.

FortiGate Version 4.0 MR1 Administration Guide


378 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic Customizable routing widgets

Figure 200: Key Chain GUI widget

Key-chain Enter the name for a new key-chain. Select Add to save the new key-chain.
Name The name of the key-chain, or the number of the key on that chain.
Accept Lifetime The start and end time that this key can accept routing packets.
Start The start time for this key. The format is H:M:S M/D/YYYY.
End The end time for this key. The end can be infinite, a set duration in seconds,
or a set time as with the start time.
Send Lifetime The start and end time that this key can send routing packets.
Start The start time for this key. The format is H:M:S M/D/YYYY.
End The end time for this key. The end can be infinite, a set duration in seconds,
or a set time as with the start time.
Delete Icon Select to remove a key or key-chain
Add Icon Select to add keys to the key-chain.
Edit Icon Select to edit an existing key.

For more information on key-chains, see the “router” chapter of the FortiGate CLI
Reference.

Offset List
Use the offset list to change the weighting of the metric (hop count) for a route from the
offset list.
The offset list is part of the RIP and OSPF routing protocols. For more information about
RIP, see “RIP” on page 357. For more information about OSPF, see “OSPF” on page 362.

Figure 201: Offset List GUI widget

Create New Select to add a new offset to the list.


Direction The direction can be In or Out.
Access-list The access-list to use to match the traffic.
Offset The adjustment to the hop count metric.
Interface The interface this offset list applies to.
Delete Icon Select to remove a offset entry.
Edit Icon Select to edit an existing offset entry.

For more information on the offset list, see the “router” chapter of the FortiGate CLI
Reference.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 379
http://docs.fortinet.com/ • Feedback
Customizable routing widgets Router Dynamic

Prefix List
A prefix list is an enhanced version of an access list that allows you to control the length of
the prefix netmask.
Each rule in a prefix list consists of a prefix (IP address and netmask), the action to take
for this prefix (permit or deny), and maximum and minimum prefix length settings.
The FortiGate unit attempts to match a packet against the rules in a prefix list starting at
the top of the list. If it finds a match for the prefix it takes the action specified for that prefix.
If no match is found the default action is deny. A prefix-list should be used to match the
default route 0.0.0.0/0.
For a prefix list to take effect, it must be called by another FortiGate unit routing feature
such as RIP or OSPF. For more information about RIP, see “RIP” on page 357. For more
information about OSPF, see “OSPF” on page 362.

Figure 202: Prefix List GUI widget

Prefix-list Enter the name of a new prefix-list. Select Add to save the new prefix list
entry.
Name The name of the prefix list, or the number of the prefix entry.
Action The action of the prefix entry. Actions can be permit or deny.
Prefix The IP address and netmask associated with this prefix. Optionally this can
be set to match any address.
GE Select the number of bits to match in the address. This number or greater
will be matched for there to be a match.
LE Select the number of bits to match in the address. This number or less will
be matched for there to be a match
Delete Icon Select to remove a prefix entry or list.
Add Icon Select to add a prefix entry to a list.
Edit Icon Select to edit an existing prefix entry.

For more information on the prefix list, see the “router” chapter of the FortiGate CLI
Reference.

Route Map
Route maps provide a way for the FortiGate unit to evaluate optimum routes for
forwarding packets or suppressing the routing of packets to particular destinations using
the BGP routing protocol. Compared to access lists, route maps support enhanced
packet-matching criteria. In addition, route maps can be configured to permit or deny the
addition of routes to the FortiGate unit routing table and make changes to routing
information dynamically as defined through route-map rules.
The FortiGate unit compares the rules in a route map to the attributes of a route. The rules
are examined in ascending order until one or more of the rules in the route map are found
to match one or more of the route attributes:
• When a single matching match-* rule is found, changes to the routing information are
made as defined through the rule’s set-ip-nexthop, set-metric, set-metric-type, and/or
set-tag settings.

FortiGate Version 4.0 MR1 Administration Guide


380 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Dynamic Customizable routing widgets

• If no matching rule is found, no changes are made to the routing information.


• When more than one match-* rule is defined, all of the defined match-* rules must
evaluate to TRUE or the routing information is not changed.
• If no match-* rules are defined, the FortiGate unit makes changes to the routing
information only when all of the default match-* rules happen to match the attributes of
the route.
The default rule in the route map (which the FortiGate unit applies last) denies all routes.
For a route map to take effect, it must be called by a FortiGate unit routing process.

Figure 203: Route Map GUI widget

Route-map Enter the name of a new route-map. Select Add to save the new route-
map.
Name The name of the route map, or the number of the prefix entry.
Action The action of the route map. Actions can be permit or deny.
Rules The rules include the criteria to match and a value to set. The criteria to
match can be an interface, address from access or prefix list, the next-hop
to match from access or prefix list, a metrics, or other information. The
value to set can be the next-hop IP address, the metric, metric type, and a
tag number.
Delete Icon Select to remove a route map or entry.
Add Icon Select to add a route map entry to a route map.
Edit Icon Select to edit an existing route map entry.

For more information on the route map, see the “router” chapter of the FortiGate CLI
Reference.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 381
http://docs.fortinet.com/ • Feedback
Customizable routing widgets Router Dynamic

FortiGate Version 4.0 MR1 Administration Guide


382 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Monitor Viewing routing information

Router Monitor
This section explains how to interpret the Routing Monitor list. The list displays the entries
in the FortiGate routing table.
If you enable virtual domains (VDOMs) on the FortiGate unit, router monitoring is available
separately for each virtual domain. For more information, see “Using virtual domains” on
page 159.
This section describes:
• Viewing routing information
• Searching the FortiGate routing table

Viewing routing information


By default, all routes are displayed in the Routing Monitor list. The default static route is
defined as 0.0.0.0/0, which matches the destination IP address of “any/all” packets.
To display the routes in the routing table, go to Router > Monitor.
Figure 204 shows the Routing Monitor list belonging to a FortiGate unit that has interfaces
named “port1”, “port4”, and “lan”. The names of the interfaces on your FortiGate unit may
be different.

Figure 204: Routing Monitor list

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 383
http://docs.fortinet.com/ • Feedback
Viewing routing information Router Monitor

IP version Select IPv4 or IPv6 routes.


Type Select one of the following route types to search the routing table and display routes
of the selected type only:
All — all routes recorded in the routing table.
Connected — all routes associated with direct connections to FortiGate interfaces.
Static — the static routes that have been added to the routing table manually. For
more information see “Static Route” on page 338.
RIP — all routes learned through RIP. For more information see “RIP” on page 357.
OSPF — all routes learned through OSPF. For more information see “OSPF” on
page 362.
BGP — all routes learned through BGP. For more information see “BGP” on
page 370
HA — RIP, OSPF, and BGP routes synchronized between the primary unit and the
subordinate units of a high availability (HA) cluster. HA routes are maintained on
subordinate units and are visible only if you are viewing the router monitor from a
virtual domain that is configured as a subordinate virtual domain in a virtual cluster.
For details about HA routing synchronization, see the FortiGate HA User Guide.
Network Enter an IP address and netmask (for example, 172.16.14.0/24) to search the
routing table and display routes that match the specified network.
Gateway Enter an IP address and netmask (for example, 192.168.12.1/32) to search the
routing table and display routes that match the specified gateway.
Apply Filter Select to search the entries in the routing table based on the specified search criteria
and display any matching routes.
Type The type values assigned to FortiGate routes (Static, Connected, RIP, OSPF, or
BGP).
Subtype If applicable, the subtype classification assigned to OSPF routes.
• An empty string implies an intra-area route. The destination is in an area to which
the FortiGate unit is connected.
• OSPF inter area — the destination is in the OSPF AS, but the FortiGate unit is
not connected to that area.
• External 1 — the destination is outside the OSPF AS. The metric of a
redistributed route is calculated by adding the external cost and the OSPF cost
together.
• External 2 — the destination is outside the OSPF AS. In this case, the metric of
the redistributed route is equivalent to the external cost only, expressed as an
OSPF cost.
• OSPF NSSA 1 — same as External 1, but the route was received through a not-
so-stubby area (NSSA).
• OSPF NSSA 2 — same as External 2, but the route was received through a not-
so-stubby area.
Network The IP addresses and network masks of destination networks that the FortiGate unit
can reach.
Distance The administrative distance associated with the route. A value of 0 means the route
is preferable compared to routes to the same destination.
To modify the administrative distance assigned to static routes, see “Adding a static
route to the routing table” on page 343. To modify this distance for dynamic routes,
see FortiGate CLI Reference.
Metric The metric associated with the route type. The metric of a route influences how the
FortiGate unit dynamically adds it to the routing table. The following are types of
metrics and when they are applied.
• Hop count — routes learned through RIP.
• Relative cost — routes learned through OSPF.
• Multi-Exit Discriminator (MED) — routes learned through BGP. However, several
attributes in addition to MED determine the best path to a destination network.
Gateway The IP addresses of gateways to the destination networks.
Interface The interface through which packets are forwarded to the gateway of the destination
network.
Up Time The total accumulated amount of time that a route learned through RIP, OSPF, or
BGP has been reachable.

FortiGate Version 4.0 MR1 Administration Guide


384 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Router Monitor Searching the FortiGate routing table

Searching the FortiGate routing table


You can apply a filter to search the routing table and display certain routes only. For
example, you can display one or more static routes, connected routes, routes learned
through RIP, OSPF, or BGP, and routes associated with the network or gateway that you
specify.
If you want to search the routing table by route type and further limit the display according
to network or gateway, all of the values that you specify as search criteria must match
corresponding values in the same routing table entry in order for that entry to be displayed
(an implicit AND condition is applied to all of the search parameters you specify).
For example, if the FortiGate unit is connected to network 172.16.14.0/24 and you want to
display all directly connected routes to network 172.16.14.0/24, you must select
Connected from the Type list, type 172.16.14.0/24 in the Network field, and then
select Apply Filter to display the associated routing table entry or entries. Any entry that
contains the word “Connected” in its Type field and the specified value in the Gateway
field will be displayed.

To search the FortiGate routing table


1 Go to Router > Monitor > Routing Monitor.
2 From the Type list, select the type of route to display. For example, select Connected
to display all connected routes, or select RIP to display all routes learned through RIP.
3 If you want to display routes to a specific network, type the IP address and netmask of
the network in the Networks field.
4 If you want to display routes to a specific gateway, type the IP address of the gateway
in the Gateway field.
5 Select Apply Filter.

Note: All of the values that you specify as search criteria must match corresponding values
in the same routing table entry in order for that entry to be displayed.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 385
http://docs.fortinet.com/ • Feedback
Searching the FortiGate routing table Router Monitor

FortiGate Version 4.0 MR1 Administration Guide


386 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy How list order affects policy matching

Firewall Policy
Firewall policies control all traffic attempting to pass through the FortiGate unit, between
FortiGate interfaces, zones, and VLAN subinterfaces.
Firewall policies are instructions the FortiGate unit uses to decide connection acceptance
and packet processing for traffic attempting to pass through. When the firewall receives a
connection packet, it analyzes the packet’s source address, destination address, and
service (by port number), and attempts to locate a firewall policy matching the packet.
Firewall policies can contain many instructions for the FortiGate unit to follow when it
receives matching packets. Some instructions are required, such as whether to drop or
accept and process the packets, while other instructions, such as logging and
authentication, are optional.
Policy instructions may include network address translation (NAT), or port address
translation (PAT), by using virtual IPs or IP pools to translate source and destination IP
addresses and port numbers. For details on using virtual IPs and IP pools, see “Firewall
Virtual IP” on page 447.
Policy instructions may also include protection profiles, which can specify application-layer
inspection and other protocol-specific protection and logging. For details on using
protection profiles, see “Firewall Protection Profile” on page 479.
If you enable virtual domains (VDOMs) on the FortiGate unit, firewall policies are
configured separately for each virtual domain, and you must first enter the virtual domain
to configure its firewall policies. For details, see “Using virtual domains” on page 159.
This section describes:
• How list order affects policy matching
• Multicast policies
• Viewing the firewall policy list
• Configuring firewall policies
• Using DoS policies to detect and prevent attacks
• Using one-arm sniffer policies to detect network attacks
• How FortiOS selects unused NAT ports
• Firewall policy examples

How list order affects policy matching


Each time a FortiGate unit receives a connection attempting to pass through one of its
interfaces, the unit searches its firewall policy list for a matching firewall policy.
The search begins at the top of the policy list and progresses in order towards the bottom.
The FortiGate unit evaluates each policy in the firewall policy list for a match until a match
is found. When the FortiGate unit finds the first matching policy, it applies the matching
policy’s specified actions to the packet, and disregards subsequent firewall policies.
Matching firewall policies are determined by comparing the firewall policy and the
packet’s:
• source and destination interfaces

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 387
http://docs.fortinet.com/ • Feedback
How list order affects policy matching Firewall Policy

• source and destination firewall addresses


• services
• time/schedule.
If no policy matches, the connection is dropped.
As a general rule, you should order the firewall policy list from most specific to most
general because of the order in which policies are evaluated for a match, and because
only the first matching firewall policy is applied to a connection. Subsequent possible
matches are not considered or applied. Ordering policies from most specific to most
general prevents policies that match a wide range of traffic from superseding and
effectively masking policies that match exceptions.
For example, you might have a general policy that allows all connections from the internal
network to the Internet, but want to make an exception that blocks FTP. In this case, you
would add a policy that denies FTP connections above the general policy.

Figure 205: Example: Blocking FTP — Correct policy order

}Exception
}General

FTP connections would immediately match the deny policy, blocking the connection.
Other kinds of services do not match the FTP policy, and so policy evaluation would
continue until reaching the matching general policy. This policy order has the intended
effect. But if you reversed the order of the two policies, positioning the general policy
before the policy to block FTP, all connections, including FTP, would immediately match
the general policy, and the policy to block FTP would never be applied. This policy order
would not have the intended effect.

Figure 206: Example: Blocking FTP — Incorrect policy order

}General
}Exception

Similarly, if specific traffic requires authentication, IPSec VPN, or SSL VPN, you would
position those policies above other potential matches in the policy list. Otherwise, the
other matching policies could always take precedence, and the required authentication,
IPSec VPN, or SSL VPN might never occur.

Note: A default firewall policy may exist which accepts all connections. You can move,
disable or delete it. If you move the default policy to the bottom of the firewall policy list and
no other policy matches the packet, the connection will be accepted. If you disable or delete
the default policy and no other policy matches the packet, the connection will be dropped.

Moving a policy to a different position in the policy list


You can arrange the firewall policy list to influence the order in which policies are
evaluated for matches with incoming traffic. When more than one policy has been defined
for the same interface pair, the first matching firewall policy will be applied to the traffic
session. For more information, see “How list order affects policy matching” on page 387.
Moving a policy in the firewall policy list does not change its ID, which only indicates the
order in which the policy was created.

FortiGate Version 4.0 MR1 Administration Guide


388 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Multicast policies

Figure 207: Move Policy

To move a policy in the policy list


1 Go to Firewall > Policy.
Or go to Firewall > Policy > Dos Policy.
Or go to Firewall > Policy > Sniffer Policy.
Or go to Firewall > Policy > Policy6.
2 In the firewall policy list, note the ID of a firewall policy that is before or after your
intended destination.
3 In the row corresponding to the firewall policy that you want to move, select the
Move To icon.
4 Select Before or After, and enter the ID of the firewall policy that is before or after your
intended destination. This specifies the policy’s new position in the firewall policy list.
5 Select OK.

Enabling and disabling policies


From the policy lists you can temporarily enable or disable policies. It can be useful to
temporarily disable a policy without deleting. You can then just enable it again without
having to re-add it.

To temporarily disable a policy in the policy list


1 Go to Firewall > Policy.
Or go to Firewall > Policy > Dos Policy.
Or go to Firewall > Policy > Sniffer Policy.
Or go to Firewall > Policy > Policy6.
2 Select a policy to disable and clear the checkbox in the status column entry for the
policy.
All sessions currently being processed by the policy continue. But no new sessions will
start until you re-enable the policy.
To view sessions currently being processed by a policy use the Top Sessions widget in
the dashboard and select Details. The Policy ID column in the sessions list shows the
policies in use and the sessions using them. From this list you can select a Policy ID to
view the policy and also go to the policy list containing the policy.
3 To enable a policy select the checkbox in the status column entry for the policy

Multicast policies
FortiGate units support multicast policies. You can configure and create multicast policies
using the following CLI command:
config firewall multicast-policy
For more information, see the FortiOS CLI Reference and the FortiGate Multicast
Technical Note.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 389
http://docs.fortinet.com/ • Feedback
Viewing the firewall policy list Firewall Policy

Viewing the firewall policy list


The firewall policy list displays firewall policies in their order of matching precedence for
each source and destination interface pair.
If virtual domains are enabled on the FortiGate unit, firewall policies are configured
separately for each virtual domain; you must access the VDOM before you can configure
its policies. To access a VDOM, go to System > VDOM, and in the row corresponding to
the VDOM whose policies you want to configure, select Enter.
You can add, delete, edit, and re-order policies in the policy list. Firewall policy order
affects policy matching. For details about arranging policies in a policy list, see “How list
order affects policy matching” on page 387 and “Moving a policy to a different position in
the policy list” on page 388.
To view the policy list, go to Firewall > Policy.

Figure 208: Firewall policy list

Filter

Delete
Enable or Disable a Policy
Edit
Insert Policy before
Move To

Create New Add a new firewall policy. Select the down arrow beside Create New to add a
new section to the list to visually group the policies.
Column Settings Customize the table view. You can select the columns to hide or display and
specify the column displaying order in the table. For more information, see
“Using column settings to control the columns displayed” on page 103 and
“Web-based manager icons” on page 105.
Section View Select to display firewall policies organized by source and destination interfaces.
Note: Section View is not available if any policy selects Any as the source or
destination interface.
Global View Select to list all firewall policies in order according to a sequence number.
Filter icons Edit the column filters to filter or sort the policy list according to the criteria you
specify. For more information, see “Adding filters to web-based manager lists”
on page 99.
ID The policy identifier. Policies are numbered in the order they are added to the
policy list.
From The source interface of the policy. Global view only.
To The destination interface of the policy. Global view only.
Source The source address or address group to which the policy applies. For more
information, see “Firewall Address” on page 421.
Destination The destination address or address group to which the policy applies. For more
information, see “Firewall Address” on page 421.
Schedule The schedule that controls when the policy should be active. For more
information, see “Firewall Schedule” on page 437.
Service The service to which the policy applies. For more information, see “Firewall
Service” on page 427.

FortiGate Version 4.0 MR1 Administration Guide


390 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

Profile The protection profile that is associated with the policy.


Action The response to make when the policy matches a connection attempt.
Status Select the checkbox to enable a policy or deselect it to disable a policy. See
“Enabling and disabling policies” on page 389.
From The source interface.
To The destination interface.
VPN Tunnel The VPN tunnel the VPN policy uses.
Authentication The user authentication method the policy uses.
Comments Comments entered when creating or editing the policy.
Log A green check mark indicates traffic logging is enabled for the policy; a grey
cross mark indicates traffic logging is disabled for the policy.
Count The FortiGate unit counts the number of packets and bytes that hit the firewall
policy.
For example, 5/50B means that five packets and 50 bytes in total have hit the
policy.
The counter is reset when the FortiGate unit is restarted or the policy is deleted
and re-configured.
Delete icon Delete the policy from the list.
Edit icon Edit the policy.
Insert Policy Add a new policy above the corresponding policy (the New Policy screen
Before icon appears).
Move To icon Move the corresponding policy before or after another policy in the list. For more
information, see “Moving a policy to a different position in the policy list” on
page 388.

Configuring firewall policies


You can configure firewall policies to define which sessions will match the policy and what
actions the FortiGate unit will perform with packets from matching sessions.
Sessions are matched to a firewall policy by considering these features of both the packet
and policy:
• Source Interface/Zone
• Source Address
• Destination Interface/Zone
• Destination Address
• schedule and time of the session’s initiation
• service and the packet’s port numbers.
If the initial packet matches the firewall policy, the FortiGate unit performs the configured
Action and any other configured options on all packets in the session.
Packet handling actions can be ACCEPT, DENY, IPSEC or SSL-VPN.
• ACCEPT policy actions permit communication sessions, and may optionally include
other packet processing instructions, such as requiring authentication to use the policy,
or specifying a protection profile to apply features such as virus scanning to packets in
the session. An ACCEPT policy can also apply interface-mode IPSec VPN traffic if
either the selected source or destination interface is an IPSec virtual interface. For
more information, see “Overview of IPSec VPN configuration” on page 611.
• DENY policy actions block communication sessions, and may optionally log the denied
traffic.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 391
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

• IPSEC and SSL-VPN policy actions apply a tunnel mode IPSec VPN or SSL VPN
tunnel, respectively, and may optionally apply NAT and allow traffic for one or both
directions. If permitted by the firewall encryption policy, a tunnel may be initiated
automatically whenever a packet matching the policy arrives on the specified network
interface, destined for the local private network. For more information, see “IPSec
firewall policy options” on page 399 and “Configuring SSL VPN identity-based firewall
policies” on page 400.
To add or edit a firewall policy, go to Firewall > Policy. Select Create New to add a policy
or select the edit icon beside an existing firewall policy. Configure the settings as
described in the following table and in the references to specific features for IPSec, SSL
VPN and other specialized settings, and then select OK.
If you want to create a DoS policy, go to Firewall > Policy > DoS Policy, and configure the
settings according to the following table. For more information, see “Using DoS policies to
detect and prevent attacks” on page 404.
If you want to use IPv6 firewall addresses in your firewall policy, first go to System > Admin
> Settings. Select “IPv6 Support on GUI”. Then go to Firewall > Policy > IPv6 Policy, and
configure the settings according to the following table.
Firewall policy order affects policy matching. Each time that you create or edit a policy,
make sure that you position it in the correct location in the list. You can create a new policy
and position it right away before an existing one in the firewall policy list, by selecting
Insert Policy before (see “Viewing the firewall policy list” on page 390).

Note: You can configure differentiated services (DSCP) firewall policy options through the
CLI. See the “firewall” chapter of the FortiGate CLI Reference.

FortiGate Version 4.0 MR1 Administration Guide


392 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

Figure 209: Firewall Policy options

Source Select the name of the FortiGate network interface, virtual domain (VDOM) link,
Interface/Zone or zone on which IP packets are received. Interfaces and zones are configured
on the System Network page. For more information, see “Configuring interfaces”
on page 177 and “Configuring zones” on page 198.
If you select Any as the source interface, the policy matches all interfaces as
source.
If Action is set to IPSEC, the interface is associated with the local private
network.
If Action is set to SSL-VPN, the interface is associated with connections from
remote SSL VPN clients.
Source Address Select the name of a firewall address to associate with the Source
Interface/Zone. Only packets whose header contains an IP address matching
the selected firewall address will be subject to this policy.
You can also create firewall addresses by selecting Create New from this list.
For more information, see “Configuring addresses” on page 423.
If you want to associate multiple firewall addresses or address groups with the
Source Interface/Zone, from Source Address, select Multiple. In the dialog box,
move the firewall addresses or address groups from the Available Addresses
section to the Members section, then select OK.
If Action is set to IPSEC, the address is the private IP address of the host,
server, or network behind the FortiGate unit.
If Action is set to SSL-VPN and the policy is for web-only mode clients, select all.
If Action is set to SSL-VPN and the policy is for tunnel mode clients, select the
name of the address that you reserved for tunnel mode clients.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 393
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

Destination Select the name of the FortiGate network interface, virtual domain (VDOM) link,
Interface/Zone or zone to which IP packets are forwarded. Interfaces and zones are configured
on the System Network page. For more information, see “Configuring interfaces”
on page 177 and “Configuring zones” on page 198.
If you select Any as the destination interface, the policy matches all interfaces as
destination.
If Action is set to IPSEC, the interface is associated with the entrance to the VPN
tunnel.
If Action is set to SSL-VPN, the interface is associated with the local private
network.
Destination Select the name of a firewall address to associate with the Destination
Address Interface/Zone. Only packets whose header contains an IP address matching
the selected firewall address will be subject to this policy.
You can also create firewall addresses by selecting Create New from this list.
For more information, see “Configuring addresses” on page 423.
If you want to associate multiple firewall addresses or address groups with the
Destination Interface/Zone, from Destination Address, select Multiple. In the
dialog box, move the firewall addresses or address groups from the Available
Addresses section to the Members section, then select OK.
If you select a virtual IP, the FortiGate unit applies NAT or PAT. The applied
translation varies by the settings specified in the virtual IP, and whether you
select NAT (below). For more information on using virtual IPs, see “Firewall
Virtual IP” on page 447.
If Action is set to IPSEC, the address is the private IP address to which packets
may be delivered at the remote end of the VPN tunnel.
If Action is set to SSL-VPN, select the name of the IP address that corresponds
to the host, server, or network that remote clients need to access behind the
FortiGate unit.
Schedule Select a one-time or recurring schedule or a schedule group that controls when
the policy is in effect.
You can also create schedules by selecting Create New from this list. For more
information, see “Firewall Schedule” on page 437.
Service Select the name of a firewall service or service group that packets must match to
trigger this policy.
You can select from a wide range of predefined firewall services, or you can
create a custom service or service group by selecting Create New from this list.
For more information, see “Configuring custom services” on page 433 and
“Configuring service groups” on page 435.
By selecting the Multiple button beside Service, you can select multiple services
or service groups.
Action Select how you want the firewall to respond when a packet matches the
conditions of the policy. The options available will vary widely depending on this
selection.
ACCEPT Accept traffic matched by the policy. You can configure NAT, protection profiles,
log traffic, shape traffic, set authentication options, or add a comment to the
policy.
DENY Reject traffic matched by the policy. The only other configurable policy options
are Log Violation Traffic to log the connections denied by this policy and adding
a Comment.
IPSEC You can configure an IPSec firewall encryption policy to process IPSec VPN
packets, as well as configure protection profiles, log traffic, shape traffic or add a
comment to the policy. See “IPSec firewall policy options” on page 399.
SSL-VPN You can configure an SSL-VPN firewall encryption policy to accept SSL VPN
traffic. This option is available only after you have added a SSL-VPN user group.
You can also configure NAT and protection profiles, log traffic, shape traffic or
add a comment to the policy. See “Configuring SSL VPN identity-based firewall
policies” on page 400.

FortiGate Version 4.0 MR1 Administration Guide


394 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

NAT Available only if Action is set to ACCEPT or SSL-VPN. Enable or disable


Network Address Translation (NAT) of the source address and port of packets
accepted by the policy. When NAT is enabled, you can also configure Dynamic
IP Pool and Fixed Port.
If you select a virtual IP as the Destination Address, but do not select the NAT
option, the FortiGate unit performs destination NAT (DNAT) rather than full NAT.
Source NAT (SNAT) is not performed.
Dynamic IP Pool Select the check box, then select an IP pool to translate the source address to
an IP address randomly selected from addresses in the IP Pool.
IP Pool cannot be selected if the destination interface, VLAN subinterface, or
one of the interfaces or VLAN subinterfaces in the destination zone is configured
using DHCP or PPPoE, or if you have selected a Destination Interface to which
no IP Pools are bound.
You cannot use IP pools when using zones. An IP pool can only be associated
with an interface.
For details, see “IP pools” on page 463.
Fixed Port Select Fixed Port to prevent NAT from translating the source port.
Some applications do not function correctly if the source port is translated. In
most cases, if Fixed Port is selected, Dynamic IP pool is also selected. If
Dynamic IP pool is not selected, a policy with Fixed Port selected can allow only
one connection to that service at a time.
Note: Fixed Port is only visible if enabled from the CLI.
Enable Identity Select to configure firewall policies that require authentication. For more
Based Policy information, see “Adding authentication to firewall policies” on page 396.
User Available only on some models and only if Action is set to ACCEPT. Select this
Authentication option to display the Authentication Disclaimer page (a replacement message)
Disclaimer to the user. The user must accept the disclaimer to connect to the destination.
You can use the disclaimer together with authentication or a protection profile.
Redirect URL Available only on some models and only if Action is set to ACCEPT. If you enter
a URL, the user is redirected to the URL after authenticating and/or accepting
the user authentication disclaimer.
Protection Select a protection profile to apply to a firewall policy. You can also create a
Profile protection profile by selecting Create New from this list. For more information,
see “Firewall Protection Profile” on page 479.
If you intend to apply authentication to this policy, do not make a Protection
Profile selection. The user group you choose for authentication is already linked
to a protection profile. For more information, see “Adding authentication to
firewall policies” on page 396.
Traffic Shaping Select a traffic shaper for the policy. You can also select to create a new traffic
shaper. Traffic Shaping controls the bandwidth available to, and sets the priority
of the traffic processed by, the policy.
For information about traffic shaping, see “Traffic Shaping” on page 441.
Note: To ensure that traffic shaping is working at its best, make sure that the
interface ethernet statistics show no errors, collisions, or buffer overruns. If any
of these problems do appear, then FortiGate and switch settings may require
adjusting.
Also, do not set both Guaranteed Bandwidth and Maximum Bandwidth to 0
(zero), or the policy will not allow any traffic.
Guaranteed Select a value to ensure there is enough bandwidth available for a high-priority
Bandwidth service. Be sure that the sum of all Guaranteed Bandwidth in all firewall policies
is significantly less than the bandwidth capacity of the interface.
Maximum Select to limit bandwidth in order to keep less important services from using
Bandwidth bandwidth needed for more important ones.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 395
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

Traffic Priority Select High, Medium, or Low. Select Traffic Priority so the FortiGate unit
manages the relative priorities of different types of traffic. For example, a policy
for connecting to a secure web server needed to support e-commerce traffic
should be assigned a high traffic priority. Less important services should be
assigned a low priority. The firewall provides bandwidth to low-priority
connections only when bandwidth is not needed for high-priority connections.
Be sure to enable traffic shaping on all firewall policies. If you do not apply any
traffic shaping rule to a policy, the policy is set to high priority by default.
Distribute firewall policies over all three priority queues.
Reverse Select to enable the reverse traffic shaping. For example, if the traffic direction
Direction that a policy controls is from port1 to port2, select this option will also apply the
Traffic policy shaping configuration to traffic from port2 to port1.
Shaping
Log Allowed Select to record messages to the traffic log whenever the policy processes a
Traffic connection. You must also enable traffic log for a logging location (syslog,
WebTrends, local disk if available, memory, or FortiAnalyzer) and set the logging
severity level to Notification or lower using the Log and Report screen. For more
information see “Log&Report” on page 709.
Log Violation Available only if Action is set to DENY. Select Log Violation Traffic, for Deny
Traffic policies, to record messages to the traffic log whenever the policy processes a
connection. You must also enable traffic log for a logging location (syslog,
WebTrends, local disk if available, memory, or FortiAnalyzer) and set the logging
severity level to Notification or lower using the Log and Report screen. For more
information, see “Log&Report” on page 709.
Enable Endpoint Select to enable the Endpoint NAC feature. From the list, select the Endpoint
NAC NAC profile to apply. For more information, see “Endpoint NAC” on page 695.
Notes:
• You cannot enable Endpoint NAC in firewall policies if Redirect HTTP
Challenge to a Secure Channel (HTTPS) is enabled in User > Options >
Authentication.
• If the firewall policy involves a load balancing virtual IP, the Endpoint NAC
check is not performed.
Comments Add information about the policy. The maximum length is 63 characters.

Adding authentication to firewall policies


If you enable Enable Identity Based Policy in a firewall policy, network users must send
traffic involving a supported firewall authentication protocol to trigger the firewall
authentication challenge, and successfully authenticate, before the FortiGate unit will
allow any other traffic matching the firewall policy.
User authentication can occur through any of the following supported protocols:
• HTTP
• HTTPS
• FTP
• Telnet
The authentication style depends on which of these supported protocols you have
included in the selected firewall services group and which of those enabled protocols the
network user applies to trigger the authentication challenge. The authentication style will
be one of two types. For certificate-based (HTTPS or HTTP redirected to HTTPS only)
authentication, you must install customized certificates on the FortiGate unit and on the
browsers of network users, which the FortiGate unit matches. For user name and
password-based (HTTP, FTP, and Telnet) authentication, the FortiGate unit prompts
network users to input their firewall user name and password.

FortiGate Version 4.0 MR1 Administration Guide


396 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

For example, if you want to require HTTPS certificate-based authentication before


allowing SMTP and POP3 traffic, you must select a firewall service (in the firewall policy)
that includes SMTP, POP3 and HTTPS services. Prior to using either POP3 or SMTP, the
network user would send traffic using the HTTPS service, which the FortiGate unit would
use to verify the network user’s certificate; upon successful certificate-based
authentication, the network user would then be able to access his or her email.
In most cases, you should ensure that users can use DNS through the FortiGate unit
without authentication. If DNS is not available, users will not be able to use a domain
name when using a supported authentication protocol to trigger the FortiGate unit’s
authentication challenge.

Note: If you do not install certificates on the network user’s web browser, the network users
may see an SSL certificate warning message and have to manually accept the default
FortiGate certificate, which the network users’ web browsers may then deem as invalid. For
information on installing certificates, see “System Certificates” on page 301.

Note: When you use certificate authentication, if you do not specify any certificate when
you create a firewall policy, the FortiGate unit will use the default certificate from the global
settings will be used. If you specify a certificate, the per-policy setting will override the
global setting. For information on global authentication settings, see “Options” on
page 675.

Authentication requires that Action is ACCEPT or SSL-VPN, and that you first create
users, assign them to a firewall user group, and assign a protection profile to that user
group. For information on configuring user groups, see “User Group” on page 666. For
information on configuring authentication settings, see “Identity-based firewall policy
options (non-SSL-VPN)” on page 397 and “Configuring SSL VPN identity-based firewall
policies” on page 400.

Identity-based firewall policy options (non-SSL-VPN)


For network users to use non-SSL-VPN identity-based policies, you need to add user
groups to the policy. For information about configuring user groups, see “User Group” on
page 666.
To configure identity-based policies, go to Firewall > Policy, select Create New to add a
firewall policy, or, in the row corresponding to an existing firewall policy, select Edit. Make
sure that Action is set to ACCEPT. Select Enable Identity Based Policy.

Figure 210: Selecting user groups for authentication

Edit
Delete

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 397
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

Enable Identity Select to enable identity-based policy authentication.


Based Policy When the Action is set to ACCEPT, you can select one or more authentication
server types. When a network user attempts to authenticate, the server types
selected indicate which local or remote authentication servers the FortiGate unit
will consult to verify the user’s credentials.
Add Select to create an identity-based firewall policy. For more information, see “To
create an identity-based firewall policy (non-SSL-VPN)” on page 398.
User Group The selected user groups that must authenticate to be allowed to use this policy.
Schedule The one-time or recurring schedule that controls when the policy is in effect.
You can also create schedules by selecting Create New from this list. For more
information, see “Firewall Schedule” on page 437.
Service The firewall service or service group that packets must match to trigger this policy.
Profile The protection profile to apply to this policy. You can also create a protection
profile by selecting Create New from this list. For more information, see “Firewall
Protection Profile” on page 479.
Traffic Shaping The traffic shaping configuration for this policy.
For more information, see “Firewall Policy” on page 387.
Reverse Select to enable the reverse traffic shaping. For example, if the
Direction traffic direction that a policy controls is from port1 to port2, select
Traffic this option will also apply the policy shaping configuration to traffic
from port2 to port1.
Shaping
Log Traffic If the Log Allowed Traffic option is selected when adding an identity-based policy,
a green check mark appears. Otherwise, a white cross mark appears.
Delete icon Select to remove this policy.
Edit icon Select to modify this policy.
Firewall Include firewall user groups defined locally on the FortiGate unit, as well as on
any connected LDAP and RADIUS servers. This option is selected by default.
Directory Include Directory Service groups defined in User > User Group. The groups are
Service (FSAE) authenticated through a domain controller using Fortinet Server Authentication
Extensions (FSAE). If you select this option, you must install the FSAE on the
Directory Service domain controller. For information about FSAE, see the FSAE
Technical Note. For information about configuring user groups, see “User Group”
on page 666.
NTLM Include Directory Service groups defined in User > User Group. If you select this
Authentication option, you must use Directory Service groups as the members of the
authentication group for NTLM. For information about configuring user groups,
see “User Group” on page 666.
Certificate Certificate-based authentication only. Select the protection profile that guest
accounts will use. Note: In order to implement certificate-based authentication,
you must select a firewall service group that includes one of the supported
authentication protocols that use certificate-based authentication. You should also
install the certificate on the network user’s web browser. For more information,
see “Adding authentication to firewall policies” on page 396.

To create an identity-based firewall policy (non-SSL-VPN)


1 Go to Firewall > Policy > Policy and select Create New.
2 Configure Source Interface/Zone, Source Address, Destination Interface/Zone,
Destination Address, Schedule, and Service. For more information, see “Configuring
firewall policies” on page 391.
3 In the Action field, select ACCEPT.
4 Select the Enable Identity Based Policy check box.
A table opens below the check box.
5 Select Add.

FortiGate Version 4.0 MR1 Administration Guide


398 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

Figure 211: Creating identity-based firewall policies

Right Arrow

Left Arrow

6 From the Available User Groups list, select one or more user groups that must
authenticate to be allowed to use this policy. Select the right arrow to move the
selected user groups to the Selected User Groups list.
7 Select services in the Available Services list and then select the right arrow to move
them to the Selected Services list.
8 Select a schedule from the Schedule drop-down list. There is no default.
9 Optionally, select a Protection Profile, enable User Authentication Disclaimer or Log
Allowed Traffic.
10 Optionally, select Traffic Shaping and choose a traffic shaper.
11 Select OK.

IPSec firewall policy options


In a firewall policy (see “Configuring firewall policies” on page 391), the following
encryption options are available for IPSec. To configure these options, go to Firewall >
Policy, select Create New to add a firewall policy, or in the row corresponding to an
existing firewall policy, select Edit. Make sure that Action is set to IPSEC. Enter the
information in the following table and select OK.

Figure 212: IPSEC encryption policy

VPN Tunnel Select the VPN tunnel name defined in the phase 1 configuration. The specified
tunnel will be subject to this firewall encryption policy.
Allow Inbound Select to enable traffic from a dialup client or computers on the remote private
network to initiate the tunnel.
Allow outbound Select to enable traffic from computers on the local private network to initiate
the tunnel.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 399
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

Inbound NAT Select to translate the source IP addresses of inbound decrypted packets into
the IP address of the FortiGate interface to the local private network.
Outbound NAT Select only in combination with a natip CLI value to translate the source
addresses of outbound cleartext packets into the IP address that you specify.
When a natip value is specified, the source addresses of outbound IP packets
are replaced before the packets are sent through the tunnel. For more
information, see the “firewall” chapter of the FortiGate CLI Reference.

Note: For a route-based (interface mode) VPN, you do not configure an IPSec firewall
policy. Instead, you configure two regular ACCEPT firewall policies, one for each direction
of communication, with the IPSec virtual interface as the source or destination interface as
appropriate.

For more information, see the “Defining firewall policies” chapter of the FortiGate IPSec
VPN User Guide.

Configuring SSL VPN identity-based firewall policies


For network users to use SSL-VPN identity-based policies, you must configure users, add
them to user groups, and then configure the policy.
To create an identity-based firewall policy (SSL-VPN), go to Firewall > Policy > Policy and
select Create New and enter the information in the following table. Select Action > SSL
VPN.

Note: The SSL-VPN option is only available from the Action list after you have added SSL
VPN user groups. To add SSL VPN user groups, see “SSL VPN user groups” on page 668.

For more information, see “Configuring firewall policies” on page 391.

Figure 213: Configuring a new SSL VPN firewall policy

FortiGate Version 4.0 MR1 Administration Guide


400 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

Source Interface/Zone Select the name of the FortiGate network interface, virtual domain
(VDOM) link, or zone on which IP packets are received.
Source Address Select the name of a firewall address to associate with the Source
Interface/Zone. Only packets whose header contains an IP address
matching the selected firewall address will be subject to this policy.
You can also create firewall addresses by selecting Create New from
this list. For more information, see “Configuring addresses” on
page 423.
If Action is set to SSL-VPN and the policy is for web-only mode clients,
select all.
If Action is set to SSL-VPN and the policy is for tunnel mode clients,
select the name of the address that you reserved for tunnel mode
clients.
Destination Interface/Zone Select the name of the FortiGate network interface, virtual domain
(VDOM) link, or zone to which IP packets are forwarded. If Action is
set to SSL-VPN, the interface is associated with the local private
network.
Destination Address Select the name of a firewall address to associate with the Destination
Interface/Zone. Only packets whose header contains an IP address
matching the selected firewall address will be subject to this policy.
You can also create firewall addresses by selecting Create New from
this list. For more information, see “Configuring addresses” on
page 423.
If you want to associate multiple firewall addresses or address groups
with the Destination Interface/Zone, from Destination Address, select
Multiple. In the dialog box, move the firewall addresses or address
groups from the Available Addresses section to the Members section,
then select OK.
If you select a virtual IP, the FortiGate unit applies NAT or PAT. The
applied translation varies by the settings specified in the virtual IP, and
whether you select NAT (below). For more information on using virtual
IPs, see “Firewall Virtual IP” on page 447.
If Action is set to IPSEC, the address is the private IP address to
which packets may be delivered at the remote end of the VPN tunnel.
If Action is set to SSL-VPN, select the name of the IP address that
corresponds to the host, server, or network that remote clients need to
access behind the FortiGate unit.
Action Select SSL-VPN to configure the firewall encryption policy to accept
SSL VPN traffic. This option is available only after you have added a
SSL-VPN user group.
SSL Client Certificate Allow traffic generated by holders of a (shared) group certificate. The
Restrictive holders of the group certificate must be members of an SSL VPN user
group, and the name of that user group must be present in the
Allowed field.
Cipher Strength Select the bit level of SSL encryption. The web browser on the remote
client must be capable of matching the level that you select: Any,
High >= 164, or Medium >= 128.
User Authentication Select the authentication server type by which the user will be
Method authenticated:
Any For all of the above authentication methods. Local is attempted first,
then RADIUS, then LDAP.
Local For a local user group that will be bound to this firewall policy.
RADIUS For remote clients that will be authenticated by an external RADIUS
server.
LDAP For remote clients that will be authenticated by an external LDAP
server.
TACACS+ For remote clients that will be authenticated by an external TACACS+
server.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 401
http://docs.fortinet.com/ • Feedback
Configuring firewall policies Firewall Policy

NAT Enable or disable Network Address Translation (NAT) of the source


address and port of packets accepted by the policy. When NAT is
enabled, you can also configure Dynamic IP Pool and Fixed Port.
If you select a virtual IP as the Destination Address, but do not select
the NAT option, the FortiGate unit performs destination NAT (DNAT)
rather than full NAT. Source NAT (SNAT) is not performed.
Fixed Port Select Fixed Port to prevent NAT from translating the source port.
Enable Identity Based Select to configure a SSL-VPN firewall policy that requires
Policy authentication.
Add Select to configure the valid authentication methods, user group
names, and services. For more information, see “User Group” on
page 666.
Comments Add information about the policy. The maximum length is 63
characters.
To create an identity based firewall policy, select the Enable Identity Based Policy check
box. A table opens below the check box. Select Add. The New Authentication Rule dialog
opens (see Figure 214).

Figure 214: New Authentication Rule

User Group
Available User Groups List of user groups available for inclusion in the firewall policy. To add
a user group to the list, select the name and then select the Right
Arrow.
Selected User Groups List of user groups that are included in the firewall policy. To remove a
user group from the list, select the name and then select the Left
Arrow.

FortiGate Version 4.0 MR1 Administration Guide


402 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Configuring firewall policies

Service
Available Services List of available services to include in the firewall policy. To add a
service to the list, select the name and then select the Right Arrow.
Selected Services List of services that are included in the firewall policy. To remove a
service from the list, select the name and then select the Left Arrow.
Schedule Select a one-time or recurring schedule that controls when the policy
is in effect.
You can also create schedules by selecting Create New from this list.
For more information, see “Firewall Schedule” on page 437.
Protection Profile Select a protection profile to apply to a firewall policy. You can also
create a protection profile by selecting Create New from this list. For
more information, see “Firewall Protection Profile” on page 479.
Traffic Shaping Select a traffic shaper for the policy. You can also select to create a
new traffic shaper. Traffic Shaping controls the bandwidth available to,
and sets the priority of the traffic processed by, the policy.
For information about traffic shaping, see “Traffic Shaping” on
page 441.
Reverse Direction Select to enable the reverse traffic shaping. For example, if the traffic
Traffic Shaping 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.
Reverse Direction Select to enable the reverse traffic shaping. For example, if the traffic
Traffic Shaping 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.
Log Allowed Traffic Select to record messages to the traffic log whenever the policy
processes a connection. You must also enable traffic log for a logging
location (syslog, WebTrends, local disk if available, memory, or
FortiAnalyzer) and set the logging severity level to Notification or lower
using the Log and Report screen. For more information see
“Log&Report” on page 709.
For information about how to create a firewall encryption policy for SSL VPN users, see
the “SSL VPN administration tasks” chapter of the FortiGate SSL VPN User Guide.

Figure 215: Selecting user groups for authentication

Move Up
or Move Down

Delete
Edit

Enable Identity Based Select to enable identity-based policy authentication.


Policy
Add Select to create an identity-based firewall policy.
Rule ID The ID number of the policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 403
http://docs.fortinet.com/ • Feedback
Using DoS policies to detect and prevent attacks Firewall Policy

User Group The selected user groups that must authenticate to be allowed to use
this policy.
Schedule The one-time or recurring schedule that controls when the policy is in
effect.
You can also create schedules by selecting Create New from this list.
For more information, see “Firewall Schedule” on page 437.
Service The firewall service or service group that packets must match to
trigger this policy.
Profile The protection profile to apply to this policy. You can also create a
protection profile by selecting Create New from this list. For more
information, see “Firewall Protection Profile” on page 479.
Traffic Shaping The traffic shaping configuration for this policy.
For more information, see “Traffic Shaping” on page 441.
Log Traffic If the Log Allowed Traffic option is selected when adding an identity-
based policy, a green check mark appears. Otherwise, a white cross
mark appears.
Delete icon Select to delete this policy.
Edit icon Select to edit this policy.
Move Up or Move Down Select to move the policy in the list. Firewall policy order affects policy
matching. You can arrange the firewall policy list to influence the order
in which policies are evaluated for matches with user groups.

Tip: If you select NAT, the IP address of the outgoing interface of the FortiGate unit is used
as the source address for new sessions started by SSL VPN.

Note: The traffic shaping option can be used to traffic shape tunnel-mode SSL VPN traffic,
but has no effect on web-mode SSL VPN traffic.

Using DoS policies to detect and prevent attacks


DoS policies are primarily used to apply DoS sensors to network traffic based on the
FortiGate interface it is leaving or entering as well as the source and destination
addresses. DoS sensors are a traffic anomaly detection feature to identify network traffic
that does not fit known or common traffic patterns and behavior. A common example of
anomalous traffic is the denial of service attack. A denial of service occurs when an
attacking system starts an abnormally large number of sessions with a target system. The
large number of sessions slows down or disables the target system so legitimate users
can no longer use it.
DoS policies examine network traffic very early in the sequence of protective measures
the FortiGate unit deploys to protect your network. Because of this, DoS policies are a
very efficient defence, using few resources. The previously mention denial of service
would be detected and its packets dropped before requiring firewall policy look-ups,
antivirus scans, and other protective but resource-intensive operations.
This section provides an introduction to configuring DoS Policies. For more information
see the FortiGate UTM User Guide.

Viewing the DoS policy list


The DoS policy list displays the DoS policies in their order of matching precedence for
each interface, source/destination address pair, and service.

FortiGate Version 4.0 MR1 Administration Guide


404 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Using DoS policies to detect and prevent attacks

If virtual domains are enabled on the FortiGate unit, DoS policies are configured
separately for each virtual domain; you must access the VDOM before you can configure
its policies. To access a VDOM, go to System > VDOM, and in the row corresponding to
the VDOM whose policies you want to configure, select Enter.
You can add, delete, edit, and re-order policies in the DoS policy list. DoS policy order
affects policy matching. As with firewall policies, DoS policies are checked against traffic in
the order in which they appear in the DoS policy list, one at a time, from top to bottom.
When a matching policy is discovered, it is used and further checking for DoS policy
matches are stopped.
To view the DoS policy list, go to Firewall > Policy > DoS Policy.

Figure 216: The DoS policy list

Filter

Enable or Disable a Policy Delete


Edit
Insert Policy before
Move To

Create New Add a new DoS policy. Select the down arrow beside Create New to
add a new section to the list to visually group the policies.
Column Settings Customize the table view. You can select the columns to hide or
display and specify the column displaying order in the table. See
“Using column settings to control the columns displayed” on page 103.
Section View Select to display firewall policies organized by interface.
Global View Select to list all firewall policies in order according to a sequence
number.
Filter icon Edit the column filters to filter or sort the policy list according to the
criteria you specify. For more information, see “Adding filters to
web-based manager lists” on page 99.
Status When selected, the DoS policy is enabled. Clear the checkbox to
disable the policy. See “Enabling and disabling policies” on page 389.
ID A unique identifier for each policy. Policies are numbered in the order
they are created.
Source The source address or address group to which the policy applies. For
more information, see “Firewall Address” on page 421.
Destination The destination address or address group to which the policy applies.
For more information, see “Firewall Address” on page 421.
Service The service to which the policy applies. For more information, see
“Firewall Service” on page 427.
DoS The DoS sensor selected in this policy.
Interface The interface to which this policy applies.
Delete icon Delete the policy from the list.
Edit icon Edit the policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 405
http://docs.fortinet.com/ • Feedback
Using one-arm sniffer policies to detect network attacks Firewall Policy

Insert Policy Before icon Add a new policy above the corresponding policy (the New Policy
screen appears).
Move To icon Move the corresponding policy before or after another policy in the list.

Configuring DoS policies


The DoS policy configuration allows you to specify the interface, a source address, a
destination address, and a service. All of the specified attributes must match network
traffic to trigger the policy.
You can also use the config firewall interface-policy CLI command to add
DoS policies from the CLI. You can also use this CLI command to add an IPS sensor or an
Application Control black/white list to a DoS policy. For more information, see the
FortiGate CLI Reference.
You can use the config firewall interface-policy6 command to add IPv6
sniffer policies. For more information about FortiGate IPv6 support, see “FortiGate IPv6
support” on page 289.

Figure 217: Editing a DoS policy

Source Interface/Zone The interface or zone to be monitored.


Source Address Select an address, address range, or address group to limit traffic
monitoring to network traffic sent from the specified address or range.
Select Multiple to include multiple addresses or ranges. You can also
select Create New to add a new address or address group.
Destination Address Select an address, address range, or address group to limit traffic
monitoring to network traffic sent to the specified address or range.
Select Multiple to include multiple addresses or ranges. You can also
select Create New to add a new address or address group.
Service Select a firewall pre-defined service or a custom service to limit traffic
monitoring to only the selected service or services. You can also
select Create new to add a custom service.
DoS Sensor Select and specify a DoS sensor to have the FortiGate unit apply the
sensor to matching network traffic. You can also select Create new to
add a new DoS Sensor. See “DoS sensors” on page 545.

Using one-arm sniffer policies to detect network attacks


Using sniffer policies you can configure a FortiGate unit interface to operate as a one-arm
intrusion detection system (IDS) appliance by sniffing packets for attacks without actually
receiving and otherwise processing the packets.

FortiGate Version 4.0 MR1 Administration Guide


406 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Using one-arm sniffer policies to detect network attacks

To configure one-arm IDS, you need to configure one or more FortiGate interfaces to
operated in one-arm sniffer mode. To do this, go to System > Network > Interface, edit an
interface and select Enable one-arm sniffer mode. When you configure an interface to
operate in one-arm sniffer mode it cannot be used for any other purpose. For example,
you cannot add firewall policies for the interface and you cannot add the interface to a
zone.

Note: If you add VLAN interfaces to an interface configured for one-arm sniffer operation
this VLAN interface also operates in one-arm sniffer mode and you can add sniffer policies
for this VLAN interface.

After you have configured the interface for one-arm sniffer mode, connect the interface to
a hub or to the SPAN port of a switch that is processing network traffic.

Figure 218: One-arm IDS topology

Internet

SPAN
port
Hub or switch

Internal
network

Then you can go to Firewall > Policy > Sniffer Policy and add Sniffer policies for that
FortiGate interface that include a DoS sensor, an IPS sensors, and an Application
black/white list to detect attacks and other activity in the traffic that the FortiGate interface
receives from the hub or switch SPAN port.
In one-arm sniffer mode, the interface receives packets accepted by sniffer mode policies
only. All packets not received by sniffer model policies are dropped. All packets received
by sniffer mode policies go through IPS inspection and are dropped after then are
analyzed by IPS.
One-arm IDS cannot block traffic. However, if you enable logging in the DoS and IPS
sensors and the application black/white lists, the FortiGate unit records log messages for
all detected attacks and applications.
This section provides an introduction to configuring sniffer policies. For more information
see the FortiGate UTM User Guide.

Viewing the sniffer policy list


The sniffer policy list displays sniffer policies in their order of matching precedence for
each interface, source/destination address pair, and service.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 407
http://docs.fortinet.com/ • Feedback
Using one-arm sniffer policies to detect network attacks Firewall Policy

If virtual domains are enabled on the FortiGate unit, sniffer policies are configured
separately for each virtual domain; you must access the VDOM before you can configure
its policies. To access a VDOM, go to System > VDOM, and in the row corresponding to
the VDOM whose policies you want to configure, select Enter.
You can add, delete, edit, and re-order policies in the sniffer policy list. Sniffer policy order
affects policy matching. As with firewall policies and DoS policies, sniffer policies are
checked against traffic in the order in which they appear in the sniffer policy list, one at a
time, from top to bottom. When a matching policy is discovered, it is used and further
checking for sniffer policy matches are stopped. If no match is found the packet is
dropped.
To view the sniffer policy list, go to Firewall > Policy > Sniffer Policy.

Figure 219: The Sniffer policy list


Filter

Enable or Disable a Policy Delete


Edit
Insert Policy before
Move To

Create New Add new a sniffer policy. Select the down arrow beside Create New to
add a new section to the list to visually group the policies.
Column Settings Customize the table view. You can select the columns to hide or
display and specify the column displaying order in the table. See
“Using column settings to control the columns displayed” on page 103.
Section View Select to display firewall policies organized by interface.
Global View Select to list all firewall policies in order according to a sequence
number.
Filter icon Edit column filters to filter or sort the policy list according to the criteria
you specify. For more information, see “Adding filters to web-based
manager lists” on page 99.
Status When selected, the DoS policy is enabled. Clear the checkbox to
disable the policy. See “Enabling and disabling policies” on page 389.
ID A unique identifier for each policy. Policies are numbered in the order
they are created.
Source The source address or address group to which the policy applies. For
more information, see “Firewall Address” on page 421.
Destination The destination address or address group to which the policy applies.
For more information, see “Firewall Address” on page 421.
Service The service to which the policy applies. For more information, see
“Firewall Service” on page 427.
DoS The DoS sensor selected in this policy.
Sensor The IPS sensor selected in this policy.

FortiGate Version 4.0 MR1 Administration Guide


408 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Using one-arm sniffer policies to detect network attacks

Application Black/White The Application Black/White List selected in this policy.


List
Delete icon Delete the policy from the list.
Edit icon Edit the policy.
Insert Policy Before icon Add a new policy above the corresponding policy (the New Policy
screen appears).
Move To icon Move the corresponding policy before or after another policy in the list.

Configuring sniffer policies


Use the sniffer policy configuration to specify the interface, a source address, a
destination address, and a service. All of the specified attributes must match network
traffic to trigger the policy.
You can also use the config firewall sinff-interface-policy CLI command
to add sinffer policies from the CLI. For more information, see the FortiGate CLI
Reference.
You can use the config firewall sniff-interface-policy6 command to add
IPv6 sniffer policies. For more information about FortiGate IPv6 support, see “FortiGate
IPv6 support” on page 289.

Figure 220: Editing a sniffer policy

Source Interface/Zone The interface or zone to be monitored.


Source Address Select an address, address range, or address group to limit traffic
monitoring to network traffic sent from the specified address or range.
Select Multiple to include multiple addresses or ranges. You can also
select Create New to add a new address or address group.
Destination Address Select an address, address range, or address group to limit traffic
monitoring to network traffic sent to the specified address or range.
Select Multiple to include multiple addresses or ranges. You can also
select Create New to add a new address or address group.
Service Select a firewall pre-defined service or a custom service to limit traffic
monitoring to only the selected service or services. You can also
select Create new to add a custom service.
DoS Sensor Select and specify a DoS sensor to have the FortiGate unit apply the
sensor to matching network traffic. You can also select Create new to
add a new DoS Sensor. See “DoS sensors” on page 545.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 409
http://docs.fortinet.com/ • Feedback
How FortiOS selects unused NAT ports Firewall Policy

IPS Sensor Select and specify an IPS sensor to have the FortiGate unit apply the
sensor to matching network traffic. You can also select Create new to
add a new IPS Sensor. See “IPS sensors” on page 537.
Application Black/White Select and specify an Application Black/White List sensor to have the
List FortiGate unit apply the application control black/white list to matching
network traffic. You can also select Create new to add a new
Application Black/White List. See “Creating a new application control
black/white list” on page 605.

How FortiOS selects unused NAT ports


Consider the following idealized topology for a university that allows its students to
connect to the Internet through a FortiGate unit:

Figure 221: Example university Internet connection topology

Student Network
10.0.0.0/8

Video Sharing
Student A External IP 172.20.120.1
address
192.168.1.1

Internet
Student B
Search Engine
172.20.120.2

Student C

Social Networking
172.20.120.3

Student Z

The university does not give a publicly routable IP address to its students. Instead each
student uses DHCP to obtain an IP address from the 10.0.0.0/8 range from the FortiGate
unit. The FortiGate unit then uses Network Address Port Translation (NAPT) to translate
all traffic so that it appears to come from IP address 192.168.1.1.
For example, consider student A (IP address 10.78.33.97) who wants to connect to search
engine (IP address 172.20.120.2) and sends a packet with the following IP addresses and
port numbers:
src-ip: 10.78.33.97
dst-ip: 172.20.120.2
src-port: 10000
dst-port: 80
When this packet passes through the FortiGate unit with NAT enabled the packet is
modified to be:
src-ip: 92.168.1.1

FortiGate Version 4.0 MR1 Administration Guide


410 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy How FortiOS selects unused NAT ports

dst-ip: 172.20.120.2
src-port: 46372
dst-port: 80
Where 192.168.1.1 is the external IP address of the FortiGate unit and 46372 is an
unused port chosen by the FortiGate unit.
The following sections describe three solutions to choosing the unused port. These
solutions provide some context for the last section which describes how FortiOS chooses
an unused port.

Global pool
In this approach there is a single pool of ports which are available for assignment. When a
port is assigned it is removed from the pool. Because the port is removed from the pool, it
is not possible to assign the same port twice. Once a port is no longer needed for NAT it is
returned to the pool so that it can be assigned again.
For example if the range is from 0x7000 (28672) to 0xF000 (61440) then there 215
(32768) possible ports that can be simultaneously used (the reason for choosing this
range is described below). The maximum number of simultaneous connections is 32768.
This maximum is independent of transport protocol.
This approach was one of the first approaches used to choosing a NAT port because it is
simple to implement. It is viable if the number of connections is unlikely to reach the pool
size, for example in the case of a NAT firewall for home use. However, it is not really a
viable solution for a large university or ISP that would usually be processing thousands of
simultaneous sessions.
This is not the approach that FortiOS uses.

Global per-protocol pool


Using a global per-protocol pool extends the global pool approach by having a separate
pool for TCP and UDP. The chosen pool is a function of the protocol used. With the same
range of 32768 ports there are 32768 for ports UDP and 32768 ports for TCP, resulting in
a total of 65536 ports. The result is twice as many available ports, but this still would not
be enough for a university or ISP.
This is not the approach that FortiOS uses.

Per NAT IP pool


Using a per NAT IP pool extends the approach further so that rather than just a per-
protocol pool, the pool is also determined by the NAT IP. Thus, the pool is a function of the
protocol and the NAT IP. In the topology shown in Figure 221 on page 410 the NAT IP is
192.168.1.1. If there is only one NAT IP then this approach is no different from global per-
protocol pools. However, consider the topology shown in Figure 222 with two separate
Internet connections and thus two NAT IP addresses 192.168.1.1 and 192.168.2.2.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 411
http://docs.fortinet.com/ • Feedback
How FortiOS selects unused NAT ports Firewall Policy

Figure 222: Example university Internet connection topology with two Internet connections
Student Network
10.0.0.0/8

Video Sharing
Student A External IP 172.20.120.1
address
192.168.1.1
Internet
Student B
External IP
Search Engine
address
172.20.120.2
192.168.2.2

Student C

Social Networking
172.20.120.3

Student Z

If the FortiGate configuration includes equal-cost multipath (ECMP) routing, both Internet
connections can be used simultaneously and the maximum number of connections is
N*R*P where N is the number of NAT IP addresses, R is the port range, and P is the
number of protocols. So for the case where there are two NAT IPs, the range is 32768 and
the protocols are TCP and UDP then the maximum number of simultaneous connections
is:
2*32768*2 = 131,072
This solution scales with the number of NAT IPs that can be deployed and so could
feasibly be used by a university or a small ISP.
This is not the approach that FortiOS uses.

Per NAT IP, destination IP, port, and protocol pool


This is the approach that FortiOS uses.
Using a per NAT IP, destination IP, port, and protocol pool is a further refinement that
expands the pool to be a function of the protocol, NAT IP, destination IP and destination
port.
The reason for using these attributes to determine the pool is a consequence of the
session-based design of the FortiOS firewall. When a TCP connection is made through a
FortiGate unit, a session is created and two indexes are created for the session. The
FortiGate unit uses these indexes to guide matching traffic to the session.
One index is for traffic flowing in the same direction as the packet that initiated the creation
of the session:
src-ip: 10.78.33.97
dst-ip: 172.20.120.2
proto: tcp
src-port: 10000

FortiGate Version 4.0 MR1 Administration Guide


412 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy How FortiOS selects unused NAT ports

dst-port: 80
And the other index is for traffic flowing in the opposite/reply direction:
src-ip: 172.20.120.2
dst-ip: 192.168.1.1
proto: tcp
src-port: 80
dst-port: 46372
Where 46372 is the chosen NAT port. In both cases when traffic matches either of these
indexes the session that the traffic belongs to can be uniquely identified.
Using a per NAT IP, destination IP, port, and protocol pool, when choosing the NAT port
FortiOS only has to ensure that the chosen port combined with the other four attributes are
unique to uniquely identify the session. So for example, if student A simultaneously makes
a connection to the search engine (destination IP address 172.20.120.2) on port 443 this
would create another session and the index in the reply direction would be:
src-ip: 172.20.120.2
dst-ip: 192.168.1.1
proto: tcp
src-port: 443
dst-port: NP
The value of NP can be any value as long as the five values together are unique. For
example, FortiOS could choose 46372 again:
src-ip: 172.20.120.2
dst-ip: 192.168.1.1
proto: tcp
src-port: 443
dst-port: 46372
This is acceptable because:
src-ip: 172.20.120.2
dst-ip: 192.168.1.1
proto: tcp
src-port: 80
dst-port: 46372
and
src-ip: 172.20.120.2
dst-ip: 192.168.1.1
proto: tcp
src-port: 443
dst-port: 46372
have different src-port values.
The result of using the per NAT IP, destination IP, port, and protocol pool approach is that
a pool of 32768 ports are available for each unique combination of src-ip, dst-ip,
proto and src-port.
The maximum number of simultaneous connections that can be supported is
N*R*P*D*Dp where N is the number of NAT IP addresses, R is the port range, P is the
number of protocols, D is the number of unique destination IP addresses and Dp the
number of unique destination ports.
Considering the large number of destination IP addresses available, the number of
simultaneous connections that can be supported is very large. To get an idea of how
large, for one destination IP address and one NAT IP address the calculation would be
N=1, R=32, 768, P=2, D=1 and Dp=32,768:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 413
http://docs.fortinet.com/ • Feedback
Firewall policy examples Firewall Policy

1 * 32,768 * 2 * 1 * 32,768 = 2,147,483,648.


A problem with this calculation is that not all 32,768 possible destination ports are used. In
fact for many organizations, must Internet traffic is web traffic using destination port 80
and all using the TCP protocol. So the pool size limit for web traffic to one destination IP
address from one NAT IP address using the TCP protocol would be N=1, R=32, 768, P=1,
D=1 and Dp=1:
1* 32,768 * 1 * 1 * 1 = 32,768
Using the topology in Figure 221 on page 410, for students simultaneously connecting to
the search engine, the social networking and the video sharing sites on TCP port 80 then
assuming each site uses one IP address a maximum of 32,768 simultaneous connections
are allowed to each site or 32,768 * 3 = 98,304 connections in total.
Many large public web sites may use round-robin DNS to rotate through at least four IP
addresses. If the search engine and the video sharing site did this with an even balance of
IP usage the result would be a maximum of 4 * 32,768 = 131,072 connections to the
search engine, 131,072 connections to the video sharing site and 32,768 connections to
the social networking site for a total of 294,912 different connections supported by the
single FortiGate unit with one NAT IP and for a total of 9 destination IP addresses and one
destination port.

Firewall policy examples


FortiGate units are capable of meeting various network requirements from home use to
SOHO, large enterprises and ISPs. The following two scenarios demonstrate practical
applications of firewall policies in the SOHO and large enterprise environments.
This section describes:
• Scenario one: SOHO-sized business
• Scenario two: enterprise-sized business
• Viewing the firewall policy list
• Configuring firewall policies

Scenario one: SOHO-sized business


Company A is a small software company performing development and providing customer
support. In addition to their internal network of 15 computers, they also have several
employees who work from home all or some of the time.
With their current network topography, all 15 of the internal computers are behind a router
and must go to an external source to access the IPS mail and web servers. All home-
based employees access the router through open/non-secured connections.

FortiGate Version 4.0 MR1 Administration Guide


414 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Firewall policy examples

Figure 223: Example SOHO network before FortiGate installation

Internet

IPS Mail ISP Web Home-based Workers


Server Server (no secure connection)
172.16.10.3

192.168.100.1

Finance Help Engineering


Department Desk Department

Internal Network

Company A requires secure connections for home-based workers. Like many companies,
they rely heavily on email and Internet access to conduct business. They want a
comprehensive security solution to detect and prevent network attacks, block viruses, and
decrease spam. They want to apply different protection settings for different departments.
They also want to integrate web and email servers into the security solution.
To deal with their first requirement, Company A configures specific policies for each
home-based worker to ensure secure communication between the home-based worker
and the internal network.
1 Go to Firewall > Policy.
2 Select Create New and enter or select the following settings for Home_User_1:

Interface / Zone Source: internal Destination: wan1


Address Source: Destination: Home_User_1
CompanyA_Network
Schedule Always
Service ANY
Action IPSEC
VPN Tunnel Home1
Allow Inbound yes
Allow outbound yes
Inbound NAT yes

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 415
http://docs.fortinet.com/ • Feedback
Firewall policy examples Firewall Policy

Outbound NAT no
Protection Profile Select the check mark and select standard_profile
3 Select OK.
4 Select Create New and enter or select the following settings for Home_User_2:

Interface / Zone Source: internal Destination: wan1


Address Source: Destination: All
CompanyA_network
Schedule Always
Service ANY
Action IPSEC
VPN Tunnel Home2_Tunnel
Allow Inbound yes
Allow outbound yes
Inbound NAT yes
Outbound NAT no
Protection Profile Select the check mark and select standard_profile

5 Select OK.

Figure 224: SOHO network topology with FortiGate-100

VPN Tunnel Internet VPN Tunnel

Home User 1 Home User 2


172.20.100.6 172.25.106.99
External
172.30.120.8
DMZ
FortiGate 10.10.10.1
100A

Email Server
Internal
10.10.10.2
192.168.100.1

Finance Users Engineering Users


192.168.100.10- 192.168.100.51-
Web Server
192.168.100.20 192.168.100.100 10.10.10.3
Help Desk Users
192.168.100.21-
192.168.100.50

The proposed network is based around a ForitGate 100A unit. The 15 internal computers
are behind the FortiGate unit. They now access the email and web servers in a DMZ,
which is also behind the FortiGate unit. All home-based employees now access the office
network through the FortiGate unit via VPN tunnels.

FortiGate Version 4.0 MR1 Administration Guide


416 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Firewall policy examples

Scenario two: enterprise-sized business


Located in a large city, the library system is anchored by a main downtown location
serving most of the population, with more than a dozen branches spread throughout the
city. Each branch is wired to the Internet but none are linked with each other by dedicated
connections.
The current network topography at the main location consists of three user groups. The
main branch staff and public terminals access the servers in the DMZ behind the firewall.
The catalog access terminals directly access the catalog server without first going through
the firewall.
The topography at the branch office has all three users accessing the servers at the main
branch through non-secured internet connections.

Figure 225: The library system’s current network topology

The library must be able to set different access levels for patrons and staff members.
The first firewall policy for main office staff members allows full access to the Internet at all
times. A second policy will allow direct access to the DMZ for staff members. A second
pair of policies is required to allow branch staff members the same access.
The staff firewall policies will all use a protection profile configured specifically for staff
access. Enabled features include virus scanning, spam filtering, IPS, and blocking of all
P2P traffic. FortiGuard web filtering is also used to block advertising, malware, and
spyware sites.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 417
http://docs.fortinet.com/ • Feedback
Firewall policy examples Firewall Policy

A few users may need special web and catalog server access to update information on
those servers, depending on how they are configured. Special access can be allowed
based on IP address or user.
The proposed topography has the main branch staff and the catalog access terminals
going through a FortiGate HA cluster to the servers in a DMZ. The public access terminals
first go through a FortiWiFi unit, where additional policies can be applied, to the HA
Cluster and finally to the servers.
The branch office has all three users routed through a FortiWiFi unit to the main branch via
VPN tunnels.

Figure 226: Proposed library system network topology

Policies are configured in Firewall > Policy. Protection Profiles are configured in Firewall >
Protection Profile.
Main office “staff to Internet” policy:

Source Interface Internal


Source Address All
Destination Interface External
Destination Address All
Schedule Always
Action Accept

FortiGate Version 4.0 MR1 Administration Guide


418 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Policy Firewall policy examples

Main office “staff to DMZ” policy:

Source Interface Internal


Source Address All
Destination Interface DMZ
Destination Address Servers
Schedule Always
Action Accept

Branches “staff to Internet” policy:

Source Interface Branches


Source Address Branch Staff
Destination Interface External
Destination Address All
Schedule Always
Action Accept

Branches “staff to DMZ” policy:

Source Interface Branches


Source Address Branch Staff
Destination Interface DMZ
Destination Address Servers
Schedule Always
Action Accept

For more information about these examples, see:


• SOHO and SMB Configuration Example Guide
• FortiGate Enterprise Configuration Example

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 419
http://docs.fortinet.com/ • Feedback
Firewall policy examples Firewall Policy

FortiGate Version 4.0 MR1 Administration Guide


420 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Address About firewall addresses

Firewall Address
Firewall addresses and address groups define network addresses that you can use when
configuring firewall policies’ source and destination address fields. The FortiGate unit
compares the IP addresses contained in packet headers with firewall policy source and
destination addresses to determine if the firewall policy matches the traffic.
You can organize related addresses into address groups to simplify your firewall policy list.
If you enable virtual domains (VDOMs) on the FortiGate unit, firewall addresses are
configured separately for each virtual domain, and you must first enter the virtual domain
to configure its firewall addresses. For details, see “Using virtual domains” on page 159.
This section describes:
• About firewall addresses
• Viewing the firewall address list
• Configuring addresses
• Viewing the address group list
• Configuring address groups

About firewall addresses


A firewall address can contain one or more network addresses. Network addresses can
be represented by an IP address with a netmask, an IP address range, or a fully qualified
domain name (FQDN).
When representing hosts by an IP address with a netmask, the IP address can represent
one or more hosts. For example, a firewall address can be:
• a single computer, such as 192.45.46.45
• a subnetwork, such as 192.168.1.0 for a class C subnet
• 0.0.0.0, which matches any IP address
The netmask corresponds to the subnet class of the address being added, and can be
represented in either dotted decimal or CIDR format. The FortiGate unit automatically
converts CIDR formatted netmasks to dotted decimal format. Example formats:
• netmask for a single computer: 255.255.255.255, or /32
• netmask for a class A subnet: 255.0.0.0, or /8
• netmask for a class B subnet: 255.255.0.0, or /16
• netmask for a class C subnet: 255.255.255.0, or /24
• netmask including all IP addresses: 0.0.0.0
Valid IP address and netmask formats include:
• x.x.x.x/x.x.x.x, such as 192.168.1.0/255.255.255.0
• x.x.x.x/x, such as 192.168.1.0/24

Note: An IP address 0.0.0.0 with netmask 255.255.255.255 is not a valid firewall


address.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 421
http://docs.fortinet.com/ • Feedback
Viewing the firewall address list Firewall Address

When representing hosts by an IP Range, the range indicates hosts with continuous IP
addresses in a subnet, such as 192.168.1.[2-10], or 192.168.1.* to indicate the
complete range of hosts on that subnet. Valid IP Range formats include:
• x.x.x.x-x.x.x.x, such as 192.168.110.100-192.168.110.120
• x.x.x.[x-x], such as 192.168.110.[100-120]
• x.x.x.*, such as 192.168.110.*
When representing hosts by a FQDN, the domain name can be a subdomain, such as
mail.example.com. A single FQDN firewall address may be used to apply a firewall policy
to multiple hosts, as in load balancing and high availability (HA) configurations. FortiGate
units automatically resolve and maintain a record of all addresses to which the FQDN
resolves. Valid FQDN formats include:
• <host_name>.<second_level_domain_name>.<top_level_domain_name>, such as
mail.example.com
• <host_name>.<top_level_domain_name>

Caution: Be cautious if employing FQDN firewall addresses. Using a fully qualified domain
name in a firewall policy, while convenient, does present some security risks, because
policy matching then relies on a trusted DNS server. Should the DNS server be
compromised, firewall policies requiring domain name resolution may no longer function
properly.

Note: By default, IPv6 firewall addresses can be configured only in the CLI. For information
on enabling configuration of IPv6 firewall addresses in the web-based manager, see
“Settings” on page 286.

Viewing the firewall address list


Firewall addresses in the list are grouped by type: IP/Netmask, FQDN, or IPv6.
FortiGate unit default configurations include the all address, which represents any IP
address on any network.
To view the address list, go to Firewall > Address.

Figure 227: Firewall address list

Create Options

Delete
Edit

Create New Add a firewall address.


If IPv6 Support on GUI is enabled, you can alternatively select Create Options
(the down arrow) located in the Create New button, then select IPv6 Address, to
configure an IPv6 firewall address. For more information on enabling IPv6
support, see “Settings” on page 286.
Name The name of the firewall address.

FortiGate Version 4.0 MR1 Administration Guide


422 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Address Configuring addresses

Address / FQDN The IP address and mask, IP address range, or fully qualified domain name.
Interface The interface, zone, or virtual domain (VDOM) to which you bind the IP address.
Delete icon Select to remove the address. The Delete icon appears only if a firewall policy
or address group is not currently using the address.
Edit icon Select to edit the address.

Configuring addresses
You can use one of the following methods to represent hosts in firewall addresses:
IP/Netmask, FQDN, or IPv6.

Caution: Be cautious if employing FQDN firewall addresses. Using a fully qualified domain
name in a firewall policy, while convenient, does present some security risks, because
policy matching then relies on a trusted DNS server. Should the DNS server be
compromised, firewall policies requiring domain name resolution may no longer function
properly.

Note: By default, IPv6 firewall addresses can be configured only in the CLI. For information
on enabling configuration of IPv6 firewall addresses in the web-based manager, see
“Settings” on page 286.

To add a firewall address


1 Go to Firewall > Address.
2 Select Create New.
If IPv6 Support on GUI is enabled, you can alternatively select the down arrow located
in the Create New button, then select IPv6 Address to configure an IPv6 firewall
address. For information on enabling configuration of IPv6 firewall addresses in the
web-based manager, see “Settings” on page 286.
3 Complete the following:

Figure 228: New address or IP range options

Address Name Enter a name to identify the firewall address. Addresses, address groups, and
virtual IPs must have unique names.
Type Select the type of address: Subnet/IP Range or FQDN. You can enter either
an IP range or an IP address with subnet mask.
Subnet / IP Enter the firewall IP address, followed by a forward slash (/), then subnet
Range mask, or enter an IP address range separated by a hyphen.
Interface Select the interface, zone, or virtual domain (VDOM) link to which you want to
bind the IP address. Select Any if you want to bind the IP address with the
interface/zone when you create a firewall policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 423
http://docs.fortinet.com/ • Feedback
Viewing the address group list Firewall Address

4 Select OK.
Tip: You can also create firewall addresses when configuring a firewall policy: Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Source
Address list, select Address > Create New.

Viewing the address group list


You can organize multiple firewall addresses into an address group to simplify your
firewall policy list. For example, instead of having five identical policies for five different but
related firewall addresses, you might combine the five addresses into a single address
group, which is used by a single firewall policy.
To view the address group list, go to Firewall > Address > Group.

Figure 229: Firewall address group list

Create Options

Delete
Edit

Create New Add an address group.


If IPv6 Support on GUI is enabled, you can alternatively select Create Options
(the down arrow) located in the Create New button, then select IPv6 Address
Group, to configure an IPv6 firewall address group. For more information on
enabling IPv6 Support on GUI, see “Settings” on page 286.
Group Name The name of the address group.
Members The addresses in the address group.
Delete icon Select to remove the address group. The Delete icon appears only if the address
group is not currently being used by a firewall policy.
Edit icon Select to edit the address group.

Configuring address groups


Because firewall policies require addresses with homogenous network interfaces, address
groups should contain only addresses bound to the same network interface, or to Any —
addresses whose selected interface is Any are bound to a network interface during
creation of a firewall policy, rather than during creation of the firewall address. For
example, if address A1 is associated with port1, and address A2 is associated with port2,
they cannot be grouped. However, if A1 and A2 have an interface of Any, they can be
grouped, even if the addresses involve different networks.

To organize addresses into an address group


1 Go to Firewall > Address > Group.
2 Select Create New.
3 Complete the following:

FortiGate Version 4.0 MR1 Administration Guide


424 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Address Configuring address groups

Figure 230: Address group options

Group Name Enter a name to identify the address group. Addresses, address groups, and
virtual IPs must have unique names.
Available The list of all configured and default firewall addresses. Use the arrows to
Addresses move selected addresses between the lists of available and member
addresses.
Members The list of addresses included in the address group. Use the arrows to move
selected addresses between the lists of available and member addresses.

4 Select OK.
Tip: You can also create firewall address groups when configuring a firewall policy: Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Source
Address list, select Address Group > Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 425
http://docs.fortinet.com/ • Feedback
Configuring address groups Firewall Address

FortiGate Version 4.0 MR1 Administration Guide


426 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Service Viewing the predefined service list

Firewall Service
Firewall services define one or more protocols and port numbers associated with each
service. Firewall policies use service definitions to match session types.
You can organize related services into service groups to simplify your firewall policy list.
If you enable virtual domains (VDOMs) on the FortiGate unit, you must configure firewall
services separately for each virtual domain. For more information, see “Using virtual
domains” on page 159.
This section describes:
• Viewing the predefined service list
• Viewing the custom service list
• Configuring custom services
• Viewing the service group list
• Configuring service groups

Viewing the predefined service list


Many well-known traffic types have been predefined in firewall services. These predefined
services are defaults, and cannot be edited or removed. However, if you require different
services, you can create custom services. For more information, see “Configuring custom
services” on page 433.
To view the predefined service list, go to Firewall > Service > Predefined.

Figure 231: Predefined service list (top portion)

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 427
http://docs.fortinet.com/ • Feedback
Viewing the predefined service list Firewall Service

Name The name of the predefined service.


Detail The protocol and port number of the predefined service.

Table 46: Predefined services

Service name Description IP Protocol Port


AFS3 Advanced File Security Encrypted File, version 3, of TCP 7000-7009
the AFS distributed file system protocol.
UDP 7000-7009
AH Authentication Header. AH provides source host 51
authentication and data integrity, but not secrecy.
This protocol is used for authentication by IPSec
remote gateways set to aggressive mode.
ANY Matches connections using any protocol over IP. all all
AOL America Online Instant Message protocol. TCP 5190-5194
BGP Border Gateway Protocol. BGP is an TCP 179
interior/exterior routing protocol.
CVSPSERVER Concurrent Versions System Proxy TCP 2401
Server.CSSPServer is very good for providing
anonymous CVS access to a repository. UDP 2401

DCE-RPC Distributed Computing Environment / Remote TCP 135


Procedure Calls. Applications using DCE-RPC can
call procedures from another application without UDP 135
having to know on which host the other application
is running.
DHCP Dynamic Host Configuration Protocol. DHCP UDP 67
allocates network addresses and delivers 68
configuration parameters from DHCP servers to
hosts.
DHCP6 Dynamic Host Configuration Protocol for IPv6. UDP 546, 547
DNS Domain Name Service. DNS resolves domain TCP 53
names into IP addresses.
UDP 53
ESP Encapsulating Security Payload. ESP is used by 50
manual key and AutoIKE IPSec VPN tunnels for
communicating encrypted data. AutoIKE VPN
tunnels use ESP after establishing the tunnel by
IKE.
FINGER A network service providing information about TCP 79
users.
FTP File Transfer Protocol. TCP 21
FTP_GET File Transfer Protocol. FTP GET sessions transfer TCP 21
remote files from an FTP server to an FTP client
computer.
FTP_PUT File Transfer Protocol. FTP PUT sessions transfer TCP 21
local files from an FTP client to an FTP server.
GOPHER Gopher organizes and displays Internet server TCP 70
contents as a hierarchically structured list of files.
GRE Generic Routing Encapsulation. GRE allows an 47
arbitrary network protocol to be transmitted over
any other arbitrary network protocol, by
encapsulating the packets of the protocol within
GRE packets.

FortiGate Version 4.0 MR1 Administration Guide


428 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Service Viewing the predefined service list

Table 46: Predefined services (Continued)

Service name Description IP Protocol Port


H323 H.323 multimedia protocol. H.323 is a standard TCP 1720, 1503
approved by the International Telecommunication
Union (ITU) defining how audiovisual conferencing UDP 1719
data can be transmitted across networks. For more
information, see the FortiGate Support for H.323
Technical Note.
HTTP Hypertext Transfer Protocol. HTTP is used to TCP 80
browse web pages on the World Wide Web.
HTTPS HTTP with secure socket layer (SSL). HTTPS is TCP 443
used for secure communication with web servers.
ICMP_ANY Internet Control Message Protocol. ICMP allows ICMP Any
control messages and error reporting between a
host and gateway (Internet).
IKE Internet Key Exchange. IKE obtains authenticated UDP 500, 4500
keying material for use with the Internet Security
Association and Key Management Protocol
(ISAKMP) for IPSEC.
IMAP Internet Message Access Protocol. IMAP is used by TCP 143
email clients to retrieves email messages from
email servers.
IMAPS IMAP with SSL. IMAPS is used for secure IMAP TCP 993
communication between email clients and servers.
IMAPS is only available on FortiGate units that
support SSL content scanning and inspection.
INFO_ADDRESS ICMP information request messages. ICMP 17
INFO_REQUEST ICMP address mask request messages. ICMP 15
IRC Internet Relay Chat. IRC allows users to join chat TCP 6660-6669
channels.
Internet- Internet Locator Service. ILS includes LDAP, User TCP 389
Locator-Service Locator Service, and LDAP over TLS/SSL.
L2TP Layer 2 Tunneling Protocol. L2TP is a PPP-based TCP 1701
tunnel protocol for remote access.
UDP 1701
LDAP Lightweight Directory Access Protocol. LDAP is TCP 389
used to access information directories.
MGCP Media Gateway Control Protocol. MGCP is used by UDP 2427, 2727
call agents and media gateways in distributed Voice
over IP (VoIP) systems.
MS-SQL Microsoft SQL Server is a relational database TCP 1433, 1434
management system (RDBMS) produced by
Microsoft. Its primary query languages are MS-SQL
and T-SQL.
MYSQL MySQL is a relational database management TCP 3306
system (RDBMS) which runs as a server providing
multi-user access to a number of databases.
NFS Network File System. NFS allows network users to TCP 111, 2049
mount shared files.
UDP 111, 2049
NNTP Network News Transport Protocol. NNTP is used to TCP 119
post, distribute, and retrieve Usenet messages.
NTP Network Time Protocol. NTP synchronizes a host’s TCP 123
time with a time server.
UDP 123
NetMeeting NetMeeting allows users to teleconference using TCP 1720
the Internet as the transmission medium.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 429
http://docs.fortinet.com/ • Feedback
Viewing the predefined service list Firewall Service

Table 46: Predefined services (Continued)

Service name Description IP Protocol Port


ONC-RPC Open Network Computing Remote Procedure Call. TCP 111
ONC-RPC is a widely deployed remote procedure
call system. UDP 111

OSPF Open Shortest Path First. OSPF is a common link 89


state routing protocol.
PC-Anywhere PC-Anywhere is a remote control and file transfer TCP 5631
protocol.
UDP 5632
PING Ping sends ICMP echo request/replies to test ICMP 8
connectivity to other hosts.
PING6 Ping6 sends ICMPv6 echo request/replies to 58
network hosts to test IPv6 connectivity to other
hosts.
POP3 Post Office Protocol v3. POP retrieves email TCP 110
messages.
POP3S Post Office Protocol v3 with secure socket layer TCP 995
(SSL). POP3S is used for secure retrieval of email
messages. POP3S is only available on FortiGate
units that support SSL content scanning and
inspection.
PPTP Point-to-Point Tunneling Protocol. PPTP is used to 47
tunnel connections between private network hosts
over the Internet. Note: Also requires IP protocol TCP 1723
47.
QUAKE Quake multi-player computer game traffic. UDP 26000,
27000,
27910,
27960
RADIUS Remote Authentication Dial In User Service. TCP 1812, 1813
RADIUS is a networking protocol that provides
centralized access, authorization and accounting
management for people or computers to connect
and use a network service.
RAUDIO RealAudio multimedia traffic. UDP 7070
RDP Remote Desktop Protocol is a multi-channel TCP 3389
protocol that allows a user to connect to a
networked computer.
REXEC Rexec traffic allows specified commands to be TCP 512
executed on a remote host running the rexecd
service (daemon).
RIP Routing Information Protocol. RIP is a common UDP 520
distance vector routing protocol. This service
matches RIP v1.
RLOGIN Remote login traffic. TCP 513
RSH Remote Shell traffic allows specified commands to TCP 514
be executed on a remote host running the rshd
service (daemon).
RTSP Real Time Streaming Protocol is a protocol for use TCP 554, 7070,
in streaming media systems which allows a client to 8554
remotely control a streaming media server, issuing
VCR-like commands such as play and pause, and UDP 554
allowing time-based access to files on a server.
SAMBA Server Message Block. SMB allows clients to use TCP 139
file and print shares from enabled hosts. This is
primarily used for Microsoft Windows hosts, but
may be used with operating systems running the
Samba daemon.

FortiGate Version 4.0 MR1 Administration Guide


430 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Service Viewing the predefined service list

Table 46: Predefined services (Continued)

Service name Description IP Protocol Port


SCCP Skinny Client Control Protocol. SCCP is a Cisco TCP 2000
proprietary standard for terminal control for use with
voice over IP (VoIP).
SIP Session Initiation Protocol. SIP allows audiovisual UDP 5060
conferencing data to be transmitted across
networks. For more information, see the FortiGate
SIP Support Technical Note.
SIP- Session Initiation Protocol used by Microsoft TCP 1863
MSNmessenger Messenger to initiate an interactive, possibly
multimedia session.
SMTP Simple Mail Transfer Protocol. SMTP is used for TCP 25
sending email messages between email clients and
email servers, and between email servers.
SMTPS SMTP with SSL. Used for sending email messages TCP 465
between email clients and email servers, and
between email servers securely. SMTPS is only
available on FortiGate units that support SSL
content scanning and inspection.
SNMP Simple Network Management Protocol. SNMP can TCP 161-162
be used to monitor and manage complex networks.
UDP 161-162
SOCKS SOCKetS. SOCKS is an Internet protocol that TCP 1080
allows client-server applications to transparently
use the services of a network firewall. UDP 1080

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 431
http://docs.fortinet.com/ • Feedback
Viewing the custom service list Firewall Service

Table 46: Predefined services (Continued)

Service name Description IP Protocol Port


SQUID A proxy server and web cache daemon that has a TCP 3128
wide variety of uses that includes speeding up a
web server by caching repeated requests; caching
web, DNS and other computer network lookups for
a group of people sharing network resources;
aiding security by filtering traffic.
SSH Secure Shell. SSH allows secure remote TCP 22
management and tunneling.
UDP 22
SYSLOG Syslog service for remote logging. UDP 514
TALK Talk allows conversations between two or more UDP 517-518
users.
TCP Matches connections using any TCP port. TCP 0-65535
TELNET Allows plain text remote management. TCP 23
TFTP Trivial File Transfer Protocol. TFTP is similar to UDP 69
FTP, but without security features such as
authentication.
TIMESTAMP ICMP timestamp request messages. ICMP 13
TRACEROUTE A computer network tool used to determine the TCP 33434
route taken by packets across an IP network.
UDP 33434
UDP Matches connections using any UDP port. UDP 0-65535
UUCP Unix to Unix Copy Protocol. UUCP provides simple UDP 540
file copying.
VDOLIVE VDO Live streaming multimedia traffic. TCP 7000-7010
VNC Virtual Network Computing.VNC is a graphical TCP 5900
desktop sharing system which uses the RFB
protocol to remotely control another computer.
WAIS Wide Area Information Server. WAIS is an Internet TCP 210
search protocol which may be used in conjunction
with Gopher.
WINFRAME WinFrame provides communications between TCP 1494
computers running Windows NT, or Citrix
WinFrame/MetaFrame.
WINS Windows Internet Name Service is Microsoft's TCP 1512
implementation of NetBIOS Name Service (NBNS),
a name server and service for NetBIOS computer UDP 1512
names.
X-WINDOWS X Window System (also known as X11) can forward TCP 6000-6063
the graphical shell from an X Window server to X
Window client.

Viewing the custom service list


If you need to create a firewall policy for a service that is not in the predefined service list,
you can add a custom service.
To view the custom service list, go to Firewall > Service > Custom.

FortiGate Version 4.0 MR1 Administration Guide


432 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Service Configuring custom services

Figure 232: Custom service list

Delete
Edit

Create New Add a custom service.


Service Name The name of the custom service.
Detail The protocol and port numbers for each custom service.
Delete icon Remove the custom service. The Delete icon appears only if the service is not
currently being used by a firewall policy.
Edit icon Edit the custom service.

Configuring custom services


If you need to create a firewall policy for a service that is not in the predefined service list,
you can add a custom service.
Tip: You can also create custom services when you configure a firewall policy. Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Service
list, select Service > Create New.

To add a custom TCP or UDP service


1 Go to Firewall > Service > Custom.
2 Select Create New.
3 Set Protocol Type to TCP/UDP.
4 Complete the fields in the following table and select OK.

Figure 233: New Custom Service - TCP/UDP

Delete

Name Enter a name for the custom service.


Protocol Type Select TCP/UDP.
Protocol Select TCP or UDP as the protocol of the port range being added.
Source Port Specify the source port number range for the service by entering the low and
high port numbers. If the service uses one port number, enter this number in
both the Low and High fields. The default values allow the use of any source
port.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 433
http://docs.fortinet.com/ • Feedback
Configuring custom services Firewall Service

Destination Port Specify the destination port number range for the service by entering the low
and high port numbers. If the service uses one port number, enter this number
in both the Low and High fields.
Add If your custom service requires more than one port range, select Add to allow
more source and destination ranges.
Delete Icon Remove the entry from the list.

To add a custom ICMP service


1 Go to Firewall > Service > Custom.
2 Select Create New.
3 Set Protocol Type to ICMP.
4 Complete the fields in the following table and select OK.

Figure 234: New Custom Service - ICMP

Name Enter a name for the ICMP custom service.


Protocol Type Select ICMP.
Type Enter the ICMP type number for the service.
Code If required, enter the ICMP code number for the service.

To add a custom IP service


1 Go to Firewall > Service > Custom.
2 Select Create New.
3 Set Protocol Type to IP.
4 Complete the fields in the following table and select OK.

Figure 235: New Custom Service - IP

Name Enter a name for the IP custom service.


Protocol Type Select IP.
Protocol Number Enter the IP protocol number for the service.

FortiGate Version 4.0 MR1 Administration Guide


434 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Service Viewing the service group list

Viewing the service group list


You can organize multiple firewall services into a service group to simplify your firewall
policy list. For example, instead of having five identical policies for five different but related
firewall services, you might combine the five services into a single address group that is
used by a single firewall policy.
Service groups can contain both predefined and custom services. Service groups cannot
contain other service groups.
To view the service group list, go to Firewall > Service > Group.

Figure 236: Sample service group list

Delete
Edit

Create New Add a service group.


Group Name The name to identify the service group.
Members The services added to the service group.
Delete icon Remove the entry from the list. The Delete icon appears only if the service group
is not selected in a firewall policy.
Edit icon Select to edit the Group Name and Members.

Configuring service groups


You can organize multiple firewall services into a service group to simplify your firewall
policy list. For example, instead of having five identical policies for five different but related
firewall services, you might combine the five services into a single service group that is
used by a single firewall policy.
Service groups can contain both predefined and custom services. Service groups cannot
contain other service groups.
To organize services into a service group, go to Firewall > Service > Group.
Tip: You can also create custom service groups when you configure a firewall policy. Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Service
list, select Service Group > Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 435
http://docs.fortinet.com/ • Feedback
Configuring service groups Firewall Service

Figure 237: Service Group

Group Name Enter a name to identify the service group.


Available The list of configured and predefined services available for your group, with
Services custom services at the bottom. Use the arrows to move selected services
between this list and Members.
Members The list of services in the group. Use the arrows to move selected services
between this list and Available Services.

FortiGate Version 4.0 MR1 Administration Guide


436 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Schedule Viewing the recurring schedule list

Firewall Schedule
Firewall schedules control when policies are in effect. You can create one-time schedules
or recurring schedules. One-time schedules are in effect only once for the period of time
specified in the schedule. Recurring schedules are in effect repeatedly at specified times
of specified days of the week.
If you enable virtual domains (VDOMs) on the FortiGate unit, you must configure firewall
schedules separately for each virtual domain. For more information, see “Using virtual
domains” on page 159.
This section describes:
• Viewing the recurring schedule list
• Configuring recurring schedules
• Viewing the one-time schedule list
• Configuring one-time schedules
• Configuring schedule groups

Viewing the recurring schedule list


You can create a recurring schedule that activates a policy during a specified period of
time. For example, you might prevent game playing during office hours by creating a
recurring schedule that covers office hours.

Note: If a recurring schedule has a stop time that is earlier than the start time, the schedule
will take effect at the start time but end at the stop time on the next day. You can use this
technique to create recurring schedules that run from one day to the next. For example, to
prevent game playing except at lunchtime, you might set the start time for a recurring
schedule at 1:00 p.m. and the stop time at 12:00 noon. To create a recurring schedule that
runs for 24 hours, set the start and stop times to 00.

To view the recurring schedule list, go to Firewall > Schedule > Recurring.

Figure 238: Recurring schedule list

Delete

Edit

Create New Add a recurring schedule.


Name The name of the recurring schedule.
Day The initials of the days of the week on which the schedule is active.
Start The start time of the recurring schedule.
Stop The stop time of the recurring schedule.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 437
http://docs.fortinet.com/ • Feedback
Configuring recurring schedules Firewall Schedule

Delete icon Remove the schedule from the list. The Delete icon appears only if the schedule
is not being used in a firewall policy.
Edit icon Edit the schedule.

Configuring recurring schedules


To add a recurring schedule, go to Firewall > Schedule > Recurring. Complete the fields
as described in the following table and select OK.
To put a policy into effect for an entire day, set schedule start and stop times to 00.

Figure 239: New Recurring Schedule

Name Enter a name to identify the recurring schedule.


Select Select the days of the week for the schedule to be active.
Start Select the start time for the recurring schedule.
Stop Select the stop time for the recurring schedule.

Tip: You can also create recurring schedules when you configure a firewall policy. Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Schedule
list, select Recurring > Create New.

Viewing the one-time schedule list


You can create a one-time schedule that activates a policy during a specified period of
time. For example, a firewall might be configured with a default policy that allows access
to all services on the Internet at all times, but you could add a one-time schedule to block
access to the Internet during a holiday.
To view the one-time schedule list, go to Firewall > Schedule > One-time.

Figure 240: One-time schedule list

Delete
Edit

Create New Add a one-time schedule.


Name The name of the one-time schedule.
Start The start date and time for the schedule.
Stop The stop date and time for the schedule.

FortiGate Version 4.0 MR1 Administration Guide


438 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Schedule Configuring one-time schedules

Delete icon Remove the schedule from the list. The Delete icon appears only if the schedule
is not being used in a firewall policy.
Edit icon Edit the schedule.

Configuring one-time schedules


To add a one-time schedule, go to Firewall > Schedule > One-time. Complete the fields as
described in the following table and select OK.
To put a policy into effect for an entire day, set schedule start and stop times to 00.

Figure 241: New One-time Schedule

Name Enter a name to identify the one-time schedule.


Start Select the start date and time for the schedule.
Stop Select the stop date and time for the schedule.

Tip: You can also create one-time schedules when you configure a firewall policy. Go to
Firewall > Policy, select the appropriate policy tab and then Create New. From the Schedule
list, select One-time > Create New.

Configuring schedule groups


You can organize multiple firewall schedules into a schedule group to simplify your firewall
policy list. For example, instead of having five identical policies for five different but related
firewall schedules, you might combine the five schedules into a single schedule group that
is used by a single firewall policy.
Schedule groups can contain both recurring and on-time schedules. Schedule groups
cannot contain other schedule groups.
To organize schedules into a schedule group, go to Firewall > Schedule > Group.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 439
http://docs.fortinet.com/ • Feedback
Configuring schedule groups Firewall Schedule

To create a schedule group - web-based manager


1 Go to Firewall > Schedule > Group and select Create New.

Figure 242: Schedule Group

Group Name Enter a name to identify the schedule group.


Available The list of recurring and one-time schedules available for your group. Use the
Schedules arrow buttons to move selected schedules between this list and Members.
Members The list of schedules in the group. Use the arrows to move selected
schedules between this list and Available Schedule.

2 Select OK

FortiGate Version 4.0 MR1 Administration Guide


440 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Traffic Shaping Guaranteed bandwidth and maximum bandwidth

Traffic Shaping
Traffic shaping, once included in a firewall policy, controls the bandwidth available to, and
sets the priority of the traffic processed by, the policy. Traffic shaping makes it possible to
control which policies have the highest priority when large amounts of data are moving
through the FortiGate unit. For example, the policy for the corporate web server might be
given higher priority than the policies for most employees’ computers. An employee who
needs extra high speed Internet access could have a special outgoing policy set up with
higher bandwidth.
Traffic shaping is available for firewall policies whose Action is ACCEPT, IPSEC, or SSL-
VPN. It is also available for all supported services, including H.323, TCP, UDP, ICMP, and
ESP.
Guaranteed and maximum bandwidth in combination with queuing ensures minimum and
maximum bandwidth is available for traffic.
Traffic shaping cannot increase the total amount of bandwidth available, but you can use it
to improve the quality of bandwidth-intensive and sensitive traffic.
For more information about firewall policy, see “Firewall Policy” on page 387.

Note: For more information about traffic shaping you can also see the FortiGate Traffic
Shaping Technical Note.

This section describes:


• Guaranteed bandwidth and maximum bandwidth
• Traffic priority
• Traffic shaping considerations
• Configuring shared traffic shapers

Guaranteed bandwidth and maximum bandwidth


When you enter a value in the Guaranteed Bandwidth field when adding a traffic shaper,
you guarantee the amount of bandwidth available for selected network traffic (in
Kbytes/sec). For example, you may want to give a higher guaranteed bandwidth to your e-
commerce traffic.
When you enter a value in the Maximum Bandwidth field when adding a traffic shaper, you
limit the amount of bandwidth available for selected network traffic (in Kbytes/sec). For
example, you may want to limit the bandwidth of IM traffic usage, to save some bandwidth
for the more important e-commerce traffic.
The bandwidth available for traffic set in a traffic shaper is used for both the control and
data sessions and for traffic in both directions. For example, if guaranteed bandwidth is
applied to an internal and an external FTP policy, and a user on an internal network uses
FTP to put and get files, both the put and get sessions share the bandwidth available to
the traffic controlled by the policy.
Once included in a firewall policy, the guaranteed and maximum bandwidth is the total
bandwidth available to all traffic controlled by the policy. If multiple users start multiple
communications session using the same policy, all of these communications sessions
must share from the bandwidth available for the policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 441
http://docs.fortinet.com/ • Feedback
Traffic priority Traffic Shaping

However, bandwidth availability is not shared between multiple instances of using the
same service if these multiple instances are controlled by different policies. For example,
you can create one FTP policy to limit the amount of bandwidth available for FTP for one
network address and create another FTP policy with a different bandwidth availability for
another network address.

Note: If you set both guaranteed bandwidth and maximum bandwidth to 0 (zero), the policy
does not allow any traffic.

Traffic priority
when adding a traffic shaper, you can set traffic priority to manage the relative priorities of
different types of traffic. Important and latency-sensitive traffic should be assigned a high
priority. Less important and less sensitive traffic should be assigned a low priority.
The FortiGate unit provides bandwidth to low-priority connections only when bandwidth is
not needed for high-priority connections.
For example, you can add policies to guarantee bandwidth for voice and ecommerce
traffic. Then you can assign a high priority to the policy that controls voice traffic and a
medium priority to the policy that controls e-commerce traffic. During a busy time, if both
voice and e-commerce traffic are competing for bandwidth, the higher priority voice traffic
will be transmitted before the ecommerce traffic.

Traffic shaping considerations


Traffic shaping attempts to “normalize” traffic peaks/bursts to prioritize certain flows over
others. But there is a physical limitation to the amount of data which can be buffered and
to the length of time. Once these thresholds have been surpassed, frames and packets
will be dropped, and sessions will be affected in other ways. For example, incorrect traffic
shaping configurations may actually further degrade certain network flows, since the
excessive discarding of packets can create additional overhead at the upper layers that
may be attempting to recover from these errors.
A basic traffic shaping approach is to prioritize certain traffic flows over other traffic whose
potential discarding is less advantageous. This would mean that you accept sacrificing
certain performance and stability on low-priority traffic, in order to increase or guarantee
performance and stability to high-priority traffic.
If, for example, you are applying bandwidth limitations to certain flows, you must accept
the fact that these sessions can be limited and therefore negatively impacted.
Traffic shaping applied to a firewall policy is enforced for traffic which may flow in either
direction. Therefore a session which may be set up by an internal host to an external one,
through an Internal-to-External policy, will have traffic shaping applied even if the data
stream flows external to internal. One example may be an FTP “get” or a SMTP server
connecting to an external one, in order to retrieve email.
Note that traffic shaping is effective for normal IP traffic at normal traffic rates. Traffic
shaping is not effective during periods when traffic exceeds the capacity of the FortiGate
unit. Since packets must be received by the FortiGate unit before they are subject to traffic
shaping, if the FortiGate unit cannot process all of the traffic it receives, then dropped
packets, delays, and latency are likely to occur.

FortiGate Version 4.0 MR1 Administration Guide


442 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Traffic Shaping Configuring shared traffic shapers

To ensure that traffic shaping is working at its best, make sure that the interface ethernet
statistics show no errors, collisions or buffer overruns. If any of these problems do appear,
then FortiGate and switch settings may require adjusting. For more information, see the
FortiGate Traffic Shaping Technical Note.

Configuring shared traffic shapers


Configure shared traffic shapers to be included in firewall policies.
To view the shared traffic shaper list, go to Firewall > Traffic Shaping > Shared.

Figure 243: Shared traffic shaper list

Edit
Delete

Create New Add a traffic shaper. For more information, see “To create a traffic shaper go to
Firewall > Traffic Shaping > Traffic Shaping.” on page 443.
Name The name of a traffic shaper.
Bandwidth The guaranteed and maximum bandwidth configured in the traffic shaper.
Traffic Priority The traffic priority.
Quota The quota setting.
Delete icon Select to remove a traffic shaper.
Edit icon Select to modify a traffic shaper.

To create a traffic shaper go to Firewall > Traffic Shaping > Traffic Shaping.

Figure 244: Creating shared traffic shapers

Name Type a name for this traffic shaper.


Apply Shaping Select Per Policy to apply this traffic shaper to a single firewall policy that uses it.
Select For all policies using this shaper to apply this traffic shaper to all firewall
policies that use it.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 443
http://docs.fortinet.com/ • Feedback
Configuring Per IP traffic shaping Traffic Shaping

Guaranteed Select a value to ensure there is enough bandwidth available for a high-priority
Bandwidth service. Be sure that the sum of all Guaranteed Bandwidth in all firewall policies is
significantly less than the bandwidth capacity of the interface.
Maximum Select to limit bandwidth in order to keep less important services from using
Bandwidth bandwidth needed for more important ones.
Traffic Priority Select High, Medium, or Low. Select Traffic Priority so the FortiGate unit manages
the relative priorities of different types of traffic. For example, a policy for
connecting to a secure web server needed to support ecommerce traffic should be
assigned a high traffic priority. Less important services should be assigned a low
priority. The firewall provides bandwidth to low-priority connections only when
bandwidth is not needed for high-priority connections.
Be sure to enable traffic shaping on all firewall policies. If you do not apply any
traffic shaping rule to a policy, the policy is set to high priority by default.
Distribute firewall policies over all three priority queues.
Quotas and See “Accounting and quota enforcement” on page 445.
Accounting

Configuring Per IP traffic shaping


Configure traffic shaping that is applied per IP address, instead of per policy or per shaper.
As with the shared traffic shaper, you select the per-IP traffic shaper in firewall policies.
Go to Firewall > Traffic Shaping > Per-IP to add per-IP traffic shapers.
To apply per-IP traffic shaping to a firewall policy, go to Firewall > Policy, add or edit a
firewall policy, select Per-IP Traffic Shaping and select a per-IP traffic shaper.

Figure 245: Configuring a per-IP traffic shaper

Name Enter a name for the per-IP traffic shaper.


Maximum Bandwidth Enter the maximum allowed bandwidth in Kbps. This limit applies to
each IP address. Range 1 to 2 097 000. Enter 0 to disable
bandwidth limit.
Quotas and Accounting See “Accounting and quota enforcement” on page 445.
IP List
IP/Range An IP address or address range that this shaper controls.

FortiGate Version 4.0 MR1 Administration Guide


444 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Traffic Shaping Accounting and quota enforcement

Delete icon Delete the IP address/range entry.


Add Add an IP address or address range.

Accounting and quota enforcement


Both the shared and per-IP traffic shapers provide traffic accounting with enforceable
quotas.

To configure traffic quotas and accounting - web-based manager


1 Go to Firewall > Traffic Shaper > Shared or Firewall > Traffic Shaper > Per-IP.
2 Select Create New or select the Edit icon for an existing traffic shaper.
3 In the Quotas and Accounting section, enter the following information:

Figure 246: Traffic shaper quotas and accounting configuration

None Select to disable accounting and quotas.


Enforce Traffic Quota n MB per Select to enforce a traffic quota. Enter the maximum
amount of data in Mbytes and select the time period:
Hour, Day, Week, or Month. Traffic beyond the quota is
blocked.
Generate Accounting Log every Enable to log the volume of traffic through the traffic
shaper. Select the log period: Hour, Day, Week, or
Month.

4 Configure other traffic shaping options as needed.


5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 445
http://docs.fortinet.com/ • Feedback
Accounting and quota enforcement Traffic Shaping

FortiGate Version 4.0 MR1 Administration Guide


446 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP How virtual IPs map connections through FortiGate units

Firewall Virtual IP
Virtual IP addresses (VIPs) can be used when configuring firewall policies to translate IP
addresses and ports of packets received by a network interface, including a modem
interface.
When the FortiGate unit receives inbound packets matching a firewall policy whose
Destination Address field is a virtual IP, the FortiGate unit applies NAT, replacing packets’
IP addresses with the virtual IP’s mapped IP address.
IP pools, similarly to virtual IPs, can be used to configure aspects of NAT; however, IP
pools configure dynamic translation of packets’ IP addresses based on the Destination
Interface/Zone, whereas virtual IPs configure dynamic or static translation of a packets’ IP
addresses based upon the Source Interface/Zone.
To implement the translation configured in the virtual IP or IP pool, you must add it to a
NAT firewall policy. For details, see “Configuring virtual IPs” on page 452.

Note: In Transparent mode from the FortiGate CLI you can configure NAT firewall policies
that include Virtual IPs and IP pools. See “Adding NAT firewall policies in transparent mode”
on page 468.

If you enable virtual domains (VDOMs) on the FortiGate unit, firewall virtual IPs are
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
This section describes:
• How virtual IPs map connections through FortiGate units
• Viewing the virtual IP list
• Configuring virtual IPs
• Virtual IP Groups
• Viewing the VIP group list
• Configuring VIP groups
• IP pools
• Viewing the IP pool list
• Configuring IP Pools
• Double NAT: combining IP pool with virtual IP
• Adding NAT firewall policies in transparent mode

How virtual IPs map connections through FortiGate units


Virtual IPs can specify translations of packets’ port numbers and/or IP addresses for both
inbound and outbound connections. In Transparent mode, virtual IPs are available from
the FortiGate CLI.

Inbound connections
Virtual IPs can be used in conjunction with firewall policies whose Action is not DENY to
apply bidirectional NAT, also known as inbound NAT.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 447
http://docs.fortinet.com/ • Feedback
How virtual IPs map connections through FortiGate units Firewall Virtual IP

When comparing packets with the firewall policy list to locate a matching policy, if a firewall
policy’s Destination Address is a virtual IP, FortiGate units compares packets’ destination
address to the virtual IP’s external IP address. If they match, the FortiGate unit applies the
virtual IP’s inbound NAT mapping, which specifies how the FortiGate unit translates
network addresses and/or port numbers of packets from the receiving (external) network
interface to the network interface connected to the destination (mapped) IP address or IP
address range.
In addition to specifying IP address and port mappings between interfaces, virtual IP
configurations can optionally bind an additional IP address or IP address range to the
receiving network interface. By binding an additional IP address, you can configure a
separate set of mappings that the FortiGate unit can apply to packets whose destination
matches that bound IP address, rather than the IP address already configured for the
network interface.
Depending on your configuration of the virtual IP, its mapping may involve port address
translation (PAT), also known as port forwarding or network address port translation
(NAPT), and/or network address translation (NAT) of IP addresses.
If you configure NAT in the virtual IP and firewall policy, the NAT behavior varies by your
selection of:
• static vs. dynamic NAT mapping
• the dynamic NAT’s load balancing style, if using dynamic NAT mapping
• full NAT vs. destination NAT (DNAT)
The following table describes combinations of PAT and/or NAT that are possible when
configuring a firewall policy with a virtual IP.

Static NAT Static, one-to-one NAT mapping: an external IP address is always translated to
the same mapped IP address.
If using IP address ranges, the external IP address range corresponds to a
mapped IP address range containing an equal number of IP addresses, and
each IP address in the external range is always translated to the same IP
address in the mapped range.
Static NAT with Static, one-to-one NAT mapping with port forwarding: an external IP address is
Port Forwarding always translated to the same mapped IP address, and an external port number
is always translated to the same mapped port number.
If using IP address ranges, the external IP address range corresponds to a
mapped IP address range containing an equal number of IP addresses, and
each IP address in the external range is always translated to the same IP
address in the mapped range. If 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.
Server Load Dynamic, one-to-many NAT mapping: an external IP address is translated to one
Balancing of the mapped IP addresses, as determined by the selected load balancing
algorithm for more even traffic distribution. The external IP address is not always
translated to the same mapped IP address.
Server load balancing requires that you configure at least one “real” server, but
can use up to eight. Real servers can be configured with health check monitors.
Health check monitors can be used to gauge server responsiveness before
forwarding packets.
Server Load Dynamic, one-to-many NAT mapping with port forwarding: an external IP
Balancing with address is translated to one of the mapped IP addresses, as determined by the
Port Forwarding selected load balancing algorithm for more even traffic distribution. The external
IP address is not always translated to the same mapped IP address.
Server load balancing requires that you configure at least one “real” server, but
can use up to eight. Real servers can be configured with health check monitors.
Health check monitors can be used to gauge server responsiveness before
forwarding packets.

FortiGate Version 4.0 MR1 Administration Guide


448 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP How virtual IPs map connections through FortiGate units

Note: If the NAT check box is not selected when building the firewall policy, the resulting
policy does not perform full (source and destination) NAT; instead, it performs destination
network address translation (DNAT).
For inbound traffic, DNAT translates packets’ destination address to the mapped private IP
address, but does not translate the source address. The private network is aware of the
source’s public IP address. For reply traffic, the FortiGate unit translates packets’ private
network source IP address to match the destination address of the originating packets,
which is maintained in the session table.

A typical example of static NAT is to allow client access from a public network to a web
server on a private network that is protected by a FortiGate unit. Reduced to its essence,
this example involves only three hosts, as shown in Figure 247: the web server on a
private network, the client computer on another network, such as the Internet, and the
FortiGate unit connecting the two networks.
When a client computer attempts to contact the web server, it uses the virtual IP on the
FortiGate unit’s external interface. The FortiGate unit receives the packets. The addresses
in the packets are translated to private network IP addresses, and the packet is forwarded
to the web server on the private network.

Figure 247: A simple static NAT virtual IP example

The packets sent from the client computer have a source IP of 192.168.37.55 and a
destination IP of 192.168.37.4. The FortiGate unit receives these packets at its external
interface, and matches them to a firewall policy for the virtual IP. The virtual IP settings
map 192.168.37.4 to 10.10.10.42, so the FortiGate unit changes the packets’ addresses.
The source address is changed to 10.10.10.2 and the destination is changed to
10.10.10.42. The FortiGate unit makes a note of this translation in the firewall session
table it maintains internally. The packets are then sent on to the web server.

Figure 248: Example of packet address remapping during NAT from client to server

Note that the client computer’s address does not appear in the packets the server
receives. After the FortiGate unit translates the network addresses, there is no reference
to the client computer’s IP address, except in its session table. The web server has no
indication that another network exists. As far as the server can tell, all packets are sent by
the FortiGate unit.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 449
http://docs.fortinet.com/ • Feedback
How virtual IPs map connections through FortiGate units Firewall Virtual IP

When the web server replies to the client computer, address translation works similarly,
but in the opposite direction. The web server sends its response packets having a source
IP address of 10.10.10.42 and a destination IP address of 10.10.10.2. The FortiGate unit
receives these packets on its internal interface. This time, however, the session table is
used to recall the client computer’s IP address as the destination address for the address
translation. In the reply packets, the source address is changed to 192.168.37.4 and the
destination is changed to 192.168.37.55. The packets are then sent on to the client
computer.
The web server’s private IP address does not appear in the packets the client receives.
After the FortiGate unit translates the network addresses, there is no reference to the web
server’s network. The client has no indication that the web server’s IP address is not the
virtual IP. As far as the client is concerned, the FortiGate unit’s virtual IP is the web server.

Figure 249: Example of packet address remapping during NAT from server to client

In the previous example, the NAT check box is checked when configuring the firewall
policy. If the NAT check box is not selected when building the firewall policy, the resulting
policy does not perform full NAT; instead, it performs destination network address
translation (DNAT).
For inbound traffic, DNAT translates packets’ destination address to the mapped private IP
address, but does not translate the source address. The web server would be aware of
the client’s IP address. For reply traffic, the FortiGate unit translates packets’ private
network source IP address to match the destination address of the originating packets,
which is maintained in the session table.

Outbound connections
Virtual IPs can also affect outbound NAT, even though they are not selected in an
outbound firewall policy. If no virtual IPs are configured, FortiGate units apply traditional
outbound NAT to connections outbound from private network IP addresses to public
network IP addresses. However, if virtual IP configurations exist, FortiGate units use
virtual IPs’ inbound NAT mappings in reverse to apply outbound NAT, causing IP address
mappings for both inbound and outbound traffic to be symmetric.
For example, if a network interface’s IP address is 10.10.10.1, and its bound virtual IP’s
external IP is 10.10.10.2, mapping inbound traffic to the private network IP address
192.168.2.1, traffic outbound from 192.168.2.1 will be translated to 10.10.10.2, not
10.10.10.1

FortiGate Version 4.0 MR1 Administration Guide


450 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Viewing the virtual IP list

VIP requirements
Virtual IPs have the following requirements.
• The Mapped IP Address/Range cannot be 0.0.0.0 or 255.255.255.255.
• The Mapped IP Address/Range must not include any interface IP addresses.
• If the virtual IP is mapped to a range of IP addresses and its type is Static NAT, the
External IP Address/Range cannot be 0.0.0.0.
• When port forwarding, the External IP Address/Range cannot include any other
interface IP addresses.
• When port forwarding, the count of mapped port numbers and external port
numbers must be the same, and the last port number in the range must not exceed
65535.
• Virtual IP names must be different from address or address group names.
• A physical external IP address can be used as the external VIP IP address.
• Duplicate entries or overlapping ranges are not permitted.

Viewing the virtual IP list


To view the virtual IP list, go to Firewall > Virtual IP > Virtual IP.

Figure 250: Virtual IP list

Delete
Edit

Create New Select to add a virtual IP.


Name The name of the virtual IP.
IP The bound network interface and external IP address or IP address, separated
by a slash (/).
Service Port The external port number or port number range. This field is empty if the virtual
IP does not specify port forwarding.
Map to IP/IP The mapped to IP address or address range on the destination network.
Range
Map to Port The mapped to port number or port number range. This field is empty if the
virtual IP does not specify port forwarding.
Delete icon Remove the virtual IP from the list. The Delete icon only appears if the virtual IP
is not selected in a firewall policy.
Edit icon Edit the virtual IP to change any virtual IP option including the virtual IP name.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 451
http://docs.fortinet.com/ • Feedback
Configuring virtual IPs Firewall Virtual IP

Configuring virtual IPs


A virtual IP’s external IP address can be a single IP address or an IP address range, and
is bound to a FortiGate unit interface. When you bind the virtual IP’s external IP address to
a FortiGate unit interface, by default, the network interface responds to ARP requests for
the bound IP address or IP address range. Virtual IPs use proxy ARP, as defined in RFC
1027, so that the FortiGate unit can respond to ARP requests on a network for a server
that is actually installed on another network. To disable ARP replies, see the FortiGate CLI
Reference.
A virtual IP’s mapped IP address can be a single IP address, or an IP address range.
When the FortiGate unit receives packets matching a firewall policy whose Destination
Address field is a virtual IP, the FortiGate unit applies NAT, replacing the packet’s
destination IP address with the virtual IP’s mapped IP address.
To implement the translation configured in the virtual IP or IP pool, you must add it to a
NAT firewall policy. For example, to add a firewall policy that maps public network
addresses to a private network, add an external to internal firewall policy whose
Destination Address field is a virtual IP.

Figure 251: Creating a Virtual IP

Name Enter or change the name to identify the virtual IP. To avoid confusion,
addresses, address groups, and virtual IPs cannot have the same names.
External Interface Select the virtual IP external interface from the list. The external interface is
connected to the source network and receives the packets to be forwarded to
the destination network. You can select any FortiGate interface, VLAN
subinterface, VPN interface, or modem interface.
Type VIP type is Static NAT, read only.
External IP Enter the external IP address that you want to map to an address on the
Address/Range destination network.
To configure a dynamic virtual IP that accepts connections for any IP address,
set the external IP address to 0.0.0.0. For a static NAT dynamic virtual IP you
can only add one mapped IP address. For a load balance dynamic virtual IP
you can specify a single mapped address or a mapped address range.
Mapped IP Enter the real IP address on the destination network to which the external IP
Address/Range address is mapped.
You can also enter an address range to forward packets to multiple IP
addresses on the destination network.
For a static NAT virtual IP, if you add a mapped IP address range the FortiGate
unit calculates the external IP address range and adds the IP address range to
the External IP Address/Range field.
This option appears only if Type is Static NAT.
Port Forwarding Select to perform port address translation (PAT).

FortiGate Version 4.0 MR1 Administration Guide


452 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Configuring virtual IPs

Protocol Select the protocol of the forwarded packets.


This option appears only if Port Forwarding is enabled.
External Service Enter the external interface port number for which you want to configure port
Port forwarding.
This option appears only if Port Forwarding is enabled.
Map to Port Enter the port number on the destination network to which the external port
number is mapped.
You can also enter a port number range to forward packets to multiple ports on
the destination network.
For a virtual IP with static NAT, if you add a map to port range the FortiGate unit
calculates the external port number range and adds the port number range to
the External Service port field.
This option appears only if Port Forwarding is enabled.
SSL Offloading Select to accelerate clients’ SSL connections to the server by using the
FortiGate unit to perform SSL operations, then select which segments of the
connection will receive SSL offloading.
• Client <-> FortiGate
Select to apply hardware accelerated SSL only to the part of the connection
between the client and the FortiGate unit. The segment between the
FortiGate unit and the server will use clear text communications. This
results in best performance, but cannot be used in failover configurations
where the failover path does not have an SSL accelerator.
• Client <-> FortiGate <-> Server
Select to apply hardware accelerated SSL to both parts of the connection:
the segment between client and the FortiGate unit, and the segment
between the FortiGate unit and the server. The segment between the
FortiGate unit and the server will use encrypted communications, but the
handshakes will be abbreviated. This results in performance which is less
than the other option, but still improved over communications without 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.
SSL 3.0, TLS 1.0, and TLS 1.1 are supported.
This option appears only if Port Forwarding is selected, and only on FortiGate
models whose hardware support SSL acceleration.
Note: Additional SSL Offloading options are available in the CLI. For details,
see the FortiGate CLI Reference.
Certificate Select which SSL certificate to use with SSL Offloading.
This option appears only if Port Forwarding is selected, and is available only if
SSL Offloading is selected.

To configure a virtual IP
1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Configure the virtual IP by entering the virtual IP address, if any, that will be bound to
the network interface, and selecting the mapping type and mapped IP address(es)
and/or port(s). For configuration examples of each type, see:
• “Adding a static NAT virtual IP for a single IP address” on page 454
• “Adding a static NAT virtual IP for an IP address range” on page 455
• “Adding static NAT port forwarding for a single IP address and a single port” on
page 457
• “Adding static NAT port forwarding for an IP address range and a port range” on
page 459
• “Adding dynamic virtual IPs” on page 460
• “Adding a virtual IP with port translation only” on page 461

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 453
http://docs.fortinet.com/ • Feedback
Configuring virtual IPs Firewall Virtual IP

4 Select OK.
The virtual IP appears in the virtual IP list.
5 To implement the virtual IP, select the virtual IP in a firewall policy.
For example, to add a firewall policy that maps public network addresses to a private
network, you might add an external to internal firewall policy and select the Source
Interface/Zone to which a virtual IP is bound, then select the virtual IP in the
Destination Address field of the policy. For details, see “Configuring firewall policies” on
page 391.

Adding a static NAT virtual IP for a single IP address


The IP address 192.168.37.4 on the Internet is mapped to 10.10.10.42 on a private
network. Attempts to communicate with 192.168.37.4 from the Internet are translated and
sent to 10.10.10.42 by the FortiGate unit. The computers on the Internet are unaware of
this translation and see a single computer at 192.168.37.4 rather than a FortiGate unit
with a private network behind it.

Figure 252: Static NAT virtual IP for a single IP address example

To add a static NAT virtual IP for a single IP address


1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Use the following procedure to add a virtual IP that allows users on the Internet to
connect to a web server on the DMZ network. In our example, the wan1 interface of the
FortiGate unit is connected to the Internet and the dmz1 interface is connected to the
DMZ network.

Figure 253: Virtual IP options: static NAT virtual IP for a single IP address

Name static_NAT
External Interface wan1
Type Static NAT

FortiGate Version 4.0 MR1 Administration Guide


454 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Configuring virtual IPs

External IP The Internet IP address of the web server.


Address/Range The external IP address is usually a static IP address obtained from your
ISP for your web server. This address must be a unique IP address that is
not used by another host and cannot be the same as the IP address of the
external interface the virtual IP will be using. However, the external IP
address must be routed to the selected interface. The virtual IP address and
the external IP address can be on different subnets. When you add the
virtual IP, the external interface responds to ARP requests for the external IP
address.
Mapped IP The IP address of the server on the internal network. Since there is only one
Address/Range IP address, leave the second field blank.

4 Select OK.

To add a static NAT virtual IP for a single IP address to a firewall policy


Add a external to dmz1 firewall policy that uses the virtual IP so that when users on the
Internet attempt to connect to the web server IP address packets pass through the
FortiGate unit from the external interface to the dmz1 interface. The virtual IP translates
the destination address of these packets from the external IP to the DMZ network IP
address of the web server.
1 Go to Firewall > Policy and select Create New.
2 Configure the firewall policy:

Source Interface/Zone external


Source Address All (or a more specific address)
Destination Interface/Zone dmz1
Destination Address simple_static_nat
Schedule always
Service HTTP
Action ACCEPT

3 Select NAT.
4 Select OK.

Adding a static NAT virtual IP for an IP address range


The IP address range 192.168.37.4-192.168.37.6 on the Internet is mapped to
10.10.10.42-10.10.123.44 on a private network. Packets from Internet computers
communicating with 192.168.37.4 are translated and sent to 10.10.10.42 by the FortiGate
unit. Similarly, packets destined for 192.168.37.5 are translated and sent to 10.10.10.43,
and packets destined for 192.168.37.6 are translated and sent to 10.10.10.44. The
computers on the Internet are unaware of this translation and see three computers with
individual IP addresses rather than a FortiGate unit with a private network behind it.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 455
http://docs.fortinet.com/ • Feedback
Configuring virtual IPs Firewall Virtual IP

Figure 254: Static NAT virtual IP for an IP address range example

To add a static NAT virtual IP for an IP address range


1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Use the following procedure to add a virtual IP that allows users on the Internet to
connect to three individual web servers on the DMZ network. In this example, the wan1
interface of the FortiGate unit is connected to the Internet and the dmz1 interface is
connected to the DMZ network.

Figure 255: Virtual IP options: static NAT virtual IP with an IP address range

Name static_NAT_range
External Interface wan1
Type Static NAT
External IP The Internet IP address range of the web servers.
Address/Range The external IP addresses are usually static IP addresses obtained
from your ISP for your web server. These addresses must be
unique IP addresses that are not used by another host and cannot
be the same as the IP addresses of the external interface the virtual
IP will be using. However, the external IP addresses must be routed
to the selected interface. The virtual IP addresses and the external
IP address can be on different subnets. When you add the virtual
IP, the external interface responds to ARP requests for the external
IP addresses.
Mapped IP The IP address range of the servers on the internal network. Define
Address/Range the range by entering the first address of the range in the first field
and the last address of the range in the second field.

4 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


456 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Configuring virtual IPs

To add a static NAT virtual IP with an IP address range to a firewall policy


Add a wan1 to dmz1 firewall policy that uses the virtual IP so that when users on the
Internet attempt to connect to the server IP addresses, packets pass through the
FortiGate unit from the wan1 interface to the dmz1 interface. The virtual IP translates the
destination addresses of these packets from the wan1 IP to the DMZ network IP
addresses of the servers.
1 Go to Firewall > Policy and select Create New.
2 Configure the firewall policy:

Source Interface/Zone wan1


Source Address All (or a more specific address)
Destination dmz1
Interface/Zone
Destination Address static_NAT_range
Schedule always
Service HTTP
Action ACCEPT

3 Select NAT.
4 Select OK.

Adding static NAT port forwarding for a single IP address and a single port
The IP address 192.168.37.4, port 80 on the Internet is mapped to 10.10.10.42, port 8000
on a private network. Attempts to communicate with 192.168.37.4, port 80 from the
Internet are translated and sent to 10.10.10.42, port 8000 by the FortiGate unit. The
computers on the Internet are unaware of this translation and see a single computer at
192.168.37.4, port 80 rather than a FortiGate unit with a private network behind it.

Figure 256: Static NAT virtual IP port forwarding for a single IP address and a single port
example

To add static NAT virtual IP port forwarding for a single IP address and a single port
1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 457
http://docs.fortinet.com/ • Feedback
Configuring virtual IPs Firewall Virtual IP

3 Use the following procedure to add a virtual IP that allows users on the Internet to
connect to a web server on the DMZ network. In our example, the wan1 interface of the
FortiGate unit is connected to the Internet and the dmz1 interface is connected to the
DMZ network.

Figure 257: Virtual IP options: Static NAT port forwarding virtual IP for a single IP address
and a single port

Name Port_fwd_NAT_VIP
External Interface wan1
Type Static NAT
External IP The Internet IP address of the web server.
Address/Range The external IP address is usually a static IP address obtained from
your ISP for your web server. This address must be a unique IP
address that is not used by another host and cannot be the same
as the IP address of the external interface the virtual IP will be
using. However, the external IP address must be routed to the
selected interface. The virtual IP address and the external IP
address can be on different subnets. When you add the virtual IP,
the external interface responds to ARP requests for the external IP
address.
Mapped IP The IP address of the server on the internal network. Since there is
Address/Range only one IP address, leave the second field blank.
Port Forwarding Selected
Protocol TCP
External Service Port The port traffic from the Internet will use. For a web server, this will
typically be port 80.
Map to Port The port on which the server expects traffic. Since there is only one
port, leave the second field blank.

4 Select OK.

To add static NAT virtual IP port forwarding for a single IP address and a single port
to a firewall policy
Add a wan1 to dmz1 firewall policy that uses the virtual IP so that when users on the
Internet attempt to connect to the web server IP addresses, packets pass through the
FortiGate unit from the wan1 interface to the dmz1 interface. The virtual IP translates the
destination addresses and ports of these packets from the external IP to the dmz network
IP addresses of the web servers.
1 Go to Firewall > Policy and select Create New.
2 Configure the firewall policy:

FortiGate Version 4.0 MR1 Administration Guide


458 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Configuring virtual IPs

Source Interface/Zone wan1


Source Address All (or a more specific address)
Destination dmz1
Interface/Zone
Destination Address Port_fwd_NAT_VIP
Schedule always
Service HTTP
Action ACCEPT

3 Select NAT.
4 Select OK.

Adding static NAT port forwarding for an IP address range and a port range
Ports 80 to 83 of addresses 192.168.37.4 to 192.168.37.7 on the Internet are mapped to
ports 8000 to 8003 of addresses 10.10.10.42 to 10.10.10.44 on a private network.
Attempts to communicate with 192.168.37.5, port 82 from the Internet, for example, are
translated and sent to 10.10.10.43, port 8002 by the FortiGate unit. The computers on the
Internet are unaware of this translation and see a single computer at 192.168.37.5 rather
than a FortiGate unit with a private network behind it.

Figure 258: Static NAT virtual IP port forwarding for an IP address range and a port range
example

To add static NAT virtual IP port forwarding for an IP address range and a port
range
1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Use the following procedure to add a virtual IP that allows users on the Internet to
connect to a web server on the DMZ network. In this example, the external interface of
the FortiGate unit is connected to the Internet and the dmz1 interface is connected to
the DMZ network.

Name Port_fwd_NAT_VIP_port_range
External Interface external
Type Static NAT

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 459
http://docs.fortinet.com/ • Feedback
Configuring virtual IPs Firewall Virtual IP

External IP The external IP addresses are usually static IP addresses obtained


Address/Range from your ISP. This addresses must be unique, not used by another
host, and cannot be the same as the IP address of the external
interface the virtual IP will be using. However, the external IP
addresses must be routed to the selected interface. The virtual IP
addresses and the external IP address can be on different subnets.
When you add the virtual IP, the external interface responds to ARP
requests for the external IP addresses.
Mapped IP The IP addresses of the server on the internal network. Define the
Address/Range range by entering the first address of the range in the first field and
the last address of the range in the second field.
Port Forwarding Selected
Protocol TCP
External Service Port The ports that traffic from the Internet will use. For a web server,
this will typically be port 80.
Map to Port The ports on which the server expects traffic. Define the range by
entering the first port of the range in the first field and the last port of
the range in the second field. If there is only one port, leave the
second field blank.
4 Select OK.

To add static NAT virtual IP port forwarding for an IP address range and a port
range to a firewall policy
Add a external to dmz1 firewall policy that uses the virtual IP so that when users on the
Internet attempt to connect to the web server IP addresses, packets pass through the
FortiGate unit from the external interface to the dmz1 interface. The virtual IP translates
the destination addresses and ports of these packets from the external IP to the dmz
network IP addresses of the web servers.
1 Go to Firewall > Policy and select Create New.
2 Configure the firewall policy:

Source Interface/Zone external


Source Address All (or a more specific address)
Destination dmz1
Interface/Zone
Destination Address Port_fwd_NAT_VIP_port_range
Schedule always
Service HTTP
Action ACCEPT

3 Select NAT.
4 Select OK.

Adding dynamic virtual IPs


Adding a dynamic virtual IP is similar to adding a virtual IP. The difference is that the
External IP address must be set to 0.0.0.0 so the External IP address matches any IP
address.

To add a dynamic virtual IP


1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Enter a name for the dynamic virtual IP.

FortiGate Version 4.0 MR1 Administration Guide


460 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Configuring virtual IPs

4 Select the virtual IP External Interface from the list.


The external interface is connected to the source network and receives the packets to
be forwarded to the destination network.
Select any firewall interface or a VLAN subinterface.
5 Set the External IP Address to 0.0.0.0.
The 0.0.0.0 External IP Address matches any IP address.
6 Enter the Mapped IP Address to which to map the external IP address. For example,
the IP address of a PPTP server on an internal network.
7 Select Port Forwarding.
8 For Protocol, select TCP.
9 Enter the External Service Port number for which to configure dynamic port forwarding.
The external service port number must match the destination port of the packets to be
forwarded. For example, if the virtual IP provides PPTP passthrough access from the
Internet to a PPTP server, the external service port number should be 1723 (the PPTP
port).
10 Enter the Map to Port number to be added to packets when they are forwarded.
Enter the same number as the External Service Port if the port is not to be translated.
11 Select OK.

Adding a virtual IP with port translation only


When adding a virtual IP, if you enter a virtual IP address that is the same as the mapped
IP address and apply port forwarding, the destination IP address will be unchanged, but
the port number will be translated.

Note: To apply port forwarding to the external interface without binding a virtual IP address
to it, enter the IP address of the network interface instead of a virtual IP address, then
configure port forwarding as usual.

To add a virtual IP with port translation only


1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Enter a name for the dynamic virtual IP.
4 Select the virtual IP External Interface from the list.
The external interface is connected to the source network and receives the packets to
be forwarded to the destination network.
Select any firewall interface or a VLAN subinterface.
5 Set the External IP Address as the mapped IP address.
6 Enter the Mapped IP Address to which to map the external IP address. For example,
the IP address of a PPTP server on an internal network.
7 Select Port Forwarding.
8 For Protocol, select TCP.
9 Enter the External Service Port number for which to configure dynamic port forwarding.
The external service port number must match the destination port of the packets to be
forwarded. For example, if the virtual IP provides PPTP passthrough access from the
Internet to a PPTP server, the external service port number should be 1723 (the PPTP
port).

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 461
http://docs.fortinet.com/ • Feedback
Virtual IP Groups Firewall Virtual IP

10 Enter the Map to Port number to be added to packets when they are forwarded.
11 Select OK.

Virtual IP Groups
You can organize multiple virtual IPs into a virtual IP group to simplify your firewall policy
list. For example, instead of having five identical policies for five different but related virtual
IPs located on the same network interface, you might combine the five virtual IPs into a
single virtual IP group, which is used by a single firewall policy.
Firewall policies using VIP Groups are matched by comparing both the member VIP IP
address(es) and port number(s).

Viewing the VIP group list


To view the virtual IP group list, go to Firewall > Virtual IP > VIP Group.

Figure 259: VIP Group list

Delete
Edit

Create New Select to add a new VIP group. See “Configuring VIP groups” on page 462.
Group Name The name of the virtual IP group.
Members Lists the group members.
Interface Displays the interface that the VIP group belongs to.
Delete icon Remove the VIP group from the list. The Delete icon only appears if the VIP
group is not being used in a firewall policy.
Edit icon Edit the VIP group information, including the group name and membership.

Configuring VIP groups


To add a VIP group, go to Firewall > Virtual IP > VIP Group and select Create New. To edit
a VIP group, go to Firewall > Virtual IP > VIP Group and select the Edit icon for the VIP
group to edit. Enter the information as described below, and select OK.

FortiGate Version 4.0 MR1 Administration Guide


462 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP IP pools

Figure 260: Editing a VIP group

Group Name Enter or modify the group name.


Interface Select the interface for which you want to create the VIP group. If you
are editing the group, the Interface box is grayed out.
Available VIPs and Select the up or down arrow to move virtual IPs between Available
Members VIPs and Members. Members contains virtual IPs that are a part of
this virtual IP group.

IP pools
Use IP pools to add NAT policies that translate source addresses to addresses randomly
selected from the IP pool, rather than the IP address assigned to that FortiGate unit
interface. In Transparent mode, IP pools are available from the FortiGate CLI.
An IP pool defines an address or a range of IP addresses, all of which respond to ARP
requests on the interface to which the IP pool is added.
Select Enable Dynamic IP Pool in a firewall policy to translate the source address of
outgoing packets to an address randomly selected from the IP pool. An IP pool list
appears when the policy destination interface is the same as the IP pool interface.
With an IP pool added to the internal interface, you can select Dynamic IP pool for policies
with the internal interface as the destination.
Add multiple IP pools to any interface and select the IP pool to use when configuring a
firewall policy.
A single IP address is entered normally. For example, 192.168.110.100 is a valid IP
pool address. If an IP address range is required, use either of the following formats.
• x.x.x.x-x.x.x.x, for example 192.168.110.100-192.168.110.120
• x.x.x.[x-x], for example 192.168.110.[100-120]

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 463
http://docs.fortinet.com/ • Feedback
IP pools Firewall Virtual IP

IP pools and dynamic NAT


Use IP pools for dynamic NAT. For example, an organization might have purchased a
range of Internet addresses but has only one Internet connection on the external interface
of the FortiGate unit.
Assign one of the organization’s Internet IP addresses to the external interface of the
FortiGate unit. If the FortiGate unit is operating in NAT/Route mode, all connections from
the network to the Internet appear to come from this IP address.
For connections to originate from all the Internet IP addresses, add this address range to
an IP pool for the external interface. Then select Dynamic IP Pool for all policies with the
external interface as the destination. For each connection, the firewall dynamically selects
an IP address from the IP pool to be the source address for the connection. As a result,
connections to the Internet appear to be originating from any of the IP addresses in the IP
pool.

IP Pools for firewall policies that use fixed ports


Some network configurations do not operate correctly if a NAT policy translates the source
port of packets used by the connection. NAT translates source ports to keep track of
connections for a particular service. Select fixed port for NAT policies to prevent source
port translation. However, selecting fixed port means that only one connection can be
supported through the firewall for this service. To be able to support multiple connections,
add an IP pool to the destination interface, and then select dynamic IP pool in the policy.
The firewall randomly selects an IP address from the IP pool and assigns it to each
connection. In this case the number of connections that the firewall can support is limited
by the number of IP addresses in the IP pool.

Source IP address and IP pool address matching


When the source addresses are translated to the IP pool addresses, one of the following
three cases may occur:

Scenario 1: The number of source addresses equals that of IP pool addresses


In this case, the FortiGate unit will always match the IP addressed one to one.
If you use fixed port in such a case, the FortiGate unit will preserve the original source
port. However, this may cause conflicts if more than one firewall policy uses the same IP
pool, or the same IP addresses are used in more than one IP pool.

Original address Change to


192.168.1.1 172.16.30.1
192.168.1.2 172.16.30.2
...... ......
192.168.1.254 172.16.30.254

Scenario 2: The number of source addresses is more than that of IP pool addresses
In this case, the FortiGate unit translates IP addresses using a wrap-around mechanism.
If you use fixed port in such a case, the FortiGate unit preserves the original source port.
But conflicts may occur since users may have different sessions using the same TCP 5
tuples.

Original address Change to


192.168.1.1 172.16.30.10

FortiGate Version 4.0 MR1 Administration Guide


464 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Viewing the IP pool list

192.168.1.2 172.16.30.11
...... ......
192.168.1.10 172.16.30.19
192.168.1.11 172.16.30.10
192.168.1.12 172.16.30.11
192.168.1.13 172.16.30.12
...... ......

Scenario 3: The number of source addresses is fewer than that of IP pool addresses
In this case, some of the IP pool addresses will used and the rest of them will not be used.

Original address Change to


192.168.1.1 172.16.30.10
192.168.1.2 172.16.30.11
192.168.1.3 172.16.30.12
No more source addresses 172.16.30.13 and other
addresses will not be used

Viewing the IP pool list


If virtual domains are enabled on the FortiGate unit, IP pools are created separately for
each virtual domain. To access IP pools, select a virtual domain from the list on the main
menu.
To view the IP pool list go to Firewall > Virtual IP > IP Pool.

Figure 261: IP pool list

Delete
Edit
Create New Select to add an IP pool.
Name Enter the name of the IP pool.
Start IP Enter the start IP defines the start of an address range.
End IP Enter the end IP defines the end of an address range.
Delete icon Select to remove the entry from the list. The Delete icon only appears if the IP
pool is not being used in a firewall policy.
Edit icon Select to edit the following information: Name, Interface, IP Range/Subnet.

Configuring IP Pools
To add an IP pool, go to Firewall > Virtual IP > IP Pool.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 465
http://docs.fortinet.com/ • Feedback
Double NAT: combining IP pool with virtual IP Firewall Virtual IP

Figure 262: New Dynamic IP Pool

Name Enter the name of the IP pool.


Interface Select the interface to which to add an IP pool.
IP Range/Subnet Enter the IP address range for the IP pool. The IP range defines the start and
end of an address range. The start of the range must be lower than the end of
the range. The start and end of the IP range does not have to be on the same
subnet as the IP address of the interface to which you are adding the IP pool.

Double NAT: combining IP pool with virtual IP


When creating a firewall policy, you can use both IP pool and virtual IP for double IP
and/or port translation.
For example, in the following network topology:
• Users in the 10.1.1.0/24 subnet use port 8080 to access server 172.16.1.1.
• The server’s listening port is 80.
• Fixed ports must be used.

Figure 263: Double NAT

To allow the local users to access the server, you can use fixed port and IP pool to allow
more than one user connection while using virtual IP to translate the destination port from
8080 to 80.

To create an IP pool
1 Go to Firewall > Virtual IP > IP Pool.

FortiGate Version 4.0 MR1 Administration Guide


466 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Double NAT: combining IP pool with virtual IP

2 Select Create New.


3 Enter the following information and select OK.

Name pool-1
Interface DMZ
IP 10.1.3.1-10.1.3.254
Range/Subnet

To create a Virtual IP with port translation only


1 Go to Firewall > Virtual IP > Virtual IP.
2 Select Create New.
3 Enter the following information and select OK.

Name server-1
External Internal
Interface
Type Static NAT
External IP 172.16.1.1
Address/Range Note this address is the same as the server address.
Mapped IP 172.16.1.1.
Address/Range
Port Forwarding Enable
Protocol TCP
External Service 8080
Port
Map to Port 80

To create a firewall policy


Add an internal to dmz firewall policy that uses the virtual IP to translate the destination
port number and the IP pool to translate the source addresses.
1 Go to Firewall > Policy.
2 Select Create New.
3 Configure the firewall policy:

Source Interface/Zone internal


Source Address 10.1.1.0/24
Destination dmz
Interface/Zone
Destination Address server-1
Schedule always
Service HTTP
Action ACCEPT

4 Select NAT.
5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 467
http://docs.fortinet.com/ • Feedback
Adding NAT firewall policies in transparent mode Firewall Virtual IP

Adding NAT firewall policies in transparent mode


Similar to operating in NAT/Route mode, when operating a FortiGate unit in Transparent
mode you can add firewall policies and:
• Enable NAT to translate the source addresses of packets as they pass through the
FortiGate unit.
• Add virtual IPs to translate destination addresses of packets as they pass through the
FortiGate unit.
• Add IP pools as required for source address translation
For NAT firewall policies to work in NAT/Route mode you must have two interfaces on two
different networks with two different subnet addresses. Then you can create firewall
policies to translate source or destination addresses for packets as they are relayed by the
FortiGate unit from one interface to the other.
A FortiGate unit operating in Transparent mode normally has only one IP address, the
management IP. To support NAT in Transparent mode you can add a second
management IP. These two management IPs must be on different subnets. When you add
two management IP addresses, all FortiGate unit network interfaces will respond to
connections to both of these IP addresses.
In the example shown in Figure 264, all of the PCs on the internal network (subnet
address 192.168.1.0/24) are configured with 192.168.1.99 as their default route. One of
the management IPs of the FortiGate unit is set to 192.168.1.99. This configuration results
in a typical NAT mode firewall. When a PC on the internal network attempts to connect to
the Internet, the PC's default route sends packets destined for the Internet to the FortiGate
unit internal interface.
Similarly on the DMZ network (subnet address 10.1.1.0/24) all of the PCs have a default
route of 10.1.1.99.
The example describes adding an internal to wan1 firewall policy to relay these packets
from the internal interface out the wan1 interface to the Internet. Because the wan1
interface does not have an IP address of its own, you must add an IP pool to the wan1
interface that translates the source addresses of the outgoing packets to an IP address on
the network connected to the wan1 interface.
The example describes adding an IP pool with a single IP address of 10.1.1.201. So all
packets sent by a PC on the internal network that are accepted by the internal to wan1
policy leave the wan1 interface with their source address translated to 10.1.1.201. These
packets can now travel across the Internet to their destination. Reply packets return to the
wan1 interface because they have a destination address of 10.1.1.201. The internal to
wan1 NAT policy translates the destination address of these return packets to the IP
address of the originating PC and sends them out the internal interface to the originating
PC.
Use the following steps to configure NAT in Transparent mode
• Adding two management IPs
• Adding an IP pool to the wan1 interface
• Adding an internal to wan1 firewall policy

FortiGate Version 4.0 MR1 Administration Guide


468 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Virtual IP Adding NAT firewall policies in transparent mode

Figure 264: Example NAT in Transparent mode configuration

Internet

Internal network
Transparent mode 192.168.1.0/24
Management IPs:
Router 10.1.1.99
192.168.1.99

10.1.1.0/24 WAN 1 Internal

DMZ

DMZ network
10.1.1.0/24

To add a source address translation NAT policy in Transparent mode


1 Enter the following command to add two management IPs.
The second management IP is the default gateway for the internal network.
config system settings
set manageip 10.1.1.99/24 192.168.1.99/24
end
2 Enter the following command to add an IP pool to the wan1 interface:
config firewall ippool
edit nat-out
set interface "wan1"
set startip 10.1.1.201
set endip 10.1.1.201
end
3 Enter the following command to add an internal to wan1 firewall policy with NAT
enabled that also includes an IP pool:
config firewall policy
edit 1
set srcintf "internal"
set dstintf "wan1"
set scraddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ANY"
set nat enable
set ippool enable
set poolname nat-out
end

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 469
http://docs.fortinet.com/ • Feedback
Adding NAT firewall policies in transparent mode Firewall Virtual IP

Note: You can add the firewall policy from the web-based manager and then use the CLI to
enable NAT and add the IP Pool.

FortiGate Version 4.0 MR1 Administration Guide


470 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Load Balance How load balancer works

Firewall Load Balance


Use the FortiGate load balancing function to intercept the incoming traffic and share it
across the available servers. By doing so, the FortiGate unit enables multiple servers to
respond as if they were a single device or server. This in turn means that more
simultaneous requests can be handled.
There are additional benefits to server load balancing. Firstly, because the load is
distributed across multiple servers, the service being provided can be highly available. If
one of the servers breaks down, the load can still be handled by the other servers.
Secondly, this increases scalability. If the load increases substantially, more servers can
be added behind the FortiGate unit in order to cope with the increased load.
This section describes:
• How load balancer works
• Configuring virtual servers
• Configuring real servers
• Configuring health check monitors
• Monitoring the servers

How load balancer works


You can configure virtual servers on the FortiGate unit (load balancer) and bind them to a
cluster of real servers. Up to 8 real servers can be bound to 1 virtual server. The topology
of cluster is transparent to end users, and the users interact with the system as if it were
only a single virtual server. The real servers may be interconnected by high-speed LAN or
by geographically dispersed WAN. The FortiGate unit schedules requests to the different
servers and makes parallel services of the cluster to appear as a virtual service on a
single IP address.

Figure 265: Virtual server and real servers setup

Internet/Intranet

User

(Virtual Server/Load Balancer)

LAN/WAN

Real Server Real Server

Real Server

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 471
http://docs.fortinet.com/ • Feedback
Configuring virtual servers Firewall Load Balance

Configuring virtual servers


Configure a virtual server’s external IP address and bind it to a FortiGate unit interface.
When you bind the virtual server’s external IP address to a FortiGate unit interface, by
default, the network interface responds to ARP requests for the bound IP address. Virtual
servers use proxy ARP, as defined in RFC 1027, so that the FortiGate unit can respond to
ARP requests on a network for a real server that is actually installed on another network.
To disable ARP replies, see the FortiGate CLI Reference.
To view the virtual server list, go to Firewall > Load Balance > Virtual Server.

Figure 266: Virtual server list

Delete
Edit

Create New Select to add virtual servers. For more information, see “To create a
virtual server” on page 472.
Name Name of the virtual server. This name is not the hostname for the
FortiGate unit.
Type The protocol load balanced by the virtual server.
Comments A description of the virtual server.
Virtual Server IP The IP address of the virtual server. This is an IP address on the external
interface that you want to map to an address on the destination network.
Virtual server Port The external port number that you want to map to a port number on the
destination network. Sessions with this destination port are load
balanced by this virtual server.
Load Balance Method The load balancing method for this virtual server.
Health Check The health check monitor selected for this virtual server. For more
information, see “Health Check” on page 475.
Persistence The type of persistence applied to this virtual server.
Delete icon Remove the virtual server from the list. The Delete icon only appears if
the virtual server is not bound to a real server.
Edit icon Edit the virtual server to change any virtual server option including the
virtual server name.

To create a virtual server


1 Go to Firewall > Load Balance > Virtual Server > Create New.

FortiGate Version 4.0 MR1 Administration Guide


472 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Load Balance Configuring virtual servers

Figure 267: Creating a virtual server

2 Complete the following:

Name Enter the name for the virtual server. This name is not the hostname for the
FortiGate unit.
Type Select the protocol to be load balanced by the virtual server. If you select a
general protocol such as IP, TCP, or UDP the virtual server load balances all IP,
TCP, or UDP sessions. If you select specific protocols such as HTTP, HTTPS, or
SSL you can apply additional server load balancing features such as Persistence
and HTTP Multiplexing.
• Select HTTP to load balance only HTTP sessions with destination port
number that matches the Virtual Server Port setting. Change Virtual Server
Port to match the destination port of the sessions to be load balanced (usually
port 80 for HTTP sessions). You can also select HTTP Multiplex. You can
also set Persistence to HTTP Cookie to select cookie-based persistence. See
the description of the config firewall VIP command in the FortiGate
CLI Reference for information about advanced HTTP Cookie persistence
options.
• Select HTTPS to load balance only HTTPS sessions with destination port
number that matches the Virtual Server Port setting. Change Virtual Server
Port to match the destination port of the sessions to be load balanced (usually
port 443 for HTTPS sessions). You can also select HTTP Multiplex. You can
also set Persistence to HTTP Cookie to select cookie-based persistence. You
can also set Persistence to SSL Session ID. See the description of the
config firewall VIP command in the FortiGate CLI Reference for
information about advanced HTTP Cookie persistence options and advanced
SSL options. HTTPS is available on FortiGate units that support SSL
acceleration.
• Select IP to load balance all sessions accepted by the firewall policy that
contains this virtual server.
• Select SSL to load balance only SSL sessions with destination port number
that matches the Virtual Server Port setting. Change Virtual Server Port to
match the destination port of the sessions to be load balanced.See the
description of the config firewall VIP command in the FortiGate CLI
Reference for information about advanced SSL options.
• Select TCP to load balance only TCP sessions with destination port number
that matches the Virtual Server Port setting. Change Virtual Server Port to
match the destination port of the sessions to be load balanced.
• Select UDP to load balance only UDP sessions with destination port number
that matches the Virtual Server Port setting. Change Virtual Server Port to
match the destination port of the sessions to be load balanced.
Interface Select the virtual server external interface from the list. The external interface is
connected to the source network and receives the packets to be forwarded to the
destination network.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 473
http://docs.fortinet.com/ • Feedback
Configuring virtual servers Firewall Load Balance

Virtual Server The IP address of the virtual server. This is an IP address on the external
IP interface that you want to map to an address on the destination network.
Virtual server Enter the external port number that you want to map to a port number on the
Port destination network. Sessions with this destination port are load balanced by this
virtual server.
Load Balance Load balancing methods include:
Method • Static: The traffic load is spread evenly across all servers, no additional
server is required. This load balancing method provides some persistence
because all sessions from the same source address 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.
• Round Robin: Directs requests to the next server, and treats all servers as
equals regardless of response time or number of connections. Dead servers
or non responsive servers are avoided. A separate server is required.
• Weighted: Servers with a higher weight value will receive a larger percentage
of connections. Set the server weight when adding a server.
• 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 go 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.
• Least RTT: Directs requests to the 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 server that has the least number of
current connections. This method works best in environments where the
servers or other equipment you are load balancing have similar capabilities.
Persistence Configure persistence to make sure that a user is connected to the same server
every time they make a request that is part of the same session.
When you configure persistence, the FortiGate unit load balances a new session
to a real server according to the Load Balance Method. 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.
You can configure persistence if Type is set to HTTP, HTTPS, or SSL.
• Select None for no persistence. Sessions are distributed solely according to
the Load Balance Method. Setting Load Balance Method to Static (the
default) results in behavior equivalent to persistence. See the description of
Load Balance Method for more information.
• Select HTTP Cookie so that all HTTP or HTTPS sessions with the same
HTTP session cookie are sent to the same real server. HTTP Cookie is
available if Type is set to HTTP or HTTPS. See the description of the config
firewall VIP command in the FortiGate CLI Reference for information
about advanced HTTP Cookie persistence options.
• Select SSL Session ID so that all sessions with the same SSL session ID are
sent to the same real server. SSL Session ID is available if Type is set to
HTTPS or SSL.
Note: The Static load balancing method provides persistence as long as the
number of real servers does not change.
HTTP Select to use the FortiGate unit’s HTTP proxy to multiplex multiple client
Multiplexing connections destined for the web server into a few connections between the
FortiGate unit and the web server. This can improve performance by reducing
server overhead associated with establishing multiple connections. The server
must be HTTP/1.1 compliant.
This option appears only if HTTP or HTTS are selected for Type.
Note: Additional HTTP Multiplexing options are available in the CLI. For more
information, see the FortiGate CLI Reference.

FortiGate Version 4.0 MR1 Administration Guide


474 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Load Balance Configuring real servers

Preserve Select to preserve the IP address of the client in the X-Forwarded-For HTTP
Client IP header. This can be useful if you require logging on the server of the client’s
original IP address. If this option is not selected, the header will contain the IP
address of the FortiGate unit.
This option appears only if HTTP or HTTS are selected for Type, and is available
only if HTTP Multiplexing is selected.
SSL Select to accelerate clients’ SSL connections to the server by using the FortiGate
Offloading unit to perform SSL operations, then select which segments of the connection
will receive SSL offloading.
• Client <-> FortiGate
Select to apply hardware accelerated SSL only to the part of the connection
between the client and the FortiGate unit. The segment between the
FortiGate unit and the server will use clear text communications. This results
in best performance, but cannot be used in failover configurations where the
failover path does not have an SSL accelerator.
• Client <-> FortiGate <-> Server
Select to apply hardware accelerated SSL to both parts of the connection: the
segment between client and the FortiGate unit, and the segment between the
FortiGate unit and the server. The segment between the FortiGate unit and
the server will use encrypted communications, but the handshakes will be
abbreviated. This results in performance which is less than the other option,
but still improved over communications without 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.
SSL 3.0, TLS 1.0, and TLS 1.1 are supported.
SSL Offloading appears only if HTTPS or SSL are selected for Type, and only on
FortiGate models with hardware that supports SSL acceleration.
Note: Additional SSL Offloading options are available in the CLI. For more
information, see the FortiGate CLI Reference.
Certificate Select the certificate to use with SSL Offloading. The certificate key size must be
1024 or 2048 bits. 4096-bit keys are not supported.
This option appears only if HTTPS or SSL are selected for Type, and is available
only if SSL Offloading is selected.
Health Check Select which health check monitor configuration will be used to determine a
server’s connectivity status.
For information on configuring health check monitors, see “Configuring health
check monitors” on page 476.
Comments Any comments or notes about this virtual server.
3 Select OK.

Configuring real servers


Configure a real server to bind it to a virtual server.
To view the real server list, go to Firewall > Load Balance > Real Server.

Figure 268: Real server list

Delete
Edit

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 475
http://docs.fortinet.com/ • Feedback
Configuring health check monitors Firewall Load Balance

Create New Select to add real servers. For more information, see “To create a real
server” on page 476.
IP Address Select the blue arrow beside a virtual server name to view the IP
addresses of the real servers that are bound to it.
Port The port number on the destination network to which the external port
number is mapped.
Weight The weight value of the real server. The higher the weight value, the
higher the percentage of connections the server will handle.
Max Connection 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.
Delete icon Remove the real server from the list.
Edit icon Edit the real server to change any virtual server option.

To create a real server


1 Go to Firewall > Load Balance > Real Server > Create New.

Figure 269: Creating a real server

2 Complete the following:

Virtual Server Select the virtual server to which you want to bind this real server.
IP Enter the IP address of the real server.
Port Enter the port number on the destination network to which the external
port number is mapped.
Weight Enter the weight value of the real server. The higher the weight value,
the higher the percentage of connections the server will handle. A
range of 1-255 can be used. This option is available only if the
associated virtual server’s load balance method is Weighted.
Max Connection Enter the limit on the number of active connections directed to a real
server. A range of 1-99999 can be used. 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.

3 Select OK.

Configuring health check monitors


You can specify which health check monitor configuration to use when polling to
determine a virtual server’s connectivity status.

FortiGate Version 4.0 MR1 Administration Guide


476 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Load Balance Configuring health check monitors

Health check monitor configurations can specify TCP, HTTP or ICMP PING. A health
check occurs every number of seconds indicated by the interval. If a reply is not received
within the timeout period, and you have configured the health check to retry, it will attempt
a health check again; otherwise, the virtual server is deemed unresponsive, and load
balancing will compensate by disabling traffic to that server until it becomes responsive
again.

Figure 270: Health check monitor

Delete
Edit

Create New Select to add a health check monitor configuration. For more information, see
“To create a health check monitor configuration” on page 477.
Name The name of the health check monitor configuration. The names are grouped
by the health check monitor types.
Details The details of the health check monitor configuration, which vary by the type of
the health check monitor, and do not include the interval, timeout, or retry,
which are settings common to all types.
This field is empty if the type of the health check monitor is PING.
Delete Select to remove the health check monitor configuration. This option appears
only if the health check monitor configuration is not currently being used by a
virtual server configuration.
Edit Select to change the health check monitor configuration.

To create a health check monitor configuration


1 Go to Firewall > Virtual IP > Health Check Monitor > Create New.

Figure 271: Creating a health check monitor

2 Complete the following:

Name Enter the name of the health check monitor configuration.


Type Select the protocol used to perform the health check.
• TCP
• HTTP
• PING
Port Enter the port number used to perform the health check.
This option does not appear if the Type is PING.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 477
http://docs.fortinet.com/ • Feedback
Monitoring the servers Firewall Load Balance

URL Enter the URL that will receive the HTTP request.
This option appears only if Type is HTTP.
Matched Content Enter the HTTP reply content that must be present to indicate proper server
connectivity.
This option appears only if Type is HTTP.
Interval Enter the number of seconds between each server health check.
Timeout Enter the number of seconds which must pass after the server health check
to indicate a failed health check.
Retry Enter the number of times, if any, a failed health check will be retried before
the server is determined to be inaccessible.
3 Select OK.

Monitoring the servers


You can monitor the status of each virtual server and real server and start or stop the real
servers.

Figure 272: Server monitor

Virtual Server The IP addresses of the existing virtual servers.


Real Server The IP addresses of the existing real servers.
Health Status Display the health status according to the health check results for each real
server. A green arrow means the server is up. A red arrow means the server is
down.
Monitor Events Display each real server's up and down times.
Active Sessions Display each real server's active sessions.
RTT (ms) Display the Round Trip Time of each real server. By default, the RTT is “<1".
This value will change only when ping monitoring is enabled on a real server.
Bytes Processed Display the traffic processed by each real server.
Graceful Select to start or stop real servers. When stopping a server, the FortiGate unit
Stop/Start will not accept new sessions but will wait for the active sessions to finish.

FortiGate Version 4.0 MR1 Administration Guide


478 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile What is a protection profile?

Firewall Protection Profile


Protection profiles contain settings for many application layer and other types of
protection, such as antivirus, web filtering, and logging, that you can apply to a firewall
policy. For information on applying a protection profile to a firewall policy, see “Configuring
firewall policies” on page 391.
If you enable virtual domains (VDOMs) on the FortiGate unit, firewall protection profiles
are configured separately for each virtual domain. For more information, see “Using virtual
domains” on page 159.
This section contains the following topics:
• What is a protection profile?
• Adding a protection profile to a firewall policy
• Default protection profiles
• Viewing the protection profile list
• SSL content scanning and inspection
• Configuring a protection profile

What is a protection profile?


A protection profile is a group of settings that you can apply to one or more firewall
policies.
Because protection profiles can be used by more than one firewall policy, you can
configure one protection profile for the traffic types handled by a set of firewall policies
requiring identical protection levels and types, rather than repeatedly configuring those
same protection profile settings for each individual firewall policy.
For example, while traffic between trusted and untrusted networks might need strict
protection, traffic between trusted internal addresses might need moderate protection. To
provide the different levels of protection, you might configure two separate protection
profiles: one for traffic between trusted networks, and one for traffic between trusted and
untrusted networks.

Note: If the firewall policy requires authentication, do not select the protection profile in the
firewall policy. The protection profile is specific to the authenticating user group. For details
on configuring the protection profile associated with the user group, see “Configuring a user
group” on page 669.

You can use protection profiles to configure:


• antivirus protection
• web filtering
• FortiGuard Web Filtering
• email filtering
• IPS
• data leak prevention sensor
• dashboard statistics

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 479
http://docs.fortinet.com/ • Feedback
Adding a protection profile to a firewall policy Firewall Protection Profile

• application control
• logging for traffic which violates the protection profile.

Adding a protection profile to a firewall policy


Protection profiles are used when specified in one or more firewall policies whose Action
is set to ACCEPT, IPSEC, or SSL VPN.
For example, if you create a protection profile containing SMTP antivirus settings that you
want to apply to all incoming SMTP connections, you might select that protection profile in
all external-to-internal firewall policies whose service group contain the SMTP service.
Protection profiles can contain settings relevant to many different services. Each firewall
policy uses the subset of the protection profile settings which apply to its specified
Service. In this way, you might define one protection profile that can be used by many
firewall policies, each policy using a different or overlapping subset of the protection
profile.

To add a protection profile to a firewall policy


1 Go to Firewall > Policy.
If virtual domains are enabled on the FortiGate unit, protection profiles are applied
separately in firewall policies for each virtual domain (VDOM). To access firewall
policies, first select a virtual domain from the main menu.
2 Select Create New to add a policy, or select Edit for the policy to which you want to
apply the protection profile.
3 Enable Protection Profile in the firewall policy.
4 Select the protection profile that you want to apply to the firewall policy.
The firewall policy will use settings from the protection profile that apply to its Services.
5 If you are creating a new firewall policy, configure other required policy options. For
more information, see “Configuring firewall policies” on page 391.
6 Select OK.

Default protection profiles


FortiGate units have four default protection profiles. You can use these default protection
profiles as bases for creating your own.

Strict Apply maximum protection to HTTP, FTP, IMAP, POP3, and SMTP traffic. The
strict protection profile may not be useful under normal circumstances, but it is
available when maximum protection is required.
Scan Apply virus scanning to HTTP, FTP, IMAP, POP3, and SMTP traffic. Quarantine is
also selected for all content services. On FortiGate models with a hard drive, if
antivirus scanning finds a virus in a file, the file is quarantined on the FortiGate
hard disk. If a FortiAnalyzer unit is configured, files are quarantined remotely.
Quarantine permits system administrators to inspect, recover, or submit
quarantined files to Fortinet for analysis.
Web Apply virus scanning and web content filtering to HTTP traffic. Add this protection
profile to firewall policies that control HTTP traffic.
Unfiltered Apply no scanning, blocking or IPS. Use the unfiltered content profile if no content
protection for content traffic is required. Add this protection profile to firewall
policies for connections between highly trusted or highly secure networks where
content does not need to be protected.

FortiGate Version 4.0 MR1 Administration Guide


480 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Viewing the protection profile list

Viewing the protection profile list


Both default and customized protection profiles appear in the protection profile list.
To view the protection profile list, go to Firewall > Protection Profile.

Figure 273: Default protection profiles

Delete
Edit

Delete
Edit

Create New Add a protection profile.


Name The name of the protection profile.
Delete icon Delete a protection profile from the list. The Delete icon appears only if the
protection profile is not currently selected in a firewall policy or user group.
Edit icon Modify a protection profile.

SSL content scanning and inspection


Using SSL content scanning and inspection you can apply antivirus scanning, web
filtering, FortiGuard web filtering, email filtering, DLP, and DLP archiving to HTTPS,
IMAPS, POP3S, and SMTPS traffic. To perform SSL content scanning and inspection, the
FortiGate unit does the following:
• intercepts and decrypts HTTPS, IMAPS, POP3S, and SMTPS sessions between
clients and servers (FortiGate SSL acceleration speeds up decryption)
• applies content inspection to decrypted content, including:
• HTTPS, IMAPS, POP3S, and SMTPS Antivirus, DLP, and DLP archiving
• HTTPS web filtering and FortiGuard web filtering
• IMAPS, POP3S, and SMTPS email filtering
• re-encrypts the sessions and forwards them to their destinations.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 481
http://docs.fortinet.com/ • Feedback
SSL content scanning and inspection Firewall Protection Profile

Figure 274: FortiGate SSL content scanning and inspection packet flow

3 1
2

Decrypted
packets

Protection Profile content Content scanning


4
scanning and inspection and inspection
applied (antivirus, web filtering,
spam filtering, DLP,
content archiving)

SSL decrypt/encrypt process Session encrypted


SSL Decrypt/
3 decrypts SSL sessions 5 using SSL session
Encrypt Process
using session certificate certificate and key
and key

Protection profile includes Protection


2
SSL content scanning and profile
inspection

Encrypted 3
2
1 3
2
1
Encrypted
packets Firewall packets

HTTPS, IMAPS, POP3S or 6 HTTPS, IMAPS,


Client Starts 1 SMTPS encrypted packets Encrypted packets POP3S, or
HTTPS, IMAPS, accepted by firewall policy forwarded to destination SMTPS Server
POP3S or
SMTPS session

Supported FortiGate models


FortiGate models that support SSL acceleration also support SSL content scanning and
inspection. The following FortiGate models support SSL content scanning and inspection:
• 110C
• 111C
• 310B
• 602B
• 3016B
• 3600A
• 3810A
• 5005FA2
• 5001A.

Setting up certificates to avoid client warnings


FortiGate SSL content scanning and inspection intercepts the SSL keys that are passed
between clients and servers during SSL session handshakes and substitutes spoofed
keys. Two encrypted SSL sessions are set up, one between the client and the FortiGate
unit, and a second one between the FortiGate unit and the server. Inside the FortiGate unit
the packets are decrypted.

FortiGate Version 4.0 MR1 Administration Guide


482 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile SSL content scanning and inspection

While the SSL sessions are being set up, the client and server communicate in clear text
to exchange SSL session keys. The session keys are based on the client and server
certificates. The FortiGate SSL decrypt/encrypt process intercepts these keys and uses a
built-in signing CA certificate named Fortinet_CA_SSLProxy to create keys to send to the
client and the server. This signing CA certificate is used only by the SSL decrypt/encrypt
process. The SSL decrypt/encrypt process then sets up encrypted SSL sessions with the
client and server and uses these keys to decrypt the SSL traffic to apply content scanning
and inspection.
Some client programs (for example, web browsers) can detect this key replacement and
will display a security warning message. The traffic is still encrypted and secure, but the
security warning indicates that a key substitution has occurred.
You can stop these security warnings by importing the signing CA certificate used by the
server into the FortiGate unit SSL content scanning and inspection configuration. Then the
FortiGate unit creates keys that appear to come from the server and not the FortiGate unit.

Note: You can add one signing CA certificate for SSL content scanning and inspection. The
CA certificate key size must be 1024 or 2048 bits. 4096-bit keys are not supported for SSL
content scanning and encryption.

You can replace the default signing CA certificate, Fortinet_CA_SSLProxy, with another
signing CA certificate. To do this you need the signing CA certificate file, the CA certificate
key file, and the CA certificate password.
All SSL content scanning and inspection uses the same signing CA certificate. If your
FortiGate unit is operating with virtual domains enabled, the same signing CA certificate is
used by all virtual domains.

To add a signing CA certificate for SSL content scanning and inspection


1 Obtain a copy of the signing CA certificate file, the CA certificate key file, and the
password for the CA certificate.
2 Go to System > Certificates > Local Certificates and select Import.
3 Set Type to Certificate.
4 For Certificate file use the Browse button to select the signing CA certificate file.
5 For Key file use the Browse button to select the CA certificate key file.
6 Enter the CA certificate Password.

Figure 275: Importing a signing CA certificate for SSL content scanning and inspection

7 Select OK.
The CA certificate is added to the Local Certificates list. In this example the signing CA
certificate name is Example_CA. This name comes from the certificate file and key file
name. If you want the certificate to have a different name, change these file names.
8 Add the imported signing CA certificate to the SSL content scanning and inspection
configuration. Use the following CLI command if the certificate name is Example_CA.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 483
http://docs.fortinet.com/ • Feedback
SSL content scanning and inspection Firewall Protection Profile

config firewall ssl setting


set caname Example_CA
end
The Example_CA signing CA certificate will now be used by SSL content scanning and
inspection for establishing encrypted SSL sessions.

Configuring SSL content scanning and inspection


If SSL content scanning and inspection is available on your FortiGate unit, you can
configure the following SSL content scanning and inspection settings:

Predefined firewall The IMAPS, POP3S and SMTPS predefined services. You can select
services these services in a firewall policy and a DoS policy. For more information,
see Table 46, “Predefined services,” on page 428.
Protocol Recognition The TCP port numbers that the FortiGate unit inspects for HTTPS, IMAPS,
POP3S, and SMTPS. Go to Firewall > Protection Profile. Add or edit a
protection profile and configure Protocol Recognition for HTTPS, IMAPS,
POP3S, and SMTPS.
Using protocol recognition you can also configure the FortiGate unit to just
perform URL filtering of HTTPS or to use SSL content scanning and
inspection to decrypt HTTPS so that the FortiGate unit can also apply
Antivirus and DLP content inspection and DLP archiving to HTTPS. Using
SSL content scanning and inspection to decrypt HTTPS also allows you to
apply more web filtering and FortiGuard Web Filtering options to HTTPS.
For more information, see “Protocol recognition options” on page 487.
Antivirus Antivirus options including virus scanning, file filtering, and client
comforting for HTTPS, IMAPS, POP3S, and SMTPS.
Go to Firewall > Protection Profile. Add or edit a protection profile and
configure Anti-Virus for HTTPS, IMAPS, POP3S, and SMTPS. For more
information, see “Anti-Virus options” on page 489.
Antivirus quarantine Antivirus quarantine options to quarantine files in HTTPS, IMAPS, POP3S,
and SMTPS sessions.
Go to UTM > AntiVirus > Config. You can quarantine infected files,
suspicious files, and blocked files found in IMAPS, POP3S, and SMTPS
sessions. You can also quarantine infected files and suspicious files found
in HTTPS sessions. For more information, see “Configuring quarantine
options” on page 525.
Web Filtering Web filtering options for HTTPS:
• Web Content Filter
• Web Content Exempt
• Web URL Filter
• ActiveX Filter
• Cookie Filter
• Java Applet Filter
• Web Resume Download Block
• Block invalid URLs
• HTTP POST Action
Go to Firewall > Protection Profile. Add or edit a protection profile and
configure Web Filtering for HTTPS. For more information, see “Web
Filtering options” on page 493.

FortiGate Version 4.0 MR1 Administration Guide


484 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile SSL content scanning and inspection

FortiGuard Web FortiGuard Web Filtering options for HTTPS:


Filtering • Enable FortiGuard Web Filtering
• Enable FortiGuard Web Filtering Overrides
• Provide details for blocked HTTP 4xx and 5xx errors
• Rate images by URL (blocked images will be replaced with blanks)
• Allow websites when a rating error occurs
• Strict Blocking
• Rate URLs by domain and IP address
Go to Firewall > Profile. Add or edit a protection profile and configure Web
Filtering > FortiGuard Web Filtering for HTTPS. For more information, see
“FortiGuard Web Filtering options” on page 495.
Email Filtering Email filtering options for IMAPS, POP3S, and SMTPS:
• FortiGuard Email Filtering (or Antispam) IP address check, URL check,
E-mail checksum check, and Spam submission
• IP address BWL check
• HELO DNS lookup
• E-mail address BWL check
• Return e-mail DNS check
• Banned word check
• Spam Action
• Tag Location
• Tag Format
Go to Firewall > Protection Profile. Add or edit a protection profile and
configure Spam Filtering for IMAPS, POP3S, and SMTPS. For more
information, see “Email Filtering options” on page 498.
Data Leak Prevention DLP for HTTPS, IMAPS, POP3S, and SMTPS. To apply DLP, follow the
steps below:
• Go to UTM > Data Leak Prevention > Rule to add DLP rules. For
HTTPS, add an HTTP rule and select HTTPS POST and HTTPS GET.
For IMAPS, POP3S, and SMTPS, add an Email rule and select
IMAPS, POP3S, and SMTPS. See “Adding or configuring DLP rules”
on page 596.
• Go to UTM > Data Leak Prevention > Sensor and add the DLP rules to
a DLP sensor. See “Adding or editing a rule or compound rule in a DLP
sensor” on page 585.
• Go to Firewall > Protection Profile. Add or edit a protection profile and
use Data Leak Prevention Sensor to add the DLP sensor to a
protection profile. Note: In a protection profile, if you set Protocol
Recognition > HTTPS Content Filtering Mode to URL Filtering, DLP
rules cannot inspect HTTPS. Set this option to Deep Scan.
• Go to Firewall > Policy and add the protection profile to a firewall
policy. See “Data Leak Prevention Sensor options” on page 501.
DLP archiving DLP archiving for HTTPS, IMAPS, POP3S, and SMTPS. Add DLP Rules
for the protocol to be archived. See “DLP archiving” on page 588.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 485
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Displaying DLP meta- DLP archive information on the Log and Archive Statistics widget on the
information on the system dashboard for HTTPS, IMAPS, POP3S, and SMTPS.
system dashboard Go to Firewall > Protection Profile. Add or edit a protection profile and
open Data Leak Prevention Sensor. For Displaying content meta-
information on the system dashboard select HTTPS, IMAPS, POP3S, and
SMTPS as required.
These options display meta-information on the Statistics dashboard
widget. For more information, see “Viewing DLP Archive information on
the Statistics widget” on page 130.
Archive SPAM email DLP archiving of email tagged as spam by FortiGate Email Filtering in
IMAPS, POP3S, and SMTPS sessions. Archive SPAMed emails to
FortiAnalyzer/FortiGuard is available only if you have configured logging to
a FortiAnalyzer unit or to the FortiGuard Analysis and Management
Service.
Go to Firewall > Protection Profile. Add or edit a protection profile and
select the Expand Arrow to view Data Leak Prevention Sensor. For
Archive SPAMed emails to FortiAnalyzer/FortiGuard, select IMAPS,
POP3S, and SMTPS as required. For more information, see “Data Leak
Prevention Sensor options” on page 501 and “DLP archiving” on
page 588.

Configuring a protection profile


If the default protection profiles do not provide the settings required, you can create
custom protection profiles.
To add a protection profile, go to Firewall > Protection Profile and select Create New.

Figure 276: New Protection Profile

Expand Arrow

FortiGate Version 4.0 MR1 Administration Guide


486 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Expand Arrow

Profile Name Enter a name for the protection profile.


Comments Enter a description of the profile. The maximum length is 63 characters.
Protocol Recognition See “Protocol recognition options” on page 487.
Anti-Virus See “Anti-Virus options” on page 489.
IPS See “IPS options” on page 492.
Web Filtering See “Web Filtering options” on page 493.
FortiGuard Web Filtering See “FortiGuard Web Filtering options” on page 495.
Email Filtering See “Email Filtering options” on page 498.
Data Leak Prevention See “Data Leak Prevention Sensor options” on page 501.
Sensor
Application Control See “Application Control options” on page 502
Logging See “Logging options” on page 503.

Protocol recognition options


You configure protocol recognition options to set the HTTPS content filtering mode and to
select the TCP port numbers that the protection profile monitors for the HTTP, HTTPS,
SMTP, POP3, IMAP, NNTP, and FTP content protocols.
If your FortiGate unit supports SSL content scanning and inspection you can also select
the TCP port numbers for SMTPS, POP3S, and IMAPS. You can also configure the
HTTPS content filtering mode. For more information, see “SSL content scanning and
inspection” on page 481.
By default the protection profile monitors the default content protocol port numbers (for
example, port 80 for HTTP). You can edit the settings for each content protocol and select
inspection for all port numbers for that protocol, or select one or more port numbers to
monitor for that protocol.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 487
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

To configure protocol recognition options, go to Firewall > Protection Profile. Select Create
New to add a protection profile, or the Edit icon beside an existing protection profile. Then
select the Expand Arrow beside Protocol Recognition, enter the information as described
below, and select OK.

Figure 277: Protection profile Protocol Recognition options (SSL content scanning and
inspection)

Add or
Remove
Port
Numbers

Edit Monitored
Ports

Figure 278: Protection profile Protocol Recognition options

Add or
Remove
Port
Numbers

Edit Monitored
Ports

Note: If your FortiGate unit supports SSL content scanning and inspection, you must set
HTTPS Content Filtering Mode to Deep Scan before you can configure additional HTTPS
content scanning protection profile options.

FortiGate Version 4.0 MR1 Administration Guide


488 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

HTTPS Content Filtering Mode If your FortiGate unit supports SSL content scanning and
inspection, you can select the content filtering mode used for
HTTPS traffic. The mode can be:
URL Filtering This option limits HTTPS content filtering to URL filtering only. If
you select this option the FortiGate unit does not perform SSL
content scanning and inspection of HTTPS traffic. Instead the
FortiGate unit just applies web filtering to HTTPS URLs. Also, if
you select URL Filtering, you cannot select any Anti-Virus options
for HTTPS. Under Web Filtering you can select only Web URL
Filter and Block invalid URLs for HTTPS. Selecting URL Filtering
also limits the FortiGuard Web Filtering options that you can
select for HTTPS.
Deep Scan (Decryption on Select this option to apply full SSL content scanning and
SSL Traffic) inspection of HTTPS traffic.
Protocol The names of the content protocols that you can configure
recognition for: HTTP, HTTPS, SMTP, POP3, IMAP, NNTP, and
FTP.
If your FortiGate unit supports SSL content scanning and
inspection the content protocols also include SMTPS, POP3S,
and IMAPS.
Monitored Ports The port numbers that the protection profile monitors for each
content protocol. You can select multiple port numbers to monitor
for each content protocol. For HTTP, SMTP, POP3, IMAP, NNTP,
and FTP you can also select Inspect All Ports to monitor all ports
for these content protocols. Monitoring all ports means the
protection profile uses protocol recognition techniques to
determine the protocol of a communication session independent
of the port number that the session uses.
Edit icon Select Edit for a content protocol to configure how the protection
profile monitors traffic for that content protocol. Select one of the
following options:
Inspect All Ports Select to monitor all ports for the content protocol. This option is
available for HTTP, SMTP, POP3, IMAP, NNTP, and FTP.
Specify Ports Select this option and then enter the port numbers to monitor for
the content protocol. You can specify up to 20 ports for each
content protocol.

Anti-Virus options
You can apply antivirus options through a protection profile for the HTTP, SMTP, POP3,
IMAP, NNTP, and content protocols.
If your FortiGate unit includes SSL content inspection and filtering, you can also apply
antivirus scanning options through a protection profile for HTTPS, IMAPS, POP3S, and
SMTPS content protocols. For more information, see “SSL content scanning and
inspection” on page 481.

Note: You cannot select Anti-Virus options for HTTPS if under protocol recognition HTTPS
Content Filtering Mode is set to URL Filtering. For more information, see “Protocol
recognition options” on page 487.

To configure antivirus options, go to Firewall > Protection Profile. Select Create New to
add a protection profile, or the Edit icon beside an existing protection profile. Then select
the Expand Arrow beside Anti-Virus, enter the information as described below, and select
OK. For more antivirus configuration options, see “AntiVirus” on page 517.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 489
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Figure 279: Protection Profile Anti-Virus options

Figure 280: Protection Profile Anti-Virus options (SSL content scanning and inspection)

Virus Scan Select virus scanning for each protocol. Virus Scan includes
grayware, as well as heuristic scanning. However, by default neither is
enabled. To enable specific grayware, go to UTM > AntiVirus >
Grayware. To enable heuristic scanning, see the config
antivirus heuristic command in the FortiGate CLI Reference.
Note: When you enable virus scanning, scanning by splice, also
called streaming mode, is enabled automatically. When scanning by
splice, the FortiGate unit simultaneously scans and streams traffic to
the destination, terminating the stream to the destination if a virus is
detected. For details on configuring splicing, see the splice option
for each protocol in the config firewall profile command in
the FortiGate CLI Reference. For details on splicing behavior for each
protocol, see the Knowledge Center article FortiGate Proxy Splice and
Client Comforting Technical Note.
File Filter Select to filter files, then under Option, specify a file filter, which can
consist of file name patterns and file types. For more information, see
“File Filter” on page 521.
Quarantine Select for each protocol to quarantine suspect files for later inspection
or submission to Fortinet for analysis.
This option appears only if the FortiGate unit has a hard drive or a
configured FortiAnalyzer unit, and will take effect only if you have first
enabled and configured the quarantine. For more information, see
“File Quarantine” on page 524.

FortiGate Version 4.0 MR1 Administration Guide


490 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Pass Fragmented Emails Select to allow fragmented email for mail protocols (IMAP, POP3, and
SMTP as well as IMAPS, POP3S, and SMTPS if SSL content
scanning and inspection is supported). Fragmented email messages
cannot be scanned for viruses.
Comfort Clients Select client comforting for the HTTP, FTP, and HTTPS protocols. See
“HTTP and FTP client comforting” on page 491.
Interval The time in seconds before client comforting starts sending data after
the download has begun, and also the time interval between sending
subsequent data.
Amount The number of bytes sent at each interval.
Oversized File/Email Select Block or Pass for files and email messages exceeding
configured thresholds for each protocol.
For email scanning, the oversize threshold refers to the final size of
the email, including attachments, after encoding by the email client.
Email clients can use a variety of encoding types; some result in larger
file sizes than the original attachment. The most common encoding,
base64, translates 3 bytes of binary data into 4 bytes of base64 data.
As a result, a file may be blocked or logged as oversized even if the
attachment is several megabytes smaller than the configured oversize
threshold.
Threshold If the file is larger than the threshold value in megabytes, the file is
passed or blocked. The maximum threshold for scanning in memory is
10% of the FortiGate unit’s RAM.
Allow Invalid Server If your FortiGate unit supports SSL content scanning and inspection,
Certificate you can allow HTTPS, IMAPS, POP3S, and SMTPS sessions that
include an invalid server certificate. If these options are not selected,
HTTPS, IMAPS, POP3S, and SMTPS with invalid server certificates
are blocked. Use this feature to validate server certificates.
Quarantine Virus Sender Select Enabled to quarantine or ban either the IP address of the
(to Banned Users List) sender of the virus or the FortiGate interface that received the virus.
The sender’s IP address or the interface that received the virus is
added to the banned users list. For more information about the
banned user list including how to manage the duration of items and
how to remove them manually, see “NAC quarantine and the Banned
User list” on page 678.
Method If a virus is found, select the method used to quarantine the virus
sender. You can select Source IP Address to add the sender’s source
IP address to the banned users list, or you can select Virus’s Incoming
Interface to add the interface that received the virus to the banned
user list.
Expires Select Indefinite to permanently quarantine virus senders. Only a
FortiGate administrator can remove them from the banned users list.
Or, configure how long the virus sender remains on the banned user
list in minutes, hours, or days. A FortiGate administrator can manually
remove a virus sender from the banned user list before the expiry
time.
Add signature to outgoing Create and enable a signature to append to outgoing SMTP email
emails messages. The signature will also be appended to outgoing SMTPS
email messages if your FortiGate unit supports SSL content scanning
and inspection.

HTTP and FTP client comforting


In general, client comforting provides a visual display of progress for web page loading or
HTTP or FTP file downloads. Client comforting does this by sending the first few packets
of the file or web page being downloaded to the client at configured time intervals so that
the client is not aware that the download has been delayed. The client is the web browser
or FTP client. Without client comforting, clients and their users have no indication that the
download has started until the FortiGate unit has completely buffered and scanned the
download. During this delay users may cancel or repeatedly retry the transfer, thinking it
has failed.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 491
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

The appearance of a client comforting message (for example, a progress bar) is client-
dependent. In some instances, there will be no visual client comforting cue.
During client comforting, if the file being downloaded is found to be infected, then the
FortiGate unit caches the URL and drops the connection. The client does not receive any
notification of what happened because the download to the client had already started.
Instead the download stops, and the user is left with a partially downloaded file.
If the user tries to download the same file again within a short period of time, then the
cached URL is matched and the download is blocked. The client receives the Infection
cache message replacement message as a notification that the download has been
blocked. The number of URLs in the cache is limited by the size of the cache.

Caution: Client comforting can send unscanned and therefore potentially infected content
to the client. You should only enable client comforting if you are prepared to accept this
risk. Keeping the client comforting interval high and the amount low will reduce the amount
of potentially infected data that is downloaded.

FTP and HTTP client comforting steps


The following steps show how client comforting works for an FTP or HTTP download of a
10 Mbyte file with the client comforting interval set to 20 seconds and the client comforting
amount set to 512 bytes.
1 The FTP or HTTP client requests the file.
2 The FortiGate unit buffers the file from the server. The connection is slow, so after 20
seconds about one half of the file has been buffered.
3 The FortiGate unit continues buffering the file from the server, and also sends 512
bytes to the client.
4 After 20 more seconds, the FortiGate unit sends the next 512 bytes of the buffered file
to the client.
5 When the file has been completely buffered, the client has received the following
amount of data:
ca * (T/ci) bytes == 512 * (40/20) == 512 * 2 == 1024 bytes,
where ca is the client comforting amount, T is the buffering time and ci is the client
comforting interval.
6 FTP client: If the file does not contain a virus, the FortiGate unit sends the rest of the
file to the client. If the file is infected, the FortiGate unit closes the data connection and
sends the FTP Virus replacement message to the client.
HTTP client: If the file does not contain a virus, the FortiGate unit sends the rest of the
file to the client. If the file is infected, the FortiGate unit closes the data connection but
cannot send a message to the client.

IPS options
You can use the IPS options in a protection profile to enable IPS for the protection profile
and add an IPS sensor. To add an IPS sensor, go to Firewall > Protection Profile. Select
Create New to add a protection profile, or the Edit icon beside an existing protection
profile. Then select the Expand Arrow beside IPS, select the check box to enable IPS,
select an IPS Sensor, and select OK.
For more information on IPS, see “Intrusion Protection” on page 531.

FortiGate Version 4.0 MR1 Administration Guide


492 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Figure 281: Protection Profile IPS options

IPS Select to enable and use the specified IPS sensor.


You cannot select denial of service (DoS) sensors through this option. For information on
configuring DoS sensors, see “DoS sensors” on page 545.

Web Filtering options


Web filtering sorts millions of web pages into a wide range of categories that you can
allow, block or monitor. Content block uses words and patterns to block web pages
containing the words or patterns, URL filtering uses URLs and URL patterns to exempt or
block web pages from specific sources, and FortiGuard web filter provides many
additional categories by which to filter web traffic. In some instances, users may require
access to web sites that are blocked by a policy. An administrator can give the user the
ability to override the block for a specified period of time. For more information about
overrides, see “Web Filter” on page 549.

Note: Protection profile web filtering also includes FortiGuard Web Filtering. For
information about FortiGuard Web Filtering, see “FortiGuard Web Filtering options” on
page 495.

You can configure web filtering for HTTP and HTTPS traffic. If your FortiGate unit supports
SSL content scanning and inspection and if you have set HTTPS Content Filtering Mode
in the Protocol Recognition part of this protection profile to Deep Scan, you can select the
same web filtering options for HTTPS and HTTP. For more information, see “SSL content
scanning and inspection” on page 481 and “Protocol recognition options” on page 487.
Filters defined in the web filtering settings are turned on through a protection profile. To
configure web filtering options, go to Firewall > Protection Profile. Select Create New to
add a protection profile, or the Edit icon beside an existing protection profile. Then select
the Expand Arrow beside Web Filtering, enter the information as described below, and
select OK.

Note: If your FortiGate unit does not support SSL content scanning and inspection, or if you
have set HTTPS Content Filtering Mode to URL Filtering, you can only select URL filtering
and blocking invalid URLs for HTTPS.

Figure 282: Protection Profile Web Filtering options

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 493
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Figure 283: Protection Profile Web Filtering options (SSL content scanning and inspection)

Web Content Filter Select to filter HTTP and HTTPS web pages based on matching the
content of the web page with the words or patterns in the selected web
content filter list. For more information, see “Web content filter” on
page 552.
Web content filter list Select the web content filter list to add to the protection profile. For
more information, see “Creating a new web content filter list” on
page 553.
Threshold Enter a web content filter threshold.
Each entry in the web content filter list added to the protection profile
incudes a score. When a web page is matched with an entry in the
content block list the score is recorded. If a web page matches more
than one entry the score for the web page increases. When the total
score for a web page equals or exceeds the threshold the page is
blocked.
The default score for content block list entry is 10 and the default
threshold is 10. This means that by default a web page is blocked by a
single match. You can change the scores and threshold so that web
pages can only be blocked if there are multiple matches.
Web URL Filter Select to block HTTP and HTTPS web pages based on matching the
URL of the web page with a URL in the selected URL filter list. For
more information, see “URL filter” on page 555.
Web URL filter list Select the URL filter list to add to this protection profile. For more
information, see “Creating a new URL filter list” on page 556.
ActiveX Filter Select to block ActiveX controls.
Cookie Filter Select to block cookies.
Java Applet Filter Select to block Java applets.
Web Resume Download Select to block downloading parts of a file that have already been
Block downloaded. Enabling this option will prevent the unintentional
download of virus files hidden in fragmented files. Note that some
types of files, such as PDFs, are fragmented to increase download
speed, and that selecting this option can cause download interruptions
with these types.
Block invalid URLs Select to block web sites whose SSL certificate’s CN field does not
contain a valid domain name.
FortiGate units always validate the CN field, regardless of whether this
option is enabled. However, if this option is not selected, the following
behavior occurs:
• If the request is made directly to the web server, rather than a web
server proxy, the FortiGate unit queries for FortiGuard Web
Filtering category or class ratings using the IP address only, not
the domain name.
• If the request is to a web server proxy, the real IP address of the
web server is not known. Therefore, rating queries by either or
both the IP address and the domain name is not reliable. In this
case, the FortiGate unit does not perform FortiGuard Web
Filtering.

FortiGate Version 4.0 MR1 Administration Guide


494 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

HTTP POST Action Select the action to take with HTTP POST traffic.
Normal Do not affect HTTP POST traffic.
Block Block HTTP POST requests. When the post request is blocked the
FortiGate unit sends a web page to the user’s web browser instead of
the requested POST page. You can configure the content of this web
page by going to from System > Config > Replacement Message by
customizing the HTTP > POST message.
Comfort Use the comfort amount and interval settings to send “comfort” bytes
to the server in case the client connection is too slow. Select this
option to prevent a server timeout when scanning or other filtering tool
is turned on.
Blocked pages are replaced with a message indicating that the page is not accessible
according to the Internet usage policy. To configure replacement messages, go to
System > Config > Replacement Messages.
For more information on web filter configuration options, see “Web Filter” on page 549.
For details on how web URL filter lists are used with HTTP and HTTPS URLs, see “URL
formats” on page 558.

Character sets and Web content filtering, Email filtering banned word,
and DLP scanning
The FortiGate unit converts HTTP, HTTPS, and email content to the UTF-8 character set
before applying email filtering banned word checking, web filtering and DLP content
scanning as specified in the protection profile.
For email messages, while parsing the MIME content, the FortiGate unit converts the
content to UTF-8 encoding according to the email message charset field before applying
Email filtering banned word checking and DLP scanning.
For HTTP get pages, the FortiGate unit converts the content to UTF-8 encoding according
to the character set specified for the page before applying web content filtering and DLP
scanning.
For HTTP post pages, because character sets are not always accurately indicated in
HTTP posts, you can use the following CLI command to specify up to five character set
encodings.
config firewall profile
edit <profile_name>
set http-post-lang <charset1> [<charset2> ... <charset5>]
end
The FortiGate unit performs a forced conversion of HTTP post pages to UTF-8 for each
specified character set. After each conversion the FortiGate unit applies web content
filtering and DLP scanning to the content of the converted page.

Caution: Specifying multiple character sets reduces web filtering and DLP performance.

To view the list of available character sets, enter set http-post-lang ? from within
the edit shell for the protection profile. Separate multiple character set names with a
space. You can add up to 5 character set names.

FortiGuard Web Filtering options


You can enable and apply FortiGuard Web Filtering options using a protection profile.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 495
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

If you have blocked a pattern using the FortiGuard Web Filtering, but want certain users to
have access to URLs within the pattern, you can use the FortiGate web filtering override
feature. For more information about FortiGuard web filtering, see “FortiGuard - Web Filter”
on page 559.
You can configure FortiGuard Web Filtering for HTTP and HTTPS traffic. If your FortiGate
unit supports SSL content scanning and inspection and if you have set HTTPS Content
Filtering Mode in the Protocol Recognition part of this protection profile to Deep Scan you
can select all but one of the same web filtering options for HTTPS and HTTP. If your
FortiGate unit does not support SSL content scanning and inspection or if you have set
HTTPS Content Filtering Mode to URL Filtering you can have fewer options for HTTPS.
See the field descriptions below for details.
For more information, see “SSL content scanning and inspection” on page 481 and
“Protocol recognition options” on page 487.
To configure FortiGuard Web Filtering options, go to Firewall > Protection Profile. Select
Create New to add a protection profile, or the Edit icon beside an existing protection
profile. Then select the Expand Arrow beside Web Filtering and scroll down to FortiGuard
Web Filtering. Enter the information as described below, and select OK.

Figure 284: Protection Profile FortiGuard Web Filtering options

FortiGate Version 4.0 MR1 Administration Guide


496 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Figure 285: Protection Profile FortiGuard Web Filtering options (SSL content scanning and
inspection)

Enable FortiGuard Web Select to enable FortiGuard Web Filtering for this protection
Filtering profile.
Enable FortiGuard Web Select to enable category overrides. For more information, see
Filtering Overrides “Viewing the override list” on page 560 and “Configuring
administrative override rules” on page 561.
Provide details for blocked Display a replacement message for 400 and 500-series HTTP
HTTP 4xx and 5xx errors errors. If the error is allowed through, malicious or objectionable
sites can use these common error pages to circumvent web
filtering. Only supported for HTTPS if your FortiGate unit supports
SSL content scanning and inspection.
Rate images by URL (blocked Block images that have been rated by FortiGuard. Blocked images
images will be replaced with are replaced on the originating web pages with blanks. Rated
blanks) image file types include GIF, JPEG, PNG, BMP, and TIFF. Only
supported for HTTPS if your FortiGate unit supports SSL content
scanning and inspection.
Allow websites when a rating Allow web pages that return a rating error from the web filtering
error occurs service.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 497
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Strict Blocking This option is enabled by default. Strict Blocking only has an effect
when either a URL fits into a protection profile category and
classification or Rate URLs by domain and IP address is enabled.
With Rate URLs by domain and IP address enabled, all URLs
have two categories and up to two classifications (one set for the
domain and one set for the IP address). All URLs belong to at
least one category (including the Unrated category) and may also
belong to a classification.
If you enable Strict Blocking, a site is blocked if it is in at least one
blocked category or classification and only allowed if all categories
or classifications it falls under are allowed.
If you do not enable Strict Blocking, a site is allowed if it belongs to
at least one allowed category or classification and only blocked if
all categories or classifications it falls under are allowed.
For example, suppose that a protection profile blocks Search
Engines but allows “Image Search”, and that the URL
“images.example.com” falls into the General Interest / Search
Engines category and the Image Search classification.
With Strict Blocking enabled, this URL is blocked because it
belongs to the Search Engines category, which is blocked.
With Strict Blocking disabled, the URL is allowed because it is
classified as Image Search, which the profile allows. It would be
blocked only if both the Search Engines category and Image
Search classification were blocked.
Rate URLs by domain and IP Select to send both the URL and the IP address of the requested
address site for checking, and thus provide additional security against
attempts to bypass the FortiGuard system.
However, because IP rating is not updated as quickly as URL
rating, some false ratings may occur.
Block HTTP redirects by Enable to block HTTP redirects.
rating Many web sites use HTTP redirects legitimately; however, in some
cases, redirects may be designed specifically to circumvent web
filtering, as the initial web page could have a different rating than
the destination web page of the redirect. Not supported for
HTTPS.
Category FortiGuard Web Filtering provides many content categories for
filtering web traffic. Categories reflect the subject matter of the
content.
For each category, select to Allow or Block and, if the category is
blocked, whether or not to Allow Override to permit users to
override the filter if they successfully authenticate. You can also
select to log each traffic occurrence of the category.
Classification In addition to content categories, FortiGuard Web Filtering
provides functional classifications that block whole classes of web
sites based upon their functionality, media type, or source, rather
than the web site’s subject matter.
Using classifications, you can block web sites that host cached
content or that facilitate image, audio, or video searches, or web
sites from spam URLs. Classification is in addition to, and can be
configured separately from, the category.
For each class, select to Allow or Block and, if the class is blocked,
whether or not to Allow Override to permit users to override the
filter if they successfully authenticate. You can also select to log
each traffic occurrence of the class.

Email Filtering options


Several email filters can be configured in the protection profile. With the IP address filter,
FortiGuard AntiSpam extracts the email server source address and sends the IP address
to a FortiGuard Antispam server to check if this IP address matches the list of known
spammers. If the IP address is found, FortiGuard Antispam terminates the session. If
FortiGuard Antispam does not find a match, the email server sends the email to the
recipient. With the URL filter, FortiGuard Antispam checks the body of email messages to

FortiGate Version 4.0 MR1 Administration Guide


498 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

extract any URL links. These URL links are sent to a FortiGuard Antispam server to
determine if any are listed. Spam messages often contain URL links to advertisements
(also called spamvertizing). If a URL match is found, FortiGuard Antispam terminates the
session. If FortiGuard Antispam does not find a match, the email server sends the email to
the recipient. The email checksum filter calculates the checksum of an email message and
sends this checksum to the FortiGuard servers to determine if the checksum is in the
blacklist. The FortiGate unit then passes or marks/blocks the email message according to
the server response.
To configure email filtering options, go to Firewall > Protection Profile. Select Create New
to add a protection profile, or the Edit icon beside an existing protection profile. Then
select the Expand Arrow beside Email Filtering, enter the information as described below,
and select OK.
You can configure email filtering for IMAP, POP3, and SMTP email. If your FortiGate unit
supports SSL content scanning and inspection you can also configure email filtering for
IMAPS, POP3S, and SMTPS email. For information about SSL content scanning and
inspection, see “SSL content scanning and inspection” on page 481.
For more information about the FortiGuard Antispam service, see “FortiGuard Antispam
service” on page 323 and “Configuring the FortiGate unit for FDN and FortiGuard
subscription services” on page 323.
For more email filter configuration options, see “Email filtering” on page 567.
For information about character sets and email filter banned word, see “Character sets
and Web content filtering, Email filtering banned word, and DLP scanning” on page 495.

Note: Some popular email clients cannot filter messages based on the MIME header. For
these clients, select to tag email message subject lines instead.

Figure 286: Protection Profile Email Filtering options

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 499
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Figure 287: Protection Profile Email Filtering options (SSL content scanning and inspection)

FortiGuard Email Filtering Also called FortiGuard Antispam. Select one or more check boxes to
enable protocols (IMAP, POP3, SMTP), then apply the options that
you need. If your FortiGate unit supports SSL content scanning and
inspection you can also enable FortiGuard Antispam for IMAPS,
POP3S, and SMTPS.
IP address check Select to enable the FortiGuard AntiSpam IP address blacklist.
URL check Select to enable the FortiGuard AntiSpam URL blacklist.
E-mail checksum check Select to enable the FortiGuard Antispam email message checksum
blacklist.
Spam submission Select to add a spam submission message and a link to the
message body of all email messages marked as spam by
FortiGuard Antispam. If the receiver considers that the email
message is not spam, he or she can use the link in the message to
inform FortiGuard Antispam. You can change the content of this
message by going to System > Config > Replacement Message and
customizing the Spam > Spam submission message. For more
information, see “Spam replacement messages” on page 257.
IP address BWL check Select to compare the IP address of email message senders to the
selected IP address black/white list and, if a match is found, to take
the action configured in the list for the IP address. For more
information, see “IP address and email address black/white lists” on
page 573.
IP address BWL check Select the IP address black/white list to add to the protection profile.
list For more information, see “Creating a new IP address list” on
page 573.
HELO DNS lookup Select to look up the source domain name (from the SMTP HELO
command) for SMTP email messages.
E-mail address BWL check Select to compare the email address of message senders to the
selected email address black/white list and if a match is found to
take the action configured in the list for the email address. For more
information, see “IP address and email address black/white lists” on
page 573.
E-mail address BWL list Select the email address black/white list to add to the protection
profile. For more information, see “Creating a new email address list”
on page 576.
Return e-mail DNS check Select to enable checking that the domain specified in the reply-to or
from address has an A or MX record.

FortiGate Version 4.0 MR1 Administration Guide


500 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Banned word check Select to block email messages based on matching the content of
the message with the words or patterns in the selected email filter
banned word list. For more information, see “Banned word” on
page 570.
Banned word list Select the banned word list to add to the protection profile. For more
information, see “Creating a new banned word list” on page 571.
Threshold Enter a email filter banned word block threshold.
Each entry in the banned word list added to the protection profile
incudes a score. When an email message is matched with an entry
in the banned word list, the score is recorded. If an email message
matches more than one entry, the score for the email message
increases. When the total score for an email message equals or
exceeds the threshold, the message is tagged as spam.
The default score for a banned word list entry is 10 and the default
threshold is 10. This means that by default an email message is
tagged as spam by a single match. You can change the scores and
threshold so email messages are only tagged as spam if there are
multiple matches.
Spam Action Select to either tag or discard email that the FortiGate unit
determines to be spam. Tagging adds the text in the Tag Format
field to the subject line or header of email identified as spam.
Note: When you enable virus scanning for SMTP and SMTPS in the
Anti-virus section of the protection profile, scanning by splice, also
called streaming mode, is enabled automatically. When scanning by
splice, the FortiGate unit simultaneously scans and streams traffic to
the destination, terminating the stream to the destination if a virus is
detected. For details on configuring splicing, see the splice option
for each protocol in the config firewall profile command in
the FortiGate CLI Reference. For details on splicing behavior for
SMTP, see the Knowledge Center article FortiGate Proxy Splice and
Client Comforting Technical Note.
When virus scanning is enabled for SMTP the FortiGate unit can
only discard spam email if a virus is detected. Discarding
immediately drops the connection. If virus scanning is not enabled,
you can choose to either tag or discard SMTP spam.
Tag Location Select to add the tag to the subject or MIME header of email
identified as spam.
If you select to add the tag to the subject line, the FortiGate unit
converts the entire subject line, including the tag, to UTF-8 format.
This improves display for some email clients that cannot properly
display subject lines that use more than one encoding. For details on
preventing conversion of subject line to UTF-8, see the “System
Settings” chapter of the FortiGate CLI Reference.
To add the tag to the MIME header, you must enable
spamhdrcheck in the CLI for each protocol (IMAP, SMTP, and
POP3). For more information see “profile” in the FortiGate CLI
Reference.
Tag Format Enter a word or phrase with which to tag email identified as spam.
When typing a tag, use the same language as the FortiGate unit’s
current administrator language setting. Tag text using other
encodings may not be accepted. For example, when entering a
spam tag that uses Japanese characters, first verify that the
administrator language setting is Japanese; the FortiGate unit will
not accept a spam tag written in Japanese characters while the
administrator language setting is English. For details on changing
the language setting, see “Settings” on page 286.
Tags must not exceed 64 bytes. The number of characters
constituting 64 bytes of data varies by text encoding, which may vary
by the FortiGate administrator language setting.

Data Leak Prevention Sensor options


You apply data leak prevention (DLP) to traffic by selecting a data leak prevention sensor.
You can use DLP to prevent sensitive data from leaving your network and to provide DLP
archiving.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 501
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

You can also use protection profile DLP settings to:


• display DLP archive meta-information on the Log and Archive Statistics system
dashboard widget
• archive spam email (requires a FortiAnalyzer unit or the FortiGuard Analysis and
Management Service).
To configure DLP sensor options, go to Firewall > Protection Profile. Select Create New to
add a protection profile, or the Edit icon beside an existing protection profile. Then select
the Expand Arrow beside Data Leak Prevention Sensor. Select a DLP sensor, enter the
information as described below, and select OK.
For information about DLP, see “Data Leak Prevention” on page 583.
For information about character sets and DLP scanning, see “Character sets and Web
content filtering, Email filtering banned word, and DLP scanning” on page 495.

Figure 288: Data Leak Prevention Sensor options

Figure 289: Data Leak Prevention Sensor options (SSL content scanning inspection and
FortiAnalyzer unit configured)

Data Leak Select the check box and then specify the DLP sensor to add to the protection
Prevention profile. For more information, see “Adding and configuring a DLP sensor” on
Sensor page 584.

Display DLP For each protocol, select whether or not to display DLP archiving data in the
meta- dashboard Log and Archive Statistics widget. You can select HTTP, HTTPS,
information on FTP, IMAP, POP3, and SMTP.
the system If your FortiGate unit supports SSL content scanning and inspection you can also
select IMAPS, POP3S, and SMTPS.
dashboard
For more information about the Log and Archive Statistics widget, see “Log and
Archive Statistics” on page 117.
Archive For each email protocol, select to archive email messages identified as spam by
SPAMed emails FortiGate Email filtering or by FortiGuard Antispam. You must configure the
to FortiGate unit to log to a FortiAnalyzer unit or enable the FortiGuard Analysis and
Management Service. For more information, see “Configuring spam email
FortiAnalyzer/ message archiving” on page 593.
FortiGuard

Application Control options


You can apply application control options through a protection profile.
For more information about application control, see “Application Control” on page 603.
To configure application control options, go to Firewall > Protection Profile. Select Create
New to add a protection profile, or the Edit icon beside an existing protection profile. Then
select the Expand Arrow beside Application Control and select the application control
black/white list to add to the protection profile.

FortiGate Version 4.0 MR1 Administration Guide


502 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Firewall Protection Profile Configuring a protection profile

Figure 290: Protection Profile Application Control options

Application Select the check box and then specify the application control black/white list
Black/White List to add to the protection profile. For more information, see “Creating a new
application control black/white list” on page 605.

Figure 291: Protection Profile Replacement Message options

Figure 292: Adding an MMS protection profile to a protection profile

Logging options
You can enable logging options in a protection profile to write event log messages when
the options that you have enabled in this protection profile perform an action. For
example, if you enable antivirus protection you could also enable the antivirus protection
profile logging options to write an event log message every time a virus is detected by this
protection profile.
For more information about enabling and configuring event logs, see “Configuring Event
logging” on page 717.
To configure Logging options, go to Firewall > Protection Profile. Select Create New to
add a protection profile, or the Edit icon beside an existing protection profile. Then select
the Expand Arrow beside Logging, enter the information as described below, and select
OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 503
http://docs.fortinet.com/ • Feedback
Configuring a protection profile Firewall Protection Profile

Figure 293: Protection Profile Logging options

Antivirus Viruses Select to log detected viruses.


Blocked Files Select to log blocked files.
Oversized Files / Select to log oversize files and email messages.
E-mails
Web Filtering Content Block Select to log content blocking events.
URL Filter Select to log blocked and exempted URLs.
ActiveX Filter Select to log blocked Active X plugins.
Cookie Filter Select to log blocked cookies.
Java Applet Filter Select to log blocked Java applets.
FortiGuard Web Rating Errors Select to log rating errors.
Filtering (HTTP only)
Email Filtering Log Spam Select to log detected spam.
IPS Log Intrusions Select to log IPS signature and anomaly events.
Application Log Application Select to log Application Control events.
Control Control
Data Leak Log DLP Select to log DLP events.
Prevention
Sensor

FortiGate Version 4.0 MR1 Administration Guide


504 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support VoIP and SIP

SIP support
The Session Initiation Protocol (SIP) is a signaling protocol used for establishing and
conducting multiuser calls over TCP/IP networks using any media. Due to the complexity
of the call setup, not every firewall can handle SIP calls correctly, even if the firewall is
stateful. The FortiGate unit has a pre-defined SIP firewall service that tracks and scans
SIP calls and makes adjustments, to both the firewall state and call data, to ensure a
seamless call is established through the FortiGate unit regardless of its operation mode,
NAT, route, or transparent. FortiGate units support SIP RFC 3261.
You can use protection profiles to control the SIP protocol and SIP call activity.
A statistical summary of SIP protocol activity is also available for managing SIP use.
This section includes some information about VoIP and SIP. It also describes how FortiOS
SIP support works and how to configure the key SIP features. For more configuration
information, see the FortiGate CLI Reference.
The FortiGate unit supports the following SIP features:
• stateful SIP tracking
• RTP Pinholing
• request control
• rate limiting
• event logging
• communication archiving
• NAT IP preservation
• client connection control
• register response acceptance
• Application Level Gateway (ALG) control
• SIP stateful HA
• IPv6 support
This section describes:
• VoIP and SIP
• The FortiGate unit and VoIP security
• How SIP support works
• Configuring SIP

VoIP and SIP


SIP is an IETF protocol for establishing Voice over IP (VoIP) connections. Many VoIP
networks choose SIP to handle multimedia sessions between endpoints. This lightweight
text-based signaling protocol is transported over either Transmission Control Protocol
(TCP) or User Datagram Protocol (UDP). SIP uses invitations to create Session
Description Protocol (SDP) messages that allow participants to agree on a set of
compatible media types.
SIP applications are based on a client-server structure and support user mobility with two
operating modes: proxy and redirect.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 505
http://docs.fortinet.com/ • Feedback
VoIP and SIP SIP support

In proxy mode (shown in Figure 294), SIP clients send requests to the proxy server. The
proxy server either handles the requests or forwards them to other SIP servers. Proxy
servers can insulate and hide SIP users by proxying the signaling messages. To the other
users on the VoIP network, the signaling invitations look as if they come from the SIP
proxy server.

Figure 294: SIP in proxy mode


SIP Proxy Server
2. Client A dials Client B 3. Proxy server looks up phone number
and a request is sent to the SIP proxy server or URL of destination client (Client B) and sends
invite to Client B

IP Network 4. Client B is
notified of incoming
RTP Session
call by proxy server
– phone rings

SIP Client A 5. RTP session opens when SIP Client B


(a@example.com) Client B answers (b@example.com)

1. SIP clients register with SIP server

When the SIP server operates in redirect mode (shown in Figure 295), the SIP client
sends its signaling request to a SIP server, which then looks up the destination address.
The SIP server returns the destination address to the originator of the call, who uses it to
signal the destination SIP client.

Figure 295: SIP in redirect mode


SIP Redirect Server
2. Client A dials Client B and 3. Redirect server looks up phone number
request is sent to SIP redirect server or URL of destination client (Client B) and sends
address back to the caller (Client A)

4. Client A sends invitation


to Client B

IP Network 5. Client B is
notified of incoming
RTP Session call by redirect server
– phone rings

SIP Client A 6. RTP session opens when SIP Client B


(a@example.com) Client B answers (b@example.com)

1. SIP clients register with SIP server

FortiGate Version 4.0 MR1 Administration Guide


506 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support The FortiGate unit and VoIP security

The FortiGate unit and VoIP security


Like data networks, VoIP networks are vulnerable to many of the same security risks,
including denial of service (DoS) attacks, service theft, tampering, and fraud. Many
conventional firewalls cannot protect VoIP networks from attacks because VoIP is
implemented at both the signaling and media layers. VoIP calls cannot go through these
firewalls unless a range of ports are opened – which exposes the network for unauthorized
access.
The FortiGate unit can effectively secure VoIP solutions since it supports VoIP protocols
such as SIP, MGCP, and H.323, and associates state at the signaling layer with packet
flows at the media layer. Using SIP ALG controls, the FortiGate unit can interpret the VoIP
signaling protocols used in the network and dynamically open and close ports (pinholes)
for each specific VoIP call to maintain security.
The FortiGate intrusion prevention system (IPS) provides another strategic line of
defense, particularly against VoIP network predators. The IPS has deep-packet inspection
capabilities to provide continuous surveillance across multiple network sectors
simultaneously, recognizing network traffic expected within each and alerting network
managers to malicious packets and other protocol anomalies.

SIP NAT
The FortiGate unit supports network address translation (NAT) of SIP because the
FortiGate ALG can modify the SIP headers correctly.
This section uses scenarios to explain the FortiGate SIP NAT support.

Source NAT (SIP and RTP)


In the source NAT scenario shown in Figure 296, a SIP phone connects to the Internet
through a FortiGate unit with PPPoE. The FortiGate ALG translates all private IPs in the
SIP contact header into public IPs.
You need to configure an internal to external UDP firewall policy with NAT checked and a
SIP-enabled protection profile. For more information about firewall policies, see “Firewall
Policy” on page 387.

Figure 296: SIP source NAT


217.10.79.9 217.10.69.11

SIP Server RTP Server

SIP service provider has a SIP server


and a separate RTP server

217.233.122.132

Internet

10.72.0.57

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 507
http://docs.fortinet.com/ • Feedback
The FortiGate unit and VoIP security SIP support

Destination NAT (SIP and RTP)


In the destination NAT scenario, a SIP phone can connect to a local IP using a FortiOS
VIP. The FortiGate unit translates the SIP contact header to the IP of the real SIP server
located outside.

Figure 297: SIP destination NAT


217.10.79.9 217.10.69.11

SIP Server RTP Server

SIP service provider has a SIP server


and a separate RTP server

10.72.0.60 217.233.122.132
Internet
10.72.0.57

In the scenario, shown in Figure 297, the SIP phone connects to a VIP (10.72.0.60). The
FortiGate SIP ALG translates the SIP contact header to 217.10.79.9. The FortiGate ALG
will open the Real-time Transport Protocol (RTP) pinholes and manage NAT.
The FortiGate unit also supports a variation of this scenario—the RTP server hides its real
address.

Figure 298: SIP destination NAT-RTP server hidden


219.29.81.21
192.168.200.99

RTP Server

10.0.0.60
217.233.90.60
Internet

SIP Server

In this scenario, shown in Figure 298, a SIP phone connects to the Internet. The VoIP
service provider only publishes a single public IP (a VIP). The SIP phone connects to the
FortiGate unit (217.233.90.60) and the FortiGate unit then translates the SIP contact
header to the SIP server (10.0.0.60). The SIP server changes the SIP/SDP connection
information (which tells the SIP phone which RTP IP it should contact) also to
217.233.90.60.

FortiGate Version 4.0 MR1 Administration Guide


508 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support How SIP support works

Source NAT with IP pool


You can choose NAT with the Dynamic IP Pool option when configuring a firewall policy if
the source IP of the SIP packets is different from the interface IP. The FortiGate ALG
interprets this configuration and translates the SIP header accordingly.
This configuration also applies to destination NAT.

Different source and destination NAT for SIP and RTP


This is a more complex scenario that a SIP service provider may use. It can also be
deployed in large-scale SIP environments where RTP has to be processed by the
FortiGate unit and the RTP server IP has to be translated differently than the SIP
server IP.

Figure 299: Different source and destination NAT for SIP and RTP

RTP Servers
192.168.0.21 - 192.168.0.23 219.29.81.10 219.29.81.20

RTP Server

10.0.0.60
RTP-1: 217.233.90.65
RTP-2: 217.233.90.70
Internet
SIP: 217.233.90.60
SIP Server

In this scenario, shown in Figure 299, assume there is a SIP server and a separate media
gateway. The SIP server is configured so that the SIP phone (219.29.81.20) will connect
to 217.233.90.60. The media gateway (RTP server: 219.29.81.10) will connect to
217.233.90.65.
What happens is as follows:
1 The SIP phone connects to the SIP VIP. The FortiGate ALG translates the SIP contact
header to the SIP server: 219.29.81.20 > 217.233.90.60 (> 10.0.0.60).
2 The SIP server carries out RTP to 217.233.90.65.
3 The FortiGate ALG opens pinholes, assuming that it knows the ports to be opened.
4 RTP is sent to the RTP-VIP (217.233.90.65.) The FortiGate ALG translates the SIP
contact header to 192.168.0.21.

How SIP support works


The FortiGate unit uses firewall policies to protect communications between servers and
VoIP end devices. These policies restrict VoIP communication based on authorized end
devices or traffic sourced or destined for a particular IP address or interface. The
FortiGate unit segments the VoIP network, separating the voice traffic from other traffic to
ensure that appropriate priority and policies are applied.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 509
http://docs.fortinet.com/ • Feedback
Configuring SIP SIP support

You need to configure the FortiOS SIP support in the following order:
1 Create a firewall protection profile that enables SIP (see “Enabling SIP support and
setting rate limiting from the web-based manager” on page 510).
Once the profile is included in a policy, the ALG will parse the SIP traffic and open the
RTP ports for each specific VoIP call.
When creating a protection profile, you configure SIP features using the web-based
manager and CLI. You then apply the profile to a firewall policy. You can apply a profile
to multiple policies.
2 Create a firewall policy that allows SIP and includes a SIP-enabled protection profile.
Specifically, select the SIP or ANY pre-defined service for the policy.
When the FortiGate unit receives a SIP packet, it checks the packet against the firewall
policies. If the packet matches a policy, the FortiGate firewall inspects and processes
the packet according to the SIP profile applied to the policy.
For more information about firewall policies, see “Firewall Policy” on page 387.
3 Configure advanced SIP features as required (see “Configuring SIP” on page 510).

Configuring SIP
You can enable SIP support, set two rate limits, enable SIP logging, and view SIP
statistics using the web-based manager. You can do this plus configure many other SIP
support features from the CLI.

Enabling SIP support and setting rate limiting from the web-based manager
To enable SIP support you need to:
• enable SIP in an application control list
• select this application control list in a protection profile
• add this protection profile to a firewall policy that accepts SIP traffic.
From the web-based manager, you can also configure some SIP rate limiting settings.
Rate limiting for SIP also limits SIMPLE traffic. SIP rate limiting is useful for protecting a
SIP server within a company. Most SIP servers do not have integrated controls and it is
very easy to flood SIP servers with INVITE or REGISTER requests.
Enabling SIP in an application control list actually enables the SIP application level
gateway (SIP ALG) for sessions accepted by a firewall policy that includes the SIP
application.

Tip: The SIP and SCCP application control list entries are used only for enabling the SIP or
SCCP application level gateways (ALGs). They are not like any other application control list
entry. For example, you cannot use the SIP and SCCP application control list entries to
block SIP or SCCP traffic. From the CLI SIP is application number 12 and SCCP is
application number 13.

Tip: The SIP.TCP and SIP.UDP application control list entries are normal application
control list entries and are not involved with the SIP ALG. You can use the SIP.TCP or
SIP.UDP application control list entries to block SIP sessions.

To enable SIP and set rate limiting from the web-based manager
1 Go to UTM > Application Control.

FortiGate Version 4.0 MR1 Administration Guide


510 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support Configuring SIP

2 If you want to enable SIP for an existing application control list, select the Edit icon for
an application control list. Otherwise, select Create New to add a new application
control list.
3 Then, select Create New in the list to add a new application to the list.
4 Set Application to SIP.
You can optionally set Category to voip to make the SIP application easier to find.
5 Optionally limit REGISTER and INVITE requests.
6 Leave these set to 0 to disable rate limiting.

Figure 300: SIP Application control configuration

7 Select OK.
8 Go to Firewall > Profile and add the application control list to a protection profile.
9 Go to Firewall > Policy and add the protection profile to a firewall policy that accepts
SIP sessions.
For more information about application control, see “Application Control” on page 603.

Enabling SIP support from the CLI


From the FortiGate CLI, you can enable rate limiting for a more extensive range of SIP
requests, including ACK, INFO, NOTIFY, OPTIONS, PRACK, REFER, SUBSCRIBE, and
UPDATE. For more information, see the FortiGate CLI Reference.
From the CLI, you enable SIP support using the config application list command
to add SIP to an application control list. The config application list command
uses application list names or numbers to identify applications. SIP is application number
12.
Use the following command to enable SIP support in an application control list:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
end
end
Entering this command enables SIP support with all SIP settings set to defaults. See the
FortiGate CLI Reference for information about all of the SIP settings and their defaults.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 511
http://docs.fortinet.com/ • Feedback
Configuring SIP SIP support

Setting SIP rate limiting from the CLI


Use the following command to enable SIP support in an application list and configure SIP
rate limiting:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set register-rate 100
set invite-rate 30
end
end

More about rate limiting


FortiGate units support rate limiting for the following types of VoIP traffic:
• Session Initiation Protocol (SIP)
• Skinny Call Control Protocol (SCCP)
• Session Initiation Protocol for Instant Messaging and Presence Leveraging Extensions
(SIMPLE).
You can use rate limiting of these VoIP protocols to protect the FortiGate unit and your
network from SIP and SCCP Denial of Service (DoS) attacks. Rate limiting protects
against SIP DoS attacks by limiting the number of SIP REGISTER and INVITE requests
that the FortiGate unit receives per second. Rate limiting protects against SCCP DoS
attacks by limiting the number of SCCP call setup messages that the FortiGate unit
receives per minute.
When VoIP rate limiting is enabled, if the FortiGate unit receives more messages per
second (or minute) than the configured rate, the extra messages are dropped.
If you are experiencing denial of service attacks from traffic using these VoIP protocols,
you can enable VoIP rate limiting and limit the rates for your network. Limit the rates
depending on the amount of SIP and SCCP traffic that you expect the FortiGate unit to be
handling. You can adjust the settings if some calls are lost or if the amount of SIP or
SCCP traffic is affecting FortiGate unit performance.
From the CLI you can configure additional SIP, SCCP, as well as SIMPLE extensions. For
more information, see the description of the config sip, config sccp, and config
simple subcommands of the application command in the FortiGate CLI Reference.
You can also block SIMPLE sessions by enabling block login for the SIMPLE application.
For more information, see “Application Control” on page 603.

Enabling SIP logging


You can log SIP events in a protection profile.
Go to Firewall > Protection Profile. Open an existing profile or select Create New to create
a new profile. Expand Logging. Select Log VoIP Activity to log VoIP events.
For more information about enabling and configuring logging, see “Log&Report” on
page 709.

Enabling advanced SIP features in an application list


You can configure advanced SIP features for an application list.

FortiGate Version 4.0 MR1 Administration Guide


512 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support Configuring SIP

For more information, see the FortiGate CLI Reference.

Turning on SIP tracking


The FortiGate SIP Application Level Gateway (SIP ALG) tracks the SIP session over its
life span. A SIP session (or SIP dialog) is normally established after the SIP INVITE
procedure. The ALG then tracks this call as a SIP session. A session can end by regular
BYE procedure, such as callers hanging up the phone, or by an unexpected signalling or
transport error.
You can continue tracking a SIP session for a specified period of time even when RTP
(Real-time Transport Protocol) is lost.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set call-keepalive <integer>
end
end

Managing RTP pinholing


Once you create a firewall policy that allows SIP, the FortiGate ALG will automatically
open the respective RTP ports as long as the SIP session is alive.
You can also manually close RTP ports. This may be useful in cases where the FortiGate
unit only acts as a signalling firewall while RTP is bypassed. Therefore, no pinholes need
to be created.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set rtp disable
end
end

Blocking SIP requests


Since SIP requests can be transmitted via UDP, broadcast attacks are possible. To
prevent your site from being used as an intermediary in an attack, you can block various
SIP requests including ACK, INVITE, INFO, PRACK, and so on directed to broadcast
addresses at your router.
For example, you can type the following commands to block INVITE requests:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 513
http://docs.fortinet.com/ • Feedback
Configuring SIP SIP support

set block-invite enable


end
end

Archiving SIP communication


You can DLP archive SIP call metadata by DLP archiving session control content. You
can view the archived information on FortiAnalyzer unit or the FortiGuard Analysis and
Management Service. For more information, see “DLP archiving” on page 588.

Preserving NAT IP
In NAT operation mode, you can preserve the original source IP address in the SDP i line.
This allows the SIP server to parse this IP for billing purposes.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set nat-trace enable
end
end
In addition, you can overwrite or append the SDP i line:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set preserve-override {enable | disable}
end
end
where selecting enable removes the original source IP address from the SDP i line and
disable appends the address.

Controlling SIP client connections


You can control the SIP client to only connect to the registrar itself. This can avoid VoIP
spoofing.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set strict-register enable
end
end

FortiGate Version 4.0 MR1 Administration Guide


514 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SIP support Configuring SIP

Accepting SIP register responses


You can enable reg-diff-port to accept a SIP register response from a SIP server
even if the source port of the register response is different from the destination port of the
register request.
Most SIP servers use 5060 as the source port in the SIP register response. Some SIP
servers, however, may use a different source port. If your SIP server uses a different
source port, you can enable reg-diff-port and the FortiGate SIP ALG will create a
temporary pinhole when receiving a register request from a SIP client. As a result, the
FortiGate unit will accept a register response with any source port number from the SIP
server.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set reg-diff-port enable
end
end

Controlling how SIP handles contact header NAT


You can enable contact-fixup so that the FortiGate ALG performs normal SIP NAT
translation to SIP contact headers as SIP sessions pass through the FortiGate unit.
Disable contact-fixup if you do not want the FortiGate ALG to perform normal SIP
NAT translation of the SIP contact header if a Record-Route header is also available. If
contact-fixup is disabled, the FortiGate ALG does the following with contact headers:
• For Contact in Requests, if a Record-Route header is present and the request comes
from the external network, the SIP Contact header is not translated.
• For Contact in Responses, if a Record-Route header is present and the response
comes from the external network, the SIP Contact header is not translated.
If contact-fixup is disabled, the FortiGate ALG must be able to identify the external
network. To identify the external network, you must use the config system
interface command to set the external keyword to enable for the interface that is
connected to the external network.
From the CLI, type the following commands:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set contact-fixup {enable | disable}
end
end

Opening and closing SIP register and non-register pinholes


You can use open-register-pinhole and open-contact-pinhole to control
whether the FortiGate unit opens register and non-register pinholes. Non-register pinholes
are usually opened for SIP invite requests.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 515
http://docs.fortinet.com/ • Feedback
Configuring SIP SIP support

By default, open-register-pinhole is enabled and the FortiGate unit opens pinholes


for register requests. You can disable open-register-pinhole so that the FortiGate
unit does not open pinholes for register requests.
By default, open-contact-pinhole is also enabled and the FortiGate unit opens
pinholes for non-register requests. You can disable open-contact-pinhole so that the
FortiGate unit does not open pinholes for non-register requests.
Usually you would want to open these pinholes. Keeping the closed may prevent SIP from
functioning properly through the FortiGate unit.They can be disabled, however, for
interconnect scenarios (where all SIP traffic is between proxies and traveling over a single
session). In some cases these settings can also be disabled in access scenarios if it is
known that all users will be registering regularly so that their contact information can be
learned from the register request.
You might want to prevent pinholes from being opened to avoid creating a pinhole for
every register or non-register request. Each pinhole uses additional system memory,
which can affect system performance if there are hundreds or thousands of users, and
requires refreshing which can take a relatively long amount of time if there are thousands
of active calls.
To stop the FortiGate unit from opening register and non-register pinholes:
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set open-register-pinhole disable
set open-contact-pinhole disable
end
end

Support for RFC 2543-compliant branch commands


FortiGate units support SIP RFC 3261. RFC 3261 is the most recent SIP RFC, it obsoletes
RFC 2543. However, some SIP implementations may use RFC 2543-compliant SIP calls.
The rfc2543-branch CLI keyword of the config application list command has
been added to support RFC 2543-complaint SIP calls involving branch commands that
are missing or that are valid for RFC 2543 but invalid for RFC 3261.
config application list
edit <list_name>
config entries
edit 1
set category voip
set application SIP
set rfc2543-branch enable
end
end

FortiGate Version 4.0 MR1 Administration Guide


516 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus Order of operations

AntiVirus
This section describes how to configure the antivirus options associated with firewall
protection profiles. From a protection profile you can configure the FortiGate unit to apply
antivirus protection to HTTP, FTP, IMAP, POP3, SMTP, IM, and NNTP sessions. If your
FortiGate unit supports SSL content scanning and inspection you can also configure
antivirus protection for HTTPS, IMAPS,POP3S, and SMTPS sessions. For more
information, see “SSL content scanning and inspection” on page 481.
This section provides an introduction to antivirus settings. For more information see the
FortiGate UTM User Guide.
If you enable virtual domains (VDOMs) on the FortiGate unit, UTM > Antivirus options are
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
This section describes:
• Order of operations
• Antivirus tasks
• Antivirus settings and controls
• File Filter
• File Quarantine
• Selecting the virus database
• Antivirus CLI configuration

Order of operations
Antivirus scanning function includes various modules and engines that perform separate
tasks. The FortiGate unit performs antivirus processing in the following order:
• File size
• File pattern
• File type
• Virus scan
• Grayware
• Heuristics
If a file fails any of the tasks of the antivirus scan, no further scans are performed. For
example, if the file “fakefile.EXE” is recognized as a blocked pattern, the FortiGate unit will
send the end user a replacement message and the file will be deleted or quarantined. The
virus scan, grayware, heuristics, and file type scans will not be performed as the file is
already been determined to be a threat and has been dealt with.

Note: File filter includes file pattern and file type scans which are applied at different stages
in the antivirus process.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 517
http://docs.fortinet.com/ • Feedback
Antivirus tasks AntiVirus

Figure 301: Order of operation

FTP, NNTP, SMTP, File or message


POP3, or IMAP traffic Start
is buffered
after web filter spam
checking.

File/email
Oversized
exceeds
file/email
Block Yes oversized
action
threshold

Pass
No

Matching File
Block Pattern
file pattern
file/email Match?
Block action Yes

Allow No

File/email
exceeds Pass
Pass oversized file/email
Yes
file/email threshold

No

No
Block

Yes
Allow
AV scan Matching
detects file type File type
infection? action match?
Yes

No

Antivirus tasks
The antivirus tasks work in sequence to efficiently scan incoming files and offer your
network unparalleled antivirus protection. The first four tasks have specific functions, the
fifth, the heuristics, is to cover any new, previously unknown, virus threats. To ensure that
your system is providing the most protection available, all virus definitions and signatures
are updated regularly through the FortiGuard antivirus services. The tasks will be
discussed in the order that they are applied followed by FortiGuard antivirus.

File size
This task checks if files and email messages exceed configured thresholds. It is enabled
by setting the Oversized File/Email option under Firewall > Protection Profile > Antivirus to
Pass.
For more information, see “Anti-Virus options” on page 489.

FortiGate Version 4.0 MR1 Administration Guide


518 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus Antivirus settings and controls

File pattern
Once a file is accepted, the FortiGate unit applies the file pattern recognition filter. The
FortiGate unit will check the file against the file pattern setting you have configured. If the
file is a blocked pattern, “.EXE” for example, then it is stopped and a replacement
message is sent to the end user. No other levels of protections are applied. If the file is not
a blocked pattern the next level of protection is applied.

File type
Once a file passes the heuristic scan, the FortiGate unit applies the file type recognition
filter. The FortiGate unit will check the file against the file type setting you have configured.
If the file is a blocked type, then it is stopped and a replacement message is sent to the
end user. No other levels of protections are applied. If the file is not a blocked type, the
next level of protection is applied.

Virus scan
If the file passes the file pattern scan, it will have a virus scan applied to it. The virus
definitions are keep up to date through the FortiNet Distribution Network. The list is
updated on a regular basis so you do not have to wait for a firmware upgrade. For more
information on updating virus definitions, see “FortiGuard antivirus” on page 519.

Grayware
Once past the virus scan, the incoming file will be checked for grayware. Grayware
checking can be turned on and off as required. Grayware signatures are kept up to date
because the are included in the antivirus definitions. For more information on see
“Selecting the virus database” on page 527.

Heuristics
After an incoming file has passed the grayware scan, it is subjected to the heuristics scan.
The FortiGate heuristic antivirus engine, if enabled, performs tests on the file to detect
virus-like behavior or known virus indicators. In this way, heuristic scanning may detect
new viruses, but may also produce some false positive results.

Note: Heuristics is configurable only through the CLI. See the FortiGate CLI Reference.

FortiGuard antivirus
FortiGuard antivirus services are an excellent resource and include automatic updates of
virus and IPS (attack) engines and definitions, as well as the local spam DNSBL, through
the FortiGuard Distribution Network (FDN). The FortiGuard Center also provides the
FortiGuard antivirus virus and attack encyclopedia and the FortiGuard Bulletin. Visit the
Fortinet Knowledge Center for details and a link to the FortiGuard Center.
The connection between the FortiGate unit and FortiGuard Center is configured in
System > Maintenance > FortiGuard. See “Configuring the FortiGate unit for FDN and
FortiGuard subscription services” on page 323 for more information.

Antivirus settings and controls


While antivirus settings are configured for system-wide use, specific settings can be
implemented on a per profile basis. Table 47 compares antivirus options in protection
profiles and the antivirus menu.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 519
http://docs.fortinet.com/ • Feedback
Antivirus settings and controls AntiVirus

Note: If virtual domains are enabled, you configure antivirus file filtering and antivirus
settings in protection profiles separately for each virtual domain. Antivirus file quarantine
and grayware settings are part of the global configuration.

Table 47: Antivirus and Protection Profile antivirus configuration

Protection Profile antivirus options Antivirus setting


Virus Scan UTM > AntiVirus > Virus Database
Enable or disable virus scanning for each View a read-only list of current viruses.
supported protocol: HTTP, FTP, IMAP, POP3,
SMTP, IM. If your FortiGate unit supports SSL
content scanning and inspection you can also
enable virus scanning for HTTPS, IMAPS,
POP3S, and SMTPS.
File Filter UTM > AntiVirus > File Filter
Enable or disable file pattern and file type Configure file patterns and types to block or allow
handling for each protocol. files. Patterns and types can also be individually
enabled or disabled.
Quarantine UTM > AntiVirus > Quarantined Files
Enable or disable quarantining for each View and sort the list of quarantined files,
protocol. File Quarantine is only available on configure file patterns to upload automatically to
units with a local disk, or with a configured Fortinet for analysis, and configure quarantining
FortiAnalyzer unit. options in AntiVirus.
Pass fragmented email messages.
Enable or disable passing fragmented email
messages. Fragmented email messages
cannot be scanned for viruses.
Comfort Clients
Enable or disable for HTTP and FTP traffic
(and HTTPS traffic if your FortiGate unit
supports SSL content scanning and
inspection and HTTPS content filtering mode
is set to Deep Scan in the protocol recognition
part of the protection profile). Set the interval
and byte amount to trigger client comforting.
Oversized file/email
Configure the FortiGate unit to block or pass
oversized files and email messages for each
protocol. Set the size thresholds for files and
email messages for each protocol in
AntiVirus.
UTM > AntiVirus > Grayware
Enable or disable blocking of Grayware by
category.
Add signature to outgoing email messages
Create and enable a signature to append to
outgoing email messages (SMTP only).

FortiGate Version 4.0 MR1 Administration Guide


520 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus File Filter

File Filter
Configure the FortiGate file filter to block files by:
• File pattern: Files can be blocked by name, extension, or any other pattern. File pattern
blocking provides the flexibility to block potentially harmful content.
File pattern entries are not case sensitive. For example, adding *.exe to the file
pattern list also blocks any files ending in .EXE.
In addition to the built-in patterns, you can specify more file patterns to block. For
details, see “Configuring the file filter list” on page 523.
• File type: Files can be blocked by type, without relying on the file name to indicate what
type of files they are. When blocking by file type, the FortiGate unit analyzes the file
and determines the file type regardless of the file name. For details about supported
file types, see “Built-in patterns and supported file types” on page 521.
For standard operation, you can choose to disable file filter in the protection profile, and
enable it temporarily to block specific threats as they occur.
The FortiGate unit can take any of the following three actions towards the files that match
a configured file pattern or type:
• Allow: the file will be allowed to pass.
• Block: the file will be blocked and a replacement messages will be sent to the user. If
both file filter and virus scan are enabled, the FortiGate unit blocks files that match the
enabled file filter and does not scan these files for viruses.
The FortiGate unit also writes a message to the virus log and sends an alert email
message if configured to do so.
Files are compared to the enabled file patterns and then the file types from top to bottom.
If a file does not match any specified patterns or types, it is passed along to antivirus
scanning (if enabled). In effect, files are passed if not explicitly blocked.
Using the allow action, this behavior can be reversed with all files being blocked unless
explicitly passed. Simply enter all the file patterns or types to be passed with the allow
attribute. At the end of the list, add an all-inclusive wildcard (*.*) with a block action.
Allowed files continue to antivirus scanning (if enabled) while files not matching any
allowed patterns are blocked by the wildcard at the end.

Built-in patterns and supported file types


The FortiGate unit is preconfigured with a default list of file patterns:
• executable files (*.bat, *.com, and *.exe)
• compressed or archive files (*.gz, *.rar, *.tar, *.tgz, and *.zip)
• dynamic link libraries (*.dll)
• HTML application (*.hta)
• Microsoft Office files (*.doc, *.ppt, *.xl?)
• Microsoft Works files (*.wps)
• Visual Basic files (*.vb?)
• screen saver files (*.scr)
• program information files (*.pif)
• control panel files (*.cpl)
The FortiGate unit can take actions against the following file types:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 521
http://docs.fortinet.com/ • Feedback
File Filter AntiVirus

Table 48: Supported file types

exe bat mime javascript html hta msoffice elf


gzip rar tar lzh upx zip cab bzip2
bzip activemime hlp arj base64 binhex uue fsg
aspack jad class cod msc petite sis prc
unknown ignored

Note: The “unknown” type is any file type that is not listed in the table. The “ignored” type is
the traffic the FortiGate unit typically does not scan. This includes primarily streaming audio
and video.

Viewing the file filter list catalog


You can add multiple file filter lists and then select the best file filter list for each protection
profile. To view the file filter list catalog, go to UTM > AntiVirus > File Filter. To view any
individual file filter list, select the edit icon for the list you want to see.

Figure 302: Sample file pattern list catalog

Note: The default file pattern list catalog is called builtin-patterns.

Create New Select Create New to add a new file filter list to the catalog.
Name The available file filter lists.
# Entries The number of file patterns or file types in each file filter list.
Profiles The protection profiles each file filter list has been applied to.
DLP Rule The DLP rules in which each filter is used.
Comments Optional description of each file filter list.
Delete icon Select to remove the file filter list from the catalog. The delete icon is only
available if the file filter list is not selected in any protection profiles.
Edit icon Select to edit the file filter, its name and comment.

The file filter list will be used in protection profiles. For more information, see “Anti-Virus
options” on page 489.

Creating a new file filter list


To add a file pattern list to the file pattern list catalog, go to UTM > AntiVirus > File Filter
and select Create New.

FortiGate Version 4.0 MR1 Administration Guide


522 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus File Filter

Figure 303: New File Filter List dialog box

Name Enter the name of the new list.


Comment Enter a comment to describe the list, if required.

Viewing the file filter list


To view the file filter list, go to UTM > AntiVirus > File Filter and select the edit icon of the
file filter list you want to view.

Figure 304: Sample file filter list

The file filter list has the following icons and features:

Name File filter list name. To change the name, edit text in the name field and select
OK.
Comment Optional comment. To add or edit comment, enter text in comment field and
select OK.
OK If you make changes to the list name or comments, select OK to save the
changes.
Create New Select Create New to add a new file pattern or type to the file filter list.
Filter The current list of file patterns and types.
Action Files matching the file patterns and types can be set to block, allow, or
intercept. For information about actions, see “File Filter” on page 521.
Enable Clear the checkbox to disable the file pattern or type.
Delete icon Select to remove the file pattern or type from the list.
Edit icon Select to edit the file pattern/type and action.
Move To icon Select to move the file pattern or type to any position in the list.

Configuring the file filter list


For file patterns, you can add a maximum of 5000 patterns to a list. For file types, you can
only select from the supported types.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 523
http://docs.fortinet.com/ • Feedback
File Quarantine AntiVirus

Figure 305: New file filter

To add a file pattern or type go to UTM > AntiVirus > File Filter. Select the Edit icon for a
file filter catalog. Select Create New.

Filter Type Select File Name Pattern if you want to add a file pattern; select File Type and then
select a file type from the supported file type list.
Pattern Enter the file pattern. The file pattern can be an exact file name or can include
wildcards. The file pattern can be 80 characters long.
File Type Select a file type from the list. For information about supported file types, see “Built-
in patterns and supported file types” on page 521.
Action Select an action from the drop down list: Block, Allow, or Intercept. For more
information about actions, see “File Filter” on page 521.
Enable Select to enable the pattern.

File Quarantine
FortiGate units with a local disk, or FortiGate unit with a single width AMC slot containing a
FortiGate-ASM-S08 module, or a FortiGate-ASM-SAS module can quarantine blocked
and infected files. View the file name and status information about the file in the
Quarantined Files list. Submit specific files and add file patterns to the AutoSubmit list so
they will automatically be uploaded to Fortinet for analysis.
FortiGate units can also quarantine blocked and infected files to a FortiAnalyzer unit. Files
stored on the FortiAnalyzer unit can also be viewed from the Quarantined Files list. To
configure quarantine to a FortiAnalyzer unit, go to Log & Report > Log Config > Log
Setting.

To configure and enable file quarantine


1 Go to UTM > AntiVirus > Config to configure the quarantine service and destination.
For details, see “Configuring quarantine options” on page 525.
2 Go to Firewall > Protection Profile > Antivirus to enable quarantine for required
protocols in the protection profiles. For details, see “Configuring a protection profile” on
page 486.
You can configure a protection profile to quarantine blocked and infected files from
HTTP, FTP, IMAP, POP3, SMTP, IM, and NNTP Traffic. If your FortiGate unit supports
SSL content scanning and inspection you can also quarantine blocked and infected
files from HTTPS, IMAPS, POP3S, and SMTPS traffic. To enable HTTPS quarantine
you must set HTTPS Content Filtering Mode to Deep Scan in the Protocol Recognition
part of the protection profile. For more information, see “SSL content scanning and
inspection” on page 481.
3 Go to Firewall > Policy and add the protection profile to a firewall policy.

FortiGate Version 4.0 MR1 Administration Guide


524 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus File Quarantine

Viewing the AutoSubmit list


If the FortiGate unit has a local hard disk, you can configure the FortiGate unit to upload
suspicious files automatically to Fortinet for analysis. You can add file patterns to the
AutoSubmit list using wildcard characters (* or ?). File patterns are applied for AutoSubmit
regardless of file blocking settings.
Upload files to Fortinet based on status (blocked or heuristics), or submit individual files
directly from the file quarantine. The FortiGate unit uses encrypted email to autosubmit
files to an SMTP server through port 25.
To view the AutoSubmit list, go to UTM > AntiVirus > AutoSubmit.
The autosubmit feature is not available on the FortiGate models without a local hard disk.

Figure 306: Sample AutoSubmit list

AutoSubmit list has the following icons and features:

Create New Select to add a new file pattern to the AutoSubmit list.
File Pattern The current list of file patterns that will be automatically uploaded. Create a
pattern by using ? or * wildcard characters. Enable the check box to enable all
file patterns in the list.
Delete icon Select to remove the entry from the list.
Edit icon Select to edit the following information: File Pattern and Enable.

Configuring the AutoSubmit list


To add a file pattern to the AutoSubmit list, go to UTM > AntiVirus > AutoSubmit. Note that
the autosubmit feature is available only if your FortiGate unit has a local hard disk.

Figure 307: New File Pattern dialog box

File Pattern Enter the file pattern or file name to be upload automatically to Fortinet.
Enable Select to enable the file pattern

Note: To enable automatic uploading of the configured file patterns, go to AntiVirus > File
Quarantine > Config, select Enable AutoSubmit, and select Use File Pattern.

Configuring quarantine options


Go to UTM > AntiVirus > Config to set quarantine configuration options, such as whether
to quarantine blocked or infected files and from which service.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 525
http://docs.fortinet.com/ • Feedback
File Quarantine AntiVirus

You can configure quarantine options for HTTP, FTP, IMAP, POP3, SMTP, IM, and NNTP
Traffic. If your FortiGate unit supports SSL content scanning and inspection you can also
quarantine blocked and infected files from HTTPS, IMAPS, POP3S, and SMTPS traffic.
To enable HTTPS quarantine you must set HTTPS Content Filtering Mode to Deep Scan
in the Protocol Recognition part of the protection profile. For more information, see “SSL
content scanning and inspection” on page 481.

Figure 308: Quarantine Configuration (quarantine to FortiAnalyzer unit)

Figure 309: Quarantine Configuration (SSL content scanning and inspection and quarantine
to disk)

Quarantine configuration has the following options:

Options Quarantine Infected Files: Select the protocols from which to quarantine infected
files identified by antivirus scanning.
Quarantine Suspicious Files: Select the protocols from which to quarantine
suspicious files identified by heuristic scanning.
Quarantine Blocked Files. Select the protocols from which to quarantine blocked
files identified by antivirus file filtering. The Quarantine Blocked Files option is not
available for IM and HTTPS because a file name is blocked before downloading
and cannot be quarantined.
Age limit The time limit in hours for which to keep files in quarantine. The age limit is used
to formulate the value in the TTL column of the quarantined files list. When the
limit is reached, the TTL column displays EXP. and the file is deleted (although the
entry in the quarantined files list is maintained). Entering an age limit of 0 (zero)
means files are stored on disk indefinitely, depending on low disk space action.

FortiGate Version 4.0 MR1 Administration Guide


526 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus Selecting the virus database

Max filesize to The maximum size of quarantined files in MB. Setting the maximum file size too
quarantine large may affect performance.
Low disk space Select the action to take when the local disk is full: overwrite the oldest file or drop
the newest file.
FortiAnalyzer Select to enable storage of blocked and quarantined files on a FortiAnalyzer unit.
See “Log&Report” on page 709 for more information about configuring a
FortiAnalyzer unit.
Enable Enable AutoSubmit: enables the automatic submission feature. Select one or both
AutoSubmit of the options below.
Use file pattern: Enables the automatic upload of files matching the file patterns in
the autoSubmit list.
Use file status: Enables the automatic upload of quarantined files based on their
status. Select either Heuristics or Block Pattern.
Apply Select to save the configuration.

Figure 310: Notification lists

Figure 311: A new notification list

Figure 312: A new notification list entry

Selecting the virus database


The FortiGate unit contains the wildlist antivirus database. It is used to detect viruses in
network traffic. In addition to the wildlist antivirus database, which contains actively
spreading viruses, some newer FortiGate models are also equipped with an extended
antivirus database, which contains viruses that are not considered to be actively
spreading. If required, you can enable this feature to allow the FortiGate unit to scan for
non-active viruses. For details, see “Anti-Virus options” on page 489.
To view information about the virus databases, go to UTM > AntiVirus > Virus Database.
The FortiGuard virus definitions are updated every time the FortiGate unit receives a new
version of the FortiGuard antivirus definitions.
The FortiGuard Center Virus Encyclopedia contains detailed descriptions of the viruses,
worms, trojans, and other threats that can be detected and removed by your FortiGate unit
using the information in the FortiGuard virus definitions.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 527
http://docs.fortinet.com/ • Feedback
Antivirus CLI configuration AntiVirus

Figure 313: Virus database information

Usually the FortiGuard AV definitions are updated automatically from the FortiGuard
Distribution Network (FDN). Go to System > Maintenance > FortiGuard to configure
automatic antivirus definition updates from the FDN.
You can also update the antivirus definitions manually from the system dashboard (go to
System > Status).

Antivirus CLI configuration


This section describes the CLI commands that extend features available through the web-
based manager. For complete descriptions and examples of how to enable additional
features through CLI commands, see the FortiGate CLI Reference.

system global optimize


The optimize feature configures CPU settings to ensure efficient operation of the FortiGate
unit for either antivirus scanning or straight throughput traffic. When optimize is set to
antivirus, the FortiGate unit uses symmetric multiprocessing to spread the antivirus tasks
to several CPUs, making scanning faster.
This feature is available on models numbered 1000 and higher.
For more information, see the Antivirus failopen and optimization Fortinet Knowledge
Center article.

config antivirus heuristic


The FortiGate heuristic antivirus engine performs tests on files to detect virus-like
behavior or known virus indicators. Heuristic scanning is performed last, after file blocking
and virus scanning have found no matches. In this way, heuristic scanning may detect
new viruses, but may also produce some false positive results.
The heuristic engine is disabled by default. You need to enable it to pass suspected files to
the recipient and send a copy to the file quarantine. Once enabled in the CLI, heuristic
scanning is enabled in a protection profile when Virus Scan is enabled.
Use the heuristic command to change the heuristic scanning mode.

FortiGate Version 4.0 MR1 Administration Guide


528 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
AntiVirus Antivirus CLI configuration

config antivirus quarantine


The quarantine command also allows configuration of heuristic related settings.
This feature is available on models numbered 200 and higher.

config antivirus service <service_name>


Use this command to configure how the FortiGate unit handles antivirus scanning of large
files, and what ports the FortiGate unit scans for the service.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 529
http://docs.fortinet.com/ • Feedback
Antivirus CLI configuration AntiVirus

FortiGate Version 4.0 MR1 Administration Guide


530 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection About intrusion protection

Intrusion Protection
The FortiGate Intrusion Protection system combines signature and anomaly detection and
prevention with low latency and excellent reliability. With intrusion Protection, you can
create multiple IPS sensors, each containing a complete configuration based on
signatures. Then, you can apply any IPS sensor to each protection profile. You can also
create DoS sensors to examine traffic for anomaly-based attacks.
This section describes how to configure the FortiGate Intrusion Protection settings. For
more information about Intrusion Protection, see the FortiGate UTM User Guide.
If you enable virtual domains (VDOMs) on the FortiGate unit, intrusion protection is
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
This section describes:
• About intrusion protection
• Signatures
• Custom signatures
• Protocol decoders
• IPS sensors
• DoS sensors
• Intrusion protection CLI configuration

About intrusion protection


The FortiGate unit can log suspicious traffic, send alert email messages to system
administrators, and log, pass, or block suspicious packets or sessions. You can adjust the
DoS sensor anomaly thresholds to work best with the normal traffic on the protected
networks. You can also create custom signatures to tailor the FortiGate Intrusion
Protection system to your network environment.
The FortiGate Intrusion Protection system matches network traffic against patterns
contained in attack signatures. Attack signatures reliably protect your network from known
attacks. Fortinet’s FortiGuard infrastructure ensures the rapid identification of new threats
and the development of new attack signatures.
FortiGuard services provide automatic updates of virus and intrusion protection (attack)
engines and definitions to FortiGate customers through the FortiGuard Distribution
Network (FDN). The FortiGuard Center also provides the FortiGuard virus and attack
encyclopedia and the FortiGuard Bulletin. Visit the Fortinet Knowledge Center for details
and a link to the FortiGuard Center.
For more information about configuring the connection between the FortiGate unit and
FortiGuard see “Configuring the FortiGate unit for FDN and FortiGuard subscription
services” on page 323.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 531
http://docs.fortinet.com/ • Feedback
Signatures Intrusion Protection

Using Intrusion Protection, you can configure the FortiGate unit to check for and
automatically download updated attack definition files containing the latest signatures, or
download the updated attack definition file manually. Alternately, you can configure the
FortiGate unit to allow push updates of the latest attack definition files as soon as they are
available from the FortiGuard Distribution Network.
You can also create custom attack signatures for the FortiGate unit to use in addition to an
extensive list of predefined attack signatures.
Whenever the Intrusion Protection system detects or prevents an attack, it generates an
attack log message. You can configure the FortiGate unit to add the message to the attack
log and send an alert email to administrators, as well as schedule how often it should send
this alert email. You can also reduce the number of log messages and alerts by disabling
signatures for attacks that will not affect your network. For example, you do not need to
enable signatures to detect web attacks when there is no web server to protect.
You can also use the packet logging feature to analyze packets for false positive
detection.
For more information about FortiGate logging and alert email, see “Log&Report” on
page 709.

Intrusion Protection settings and controls


You can configure the Intrusion Protection system and then select IPS sensors in
individual firewall protection profiles.
For information about creating IPS sensors, see “Configuring IPS sensors” on page 538.
For information about accessing and modifying the protection profile IPS sensor selection,
see “IPS options” on page 492. For information about creating DoS Sensors, see “DoS
sensors” on page 545.

Note: If virtual domains are enabled on the FortiGate unit, the Intrusion Protection settings
are configured separately in each VDOM. All sensors and custom signatures will appear
only in the VDOM in which they were created.

When to use Intrusion Protection


Intrusion Protection is best for large networks or for networks protecting highly sensitive
information. Using IPS effectively requires monitoring and analysis of the attack logs to
determine the nature and threat level of an attack. An administrator can adjust the
threshold levels to ensure a balance between performance and intrusion prevention.
Small businesses and home offices without network administrators may be overrun with
attack log messages and not have the networking background required to configure the
thresholds and other IPS settings.
However, the other protection features in the FortiGate unit, such as antivirus (including
grayware), spam filters, and web filters offer excellent protection for all networks.

Signatures
The FortiGate Intrusion Protection system can use signatures once you have grouped the
required signatures in an IPS sensor, and then selected the IPS sensor in the protection
profile. If required, you can override the default settings of the signatures specified in an
IPS sensor. The FortiGate unit provides a number of pre-built IPS sensors, but you should
check their settings before using them, to ensure they meet your network requirements.

FortiGate Version 4.0 MR1 Administration Guide


532 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection Signatures

By using only the signatures you require, you can improve system performance and
reduce the number of log messages and alert email messages the IPS sensor generates.
For example, if the FortiGate unit is not protecting a web server, do not include any web
server signatures.

Note: Some default protection profiles include IPS Sensors that use all the available
signatures. By using these default settings, you may be slowing down the overall
performance of the FortiGate unit. By creating IPS sensors with only the signatures your
network requires, you can ensure maximum performance as well as maximum protection.

Viewing the predefined signature list


The predefined signature list includes all of predefined signatures currently in the
FortiGuard Center Vulnerability Encyclopedia. Each signature name is a link to the
vulnerability encyclopedia entry for the signature. For each signature the vulnerability
encyclopedia describes the attack detected by the signature and provides recommended
actions and links for more information.
The predefined signature list also includes characteristics such as severity of the attack,
protocol, and applications affected for each signature. These characteristics give you a
quick reference to what the signature is for. You can also use these characteristics to sort
the signature list, grouping signatures by common characteristics. The signature list also
displays the default action, the default logging status, and whether the signature is
enabled by default.

Note: If virtual domains are enabled on the FortiGate unit, the Intrusion Protection settings
are configured separately in each VDOM. All sensors and custom signatures will appear
only in the VDOM in which they were created.

To view the predefined signature list, go to UTM > Intrusion Protection > Predefined. You
can also use filters and column settings to display the signatures you want to view. For
more information, see “Using display filters” on page 534.

Figure 314: Predefined signature list


Current page Filter

By default, the signatures are sorted by name. To sort the table by another column, select
the header of the column to sort by.

Current Page The current page number of list items that are displayed. Select the left and
right arrows to display the first, previous, next or last page of signatures.
Column Settings Select to customize the signature information displayed in the table. You can
also readjust the column order. For more information, see “Using column
settings to control the columns displayed” on page 103 and “Web-based
manager icons” on page 105.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 533
http://docs.fortinet.com/ • Feedback
Signatures Intrusion Protection

Clear All Filters If you have applied filtering to the predefined signature list display, select this
option to clear all filters and display all the signatures.
Filter icons Edit the column filters to filter or sort the predefined signature list according to
the criteria you specify. For more information, see “Adding filters to web-based
manager lists” on page 99.
Name The name of the signature. Each name is also a link to the description of the
signature in the FortiGuard Center Vulnerability Encyclopedia.
Severity The severity rating of the signature. The severity levels, from lowest to highest,
are Information, Low, Medium, High, and Critical.
Target The target of the signature: servers, clients, or both.
Protocols The protocol the signature applies to.
OS The operating system the signature applies to.
Applications The applications the signature applies to.
Enable The default status of the signature. A green circle indicates the signature is
enabled. A gray circle indicates the signature is not enabled.
Action The default action for the signature:
Pass — allows the traffic to continue without any modification.
Drop — prevents the traffic with detected signatures from reaching its
destination.
If Logging is enabled, the action appears in the status field of the log message
generated by the signature.
ID A unique numeric identifier for the signature.
Logging The default logging behavior of the signature. A green circle indicates logging is
enabled. A gray circle indicates logging is disabled.
Group A functional group that is assigned to that signature. This group is only for
reference and cannot be used to define filters.
Packet Log The default packet log status of the signature. A green circle indicates that the
packet log is enabled. A gray circle indicates that the packet log is not enabled.
Revision The revision level of the signature. If the signature is updated, the revision
number will be incremented.

Tip: To determine what effect IPS protection would have on your network traffic, you can
enable the required signatures, set the action to pass, and enable logging. Traffic will not be
interrupted, but you will be able to examine in detail which signatures were detected.

Using display filters


By default, all the predefined signatures are displayed. You can apply filters to display only
the signatures you want to view. For example, if you want to view only the Windows
signatures, you can use the OS status filter. For more information, see “Adding filters to
web-based manager lists” on page 99.

To apply filters to the predefined signature list


1 Go to UTM > Intrusion Protection > Predefined.
2 Select the filter icon beside any column name in the signature table.
3 In Edit Filters, specify the filtering criteria. The criteria will vary depending on the
column name.
4 Select the Enable check box.
5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


534 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection Custom signatures

Custom signatures
Custom signatures provide the power and flexibility to customize the FortiGate Intrusion
Protection system for diverse network environments. The FortiGate predefined signatures
represent common attacks. If you use an unusual or specialized application or an
uncommon platform, you can add custom signatures based on the security alerts released
by the application and platform vendors.
You can also create custom signatures to help you block P2P protocols.
After creation, you need to specify custom signatures in IPS sensors created to scan
traffic. For more information about creating IPS sensors, see “Adding an IPS sensor” on
page 538.
For more information about custom signatures, see the FortiGate UTM User Guide.

Note: If virtual domains are enabled on the FortiGate unit, the Intrusion Protection settings
are configured separately in each VDOM. All sensors and custom signatures will appear
only in the VDOM in which they were created.

Viewing the custom signature list


To view the custom signature list, go to UTM > Intrusion Protection > Custom.

Figure 315: The custom signature list

Edit
Delete

Create New Select to create a new custom signature.


Name The custom signature name.
Signature The signature syntax.
Delete and Edit Delete or edit the custom signature.
icons

Creating custom signatures


Use custom signatures to block or allow specific traffic. For example, to block traffic
containing profanity, add custom signatures similar to the following:
set signature 'F-SBID (--protocol tcp; --flow bi_direction; --
pattern "bad words"; --no_case)'
For more information on custom signature syntax, see the FortiGate UTM User Guide.

Note: Custom signatures are an advanced feature. This document assumes the user has
previous experience creating intrusion detection signatures.

Note: Custom signatures must be added to a signature override in an IPS filter to have any
effect. Creating a custom signature is a necessary step, but a custom signature does not
affect traffic simply by being created.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 535
http://docs.fortinet.com/ • Feedback
Protocol decoders Intrusion Protection

To create a custom signature, go to UTM > Intrusion Protection > Custom.

Figure 316: Edit Custom Signature

Name Enter a name for the custom signature.


Signature Enter the custom signature, using the appropriate syntax. For more information,
see the FortiGate UTM User Guide.

Protocol decoders
The FortiGate Intrusion Protection system uses protocol decoders to identify the abnormal
traffic patterns that do not meet the protocol requirements and standards. For example,
the HTTP decoder monitors traffic to identify any HTTP packets that do not meet the
HTTP protocol standards.

Viewing the protocol decoder list


To view the decoders and the port numbers that the protocol decoders monitor, go to
UTM > Intrusion Protection > Protocol Decoder. The decoder list is provided for your
reference and can be configured using the CLI. For more information, see the FortiGate
CLI Reference.

Figure 317: The protocol decoder list

Protocols The protocol decoder name.


Ports The port number or numbers that the decoder monitors.

FortiGate Version 4.0 MR1 Administration Guide


536 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection IPS sensors

Upgrading the IPS protocol decoder list


The Intrusion Protection system protocol decoders are upgraded automatically through
the FortiGuard Distribution Network (FDN) if existing decoders are modified or new
decoders added. The FDN keeps the protocol decoder list up-to-date with protection
against new threats such as the latest versions of existing IM/P2P as well as against new
applications.

IPS sensors
You can group signatures into IPS sensors for easy selection in protection profiles. You
can define signatures for specific types of traffic in separate IPS sensors, and then select
those sensors in profiles designed to handle that type of traffic. For example, you can
specify all of the web-server related signatures in an IPS sensor, and the sensor can then
be used by a protection profile in a policy that controls all of the traffic to and from a web
server protected by the FortiGate unit.
The FortiGuard Service periodically updates the pre-defined signatures, with signatures
added to counter new threats. Because the signatures included in filters are defined by
specifying signature attributes, new signatures matching existing filter specifications will
automatically be included in those filters. For example, if you have a filter that includes all
signatures for the Windows operating system, your filter will automatically incorporate new
Windows signatures as they are added.

Viewing the IPS sensor list


To view the IPS sensors, go to UTM > Intrusion Protection > IPS Sensor.

Figure 318: IPS Sensor list showing the default sensors

Edit
Delete

Create New Add a new IPS sensor. For more information, see “Adding an IPS
sensor” on page 538.
Name The name of each IPS sensor.
Comments An optional description of the IPS sensor.
Delete and Edit icons Delete or edit an IPS sensor.

Five default IPS sensors are provided with the default configuration.

all_default Includes all signatures. The sensor is set to use the default enable
status and action of each signature.
all_default_pass Includes all signatures. The sensor is set to use the default enable
status of each signature, but the action is set to pass.
protect_client Includes only the signatures designed to detect attacks against clients;
uses the default enable status and action of each signature.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 537
http://docs.fortinet.com/ • Feedback
IPS sensors Intrusion Protection

protect_email_server Includes only the signatures designed to detect attacks against


servers and the SMTP, POP3, or IMAP protocols; uses the default
enable status and action of each signature.
protect_http_server Includes only the signatures designed to detect attacks against
servers and the HTTP protocol; uses the default enable status and
action of each signature.

Adding an IPS sensor


An IPS sensor must be created before it can be configured by adding filters and overrides.
To create an IPS sensor, go to UTM > Intrusion Protection > IPS Sensor and select
Create New.

Figure 319: New IPS sensor

Name Enter the name of the new IPS sensor.


Comment Enter an optional comment to display in the IPS sensor list.

Configuring IPS sensors


Each IPS sensor consists of two parts: filters and overrides. Overrides are always
checked before filters.
Each filter consists of a number of signatures attributes. All of the signatures with those
attributes, and only those attributes, are checked against traffic when the filter is run. If
multiple filters are defined in an IPS Sensor, they are checked against the traffic one at a
time, from top to bottom. If a match is found, the FortiGate unit takes the appropriate
action and stops further checking.
A signature override can modify the behavior of a signature specified in a filter. A signature
override can also add a signature not specified in the sensor’s filters. Custom signatures
are included in an IPS sensor using overrides.
The signatures in the overrides are first compared to network traffic. If the IPS sensor
does not find any matches, it then compares the signatures in each filter to network traffic,
one filter at a time, from top to bottom. If no signature matches are found, the IPS sensor
allows the network traffic.
To view an IPS sensor, go to UTM > Intrusion Protection > IPS Sensor and select the Edit
icon of any IPS sensor. The Edit IPS Sensor window is divided into three parts: the sensor
attributes, Filters, and Overrides.

FortiGate Version 4.0 MR1 Administration Guide


538 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection IPS sensors

Figure 320: Edit IPS sensor


Insert
Edit Move To
Signature attributes Delete View

IPS sensor attributes:

Name The name of the IPS sensor. You can change it at any time.
Comments An optional comment describing the IPS sensor. You can change it at any time.
OK Select to save changes to Name or Comments
IPS sensor filters:

Add Filter Add a new filter to the end of the filter list. For more information, see
“Configuring filters” on page 540.
# Current position of each filter in the list.
Name The name of the filter.
Signature Signature attributes specify the type of network traffic the signature applies to.
attributes
Severity The severity of the included signatures.
Target The type of system targeted by the attack. The targets are client
and server.
Protocol The protocols to which the signatures apply. Examples include
HTTP, POP3, H323, and DNS.
OS The operating systems to which the signatures apply.
Application The applications to which the signatures apply.
Enable The status of the signatures included in the filter. The signatures can be set to
enabled, disabled, or default. The default setting uses the default status of each
individual signature as displayed in the signature list.
Logging The logging status of the signatures included in the filter. Logging can be set to
enabled, disabled, or default. The default setting uses the default status of each
individual signature as displayed in the signature list.
Action The action of the signatures included in the filter. The action can be set to pass
all, block all, reset all, or default. The default setting uses the action of each
individual signature as displayed in the signature list.
Count The number of signatures included in the filter. Overrides are not included in this
total.
Delete icon Delete the filter.
Edit icon Edit the filter.
Insert icon Create a new filter and insert it above the current filter.
Move to icon After selecting this icon, enter the destination position in the window that
appears, and select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 539
http://docs.fortinet.com/ • Feedback
IPS sensors Intrusion Protection

View Rules icon Open a window listing all of the signatures included in the filter.

IPS sensor overrides:

Add Pre-defined Select to create an override based on a pre-defined signature.


Override
Add Custom Select to create an override based on a custom signature.
Override
# Current position of each override in the list.
Name The name of the signature.
Enable The status of the override. A green circle indicates the override is enabled. A
gray circle indicates the override is not enabled.
Logging The logging status of the override. A green circle indicates logging is enabled. A
gray circle indicates logging is not enabled.
Action The action set for the override. The action can be set to pass, block, or reset.
Delete and Edit Delete or edit the filter.
icons

Configuring filters
To configure a filter, go to UTM > Intrusion Protection > IPS Sensor. Select the Edit icon of
the IPS sensor containing the filter you want to edit. When the sensor window opens,
select the Edit icon of the filter you want to change, or select Add Filter to create a new
filter. Enter the information as described below and select OK.

Figure 321: Edit IPS Filter

Right Arrow
Left Arrow

Name Enter or change the name of the IPS filter.


Severity Select All, or select Specify and then one or more severity ratings. Severity
defines the relative importance of each signature. Signatures rated critical detect
the most dangerous attacks while those rated as info pose a much smaller threat.

FortiGate Version 4.0 MR1 Administration Guide


540 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection IPS sensors

Target Select All, or select Specify and then the type of systems targeted by the attack.
The choices are server or client.
OS Select All, or select Specify and then select one or more operating systems that
are vulnerable to the attack.
Signatures with an OS attribute of All affect all operating systems. These
signatures will be automatically included in any filter regardless of whether a
single, multiple, or all operating systems are specified.
Protocol Select All, or select Specify to list what network protocols are used by the attack.
Use the Right Arrow to move the ones you want to include in the filter from the
Available to the Selected list, or the Left Arrow to remove previously selected
protocols from the filter.
Application Select All, or select Specify to list the applications or application suites vulnerable
to the attack. Use the Right Arrow to move the ones you want to include in the
filter from the Available to the Selected list, or the Left Arrow to remove previously
selected protocols from the filter.
Quarantine Select to enable NAC quarantine for this filter. For more information about NAC
Attackers (to quarantine, see “NAC quarantine and the Banned User list” on page 678.
Banned Users The FortiGate unit deals with the attack according to the IPS sensor or DoS
List) sensor configuration regardless of this setting.

Method Select Attacker’s IP address to block all traffic sent from the attacker’s IP
address. The attacker’s IP address is also added to the banned user list. The
target’s address is not affected.
Select Attacker and Victim IP Addresses to block all traffic sent from the
attacker’s IP address to the target (victim’s) IP address. Traffic from the attacker’s
IP address to addresses other than the victim’s IP address is allowed. The
attacker’s and target’s IP addresses are added to the banned user list as one
entry.
Select Attack’s Incoming Interface to block all traffic from connecting to the
FortiGate interface that received the attack. The interface is added to the banned
user list.
Expires You can select whether the attacker is banned indefinitely or for a specified
number of days, hours, or minutes.
Signature Configure whether the filter overrides the following signature settings or accepts
Settings the settings in the signatures.
Enable Select from the options to specify what the FortiGate unit will do with the
signatures included in the filter: enable all, disable all, or enable or disable each
according to the individual default values shown in the signature list.
Logging Select from the options to specify whether the FortiGate unit will create log entries
for the signatures included in the filter: enable all, disable all, or enable or disable
logging for each according to the individual default values shown in the signature
list.
Action Select from the options to specify what the FortiGate unit will do with traffic
containing a signature match: pass all, block all, reset all, or block or pass traffic
according to the individual default values shown in the signature list.
The signatures included in the filter are only those matching every attribute specified.
When created, a new filter has every attribute set to all which causes every signature to be
included in the filter. If the severity is changed to high, and the target is changed to server,
the filter includes only signatures checking for high priority attacks targeted at servers.

Configuring pre-defined and custom overrides


Pre-defined and custom overrides are configured and work mainly in the same way as
filters. Unlike filters, each override defines the behavior of one signature.
Overrides can be used in two ways:
• To change the behavior of a signature already included in a filter. For example, to
protect a web server, you could create a filter that includes and enables all signatures
related to servers. If you wanted to disable one of those signatures, the simplest way
would be to create an override and mark the signature as disabled.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 541
http://docs.fortinet.com/ • Feedback
IPS sensors Intrusion Protection

• To add an individual signature, not included in any filters, to an IPS sensor. This is the
only way to add custom signatures to IPS sensors.
When a pre-defined signature is specified in an override, the default status and action
attributes have no effect. These settings must be explicitly set when creating the override.

Note: Before an override can affect network traffic, you must add it to a filter, and you must
select the filter in a protection profile applied to a policy. An override does not have the
ability to affect network traffic until these steps are taken.

To edit a pre-defined or custom override, go to UTM > Intrusion Protection > IPS Sensor
and select the Edit icon of the IPS sensor containing the override you want to edit. When
the sensor window opens, select the Edit icon of the override you want to change.

Figure 322: Configure IPS override

Signature Select the browse icon to view the list of available signatures. From this list,
select a signature the override will apply to and then select OK.
Enable Select to enable the signature override.
Action Select Pass, Block or Reset. When the override is enabled, the action
determines what the FortiGate will do with traffic containing the specified
signature.
Logging Select to enable creation of a log entry if the signature is discovered in
network traffic.
Packet Log Select to save packets that trigger the override to the FortiGate hard drive for
later examination.
Quarantine Select to enable NAC quarantine for this override. For more information
Attackers (to about NAC quarantine, see “NAC quarantine and the Banned User list” on
Banned Users List) page 678.
The FortiGate unit deals with the attack according to the IPS sensor or DoS
sensor configuration regardless of this setting.

FortiGate Version 4.0 MR1 Administration Guide


542 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection IPS sensors

Method Select Attacker’s IP address to block all traffic sent from the attacker’s IP
address. The attacker’s IP address is also added to the banned user list. The
target’s address is not affected.
Select Attacker and Victim IP Addresses to block all traffic sent from the
attacker’s IP address to the target (victim’s) IP address. Traffic from the
attacker’s IP address to addresses other than the victim’s IP address is
allowed. The attacker’s and target’s IP addresses are added to the banned
user list as one entry.
Select Attack’s Incoming Interface to block all traffic from connecting to the
FortiGate interface that received the attack. The interface is added to the
banned user list.
Expires You can select whether the attacker is banned indefinitely or for a specified
number of days, hours, or minutes.
Exempt IP Enter IP addresses to exclude from the override. The override will then apply
to all IP addresses except those defined as exempt. The exempt IP
addresses are defined in pairs, with a source and destination, and traffic
moving from the source to the destination is exempt from the override.
Source The exempt source IP address. Enter 0.0.0.0/0 to include all source IP
addresses.
Destination: The exempt destination IP address. Enter 0.0.0.0/0 to include all
destination IP addresses.

Packet logging
Packet logging is a way you can debug custom signatures or how any signature is
functioning in your network environment.
If a signature is selected in a custom override, and packet logging is enabled, the
FortiGate unit will save any network packet triggering the signature to memory, the internal
hard drive (if so equipped), a FortiAnalyzer, or the FortiGuard Analysis and Management
Service. These saved packets can be later viewed and saved in PCAP format for closer
examination.

Configuring packet logging


Packet logging saves the network packets containing an IPS signature to the attack log.
The FortiGate unit will save the logged packets to wherever the logs are configured to be
stored, whether memory, internal hard drive, a FortiAnalyzer unit, or the FortiGuard
Analysis and Management Service.
You can enable packet logging only in signature overrides. It not an available option in
IPS sensors or filters because enabling packet logging on a large number of signatures
could produce an unusably large amount of data. Packet logging is designed as focused
diagnostic tool.
There are a number of CLI commands available to further configure packet logging. When
logging to memory, the packet-log-memory command defines the maximum amount
of memory is used to store logged packets. This command only takes effect when logging
to memory.
Since only the packet containing the signature is sometimes not sufficient to troubleshoot
a problem, the packet-log-history command allows you to specify how many
packets are captured when an IPS signature is found in a packet. If the value is set to
larger than 1, the packet containing the signature is saved in the packet log, as well as
those preceding it, with the total number of logged packets equalling the value. For
example, if packet-log-history is set to 7, the FortiGate unit will save the packet
containing the IPS signature and the six before it.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 543
http://docs.fortinet.com/ • Feedback
IPS sensors Intrusion Protection

Note: Setting packet-log-history to a value larger than 1 can affect the maximum
performance of the FortiGate unit because network traffic must be buffered. The
performance penalty depends on the model, the setting, and the traffic load.

To enable packet logging for a signature


1 Create either a pre-defined override or a custom override in an IPS sensor. For more
information. For more information, see “Configuring pre-defined and custom overrides”
on page 541.
2 Enable Packet Log in the override.
3 Select the IPS sensor in the protection profile applied to the firewall policy that allows
the network traffic the FortiGate unit will examine for the signature.

Viewing and saving logged packets


Once the FortiGate unit logs packets, you can view or save them.

To view and save logged packets


1 Go Log & Report > Log Access.
2 Depending on where the logs are configured to be stored, select the appropriate tab:
• Memory: Select Memory if logs are stored in the FortiGate unit memory.
• Disk: Select Disk if the FortiGate unit has an internal hard disk and logs are stored
there.
• Remote: Select Remote if logs are sent to a FortiAnalyzer unit or to the FortiGuard
Analysis and Management Service.
3 Select the Attack Log log type.
4 Select the Packet Log icon of the log entry you want to view.
The IPS Packet Log Viewer window appears.

Figure 323: Log entry with packet log icon

FortiGate Version 4.0 MR1 Administration Guide


544 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection DoS sensors

Figure 324: IPS Packet Log Viewer

5 Select the packet to view the packet in binary and ASCII. Each table row represents a
captured packet.
6 Select Save to save the packet data in a PCAP formatted file.
PCAP files can be opened and examined in network analysis software such as Wireshark.

DoS sensors
The FortiGate IPS uses a traffic anomaly detection feature to identify network traffic that
does not fit known or common traffic patterns and behavior. For example, one type of
flooding is the denial of service (DoS) attack that occurs when an attacking system starts
an abnormally large number of sessions with a target system. The large number of
sessions slows down or disables the target system so legitimate users can no longer use
it. This type of attack gives the DoS sensor its name, although it is capable of detecting
and protecting against a number of anomaly attacks.
You can enable or disable logging for each traffic anomaly, and configure the detection
threshold and action to take when the detection threshold is exceeded.
You can create multiple DoS sensors. Each sensor consists of 12 anomaly types that you
can configure. When a sensor detects an anomaly, it applies the configured action. One
sensor can be selected for use in each DoS policy, allowing you to configure the anomaly
thresholds separately for each interface. Multiple sensors allow great granularity in
detecting anomalies because each sensor can be configured for the specific needs of the
interface it is attached to by the DoS policy.
The traffic anomaly detection list can be updated only when the FortiGate firmware image
is upgraded.

Note: If virtual domains are enabled on the FortiGate unit, the Intrusion Protection settings
must be configured separately in each VDOM. All sensors and custom signatures will
appear only in the VDOM in which they were created.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 545
http://docs.fortinet.com/ • Feedback
DoS sensors Intrusion Protection

Viewing the DoS sensor list


To view the anomaly list, go to UTM > Intrusion Protection > DoS Sensor.

Figure 325: The DoS sensor list


Delete
Edit

Insert DoS Sensor before


Move To

Create New Add a new DoS sensor to the bottom of the list.
ID A unique identifier for each DoS sensor. The ID does not indicate the
sequence in which the sensors examine network traffic.
Status Select to enable the DoS sensor.
Name The DoS sensor name.
Comments An optional description of the DoS sensor.
Delete Delete the DoS sensor.
Edit icon Edit the following information: Action, Severity, and Threshold.
Insert DoS Sensor Create a new DoS sensor before the current sensor.
before icon
Move To icon Move the current DoS sensor to another position in the list. After
selecting this icon, enter the destination position in the window that
appears, and select OK.

Configuring DoS sensors


Because an improperly configured DoS sensor can interfere with network traffic, no DoS
sensors are present on a factory default FortiGate unit. You must create your own and
then select them in a DoS policy before they will take effect. Thresholds for newly created
sensors are preset with recommended values that you can adjust to meet the needs of
your network.

Note: It is important to know normal and expected network traffic before changing the
default anomaly thresholds. Setting the thresholds too low could cause false positives, and
setting the thresholds too high could allow otherwise avoidable attacks.

To configure DoS sensors, go to UTM > Intrusion Protection > DoS Sensor. Select the Edit
icon of an existing DoS sensor, or select Create New to create a new DoS sensor.

Note: You can configure NAC quarantine for DoS sensors from the FortiGate CLI. For
more information, see “Configuring NAC quarantine” on page 679.

FortiGate Version 4.0 MR1 Administration Guide


546 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Intrusion Protection DoS sensors

Figure 326: Edit DoS Sensor

DoS sensor attributes:

Name Enter or change the DoS sensor name.


Comments Enter or change an optional description of the DoS sensor. This description
will appear in the DoS sensor list.
Anomalies Configuration
Name The name of the anomaly.
Enable Select the check box to enable the DoS sensor to detect when the
specified anomaly occurs. Selecting the check box in the header row will
enable sensing of all anomalies.
Logging Select the check box to enable the DoS sensor to log when the anomaly
occurs. Selecting the check box in the header row will enable logging for all
anomalies. Anomalies that are not enabled are not logged.
Action Select Pass to allow anomalous traffic to pass when the FortiGate unit
detects it, or set Block to prevent the traffic from passing.
Threshold Displays the number of sessions/packets that must show the anomalous
behavior before the FortiGate unit triggers the anomaly action (pass or
block). If required, change the number. For more information about how
these settings affect specific anomalies, see Table 49 on page 548.

Understanding the anomalies


For each of the TCP, UDP, and ICMP protocols, DoS sensors offer four statistical anomaly
types. The result is twelve configurable anomalies.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 547
http://docs.fortinet.com/ • Feedback
Intrusion protection CLI configuration Intrusion Protection

Table 49: The twelve individually configurable anomalies

Anomaly Description
tcp_syn_flood If the SYN packet rate, including retransmission, to one destination IP
address exceeds the configured threshold value, the action is executed.
The threshold is expressed in packets per second.
tcp_port_scan If the SYN packets rate, including retransmission, from one source IP
address exceeds the configured threshold value, the action is executed.
The threshold is expressed in packets per second.
tcp_src_session If the number of concurrent TCP connections from one source IP address
exceeds the configured threshold value, the action is executed.
tcp_dst_session If the number of concurrent TCP connections to one destination IP
address exceeds the configured threshold value, the action is executed.
udp_flood If the UDP traffic to one destination IP address exceeds the configured
threshold value, the action is executed. The threshold is expressed in
packets per second.
udp_scan If the number of UDP sessions originating from one source IP address
exceeds the configured threshold value, the action is executed. The
threshold is expressed in packets per second.
udp_src_session If the number of concurrent UDP connections from one source IP address
exceeds the configured threshold value, the action is executed.
udp_dst_session If the number of concurrent UDP connections to one destination IP
address exceeds the configured threshold value, the action is executed.
icmp_flood If the number of ICMP packets sent to one destination IP address
exceeds the configured threshold value, the action is executed. The
threshold is expressed in packets per second.
icmp_sweep If the number of ICMP packets originating from one source IP address
exceeds the configured threshold value, the action is executed. The
threshold is expressed in packets per second.
icmp_src_session If the number of concurrent ICMP connections from one source IP
address exceeds the configured threshold value, the action is executed.
icmp_dst_session If the number of concurrent ICMP connections to one destination IP
address exceeds the configured threshold value, the action is executed.

Intrusion protection CLI configuration


This section describes the CLI commands that extend features available through the web-
based manager. For complete descriptions and examples of how to enable additional
features through CLI commands, see the FortiGate CLI Reference.

ips global fail-open


If for any reason the IPS should cease to function, it will fail open by default. This means
crucial network traffic will not be blocked, and the FortiGate unit will continue to operate
while the problem is being resolved.

ips global socket-size


Set the size of the IPS buffer.

FortiGate Version 4.0 MR1 Administration Guide


548 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter Order of web filtering

Web Filter
This chapter describes how to configure FortiGate web filtering for HTTP traffic. If your
FortiGate unit supports SSL content scanning and inspection you can also configure web
filtering for HTTPS traffic. For information about SSL content scanning and inspection, see
“SSL content scanning and inspection” on page 481. if your FortiGate unit does not
support HTTPS content scanning and inspection you can configure URL filtering for
HTTPS traffic.
The three main sections of the web filtering function, the Web Content Filter, the URL
Filter, and the FortiGuard Web filter, interact with each other in such a way as to provide
maximum control and protection for the Internet users.
This section provides an introduction to configuring web filtering. For more information see
the FortiGate UTM User Guide.
If you enable virtual domains (VDOMs) on the FortiGate unit, web filtering is configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.
This section describes:
• Order of web filtering
• How web filtering works
• Web filter controls
• Web content filter
• URL filter
• FortiGuard - Web Filter

Order of web filtering


Web filters are applied in a specific order:
1 URL Exempt (Web Content Exempt List)
2 URL Block (Web URL Block)
3 URL Block (Web Pattern Block)
4 FortiGuard Web Filtering (Also called Category Block)
5 Content Filter (Web Content Filter)
6 Script Filter (Web Script Filter)
7 Antivirus scanning
The URL filter list is processed in order from top to bottom. An exempt match stops all
further checking including AV scanning. An allow match exits the URL filter list and checks
the other web filters.
Local ratings are checked prior to other FortiGuard Web Filtering categories.
The FortiGate unit applies the rules in this order and failure to comply with a rule will
automatically block a site despite what the setting for later filters might be.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 549
http://docs.fortinet.com/ • Feedback
How web filtering works Web Filter

How web filtering works


The following information shows how the filters interact with each other and how to use
them to your advantage.
The first section, the URL exempt and block filters, will allow you to decide what action to
take for specific addresses. For example, if you want to exempt www.google.com from
being scanned, you can add it to the URL exempt list. Then no web filtering or virus
scanning will be taken to this web site.
If you have blocked a pattern but want certain users to have access to URLs within that
pattern, you can use the Override within the FortiGuard Web Filter. This will allow you to
specify which users have access to which blocked URLs and how long they have that
access. For example, you want user1 to be able to access www.example.com for 1 hour.
You can use this section to set up the exemption. Any user listed in an override must fill
out an online authentication form before the FortiGate unit will grant access to the blocked
URL.
FortiGuard Web Filter also lets you create local categories to block groups of URLs. Once
you have created the category, you can use the local rating to add specific sites to the
local category you have created. You then use the Firewall > Protection Profile to tell the
FortiGuard Unit what action to take with the Local category. The local ratings overwrite the
FortiGuard ratings.
Finally the FortiGuard unit applies script filtering for ActiveX, Cookie, and Java applet,
which can be configured in Firewall > Protection Profile > Web Filtering.
Once you have finished configuring all of these settings, you still have to turn them all on
in the Firewall > Protection Profile > Web filtering and Firewall > Protection Profile >
FortiGuard Web Filtering. By enabling them here, you are telling the FortiGate unit to start
using the filters as you have configured them.
This section describes how to configure web filtering options. Web filtering functions must
be enabled in the active protection profile for the corresponding settings in this section to
have any effect.

Web filter controls


As a general rule you go to Web Filter to configure the web filtering settings and to enable
the filters for use in a protection profile. To actually activate the enabled filters you go to
Firewall > Protection Profile.

Note: Enabled means that the filter will be used when you turn on web filtering. It does not
mean that the filter is turned on. To turn on all enabled filters you must go to Firewall >
Protection Profile.

FortiGuard - Web Filter is described in detail in“FortiGuard Web Filtering options” on


page 495. Rating corrections as well as suggesting ratings for new pages can be
submitted on the FortiGuard Center web page. Visit the Fortinet Knowledge Center for
details and a link to the FortiGuard Center.
The following tables compare web filtering options in protection profiles and the web filter
menu.

FortiGate Version 4.0 MR1 Administration Guide


550 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter Web filter controls

Table 50: Web filter and Protection Profile protocol recognition configuration

Protection Profile web filtering options Web Filter setting


HTTPS Content Filtering Mode n/a
On FortiGate units that support SSL content
scanning and inspection you can select URL
filtering to only apply URL filtering and
FortiGuard URL filtering to encrypted HTTPS
traffic. Or you can select Deep Scan to
decrypt HTTPS traffic and apply all web
filtering and FortiGuard web filtering options to
HTTPS traffic.

Table 51: Web filter and Protection Profile web content filter configuration

Protection Profile web filtering options Web Filter setting


Web Content Filter UTM > Web Filter > Web Content Filter
Enable or disable web page filtering based on Add words and patterns to block or exempt web
the web content filter list for HTTP or HTTPS pages containing those words or patterns.
traffic.

Table 52: Web filter and Protection Profile web URL filtering configuration

Protection Profile web filtering options Web Filter setting


Web URL Filter UTM > Web Filter > URL Filter
Enable or disable web page filtering for HTTP Add URLs and URL patterns to exempt or block
traffic based on the URL filter list. web pages from specific sources.

Table 53: Web filter and Protection Profile web script filtering and download configuration

Protection Profile web filtering options Web Filter setting


Active X Filter, Cookie Filter, Java Applet Filter n/a
Enable or disable blocking scripts from web
pages for HTTP traffic.
Web resume Download Block n/a
Enable to block downloading the remainder of
a file that has already been partially
downloaded. Enabling this option prevents the
unintentional download of virus files, but can
cause download interruptions.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 551
http://docs.fortinet.com/ • Feedback
Web content filter Web Filter

Table 54: Web filter and Protection Profile FortiGuard web filtering configuration

Protection Profile web filtering options Web Filter setting


Enable FortiGuard Web Filtering (HTTP only).
Enable FortiGuard Web Filtering Overrides UTM > Web Filter> Overrides
(HTTP only).
Provide details for blocked HTTP 4xx and 5xx
errors (HTTP only.)
Rate images by URL (Blocked images will be
replaced with blanks) (HTTP only).
Allow web sites when a rating error occurs
(HTTP only).
Strict Blocking (HTTP only)
Category / Action
FortiGuard Web Filtering service provides
many categories by which to filter web traffic.
Set the action to take on web pages for each
category. Choose from allow, block, log, or
allow override.
Local Categories can be configured to best UTM > Web Filter > Local Categories | Local
suit local requirements. Ratings
Classification/Action
When selected, users can access web sites
that provide content cache, and provide
searches for image, audio, and video files.
Choose from allow, block, log, or allow
override.

To access protection profile web filter options


1 Go to Firewall > Protection Profile.
2 Select Edit or Create New.
3 Select Web Filtering or Web Category Filtering.

Note: If virtual domains are enabled on the FortiGate unit, web filtering features are
configured globally. To access these features, select Global Configuration on the main
menu.

Web content filter


Control web content by creating web content filter lists that control access to web pages
containing specific words or patterns. You can add words, phrases, wild cards and Perl
regular expressions to match content on web pages.
For information, about wild cards and Perl regular expressions, see “Using wildcards and
Perl regular expressions” on page 578.

Note: Perl regular expression patterns are case sensitive for the Web content filter. To
make a word or phrase case insensitive, use the regular expression /i. For example,
/bad language/i blocks all instances of bad language regardless of case. Wildcard
patterns are not case sensitive.

For each pattern you can select Block or Exempt. Block, blocks access to a web page that
matches with the pattern. Exempt allows access to the web page even if other entries in
the list that would block access to the page.

FortiGate Version 4.0 MR1 Administration Guide


552 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter Web content filter

Viewing the web content filter list catalog


You can add multiple web content filter lists and then select the best web content filter list
for each protection profile. To view the web content filter list catalog, go to UTM >
Web Filter > Web Content Filter. To view any individual web content filter list, select the
edit icon for the list you want to see.

Figure 327: Sample web content filter list catalog

Create New Select to add a new web content filter list to the catalog.
Name The available web content filter lists.
# Entries The number of content patterns in each web content filter list.
Profiles The protection profiles each web content filter list has been applied to.
Comment Optional description of each web content filter list. The comment text must be
less than 63 characters long. Otherwise, it will be truncated. Spaces will also
be replaced by the plus sign ( + ).
Delete icon Select to remove the web content filter list from the catalog. The delete icon is
only available if the web content filter list is not selected in any protection
profiles.
Edit icon Select to edit the web content filter list, list name, or list comment.

Select web content filter lists in protection profiles. For more information, see “Web
Filtering options” on page 493.

Creating a new web content filter list


To add a web content filter list to the web content filter list catalog go to UTM > Web Filter
> Web Content Filter. Select Create New.

Figure 328: New Web Content Filter list dialog box

Name Enter the name of the new list.


Comment Enter a comment to describe the list, if required.

Viewing the web content filter list


With web content filter enabled, every requested web page is checked against the content
filter list. The score value of each pattern appearing on the page is added, and if the total
is greater than the threshold value set in the protection profile, the page is blocked. The
score for a pattern is applied only once even if it appears on the page multiple times.
To view the web content filter list go to UTM > Web Filter > Web Content Filter and select
the Edit icon of the web content filter list you want to view.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 553
http://docs.fortinet.com/ • Feedback
Web content filter Web Filter

Figure 329: Sample web content filter list

Note: Enable UTM > Web Filtering > Web Content Filter in a firewall Protection Profile to
activate the content filter settings.

The web content filter list has the following icons and features:

Name Web content filter list name. To change the name, edit text in the name field and
select OK.
Comment Optional comment. To add or edit comment, enter text in comment field and
select OK.
Create new Select to add a pattern to the web content filter list.
Page up icon Select to view the previous page.
Page down icon Select to view the next page.
Remove All Select to clear the table.
Entries icon
Check Box Select the check box to enable all the patterns in the list. Clear the check box to
disable all of the patterns in the list. Use the check box for individual patterns to
enable or disable them.
Pattern The current list of patterns.
Pattern type The pattern type used in the pattern list entry. Pattern type can be wildcard or
regular expression. See “Using wildcards and Perl regular expressions” on
page 578.
Language The character set to which the pattern belongs: Simplified Chinese, Traditional
Chinese, French, Japanese, Korean, Thai, or Western.
Action Action can be block or exempt.
Score A numerical weighting applied to the pattern. The score values of all the matching
patterns appearing on a page are added, and if the total is greater than the
threshold value set in the protection profile, the page is blocked.
Delete icon Select to delete an entry from the list.
Edit icon Select to edit the following information: Banned Word, Pattern Type, Language,
and Enable.

Configuring the web content filter list


Web content patterns can be one word or a text string up to 80 characters long. The
maximum number of patterns in the list is 5000.
To add or edit a content filter pattern go to UTM > Web Filter > Web Content Filter and
select Create New or select the Edit icon of the web content filter list you want to edit.

FortiGate Version 4.0 MR1 Administration Guide


554 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter URL filter

Figure 330: New pattern

Action Select one of:


Block — If the pattern matches, the Score is added to the total for the web page.
The page is blocked if the total score of the web page exceeds the web content
block threshold defined in the protection profile.
Exempt — If the pattern matches, the web page will not be blocked even if there
are matching Block entries.
Pattern Enter the content pattern. Web content patterns can be one word or a text string
up to 80 characters long.
For a single word, the FortiGate unit checks all web pages for that word. For a
phrase, the FortiGate checks all web pages for any word in the phrase. For a
phrase in quotation marks, the FortiGate unit checks all web pages for the entire
phrase.
Pattern Type Select a pattern type from the dropdown list: Wildcard or Regular Expression.
Language The character set to which the pattern belongs: Simplified Chinese, Traditional,
Chinese, French, Japanese, Korean, Thai, or Western.
Score Enter a score for the pattern.
When you add a web content list to a protection profile you configure a web
content filter threshold for the protection profile. When a web page is matched with
an entry in the content block list, the score is recorded. If a web page matches
more than one entry the score for the web page increases. When the total score
for a web page equals or exceeds the threshold, the page is blocked.
The default score for a content list entry is 10 and the default threshold is 10. This
means that by default a web page is blocked by a single match. You can change
the scores and threshold so that web pages can only be blocked if there are
multiple matches. For more information, see “Web Filtering options” on page 493.
Enable Select to enable the entry.

URL filter
Allow or block access to specific URLs by adding them to the URL filter list. Add patterns
using text and regular expressions (or wildcard characters) to allow or block URLs. The
FortiGate unit allows or blocks web pages matching any specified URLs or patterns and
displays a replacement message instead.

Note: Enable Web filtering > Web URL Filter in a firewall Protection Profile to activate the
URL filter settings.

Note: URL blocking does not block access to other services that users can access with a
web browser. For example, URL blocking does not block access to
ftp://ftp.example.com. Instead, use firewall policies to deny FTP connections.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 555
http://docs.fortinet.com/ • Feedback
URL filter Web Filter

Viewing the URL filter list catalog


You can add multiple URL filter lists and then select the best URL filter list for each
protection profile.
To view the URL filter list catalog go to UTM > Web Filter > URL Filter.
To view any individual URL filter list go to UTM > Web Filter > URL Filter. Select the Edit
icon for the list you want to see.

Figure 331: Sample URL filter list catalog

The URL filter list catalogue has the following icons and features:

Create New Select to add a new web content URL list to the catalog.
Name The available URL filter lists.
# Entries The number of URL patterns in each URL filter list.
Profiles The protection profiles each URL filter list has been applied to.
Comment Optional description of each URL filter list.
Delete icon Select to remove the URL filter list from the catalog. The delete icon is only
available if the URL filter list is not selected in any protection profiles.
Edit icon Select to edit the URL filter list, list name, or list comment.

Select URL filter lists in protection profiles. For more information, see “Web Filtering
options” on page 493.

Creating a new URL filter list


Different FortiGate models support different maximum numbers of URL filter lists. For
details, see the FortiGate Maximum Values Matrix in Fortinet’s Knowledge Center web
site http://kc.forticare.com.
To add a URL filter list to the URL filter list catalog go to UTM > Web Filter > URL Filter.
Select Create New.

Figure 332: New URL Filter list dialog box

Name Enter the name of the new list.


Comment Enter a comment to describe the list, if required.

Viewing the URL filter list


Add specific URLs to block or exempt. Add the following items to the URL filter list:
• complete URLs
• IP addresses

FortiGate Version 4.0 MR1 Administration Guide


556 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter URL filter

• partial URLs to allow or block all sub-domains


To view the URL filter list go to UTM > Web Filter > URL Filter. Select the Edit icon of the
URL filter list you want to view.

Figure 333: URL filter list

The URL filter list has the following icons and features:

Name URL filter list name. To change the name, edit text in the name field and select
OK.
Comment Optional comment. To add or edit comment, enter text in comment field and
select OK.
Create New Select to add a URL to the URL block list.
Page up icon Select to view the previous page.
Page down icon Select to view the next page.
Clear All URL Select to clear the table.
Filters icon
URL The current list of blocked/exempt URLs. Select the check box to enable all
the URLs in the list.
Type The type of URL: Simple or Regex (regular expression).
Action The action taken when the URL matches: Allow, Block, or Exempt.
An allow match exits the URL filter list and checks the other web filters.
An exempt match stops all further checking including AV scanning.
A block match blocks the URL and no further checking will be done.
Delete icon Select to remove an entry from the list.
Edit icon Select to edit the following information: URL, Type, Action, and Enable.
Move icon Select to open the Move URL Filter dialog box.

Configuring the URL filter list


Each URL filter list can have up to 5000 entries.

Note: Type a top-level domain suffix (for example, “com” without the leading period) to
block access to all URLs with this suffix.

To add a URL to the URL filter list go to UTM > Web Filter > URL Filter. Select Create New
or edit an existing list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 557
http://docs.fortinet.com/ • Feedback
URL filter Web Filter

Figure 334: New URL Filter

URL Enter the URL. Do not include http://. For details about URL
formats, see “URL formats” on page 558.
Type Select a type from the dropdown list: Simple or Regex (regular
expression).
Action Select an action from the dropdown list: Allow, Block, or Exempt.
An allow match exits the URL filter list and checks the other web
filters.
An exempt match stops all further checking including AV
scanning.
A block match blocks the URL and no further checking will be
done.
Enable Select to enable the URL.

URL formats
When adding a URL to the URL filter list (see “Configuring the URL filter list” on page 557),
follow these rules:

HTTPS URL formats


If your FortiGate unit does not support SSL content scanning and inspection or if you have
selected the URL filtering option in a protection profile for HTTPS content filtering mode
under Protocol Recognition, filter HTTPS traffic by entering a top level domain name, for
example, www.example.com. HTTPS URL filtering of encrypted sessions works by
extracting the CN from the server certificate during the SSL negotiation. Because the CN
only contains the domain name of the site being accessed, web filtering of encrypted
HTTPS sessions can only filter by domain names.
If your FortiGate unit supports SSL content scanning and inspection and if you have
selected Deep Scan, you can filter HTTPS traffic in the same way as HTTP traffic. For
information about SSL content scanning and inspection, see “SSL content scanning and
inspection” on page 481.

HTTP URL formats


• Type a top-level URL or IP address to control access to all pages on a web site. For
example, www.example.com or 192.168.144.155 controls access to all pages at
this web site.
• Enter a top-level URL followed by the path and filename to control access to a single
page on a web site. For example, www.example.com/news.html or
192.168.144.155/news.html controls the news page on this web site.
• To control access to all pages with a URL that ends with example.com, add
example.com to the filter list. For example, adding example.com controls access to
www.example.com, mail.example.com, www.finance.example.com, and so
on.

FortiGate Version 4.0 MR1 Administration Guide


558 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter FortiGuard - Web Filter

• Control access to all URLs that match patterns created using text and regular
expressions (or wildcard characters). For example, example.* matches
example.com, example.org, example.net and so on.
FortiGate web pattern blocking supports standard regular expressions.

Note: URLs with an action set to exempt are not scanned for viruses. If users on
the network download files through the FortiGate unit from trusted website, add the
URL of this website to the URL filter list with an action set to exempt so the
FortiGate unit does not virus scan files downloaded from this URL.

Note: Enable Web Filtering > Web URL Filter > HTTP or HTTPS in a firewall Protection
Profile to activate the web URL filter settings for HTTP and/or HTTPS traffic.

Moving URLs in the URL filter list


To make the URL filter list easier to use, the entries can be moved to different positions in
the list.

To move a URL in the URL filter list


1 Go to UTM > Web Filter > URL Filter.
2 Select the Edit icon for the URL list.
3 Drag and drop a URL or select the Move icon to the right of the URL to be moved.
4 Specify the location for the URL.
5 Select OK.

Figure 335: Move URL Filter

Move to Select the location in the list to place the URL.


(URL) Enter the URL before or after which the new URL is to be located in the list.

FortiGuard - Web Filter


FortiGuard Web Filtering is a managed web filtering solution provided by Fortinet.
FortiGuard Web Filtering sorts hundreds of millions of web pages into a wide range of
categories users can allow, block, or monitor. The FortiGate unit accesses the nearest
FortiGuard Web Filtering Service Point to determine the category of a requested web
page then follows the firewall policy configured for that user or interface.
FortiGuard Web Filtering includes over 60 million individual ratings of web sites applying
to hundreds of millions of pages. Pages are sorted and rated into 56 categories users can
allow, block, or monitor. Categories may be added to, or updated, as the Internet evolves.
To make configuration simpler, users can also choose to allow, block, or monitor entire
groups of categories. Blocked pages are replaced with a message indicating that the page
is not accessible according to the Internet usage policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 559
http://docs.fortinet.com/ • Feedback
FortiGuard - Web Filter Web Filter

FortiGuard Web Filtering ratings are performed by a combination of proprietary methods


including text analysis, exploitation of the Web structure, and human raters. Users can
notify the FortiGuard Web Filtering Service Points if they feel a web page is not
categorized correctly, and new sites are quickly rated as required.
Use the procedure “FortiGuard Web Filtering options” on page 495 to configure
FortiGuard category blocking in a protection profile. To configure the FortiGuard Web
service, see “Configuring the FortiGate unit for FDN and FortiGuard subscription services”
on page 323.

Configuring FortiGuard Web Filtering


To configure the FortiGuard Web Filtering service go to System > Maintenance >
FortiGuard. See “Configuring the FortiGate unit for FDN and FortiGuard subscription
services” on page 323.

Viewing the override list


Users may require access to web sites that are blocked by a policy. In this case, an
administrator can give the user the ability to override the block for a specified period of
time.
When a user attempts to access a blocked site, if override is enabled, a link appears on
the block page directing the user to an authentication form. The user must provide a
correct user name and password or the web site remains blocked. Authentication is based
on user groups and can be performed for local, RADIUS, and LDAP users. For more
information about authentication and configuring user groups, see “User Group” on
page 666.

Administrative overrides vs. user overrides


The administrative overrides are backed up with the main configuration and managed by
the FortiManager system. The administrative overrides are not cleaned up when they
expire and you can reuse these override entries by extending their expiry dates. You can
create administrative overrides using both the CLI and the web-based manager.
The user overrides are not backed up as part of the main configuration and are not
managed by the FortiManager system. These overrides are also purged when they expire.
You can only view and delete the user overrides entries. Users create user overrides
using the authentication form opened from the block page when they attempt to access a
blocked site, if override is enabled.
To view the override list go to UTM > Web Filter > Override. Select the Edit icon for
Administrative Overrides or User Overrides.

Figure 336: Override list

The override list has the following icons and features:

Create New Select to add a new override rule to the list.


This button is not available under User Overrides.
Return Select to return to the override category page.
Clear All icon Select to clear the table.
URL/Category The URL or category to which the override applies.

FortiGate Version 4.0 MR1 Administration Guide


560 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter FortiGuard - Web Filter

Scope The user or user group who may use the override.
Off-site URLs A green check mark indicates that the off-site URL option is set to Allow,
which means that the overwrite web page will display the contents from off-
site domains. A gray cross indicates that the off-site URL option is set to
Block, which means that the overwrite web page will not display the
contents from off-site domains. For details, see “Configuring administrative
override rules” on page 561.
Initiator The creator of the override rule.
Expiry Date The expiry date of the override rule.
Delete icon Select to remove the entry from the list.
Edit icon Select to edit the following information: Type, URL, Scope, User, Off-site
URLs, and Override Duration.

Configuring administrative override rules


Administrative override rules can be configured to allow access to blocked web sites
based on directory, domain name, or category.
To create an override rule for a directory or domain go to UTM > Web Filter > Override.
Select the Edit icon for Administrative Overrides.

Figure 337: New Override Rule - Directory or Domain

Type Select Directory or Domain.


URL Enter the URL or the domain name of the website.
Scope Select one of the following: User, User Group, IP, or Profile. Depending on
the option selected, a different option appears below Scope.
User Enter the name of the user selected in Scope.
User Group Select a user group from the dropdown list. User groups must be
configured before FortiGuard Web Filtering configuration. For more
information, see “User Group” on page 666.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 561
http://docs.fortinet.com/ • Feedback
FortiGuard - Web Filter Web Filter

Off-site URLs This option defines whether the override web page will display the images
and other contents from the blocked offsite URLs.
For example, all FortiGuard categories are blocked, and you want to visit a
site whose images are served from a different domain. You can create a
directory override for the site and view the page. If the offsite feature was
set to deny, all the images on the page will appear broken because they
come from a different domain for which the existing override rule does not
apply. If you set the offsite feature to allow, the images on the page will then
show up.
Only users that apply under the scope for the page override can see the
images from the temporary overrides. The users will not be able to view
any pages on the sites where the images come from (unless the pages are
served from the same directory as the images themselves) without having
to create a new override rule.
Override End Time Specify when the override rule will end.
To create an override for categories, go to UTM > Web Filter > Override.

Figure 338: New Override Rule - Categories

Type Select Categories.


Categories Select the categories to which the override applies. A category group or a
subcategory can be selected. Local categories are also displayed.
Classifications Select the classifications to which the override applies. When selected,
users can access web sites that provide content cache, and provide
searches for image, audio, and video files.
Scope Select one of the following: User, User Group, IP, or Profile. Depending on
the option selected, a different option appears below Scope.

FortiGate Version 4.0 MR1 Administration Guide


562 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter FortiGuard - Web Filter

User Enter the name of the user selected in Scope.


User Group Select a user group from the dropdown list.
IP Enter the IP address of the computer initiating the override.
Profile Select a protection profile from the dropdown list.
Off-site URLs Select Allow or Block. See the previous table for details about off-site
URLs.
Override End Time Specify when the override rule will end.

Creating local categories


User-defined categories can be created to allow users to block groups of URLs on a per-
profile basis. The categories defined here appear in the global URL category list when
configuring a protection profile. Users can rate URLs based on the local categories.
To create or view local categories, go to UTM > Web Filter > Local Categories.

Figure 339: Local categories list

Add Enter the name of the category then select Add.


Delete icon Select to remove the entry from the list.

Viewing the local ratings list


To view the local ratings list go to UTM > Web Filter > Local Ratings.

Figure 340: Local ratings list

The local ratings list has the following icons and features:

Create New Select to add a rating to the list.


Search Enter search criteria to filter the list.
1 - 3 of 3 The total number of local ratings in the list.
Page up icon Select to view the previous page.
Page down icon Select to view the next page.
Clear All icon Select to clear the table.
URL The rated URL. Select the green arrow to sort the list by URL.
Category The category or classification in which the URL has been placed. If the URL is
rated in more than one category or classification, trailing dots appear. Select
the gray funnel to open the Category Filter dialog box. When the list has been
filtered, the funnel changes to green.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 563
http://docs.fortinet.com/ • Feedback
FortiGuard - Web Filter Web Filter

Delete icon Select to remove the entry from the list.


Edit icon Select to edit the following information: URL, Category Rating, and
Classification Rating.

Figure 341: Category Filter

Clear Filter Select to remove all filters.


Category Name Select the blue arrow to expand the category.
Enable Filter Select to enable the filter for the category or the individual sub-category.
Classification Name The classifications that can be filtered.
Enable Filter Select to enable the classification filter.

Configuring local ratings


Users can create user-defined categories then specify the URLs that belong to the
category. This allows users to block groups of web sites on a per profile basis. The ratings
are included in the global URL list with associated categories and compared in the same
way the URL block list is processed.
The local ratings override the FortiGuard server ratings and appear in reports as “Local
Category”.
To create a local rating go to UTM > Web Filter > Local Ratings.

FortiGate Version 4.0 MR1 Administration Guide


564 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Web Filter Category block CLI configuration

Figure 342: New Local Rating

URL Enter the URL to be rated.


Category Name Select the blue arrow to expand the category.
Enable Filter Select to enable the filter for the category or the individual sub-category.
Classification Name The classifications that can be filtered.
Enable Filter Select to enable the classification filter.

Category block CLI configuration


Use the hostname keyword for the webfilter fortiguard command to change the
default host name (URL) for the FortiGuard Web Filtering Service Point. The FortiGuard
Web Filtering Service Point name cannot be changed using the web-based manager.
Configure all FortiGuard Web Filtering settings using the CLI. For more information, see
the FortiGate CLI Reference for descriptions of the webfilter fortiguard keywords.

FortiGuard Web Filtering reports

Note: FortiGuard Web Filtering reports are only available on FortiGate units with a hard
disk.

Generate a text and pie chart format report on FortiGuard Web Filtering for any protection
profile. The FortiGate unit maintains statistics for allowed, blocked, and monitored web
pages for each category. View reports for a range of hours or days, or view a complete
report of all activity.
To create a web filter report go to UTM > Web Filter > Reports.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 565
http://docs.fortinet.com/ • Feedback
FortiGuard Web Filtering reports Web Filter

Figure 343: Sample FortiGuard Web Filtering report

The following table describes the options for generating reports:

Profile Select the protection profile for which to generate a report.


Report Type Select the time frame for the report. Choose from hour, day, or all historical
statistics.
Report Range Select the time range (24 hour clock) or day range (from six days ago to today)
for the report. For example, for an ‘hour’ report type with a range of 13 to 16, the
result is a category block report for 1 pm to 4 pm today. For a ‘day’ report type
with a range of 0 to 3, the result is a category block report for 3 days ago to today.
Get Report Select to generate the report.

A generated report includes a pie chart and the following information:

Category The category for which the statistic was generated.


Allowed The number of allowed web addresses accessed in the selected time frame.
Blocked The number of blocked web addresses accessed in the selected time frame.
Monitored The number of monitored web addresses accessed in the selected time frame.

See also
• Creating local categories
• Viewing the local ratings list
• Configuring local ratings
• Viewing the override list
• Configuring administrative override rules
• Configuring FortiGuard Web Filtering
• FortiGuard - Web Filter

FortiGate Version 4.0 MR1 Administration Guide


566 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering FortiGuard Email Filtering (also called the FortiGuard Antispam Service)

Email filtering
This chapter describes how to configure FortiGate email filtering for IMAP, POP3, and
SMTP email. If your FortiGate unit supports SSL content scanning and inspection you can
also configure email filtering for IMAPS, POP3S, and SMTPS email traffic. For information
about SSL content scanning and inspection, see “SSL content scanning and inspection”
on page 481.
If you enable virtual domains (VDOMs) on the FortiGate unit, Email filtering is configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.
This section provides an introduction to configuring email filtering. For more information
see the FortiGate UTM User Guide.
This section describes:
• FortiGuard Email Filtering (also called the FortiGuard Antispam Service)
• Banned word
• IP address and email address black/white lists
• Advanced Email Filter configuration
• Using wildcards and Perl regular expressions

FortiGuard Email Filtering (also called the FortiGuard Antispam


Service)
You can configure the FortiGate unit to manage unsolicited commercial email by detecting
and identifying spam messages from known or suspected spam servers.
The FortiGuard Antispam Service uses both a sender IP reputation database and a spam
signature database, along with sophisticated spam filtering tools, to detect and block a
wide range of spam messages. Using FortiGuard Email Filtering protection profile settings
you can enable IP address checking, URL checking, E-mail checksum checking, and
Spam submission. Updates to the IP reputation and spam signature databases are
provided continuously from the global FortiGuard distribution network.
From the FortiGuard Antispam Service page in the FortiGuard center you can use IP and
signature lookup to check whether an IP address is blacklisted in the FortiGuard antispam
IP reputation database, or whether a URL or email address is in the signature database.

Order of email filtering


FortiGate email filtering uses various filtering techniques. The order the FortiGate unit
uses these filters depends on the mail protocol used.
Filters requiring a query to a server and a reply (FortiGuard Antispam Service and
DNSBL/ORDBL) are run simultaneously. To avoid delays, queries are sent while other
filters are running. The first reply to trigger a spam action takes effect as soon as the reply
is received.
Each filter passes the email to the next if no matches or problems are found. If the action
in the filter is Mark as Spam, the FortiGate unit tags as spam the email according to the
settings in the protection profile.
For SMTP and SMTPS if the action is discard the email message is discarded or dropped.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 567
http://docs.fortinet.com/ • Feedback
FortiGuard Email Filtering (also called the FortiGuard Antispam Service) Email filtering

If the action in the filter is Mark as Clear, the email is exempt from any remaining filters. If
the action in the filter is Mark as Reject, the email session is dropped. Rejected SMTP or
SMTPS email messages are substituted with a configurable replacement message.

Order of SMTP and SMTPS email filtering


SMTPS email filtering is available on FortiGate units that support SSL content scanning
and inspection.
1 IP address BWL check on last hop IP.
2 DNSBL & ORDBL check on last hop IP, FortiGuard Antispam IP check on last hop IP,
HELO DNS lookup.
3 MIME headers check, E-mail address BWL check.
4 Banned word check on email subject.
5 IP address BWL check (for IPs extracted from “Received” headers).
6 Banned word check on email body.
7 Return email DNS check, FortiGuard Antispam email checksum check, FortiGuard
Antispam URL check, DNSBL & ORDBL check on public IP extracted from header.

Order of IMAP, POP3, IMAPS and POP3S email filtering


IMAPS and POP3S email filtering is available on FortiGate units the support SSL content
scanning and inspection.
1 MIME headers check, E-mail address BWL check.
2 Banned word check on email subject.
3 IP BWL check.
4 Banned word check on email body.
5 Return email DNS check, FortiGuard Antispam email checksum check, FortiGuard
Antispam URL check, DNSBL & ORDBL check.

Email filter controls


Email filters are configured for system-wide use, but enabled on a per profile basis.
Table 55 describes the Email filter settings and where to configure and access them.
To access protection profile Email Filter options, go to Firewall > Protection Profile, select
the Edit icon beside an existing profile, or select Create New. Select Email Filtering.
Table 55: Email filtering and Protection Profile email filtering configuration

Protection Profile Email filtering options Email Filter setting


IP address FortiGuard Email Filtering check System > Maintenance > FortiGuard
Configure the FortiGuard Email Filtering Enable FortiGuard Email Filtering, check the status
service. Fortinet has its own DNSBL server of the FortiGuard Antispam server, view the license
for FortiGuard Antispam that provides spam type and expiry date, and configure the cache. For
IP address and URL blacklists. Fortinet more information, see “Configuring the FortiGate
keeps the FortiGuard Antispam IP and URLs unit for FDN and FortiGuard subscription services”
up-to-date as new spam sources are found. on page 323
IP address BWL check UTM > Email Filter > IP Address
Black/white list check. Configure the Add to and edit IP addresses to the list. You can
checking of incoming IP addresses against configure the action to take as spam, clear, or reject
the configured spam filter IP address list. for each IP address. You can place an IP address
anywhere in the list. The filter checks each IP
address in sequence.
DNSBL & ORDBL check Command line only

FortiGate Version 4.0 MR1 Administration Guide


568 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering FortiGuard Email Filtering (also called the FortiGuard Antispam Service)

Table 55: Email filtering and Protection Profile email filtering configuration (Continued)

Protection Profile Email filtering options Email Filter setting


Enable or disable checking email traffic Add or remove DNSBL and ORDBL servers to and
against configured DNS Blackhole List from the list. You can configure the action to take as
(DNSBL) and Open Relay Database List spam or reject for email identified as spam from
(ORDBL) servers (SMTP and SMTPS). each server (SMTP and SMTPS).
DNSBL and ORDBL configuration can only be
changed using the command line interface. For
more information, see the FortiGate CLI Reference.
HELO DNS lookup n/a
Enable or disable checking the source
domain name against the registered IP
address in the Domain Name Server. If the
source domain name does not match the IP
address the email is marked as spam and
the action selected in the protection profile is
taken.
E-mail address BWL check UTM > Email Filter > E-mail Address
Enable or disable checking incoming email Add to and edit email addresses to the list, with the
addresses against the configured spam filter option of using wildcards and regular expressions.
email address list. You can configure the action as spam or clear for
each email address. You can place an email
address anywhere in the list. The filter checks each
email address in sequence.
Return e-mail DNS check n/a
Enable or disable checking incoming email
return address domain against the registered
IP address in the Domain Name Server. If
the return address domain name does not
match the IP address the email is marked as
spam and the action selected in the
protection profile is taken.
MIME headers check Command line only
Enable or disable checking source MIME Add to and edit MIME headers, with the option of
headers against the configured spam filter using wildcards and regular expressions. You can
MIME header list. configure the action for each MIME header as spam
or clear.
DNSBL and ORDBL configuration can only be
changed using the command line interface. For
more information, see the FortiGate CLI Reference.
Banned word check UTM> Email Filter > Banned Word
Enable or disable checking source email Add to and edit banned words to the list, with the
against the configured spam filter banned option of using wildcards and regular expressions.
word list. You can configure the language and whether to
search the email body, subject, or both. You can
configure the action to take as spam or clear for
each word.
Spam Action n/a

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 569
http://docs.fortinet.com/ • Feedback
Banned word Email filtering

Table 55: Email filtering and Protection Profile email filtering configuration (Continued)

Protection Profile Email filtering options Email Filter setting


The action to take on email identified as
spam. POP3 and IMAP messages are
tagged. Choose Tagged or Discard for SMTP
or SMTPS messages. You can append a
custom word or phrase to the subject or
MIME header of tagged email. You can
choose to log any spam action in the event
log.
For IMAP, spam email may be tagged only
after the user downloads the entire message
by opening the email, since the some IMAP
email clients download the envelope portion
of the email message initially. For details,
see “Email Filtering options” on page 498.
Tag location: Affix the tag to the subject or
MIME header of the email identified as
spam.
Tag format: Enter a word or phrase (tag) to
affix to email identified as spam.
Add event into the system log
Enable or disable logging of spam actions to
the event log.

Banned word
Control spam by blocking email messages containing specific words or patterns. You can
add words, phrases, wild cards and Perl regular expressions to match content in email
messages.
For information, about wild cards and Perl regular expressions, see “Using wildcards and
Perl regular expressions” on page 578.

Note: Perl regular expression patterns are case sensitive for banned words. To make a
word or phrase case insensitive, use the regular expression /i. For example,
/bad language/i will block all instances of bad language regardless of case. Wildcard
patterns are not case sensitive.

Viewing the banned word list catalog


You can add a maximum of two banned word lists and then select the best banned word
list for each protection profile. To view the banned word list catalog, go to UTM > Email
Filter > Banned Word. To view any individual banned word list, select the Edit icon for the
list you want to see.

Figure 344: Sample banned word list catalog

Edit
Delete

Create New Add a new list to the catalog. For more information, see “Creating a new
banned word list” on page 571.
Name The available Email Filter banned word lists.

FortiGate Version 4.0 MR1 Administration Guide


570 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering Banned word

# Entries The number of entries in each banned word list.


Profiles The protection profiles each banned word list has been applied to.
Comments Optional description of each banned word list.
Delete icon Remove the banned word list from the catalog. The delete icon is available
only if the banned word list is not selected in any protection profiles.
Edit icon Modify the banned word list, list name, or list comment.
To use the banned word list, select banned word lists in protection profiles. For more
information, see “Email Filtering options” on page 498.

Creating a new banned word list


To add an email filter banned word list to the email filter banned word list catalog, go to
UTM > Email Filter > Banned Word and select Create New.

Figure 345: New Banned Word list dialog box

Name Enter the name of the new list.


Comments Enter a comment to describe the list, if required.

Viewing the email filtering banned word list


The FortiGate unit checks each email message against the banned word list. The
FortiGate unit can sort email messages containing those banned words in the subject,
body, or both. The score value of each banned word appearing in the message is added,
and if the total is greater than the threshold value set in the protection profile, the
FortiGate unit processes the message according to the Spam Action setting in the
protection profile. The score for a pattern is applied only once even if the word appears in
the message multiple times.
To view the banned word list, go to UTM > Email Filter > Banned Word and select the Edit
icon of the banned word list you want to view.

Figure 346: Sample banned word List

Remove All Entries


Edit
Delete
Current Page

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 571
http://docs.fortinet.com/ • Feedback
Banned word Email filtering

Name Banned word list name. To change the name, edit text in the name field and
select OK.
Comments Optional comment. To add or edit comment, enter text in comment field and
select OK.
Create New Select to add a word or phrase to the banned word list.
Current Page The current page number of list items that are displayed. Select the left and right
arrows to display the first, previous, next or last page of the banned word list.
Remove All Clear the table.
Entries icon
Pattern The list of banned words. Select the check box to enable all the banned words in
the list.
Pattern Type The pattern type used in the banned word list entry. Choose from wildcard or
regular expression. For more information, see “Using wildcards and Perl regular
expressions” on page 578.
Language The character set to which the banned word belongs.
Where The location where the FortiGate unit searches for the banned word: Subject,
Body, or All.
Score A numerical weighting applied to the banned word. The score values of all the
matching words appearing in an email message are added, and if the total is
greater than the Banned word check value set in the protection profile, the email
is processed according to whether the spam action is set to Discard or Tagged
in the protection profile. The score for a banned word is counted once even if the
word appears multiple times on the web page in the email. For more information,
see “Configuring a protection profile” on page 486.
Delete and Edit Delete or edit the banned word.
icons

Adding words to the banned word list


For a single word, the FortiGate unit blocks all email containing the word. For a phrase,
the FortiGate unit blocks all email containing the exact phrase. To block any word in a
phrase, use Perl regular expressions.

To add a banned word list name


1 Go to UTM > Email Filter > Banned Word.
2 Select Create New.
3 Enter the banned word list name.
4 Optionally, enter any comments about the name.
5 Select OK.

To add a banned word


1 Go to UTM > Email Filter > Banned Word.
2 For the banned word list name to which you want to add a banned word, select Edit.
3 Select Create New.

Pattern Enter the word or phrase you want to include in the banned word list.
Pattern Type Select the pattern type for the banned word. Choose from wildcard or regular
expression. For more information, see “Using wildcards and Perl regular
expressions” on page 578.
Language Select the character set for the banned word.
Where Select where the FortiGate unit should search for the banned word: Subject,
Body, or All.

FortiGate Version 4.0 MR1 Administration Guide


572 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering IP address and email address black/white lists

Score Enter a score for the pattern.


Each entry in the banned word list added to the protection profile incudes a
score. When an email message is matched with an entry in the banned word
list, the score is recorded. If an email message matches more than one entry,
the score for the email message increases. When the total score for an email
message equals or exceeds the threshold, the message is tagged as spam.
The default score for a banned word list entry is 10 and the default threshold is
10. This means that by default an email message is tagged as spam by a
single match. You can change the scores and threshold so email messages
are only tagged as spam if there are multiple matches.
For more information, see “Email Filtering options” on page 498.
Enable Select to enable scanning for the banned word.
4 Select OK.

IP address and email address black/white lists


You can add IP address black/white lists and an email address black/white lists to filter
email. When performing an IP address list check, the FortiGate unit compares the IP
address of the message sender to the IP address list in sequence. When performing an
email list check, the FortiGate unit compares the email address of the message sender to
the email address list in sequence. If a match is found, the action associated with the IP
address or email address is taken. If no match is found, the message is passed to the next
enabled spam filter.

Viewing the Email Filter IP address list catalog


You can add a maximum of two IP address lists and then select the best one for each
protection profile. To view the IP address list catalog, go to UTM > Email Filter >
IP Address. To view any individual IP address list, select the Edit icon for the list you want
to see.

Figure 347: Sample IP address list catalog

Edit
Delete

Create New Add a new IP address list to the catalog.


Name The available name of the IP address lists.
# Entries The number of entries in each IP address list.
Profiles The protection profiles each IP address list has been applied to.
Comments Optional description of each IP address list.
Delete icon Remove the IP address list from the catalog. The delete icon is available only if
the IP address list is not selected in any protection profiles.
Edit icon Edit the IP address list, list name, or list comment.

Creating a new IP address list


To add an IP address list to the IP address list catalog, go to UTM > Email Filter >
IP Address and select Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 573
http://docs.fortinet.com/ • Feedback
IP address and email address black/white lists Email filtering

Figure 348: New IP Address list dialog box

Name Enter the name of the new list.


Comments Enter a comment to describe the list, if required.

Viewing the IP address list


Configure the FortiGate unit to filter email from specific IP addresses. The FortiGate unit
compares the IP address of the sender to the check list in sequence. Mark each IP
address as clear, spam, or reject. Filter single IP addresses or a range of addresses at the
network level by configuring an address and mask.
To view the IP address list, go to UTM > Email Filter > IP Address and select the Edit icon
of the IP address list you want to view.

Figure 349: Sample IP address list


Remove All Entries

Current Page

Move To
Edit
Delete

Name IP address list name. To change the name, edit text in the name field and
select OK.
Comments Optional comment. To add or edit a comment, enter text in the comments field
and select OK.
Create New Add an IP address to the IP address list.
Current Page The current page number of list items that are displayed. Select the left and
right arrows to display the first, previous, next or last page of the IP address
list.
Remove All Entries Clear the table.
icon
IP address/Mask The list of IP addresses.
Action The action to take on email from the configured IP address. Actions are: Spam
to apply the configured spam action, Clear to bypass this and remaining spam
filters, or Reject (SMTP or SMTPS) to drop the session.
If an IP address is set to reject but mail is delivered from that IP address via
using POP3 or IMAP, the email messages will be marked as spam.

FortiGate Version 4.0 MR1 Administration Guide


574 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering IP address and email address black/white lists

Delete icon Remove the address from the list.


Edit icon Edit address information.
Move To icon Select to move the entry to a different position in the list.
The firewall policy executes the list from top to bottom. For example, if you
have IP address 192.168.100.1 listed as spam and 192.168.100.2 listed as
clear, you must put 192.168.100.1 above 192.168.100.2 for 192.168.100.1 to
take effect.

Adding an IP address
After creating an IP address list, you can add IP addresses to the list.
Enter an IP address or a pair of IP address and mask in the following formats:
• x.x.x.x, for example, 192.168.69.100.
• x.x.x.x/x.x.x.x, for example, 192.168.69.100/255.255.255.0
• x.x.x.x/x, for example, 192.168.69.100/24
To add an IP address go to UTM > Email Filter > IP Address. For the IP address list name
to which you want to add an IP address, select Edit. Then select Create New.

Figure 350: Adding an IP address

IP Address/Mask Enter the IP address or the IP address/mask pair.


Action Select: Mark as Spam to apply the spam action configured in the protection
profile, Mark as Clear to bypass this and remaining spam filters, or Mark as
Reject (SMTP or SMTPS) to drop the session.
Enable Select to enable the address.

Viewing the Email Filter email address list catalog


You can add a maximum of two email address lists and then select the best one for each
protection profile. To view the email address list catalog, go to UTM > Email Filter > E-
mail Address. To view any individual email address list, select the Edit icon for the list you
want to see.

Figure 351: Sample email address list catalog

Edit
Delete

Create New Create a new address list.


Name Email Filter email address lists.
# Entries The number of entries in each email address list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 575
http://docs.fortinet.com/ • Feedback
IP address and email address black/white lists Email filtering

Profiles The protection profiles each email address list has been applied to.
Comments Optional description of each email address list.
Delete icon Remove the email address list from the catalog. The delete icon is only
available if the email address list is not selected in any protection profiles.
Edit icon Edit the email address list, list name, or list comment.
You enable email filter addresses in protection profiles. For more information, see “Email
Filtering options” on page 498.

Creating a new email address list


To add an email address list to the email address list catalog, go to UTM > Email Filter >
E-mail Address and select Create New.

Figure 352: New E-mail Address list dialog box

Name Enter the name of the new list.


Comment Enter a comment to describe the list, if required.

Viewing the email address list


The FortiGate unit can filter email from specific senders or all email from a domain (such
as example.net).
To view the email address list, go to UTM > Email Filter > E-mail Address and select the
Edit icon of the email address list you want to view.

Figure 353: Sample email address list


Current Page

Delete
Edit
Move To
Remove All Entries

Name Email Filer email address list name. To change the name, edit text in the
name field and select OK.
Comments Optional comment. To add or edit comment, enter text in comment field and
select OK.
Create New Add an email address to the email address list.

FortiGate Version 4.0 MR1 Administration Guide


576 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering Advanced Email Filter configuration

Current Page The current page number of list items that are displayed. Select the left and
right arrows to display the first, previous, next or last page of the IP address
list.
Remove All Entries Clear the table.
icon
Email address The list of email addresses.
Pattern Type The pattern type used in the email address entry.
Action The action to take on email from the configured address. Actions are: Spam to
apply the spam action configured in the protection profile, or Clear to let the
email message bypass this and remaining spam filters.
Delete icon Remove the email address from the list.
Edit icon Edit the address information.
Move To icon Move the entry to a different position in the list.
The firewall policy executes the list from top to bottom. For example, if you
have abc@example.com listed as clear and *@example.com as spam, you
must put abc@example.com above *@example.com for abc@example.com
to take effect.

Configuring the email address list


To add an email address or domain to a list, go to UTM > Email Filter > E-mail Address.
Select the Edit icon beside the list you want to add the address to. Select Create New,
enter the information below and select OK.

Figure 354: Add E-mail Address

E-Mail Address Enter the email address.


Pattern Type Select a pattern type: Wildcard or Regular Expression. For more information,
see “Using wildcards and Perl regular expressions” on page 578.
Action Select: Mark as Spam to apply the spam action configured in the protection
profile, or Mark as Clear to bypass this and remaining spam filters.
Enable Select to enable the email address for spam checking.

Advanced Email Filter configuration


Advanced Email Filter configuration covers only command line interface (CLI) commands
not represented in the web-based manager. For complete descriptions and examples of
how to use CLI commands, see the FortiGate CLI Reference.

config spamfilter mheader


Use this command to configure email filtering based on the MIME (Multipurpose Internet
Mail Extensions) header. MIME header filtering is enabled within each protection profile.
The FortiGate unit compares the MIME header key-value pair of incoming email to the list
pair in sequence. If a match is found, the corresponding action is taken. If no match is
found, the email is passed on to the next spam filter.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 577
http://docs.fortinet.com/ • Feedback
Using wildcards and Perl regular expressions Email filtering

MIME headers are added to email to describe content type and content encoding, such as
the type of text in the email body or the program that generated the email. Some examples
of MIME headers include:
• X-mailer: outgluck
• X-Distribution: bulk
• Content_Type: text/html
• Content_Type: image/jpg
The first part of the MIME header is called the header or header key. The second part is
called the value. Spammers often insert comments into header values or leave them
blank. These malformed headers can fool some spam and virus filters.
Use the MIME headers list to mark email from certain bulk mail programs or with certain
types of content that are common in spam messages. Mark the email as spam or clear for
each header configured.

config spamfilter dnsbl


Use this command to configure email filtering using DNS-based Blackhole List (DNSBL),
and Open Relay Database List (ORDBL) servers. DNSBL and ORDBL filtering is enabled
within each protection profile.
The FortiGate unit compares the IP address or domain name of the sender to any
database lists configured, in sequence. If a match is found, the corresponding action is
taken. If no match is found, the email is passed on to the next spam filter.
Some spammers use unsecured third party SMTP or SMTPS servers to send unsolicited
bulk email. Using DNSBLs and ORDBLs is an effective way to tag or reject spam as it
enters the network. These lists act as domain name servers that match the domain of
incoming email to a list of IP addresses known to send spam or allow spam to pass
through.
There are several free and subscription servers available that provide reliable access to
continually updated DNSBLs and ORDBLs. Check with the service you are using to
confirm the correct domain name for connecting to the server.

Note: Because the FortiGate unit uses the server domain name to connect to the DNSBL
or ORDBL server, it must be able to look up this name on the DNS server. For information
on configuring DNS, see “Configuring Networking Options” on page 204.

Using wildcards and Perl regular expressions


Email address list, MIME headers list, and banned word list entries can include wildcards
or Perl regular expressions.
See http://perldoc.perl.org/perlretut.html for detailed information about using Perl regular
expressions.

Regular expression vs. wildcard match pattern


A wildcard character is a special character that represents one or more other characters.
The most commonly used wildcard characters are the asterisk (*), which typically
represents zero or more characters in a string of characters, and the question mark (?),
which typically represents any one character.
In Perl regular expressions, the ‘.’ character refers to any single character. It is similar to
the ‘?’ character in wildcard match pattern. As a result:

FortiGate Version 4.0 MR1 Administration Guide


578 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering Using wildcards and Perl regular expressions

• fortinet.com not only matches fortinet.com but also fortinetacom, fortinetbcom,


fortinetccom, and so on.

Note: To add a question mark (?) character to a regular expression from the FortiGate CLI,
enter Ctrl+V followed by ?. To add a single backslash character (\) to a regular expression
from the CLI you must add precede it with another backslash character. For example,
fortinet\\.com.

To match a special character such as '.' and ‘*’ use the escape character ‘\’. For example:
• To match fortinet.com, the regular expression should be: fortinet\.com
In Perl regular expressions, ‘*’ means match 0 or more times of the character before it, not
0 or more times of any character. For example:
• forti*.com matches fortiiii.com but does not match fortinet.com
To match any character 0 or more times, use ‘.*’ where ‘.’ means any character and the ‘*’
means 0 or more times. For example, the wildcard match pattern forti*.com should
therefore be fort.*\.com.

Word boundary
In Perl regular expressions, the pattern does not have an implicit word boundary. For
example, the regular expression “test” not only matches the word “test” but also any word
that contains “test” such as “atest”, “mytest”, “testimony”, “atestb”. The notation “\b”
specifies the word boundary. To match exactly the word “test”, the expression should be
\btest\b.

Case sensitivity
Regular expression pattern matching is case sensitive in the web and Email Filter filters.
To make a word or phrase case insensitive, use the regular expression /i. For example,
/bad language/i will block all instances of “bad language”, regardless of case.

Perl regular expression formats


Table 56 lists and describes some example Perl regular expression formats.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 579
http://docs.fortinet.com/ • Feedback
Using wildcards and Perl regular expressions Email filtering

Table 56: Perl regular expression formats

Expression Matches
abc “abc” (the exact character sequence, but anywhere in the string)
^abc “abc” at the beginning of the string
abc$ “abc” at the end of the string
a|b Either “a” or “b”
^abc|abc$ The string “abc” at the beginning or at the end of the string
ab{2,4}c “a” followed by two, three or four “b”s followed by a “c”
ab{2,}c “a” followed by at least two “b”s followed by a “c”
ab*c “a” followed by any number (zero or more) of “b”s followed by a “c”
ab+c “a” followed by one or more b's followed by a c
ab?c “a” followed by an optional “b” followed by a” c”; that is, either “abc” or”
ac”
a.c “a” followed by any single character (not newline) followed by a” c “
a\.c “a.c” exactly
[abc] Any one of “a”, “b” and “c”
[Aa]bc Either of “Abc” and “abc”
[abc]+ Any (nonempty) string of “a”s, “b”s and “c”s (such as “a”, “abba”,
”acbabcacaa”)
[^abc]+ Any (nonempty) string which does not contain any of “a”, “b”, and “c”
(such as “defg”)
\d\d Any two decimal digits, such as 42; same as \d{2}
/i Makes the pattern case insensitive. For example, /bad language/i
blocks any instance of bad language regardless of case.
\w+ A “word”: A nonempty sequence of alphanumeric characters and low
lines (underscores), such as foo and 12bar8 and foo_1
100\s*mk The strings “100” and “mk” optionally separated by any amount of white
space (spaces, tabs, newlines)
abc\b “abc” when followed by a word boundary (for example, in “abc!” but not in
“abcd”)
perl\B “perl” when not followed by a word boundary (for example, in “perlert” but
not in “perl stuff”)
\x Tells the regular expression parser to ignore white space that is neither
preceded by a backslash character nor within a character class. Use this
to break up a regular expression into (slightly) more readable parts.
/x Used to add regular expressions within other text. If the first character in
a pattern is forward slash '/', the '/' is treated as the delimiter. The pattern
must contain a second '/'. The pattern between ‘/’ will be taken as a
regular expressions, and anything after the second ‘/’ will be parsed as a
list of regular expression options ('i', 'x', etc). An error occurs if the
second '/' is missing. In regular expressions, the leading and trailing
space is treated as part of the regular expression.

Example regular expressions

Block any word in a phrase


/block|any|word/

FortiGate Version 4.0 MR1 Administration Guide


580 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Email filtering Using wildcards and Perl regular expressions

Block purposely misspelled words


Spammers often insert other characters between the letters of a word to fool spam
blocking software.
/^.*v.*i.*a.*g.*r.*o.*$/i
/cr[eéèêë][\+\-\*=<>\.\,;!\?%&§@\^°\$£€\{\}()\[\]\|\\_01]dit/i

Block common spam phrases


The following phrases are some examples of common phrases found in spam messages.
/try it for free/i
/student loans/i
/you’re already approved/i
/special[\+\-\*=<>\.\,;!\?%&~#§@\^°\$£€\{\}()\[\]\|\\_1]offer/i

Figure 355: MMS Message Flood

Remove All Entries

Current Page

Figure 356: MMS Duplicate Message

Remove All Entries


Current Page

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 581
http://docs.fortinet.com/ • Feedback
Using wildcards and Perl regular expressions Email filtering

FortiGate Version 4.0 MR1 Administration Guide


582 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Sensors

Data Leak Prevention


You can use the FortiGate Data Leak Prevention (DLP) system to prevent sensitive data
from leaving or entering your network. You can define sensitive data patterns, and data
matching these patterns will be blocked and/or logged or archived when passing through
the FortiGate unit. The DLP system is configured by creating individual rules, combining
the rules into DLP sensors, and then assigning a sensor to a protection profile.
Although the primary use of the DLP feature is to stop sensitive data from leaving your
network, it can also be used to prevent unwanted data from entering your network and to
archive some or all of the content passing through the FortiGate unit.
This section provides an introduction to configuring DLP. For more information see the
FortiGate UTM User Guide.
If you enable virtual domains (VDOMs) on the Fortinet unit, data leak prevention is
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
The section describes:
• DLP Sensors
• DLP archiving
• DLP Rules
• DLP Compound Rules

DLP Sensors
DLP sensors are simply collections of DLP rules and DLP compound rules. The DLP
sensor also includes settings such as action, archive, and severity for each rule or
compound rule. Once a DLP sensor is configured, it can be specified in a protection
profile. Any traffic handled by the policy in which the protection profile is specified will
enforce the DLP sensor configuration.

Viewing the DLP sensor list


To view the available DLP sensors, go to UTM > Data Leak Prevention > Sensor.

Figure 357: DLP sensor list

Delete
Edit

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 583
http://docs.fortinet.com/ • Feedback
DLP Sensors Data Leak Prevention

Create New Select to create a new DLP sensor.


Name The DLP sensor name.
Comment The optional description of the DLP sensor.
Protection Profiles The names of the protection profiles that the DLP sensor has been
added to.
Delete and Edit icons Delete or edit the DLP sensor.

Default DLP sensors


The following default DLP sensors are provided with your FortiGate unit. You can use
these as provided, or modify them as required.

Caution: Before use, examine the sensors and rules in the sensors closely to ensure you
understand how they will affect the traffic on your network.

Note: DLP prevents duplicate action. Even if more than one rule in a sensor matches some
content, DLP will not create more than one DLP archive entry, quarantine item, or ban entry
from the same content.

Content_Archive DLP archive all email (POP3, IMAP, and SMTP), FTP, HTTP, and IM traffic.
For each rule in the sensor, Archive is set to Full. No blocking or quarantine is
performed. See “DLP archiving” on page 588.
You can add the All-Session-Control rule to also archive session control
content.
If you have a FortiGate unit that supports SSL content scanning and
inspection, you can edit the All-Email rule to archive POP3S, IMAPS, and
SMTPS traffic. You can also edit the All-HTTP rule to archive HTTPS traffic.
Content_Summary DLP summary archive all email (POP3, IMAP, and SMTP), FTP, HTTP, and IM
traffic. For each rule in the sensor, Archive is set to Summary Only. No
blocking or quarantine is performed. See “DLP archiving” on page 588.
You can add the All-Session-Control rule to also archive session control
content.
If you have a FortiGate unit that supports SSL content scanning and
inspection, you can edit the All-Email rule to archive POP3S, IMAPS, and
SMTPS traffic. You can also edit the All-HTTP rule to archive HTTPS traffic.
Credit-Card The number formats used by American Express, Visa, and Mastercard credit
cards are detected in HTTP and email traffic.
As provided, the sensor is configured not to archive matching traffic and an
action of None is set. Configure the action and archive options as required.
Large-File Files larger than 5MB will be detected if attached to email messages or if send
using HTTP or FTP.
As provided, the sensor is configured not to archive matching traffic and an
action of None is set. Configure the action and archive options as required.
SSN-Sensor The number formats used by U.S. Social Security and Canadian Social
Insurance numbers are detected in email and HTTP traffic.
As provided, the sensor is configured not to archive matching traffic and an
action of None is set. Configure the action and archive options as required.

Adding and configuring a DLP sensor


You can create a new DLP sensor and configure it to include the DLP rules and DLP
compound rules required to protect the traffic leaving your network.

FortiGate Version 4.0 MR1 Administration Guide


584 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Sensors

A DLP sensor must be created before it can be configured by adding rules and compound
rules. To create a DLP sensor, go to UTM > Data Leak Prevention > Sensor and select
Create New. Enter the DLP sensor name and optional comment, and select OK. You can
then add the required rules and compound rules.
To configure a DLP sensor, go to UTM > Data Leak Prevention > Sensor and select the
Edit icon of the sensor to be configured. A list of the DLP rules and DLP compound rules
included in the DLP sensor is displayed. A newly created sensor will include no rules.

Figure 358: List of rules in a DLP sensor

Delete
Edit

Name The DLP sensor name.


Comment The optional description of the DLP sensor.
Create New Select Create New to add a new rule or compound rule to the sensor.
Enable You can disable a rule or compound rule by clearing this check box.
The item will be listed as part of the sensor, but it will not be used.
Rule name The names of the rules and compound rules included in the sensor.
Action The action configured for each rule. If the selected action is None, no
action will be listed.
Although archiving is enabled independent of the action, the Archive
designation appears with the selected action.
For example, if you select the Block action and set Archive to Full for a
rule, the action displayed in the sensor rule list is Block, Archive.
Comment The optional description of the rule or compound rule.
Delete and Edit icons Delete or edit a rule or compound rule.

Adding or editing a rule or compound rule in a DLP sensor


To add a rule to a DLP sensor go to UTM > Data Leak Prevention > Sensor and select the
Edit icon of the sensor to be configured. Select Create New, set the Member type to Rule
and select the rule to add to the sensor. Configure the settings for the rule.
To add a compound rule to a DLP sensor go to UTM > Data Leak Prevention > Sensor
and select the Edit icon of the sensor to be configured. Select Create New, set the
Member type to Compound Rule and select the compound rule to add to the sensor.
Configure the settings for the compound rule.
To edit a rule or compound rule already included in a sensor, go to UTM > Data Leak
Prevention > Sensor and select the Edit icon of the sensor to be configured. Select the
edit icon of the rule or compound rule to edit. Change the settings for the rule or
compound rule.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 585
http://docs.fortinet.com/ • Feedback
DLP Sensors Data Leak Prevention

Figure 359: Adding a DLP rule to a DLP sensor

Figure 360: Adding a DLP compound rule to a DLP sensor

FortiGate Version 4.0 MR1 Administration Guide


586 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Sensors

Action Select the action to be taken against traffic matching the configured DLP rule or DLP
compound rule. The actions are:
• None prevents the DLP rule from taking any action on network traffic. Other
matching rules in the same sensor and other sensors may still operate on
matching traffic.
• Block prevents the traffic matching the rule from being delivered. The matching
message or download is replaced with the Data leak prevention replacement
message.
• Exempt prevents any DLP sensors from taking action on matching traffic. This
action overrides any other action from any matching sensors.
• Ban if the user is authenticated, blocks all traffic to or from the user using the
protocol that triggered the rule and the user will be added to the Banned User list.
If the user is not authenticated, all traffic of the protocol that triggered the rule from
the user’s IP address will be blocked. If the user that is banned is using HTTP,
FTP, NNTP (or HTTPS if the FortiGate unit supports SSL content scanning and
inspection) the FortiGate unit displays the Banned by data leak prevention
replacement message for the protocol. If the user is using IM, the IM and P2P
Banned by data leak prevention message replaces the banned IM message and
this message is forwarded to the recipient. If the user is using IMAP, POP3, SMTP
(or MAPS, POP3S, SMTPS if your FortiGate unit supports SSL content scanning
and inspection) the Mail Banned by data leak prevention message replaces the
banned email message and this message is forwarded to the recipient. These
replacement messages also replace all subsequent communication attempts until
the user is removed from the banned user list.
• Ban Sender blocks email or IM traffic from the sender of matching email or IM
messages and adds the sender to the Banned User list. This action is available
only for email and IM protocols. For email, the sender is determined by the From:
address in the email header. For IM, all members of an IM session are senders
and the senders are determined by finding the IM user IDs in the session. Similar
to Ban, the IM or Mail Banned by data leak prevention message replaces the
banned message and this message is forwarded to the recipient. These
replacement messages also replace all subsequent communication attempts until
the user is removed from the banned user list.
• Quarantine IP address blocks 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. The FortiGate unit displays the NAC Quarantine
DLP Message replacement message for all connection attempts from this IP
address until the IP address is removed from the banned user list.
• Quarantine Interface blocks access to the network for all users connecting to the
interface that received traffic matching a sensor with this action. The FortiGate unit
displays the NAC Quarantine DLP Message replacement message for all
connection attempts to the interface until the interface is removed from the banned
user list.
Ban, Ban Sender, Quarantine IP, and Quarantine Interface provide functionality
similar to NAC quarantine. However, these DLP options cause DLP to block users
and IP addresses at the application layer while NAC quarantine blocks IP addresses
and interfaces at the network layer. For more information, see “NAC quarantine and
the Banned User list” on page 678.
For more information about configuring DLP replacement messages, see
“Replacement messages” on page 250.
If you have configured DLP to block IP addresses and if the FortiGate unit receives
sessions that have passed through a NAT device, all traffic from that NAT device
could be blocked not just individual users. You can avoid this problem by
implementing authentication or where possible select Ban Sender.
Archive Configure DLP archiving for the rule. Archive is available for Email, FTP, HTTP, IM,
and Session Control rules and compound rules. The options are:
• Disable, do not archive.
• Full, perform full DLP archiving.
• Summary, perform summary DLP archiving.
See “DLP archiving” on page 588.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 587
http://docs.fortinet.com/ • Feedback
DLP archiving Data Leak Prevention

Severity Enter the severity of the content that the rule or compound rule is a match for. Use the
severity to indicate the seriousness of the problems that would result from the content
passing through the FortiGate unit. For example, if the DLP rule finds high-security
content the severity could be 5. On the other hand if the DLP rule finds any content
the severity should be 1.
DLP adds the severity to the severity field of the log message generated when the
rule or compound rule matches content. The higher the number the greater the
severity.
Expires When the action is set to Ban, Ban Sender, or Quarantine IP address, you can specify
how long the ban will last. Select Indefinite for a ban ending only if the offender is
manually removed from the banned user list, or select After and enter the required
number of minutes, hours or days the ban will last. When the specified duration
expires, the offender is automatically removed from the banned user list.
Member Select Rule or Compound Rule. The rules of the selected type will be displayed in the
Type table below.
Name The names of all available rules or compound rules.
Description The optional description entered for each rule or compound rule.

DLP archiving
You can use DLP archiving to collect and view historical logs that have been archived to a
FortiAnalyzer unit or the FortiGuard Analysis and Management service. DLP archiving is
available for FortiAnalyzer when you add a FortiAnalyzer unit to the FortiGate
configuration (see “Remote logging to a FortiAnalyzer unit” on page 710). The FortiGuard
Analysis and Management server becomes available when you subscribe to the
FortiGuard Analysis and Management Service (see the FortiGuard Analysis and
Management Service Administration Guide).
You can configure full DLP archiving and summary DLP archiving. Full DLP archiving
includes all content, for example, full email DLP archiving includes complete email
messages and attachments. Summary DLP archiving includes just the meta data about
the content, for example, email message summary records include only the email header.
You can archive Email, FTP, HTTP, IM, MMS, and session control content:
• Email content includes IMAP, POP3, and SMTP sessions. Email content can also
include email messages tagged as spam by FortiGate Email filtering. If your FortiGate
unit supports SSL content scanning and inspection, Email content can also include
IMAPS, POP3S, and SMTPS sessions.
• HTTP content includes HTTP sessions. If your FortiGate unit supports SSL content
scanning and inspection HTTP content can also include HTTPS sessions.
For more information about SSL content scanning and inspection, see “SSL content
scanning and inspection” on page 481.
• IM content includes AIM, ICQ, MSN, and Yahoo! sessions.
• Session control content includes SIP, SIMPLE and SCCP sessions. Only summary
DLP archiving is available for SIP and SCCP. Full and summary DLP archiving is
available for SIMPLE.
You add DLP sensors to archive Email, Web, FTP, IM, and session control content.
Archiving of spam email messages is configured in protection profiles.

FortiGate Version 4.0 MR1 Administration Guide


588 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP archiving

Configuring DLP archiving


You enable Email, Web, FTP, IM, and session control DLP archiving in DLP sensors. Then
you add the DLP sensors to protection profiles and add the protection profiles to firewall
policies. All sessions accepted by firewall policies that are matched by rules in DLP
sensors are DLP archived.
DLP includes the Content_Archive and Content_Summary pre-defined DLP sensors. The
Content_Archive sensor includes pre-defined DLP rules that provide full DLP archiving for
HTTP, Email, FTP, and IM protocols. To provide full DLP archiving, when you add a rule to
a sensor, set Archive to Full.
The Content_Summary sensor also includes predefined DLP rules and provides summary
DLP archiving for HTTP, Email, FTP, and IM protocols. To provide summary DLP
archiving, when you add a rule to a sensor, set Archive to Summary Only.
You can add the pre-defined All-session-control DLP rule to the Content_Archive and
Content_Summary pre-defined DLP sensors to DLP archive session control sessions.
If your FortiGate unit supports SSL content scanning and inspection you can also archive
HTTPS, IMAPS, POP3S, and SMTPS content. By default the SSL protocols are not
enabled in the All-Email and All-HTTP pre-defined DLP rules. To archive the SSL
protocols, you must edit these pre-defined rules and select the SSL protocols to be able to
archive them.
In addition to these pre-defined DLP rules and sensors, you can add your own DLP rules
and sensors and use them for full and summary DLP archiving. See “DLP Sensors” on
page 583 for more information about configuring DLP sensors.

Note: DLP prevents duplicate action. Even if more than one rule in a sensor matches some
content, DLP will not create more than one DLP archive entry from the same content.

Note: Enabling full DLP archiving reduces the amount of system memory available for virus
scanning. Fortinet recommends against using full DLP archiving if antivirus scanning is also
configured because of these memory constraints. Especially on FortiGate units with low
system memory.

To DLP archive all email messages


This procedure describes how to add the All-Email DLP rule to a DLP sensor and in the
sensor to configure the rule for full DLP archiving.
1 Go to UTM > Data Leak Prevention > Sensor and add a sensor.
2 Add rules to the sensor for whatever requirements you may have for the sensor
3 Add the All-Email DLP rule to the sensor and set Archive to Full.
4 Go to Firewall > Policy > Protection Profile and add a new or edit a protection profile.
5 Select the Data Leak Prevention Sensor expand arrow.
6 Select Data Leak Prevention Sensor and select the sensor from the list.
7 Add the protection profile to a firewall policy that accepts email traffic.
The sensor will now match and archive all email messages processed by the firewall
policy.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 589
http://docs.fortinet.com/ • Feedback
DLP archiving Data Leak Prevention

To DLP archive HTTP and HTTPS (web) sessions


This procedure describes how to configure DLP archiving for HTTP and HTTPS sessions.
You can use similar procedures to configure DLP archiving for other protocols. This
procedure is valid for FortiGate units that support SSL content scanning and inspection.
This procedure describes editing the All-HTTP DLP rule to enable HTTPS POST and
HTTPS GET, confirming that the Content_Archive DLP sensor to contains the All-HTTP
rule, then selecting the Content_Archive DLP sensor to a protection profile.
1 Go to UTM > Data Leak Prevention > Rule and edit the All-HTTP rule.
2 Select HTTPS POST and HTTPS GET.

Figure 361: Selecting HTTPS POST and HTTPS GET in the All-HTTPS DLP rule

3 Verify that Rule is set to Always so that the rule matches all HTTP and HTTPS post
and get sessions.
4 Select OK to save the changes to the rule.
5 Go to UTM > Data Leak Prevention > Sensor and edit the Content_Archive sensor.

Figure 362: The Content_Archive DLP sensor

6 Verify that the Content_Archive sensor includes the All-HTTP rule.


7 Edit the All_HTTP rule in the sensor and verify that Archive is set to Full.

FortiGate Version 4.0 MR1 Administration Guide


590 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP archiving

Figure 363: The All_HTTP sensor with Archive set to Full

8 Go to Firewall > Policy > Protection Profile and add a new or edit a protection profile.
9 Select the Data Leak Prevention Sensor expand arrow.
10 Select Data Leak Prevention Sensor and select the Content_Archive sensor from the
list.

Figure 364: Adding the Content_Archive DLP sensor to a protection profile

11 Add the protection profile to a firewall policy that accepts HTTP and HTTPS traffic.

To DLP archive all email messages that contain the string “confidential”
This procedure describes how to add a DLP rule that finds the string “confidential” in the
body of POP3, IMAP, and SMTP email messages. To archive all email messages that
contain this string you must add the DLP rule to a DLP sensor and configure the sensor for
full DLP archiving.
1 Go to UTM > Data Leak Prevention > Rule and add a rule to find the string
“confidential” in POP3, SMTP, and IMAP email messages.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 591
http://docs.fortinet.com/ • Feedback
DLP archiving Data Leak Prevention

Figure 365: DLP rule to find the string “confidential” in the body of email messages

2 Go to UTM > Data Leak Prevention > Sensor and add a new sensor.
3 Edit the sensor and select Create New to add a rule to the sensor.
4 Configure the rule as follows:

Action None
Archive Full
Severity 1 (Lowest)
Member type Rule
Email_confidential Select

FortiGate Version 4.0 MR1 Administration Guide


592 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP archiving

Figure 366: Adding the email confidential rule to a sensor

5 Go to Firewall > Policy > Protection Profile and add a new or edit a protection profile.
6 Select the Data Leak Prevention Sensor expand arrow.
7 Select Data Leak Prevention Sensor and select the new sensor from the list.
8 Add the protection profile to a firewall policy that accepts email traffic.

Configuring spam email message archiving


DLP sensors configured to archive email will archive legitimate email and email identified
as spam by FortiGate Email filtering and by FortiGuard Antispam. By default; however, the
protection profile options under Archive SPAMed email to FortiAnalyzer/FortiGuard are
disabled. As a result, by default email identified as spam is not archived.
In most cases you would probably not want to archive email identified as spam so you can
leave these options disabled. However, if you want to archive email identified as Spam
you can use the following procedure to enabled archiving of email identified as spam.

To enable archiving of email messages identified as spam by the FortiGate unit or


by FortiGuard Antispam
1 Go to Firewall > Protection Profile.
2 Create or edit a protection profile.
3 Select the Expand Arrow to view the Data Leak Prevention Sensor option.
4 Select a DLP sensor from the list.
5 Select the check boxes for the email protocols to archive spam for beside Archive
SPAMed email to FortiAnalyzer/FortiGuard.
6 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 593
http://docs.fortinet.com/ • Feedback
DLP Rules Data Leak Prevention

Note: Infected files are clearly indicated in the DLP Archive Email message list.

Viewing DLP archives


Go to Log & Report > DLP Archive to view all DLP archived content stored on a
FortiAnalyzer unit or the FortiGuard Analysis and Management server.
The DLP Archive menu is only visible if you have configured the FortiGate unit for remote
logging and archiving to a FortiAnalyzer unit or to the FortiGuard Analysis and
Management Service.

To view DLP archives


1 Go to Log&Report > DLP Archive.
2 Select the following tabs to view DLP archives for one of these protocols.
• E-mail to view POP3, IMAP, SMTP, POP3S, IMAPS, SMTPS, and spam email
archives.
• Web to view HTTP and HTTPS archives.
• FTP to view FTP archives.
• IM to view AIM, ICQ, MSN, and Yahoo! archives.
• VoIP to view session control (SIP, SIMPLE and SCCP) archives.

DLP Rules
DLP rules are the core element of the data leak prevention feature. These rules define the
data to be protected so the FortiGate unit can recognize it. For example, an included rule
uses regular expressions to describe Social Security number:
([0-6]\d{2}|7([0-6]\d|7[0-2]))[ \-]?\d{2}[ \-]\d{4}
Rather than having to list every possible Social Security number, this regular expression
describes the structure of a Social Security number. The pattern is easily recognizable by
the FortiGate unit. For more information about regular expressions, see “Using wildcards
and Perl regular expressions” on page 578.
DLP rules can be combined into compound rules and they can be included in sensors. If
rules are specified directly in a sensor, traffic matching any single rule will trigger the
configured action. If the rules are first combined into a compound rule and then specified
in a sensor, every rule in the compound rule must match the traffic to trigger the configured
action.
Individual rules in a sensor are linked with an implicit OR condition while rules within a
compound rule are linked with an implicit AND condition.

Viewing the DLP rule list


To view the DLP rule list, go to UTM > Data Leak Prevention > Rule.

FortiGate Version 4.0 MR1 Administration Guide


594 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Rules

Figure 367: The DLP rule list

Delete
Edit

Create New Select Create New to add a new rule.


Name The rule name.
Comments The optional description of the rule.
Compound Rules If the rule is included in any compound rules, the compound rule
names are listed here.
DLP Sensors If the rule is used in any sensors, the sensor names are listed here.
Delete and Edit icons Delete or edit a rule.
If a compound rule is used in a compound rule or a sensor, the delete
icon will not be available. Remove the compound rule from the
compound rule or sensor and then delete it.

Default DLP rules


A number of default DLP rules are provided with your FortiGate unit. You can use these as
provided, or modify them as required.

Note: These rules affect only unencrypted traffic types. If you are using a FortiGate unit
able to decrypt and examine encrypted traffic, you can enable those traffic types in these
rules to extend their functionality if required.

Caution: Before use, examine the rules closely to ensure you understand how they will
affect the traffic on your network.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 595
http://docs.fortinet.com/ • Feedback
DLP Rules Data Leak Prevention

All-Email, All-FTP, .These rules will detect all traffic of the specified type.
All-HTTP, All-IM, All-NNTP,
All-Session-Control
Email-AmEx, These four rules detect American Express numbers, Canadian Social
Email-Canada-SIN, Insurance Numbers, U.S. Social Security Numbers, or Visa and
Email-US-SSN, Mastercard numbers within the message bodies of SMTP, POP3, and
IMAP email traffic.
Email-Visa-Mastercard
HTTP-AmEx, These four rules detect American Express numbers, Canadian Social
HTTP-Canada-SIN, Insurance Numbers, U.S. Social Security Numbers, or Visa and
HTTP-US-SSN, Mastercard numbers within POST command in HTTP traffic. The
HTTP POST is used to send information to a web server.
HTTP-Visa-Mastercard
As written, these rules are designed to detect data the user is sending
to web servers. This rule does not detect the data retrieved with the
HTTP GET command, which is used to retrieve load web pages.
Email-Not-Webex, These rules prevent DLP from matching email or HTTP pages that
HTTP-Post-Not-Webex contain the string WebEx.
Large-Attachment This rule detects files larger than 5MB attached to SMTP, POP3, and
IMAP email messages.
Large-FTP-Put This rule detects files larger than 5MB sent using the FTP PUT
protocol. Files received using FTP GET are not examined.
Large-HTTP-Post This rule detects files larger than 5MB sent using the HTTP POST
protocol. Files received using HTTP GET are not examined.

Adding or configuring DLP rules


Go to UTM > Data Leak Prevention > Rule. To add a new rule, select Create New. To edit
an existing rule, select the edit icon of the rule to be changed.

Figure 368: DLP rule for HTTP traffic

Name The name of the rule.


Comments An optional comment describing the rule.

FortiGate Version 4.0 MR1 Administration Guide


596 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Rules

Protocol Select the type of content traffic that the DLP rule the rule will apply to.
The available rule options vary depending on the protocol that you
select. You can select the following protocols: Email, HTTP, FTP,
NNTP, Instant Messaging and Session Control.
AIM, ICQ, MSN, Yahoo! When you select the Instant Messaging protocol, you can configure
the rule to apply to file transfers using any or all of the supported IM
protocols (AIM, ICQ, MSN, and Yahoo!).
Only file transfers using the IM protocols are subject to DLP rules. IM
messages are not scanned.
HTTP POST, HTTP GET When you select the HTTP protocol, you can configure the rule to
apply to HTTP post or HTTP get traffic or both.
HTTPS POST, HTTPS When you select the HTTP protocol, if your FortiGate unit supports
GET SSL content scanning and inspection, you can also configure the
HTTP rule to apply to HTTPS get or HTTPS post sessions or both. For
more information about SSL content scanning and inspection, see
“Configuring SSL content scanning and inspection” on page 484.
To scan these encrypted traffic types, you must set HTTPS Content
Filtering Mode to Deep Scan (Decrypt on SSL Traffic) in the Protocol
Recognition section of the protection profile. If URL Filtering is
selected, the DLP sensors will not scan HTTPS content.
FTP PUT, FTP GET When you select the FTP protocol, you can configure the rule to apply
to FTP put, or FTP get sessions or both.
SMTP, IMAP, POP3 When you select the Email protocol, you can configure the rule to
apply to any or all of the supported email protocols (SMTP, IMAP, and
POP3).
SMTPS IMAPS POP3S When you select the Email protocol, if your FortiGate unit supports
SSL content scanning and inspection, you can also configure the rule
to apply to SMTPS, IMAPS, POP3S or any combination of these
protocols.
For more information about SSL content scanning and inspection, see
“Configuring SSL content scanning and inspection” on page 484.
SIP, SIMPLE, SCCP When you select the Session Control protocol, you can configure the
rule to apply to any or all of the supported session control protocols
(SIP, SIMPLE, and SCCP). The only rule option for the session control
protocols is Always. This option matches all session control traffic is
used for session control DLP archiving.
File Options You can select file options for any protocol to configure how the DLP
rule handles archive files, MS-Word files, and PDF files found in
content traffic. File options appear when you select File Type rule
option.
Scan archive contents When selected, files within archives are extracted and scanned in the
same way as files that are not archived.
Scan archive files When selected, archives are scanned as a whole. The files within the
whole archive are not extracted and scanned individually.
Scan MS-Word text When selected the text contents of MS Word DOC documents are
extracted and scanned for a match. All metadata and binary
information is ignored.
Note: Office 2007/2008 DOCX files are not recognized as MS-Word
by the DLP scanner. To scan the contents of DOCX files, select the
Scan archive contents option.
Scan MS-Word file When selected, MS Word DOC files are scanned. All binary and
whole metadata information is included.
If you are scanning for text entered in a DOC file, use the
Scan MS-Word option. Binary formatting codes and file information
may appear within the text, causing text matches to fail.
Note: Office 2007/2008 DOCX files are not recognized as MS-Word
by the DLP scanner. To scan the contents of DOCX files, select the
Scan archive contents option.
Scan PDF text When selected, the text contents of PDF documents are extracted and
scanned for a match. All metadata and binary information is ignored.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 597
http://docs.fortinet.com/ • Feedback
DLP Rules Data Leak Prevention

Scan PDF file whole When selected, PDF files are scanned. All binary and metadata
information is included.
If you are scanning for text in PDF files, use the Scan PDF Text
option. Binary formatting codes and file information may appear within
the text, causing text matches to fail.
Rule Use the Rule settings to configure the content that the DLP rule
matches.
Always Match any content.
This option is available for all protocols.
Attachment size Check the attachment file size.
This option is available for Email.
Attachment type Search email messages for file types or file patterns as specified in the
selected file filter.
This option is available for Email.
Authenticated User Search for traffic from the specified authenticated user.
Binary file pattern Search for the specified binary string in network traffic.
Body Search for the specified string in the message or page body.
This option is available for Email, HTTP, and NNTP.
CGI parameters Search for the specified CGI parameters in any web page with CGI
code.
This option is available for HTTP.
Cookie Search the contents of cookies for the specified text.
This option is available for HTTP.
File is/not encrypted Check whether the file is or is not encrypted. Encrypted files are
archives and MS Word files protected with passwords. Because they
are password protected, the FortiGate unit cannot scan the contents
of encrypted files.
File text Search for the specified text in transferred text files.
This option is available in FTP, IM, and NNTP.
File type Search for the specified file patterns and file types. The patterns and
types configured in file filter lists and a list is selected in the DLP rule.
For more information about file filter lists, see “File Filter” on page 521.
This option is available for FTP, HTTP, IM, and NNTP.
Hostname Search for the specified host name when contacting a HTTP server.
HTTP header Search for the specified string in HTTP headers.
Receiver Search for the specified string in the message recipient email address.
This option is available for Email.
Sender Search for the specified string in the message sender user ID or email
address. This option is available for Email and IM.
For email, the sender is determined by the From: address in the email
header. For IM, all members of an IM session are senders and the
senders are determined by finding the IM user IDs in the session.
Server Search for the server’s IP address in a specified address range.
This option is available for FTP, NNTP.
Subject Search for the specified string in the message subject.
This option is available for Email.
Transfer size Check the total size of the information transfer. In the case of email
traffic for example, the transfer size includes the message header,
body, and any encoded attachment.
URL Search for the specified URL in HTTP traffic.
User group Search for traffic from any user in the specified user group.
Rule operators:

FortiGate Version 4.0 MR1 Administration Guide


598 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Compound Rules

matches/does not match This operator specifies whether the FortiGate unit is searching for the
presence of specified string, or for the absence of the specified string.
• Matches: The rule will be triggered if the specified string is found in
network traffic.
• Does not match: The rule will be triggered if the specified string is
not found in network traffic.
ASCII/UTF-8 Select the encoding used for text files and messages.
Regular Select the means by which patterns are defined.
Expression/Wildcard For more information about wildcards and regular expressions, see
“Using wildcards and Perl regular expressions” on page 578
is/is not This operator specifies if the rule is triggered when a condition is true
or not true.
• Is: The rule will be triggered if the rule is true.
• Is not: The rule will be triggered if the rule is not true.
For example, if a rule specifies that a file type is found within a
specified file type list, all matching files will trigger the rule.
Conversely, if the rule specifies that a file type is not found in a file
type list, only the file types not in the list would trigger the rule.
==/>=/<=/!= These operators allow you to compare the size of a transfer or
attached file to an entered value.
• == is equal to the entered value.
• >= is greater than or equal to the entered value.
• <= is less than or equal to the entered value.
• != is not equal to the entered value.

DLP Compound Rules


DLP compound rules are groupings of DLP rules that also change the way they behave
when added to a DLP sensor. Individual rules can be configured with only a single
attribute. When this attribute is discovered in network traffic, the rule is activated.
Compound rules allow you to group individual rules to specify far more detailed activation
conditions. Each included rule is configured with a single attribute, but every attribute must
be present before the rule is activated.
For example, create two rules and add them to a sensor:
• Rule 1 checks SMTP traffic for a sender address of spammer@example.com
• Rule 2 checks SMTP traffic for the word “sale” in the message body
When the sensor is used, either rule could be activated its configured condition is true. If
only one condition is true, only the corresponding rule would be activated. Depending on
the contents of the SMTP traffic, neither, either, or both could be activated.
If you remove these rules from the sensor, add them to a compound rule, and add the
compound rule to the sensor, the conditions in both rules have to be present in network
traffic to activate the compound rule. If only one condition is present, the message passes
without any rule or compound rule being activated.
By combining the individually configurable attributes of multiple rules, compound rules
allow you to specify far more detailed and specific conditions to trigger an action.

Viewing the DLP compound rule list


To view the DLP compound rule list, go to UTM > Data Leak Prevention > Compound.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 599
http://docs.fortinet.com/ • Feedback
DLP Compound Rules Data Leak Prevention

Figure 369: DLP compound rule list

Delete
Edit

Create New Select Create New to add a new compound rule.


Name The compound rule name.
Comments The optional description of the compound rule.
DLP sensors If the compound rule is used in any sensors, the sensor names are
listed here.
Delete and Edit icons Delete or edit a compound rule.
If a compound rule is used in a sensor, the delete icon will not be
available. Remove the compound rule from the sensor and then delete
it.

Adding and configuring DLP compound rules


Go to UTM > Data Leak Prevention > Compound. To add a new compound rule, select
Create New. To edit an existing compound rule, select the edit icon of the compound rule
to be changed.

Figure 370: DLP compound rule

Add Rule
Delete Rule

Name The compound rule name.


Comments An optional description of the compound rule.
Protocol Select the type of content traffic that the DLP compound rule applies
to. The rules that you can add to the compound rule vary depending
on the protocol that you select. You can select the following protocols:
Email, HTTP, FTP, NNTP, and Instant Messaging.

FortiGate Version 4.0 MR1 Administration Guide


600 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Data Leak Prevention DLP Compound Rules

AIM, ICQ, MSN, Yahoo! When you select the Instant Messaging protocol, you can select the
supported IM protocols for which to add rules. Only the rules that
include all of the selected protocols can be added to the compound
rule.
HTTP POST, HTTP GET When you select the HTTP protocol, you can configure the compound
rule to apply to HTTP post or HTTP get sessions or both. Only the
rules that include all of the selected options can be added to the
compound rule.
HTTPS POST, HTTPS When you select the HTTP protocol, if your FortiGate unit supports
GET SSL content scanning and inspection, you can configure the
compound rule to apply to HTTPS post or HTTPS get sessions or
both. Only the rules that include all of the selected options can be
added to the compound rule.
For more information about SSL content scanning and inspection, see
“Configuring SSL content scanning and inspection” on page 484.
To scan these encrypted traffic types, you must set HTTPS Content
Filtering Mode to Deep Scan (Decrypt on SSL Traffic) in the Protocol
Recognition section of the protection profile. If URL Filtering is
selected, the DLP sensors will not scan HTTPS content.
FTP PUT, FTP GET When you select the FTP protocol, you can configure the compound
rule to apply to FTP put, or FTP get sessions or both. Only the rules
that include all of the selected options can be added to the compound
rule.
SMTP, IMAP, POP3 When you select the Email protocol, you can select the supported
email protocols for which to add rules. Only the rules that include all of
the selected protocols can be added to the compound rule.
SMTPS IMAPS POP3S When you select the Email protocol, if your FortiGate unit supports
SSL content scanning and inspection, you can also select the SMTPS,
IMAPS, POP3S protocols. Only the rules that include all of the
selected protocols can be added to the compound rule.
For more information about SSL content scanning and inspection, see
“Configuring SSL content scanning and inspection” on page 484.
Rules Select the rule to include in the compound rule. Only the rules that
include all of the selected protocols can be added to the compound
rule.
Add Rule/Delete Rule Use the add rule and delete rule icons to add and remove rules from
the compound rule. Select the add rule icon and then select rule from
the list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 601
http://docs.fortinet.com/ • Feedback
DLP Compound Rules Data Leak Prevention

FortiGate Version 4.0 MR1 Administration Guide


602 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Application Control What is application control?

Application Control
This section describes how to configure the application control options associated with
firewall protection profiles.
If you enable virtual domains (VDOMs) on the FortiGate unit, the application control
configuration of each VDOM is entirely separate. For example, application black/white lists
created in one VDOM will not be visible in other VDOMs. For details, see “Using virtual
domains” on page 159.
This section provides an introduction to configuring application control. For more
information see the FortiGate UTM User Guide.
This section describes:
• What is application control?
• FortiGuard application control database
• Viewing the application control black/white lists
• Creating a new application control black/white list
• Configuring an application control black/white list
• Adding or configuring an application control black/white list entry
• Application control statistics

What is application control?


Using the application control UTM feature your FortiGate unit can detect and take action
against network traffic depending on the application generating the traffic. Based on
FortiGate Intrusion Protection protocol decoders, application control is a more user-
friendly and powerful way to use Intrusion Protection features to log and manage the
behavior of application traffic passing through the FortiGate unit. Application control uses
IPS protocol decoders that can analyze network traffic to detect application traffic even if
the traffic uses non-standard ports or protocols.
The FortiGate unit can recognize the network traffic generated by a large number of
applications. You can create application control black/white lists that specify the action to
take with the traffic of the applications you need to manage and the network on which they
are active. Add application control black/white lists to protection profiles applied to the
network traffic you need to monitor.

FortiGuard application control database


Fortinet is constantly increasing the list of applications that application control can detect
by adding applications to the FortiGuard Application Control Database. Because intrusion
protection protocol decoders are used for application control, the application control
database is part of the FortiGuard Intrusion Protection System Database and both of
these databases have the same version number.
To view the version of the application control database installed on your FortiGate unit, go
to the License Information dashboard widget and find IPS Definitions version.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 603
http://docs.fortinet.com/ • Feedback
Viewing the application control black/white lists Application Control

To see the complete list of applications supported by FortiGuard Application Control go to


the FortiGuard Application Control List. This web page lists all of the supported
applications. You can select any application name to see details about the application.

Figure 371: ISIS.Over.IPv4 application page

Viewing the application control black/white lists


Each application control black/white list contains details about the application traffic to be
monitored and the actions to be taken when it is detected. To take effect, an application
control black/white list must be selected in a protection profile.
No default black/white lists are provided.
To view the application control black/white lists, go to UTM > Application Control >
Black/White List.

Figure 372: The application control black/white lists

Create New Select Create New to add a new application control black/white list.
Name The available application control black/white lists.
# of Entries The number of application rules in each application control black/white
list.
Profiles The protection profile each application control black/white list has
been applied to. If the black/white list has not been applied to a
protection profile, this field will be blank.
Comment An optional description of each application control black/white list.
Delete icon Select to remove the application control black/white list. The delete
icon is only available if the application control black/white list is not
selected in any protection profiles.
Edit icon Select to edit the application control black/white list.

FortiGate Version 4.0 MR1 Administration Guide


604 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Application Control Creating a new application control black/white list

Creating a new application control black/white list


To create a new application control black/white list, go to UTM > Application Control >
Black/White List and select Create New. Enter a name and optionally, a comment of
description. Select OK. Since a new application control black/white list is blank, the list edit
window appears. For information on creating application control black/white list entries,
see “Configuring an application control black/white list” on page 605.

Figure 373: The create a new application control black/white list dialog window

Name Enter the name of the application control black/white list.


Comments Optionally, enter a comment or description.

Configuring an application control black/white list


To configure an application control black/white list, go to UTM > Application Control >
Control Black/white List and select the Edit icon of the list you want to configure.
The FortiGate unit examines network traffic for the application entries in the listed order,
one at a time, from top to bottom. Whenever a match is detected, the action specified in
the matching rule is applied to the traffic and further checks for application entry matches
are stopped. Because of this, you can use both actions to create a complex rule with fewer
entries.
For example, if your organization has standardized on AIM for instant messaging, you can
allow AIM and block all other IM clients with just two entries. First, create an entry in which
AIM is the specified application. Set the action to Pass. Then create an entry in which the
Category is im, the Application is all, and the action is Block. Since the entries are
checked from top to bottom, AIM traffic will trigger the first rule, and be passed. All other
detected IM traffic will trigger the second rule, and the FortiGate unit will block it.

Figure 374: Editing an application control black/white list

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 605
http://docs.fortinet.com/ • Feedback
Adding or configuring an application control black/white list entry Application Control

Name The name of the application control black/white list.


Comments Enter or edit a comment about the black/white list. The comment is
optional.
Other Applications Other applications are those the FortiGate unit does not recognize, or
applications that are recognized but not configured in the application
control black/white list. You can select whether to block or allow other
application traffic, and also whether to log it.
Action Select the action the FortiGate unit takes with other application traffic.
Log Select whether the FortiGate unit will log other application traffic.
Create New Select to create a new application entry.
ID A unique number used primarily when re-ordering application entries.
Category The category indicates the scope of the applications included in the
application entry if Application is set to all. For example, if Application
is all and Category is toolbar, then all the toolbar applications are
included in the application entry even though they are not specified
individually.
If Application is a single application, the value in Category has no
effect on the operation of the application entry.
Application The FortiGate unit will examine network traffic for the listed
application. If Application is all, every application in the selected
category is included.
Action If the FortiGate unit detects traffic from the specified application, the
selected action will be taken.
Logging If traffic from the specified application is detected, the FortiGate unit
will log the occurrence and the action taken.
Delete icon Select to delete the application entry.
Edit icon Select to edit the application entry.
Insert Application Before Select to create a new application entry above the entry in which you
icon selected the icon.
Move To icon Select to move the application entry to a different position in the
black/white list.

Adding or configuring an application control black/white list entry


To add a new application control black/white list entry or edit an existing one, go to UTM >
Application Control > Black/White List, and select the Edit icon for the black/white list you
want to modify. To add a new entry, select Create New. To edit an existing entry, select the
Edit icon if the entry you want to modify.

Figure 375: The application control black/white list entry for FTP

FortiGate Version 4.0 MR1 Administration Guide


606 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Application Control Adding or configuring an application control black/white list entry

Category The applications are categorized by type. If you want to choose an IM


application, for example, select the im category, and the application
black/white list will show only the im applications.
The Category selection can also be used to specify an entire category
of applications. To select all IM applications for example, select the im
category, and select all as the application. This specifies all the IM
applications with a single application control black/white list entry.
Application The FortiGate unit will examine network traffic for the listed
application. If Application is all, every application in the selected
category is included.
Action If the FortiGate unit detects traffic from the specified application, the
selected action will be taken.
Options
Session TTL The application’s session TTL. If this option is not enabled, the TTL
defaults to the setting of the config system session-ttl CLI
command.
Enable Logging When enabled, the FortiGate unit will log the occurrence and the
action taken if traffic from the specified application is detected.

In addition to these option, some IM applications and VoIP protocols have additional
options:

IM options
Block Login Select to prevent users from logging in to the selected IM system.
Block File Transfers Select to prevent the sending and receiving of files using the selected
IM system.
Block Audio Select to prevent audio communication using the selected IM system.
Inspect Non-standard Select to allow the FortiGate unit to examine non-standard ports for
Port the IM client traffic.
Display content meta- Select to include meta-information detected for the IM system on the
information on the FortiGate unit dashboard.
system dashboard
VoIP options
Limit Call Setup Enter the maximum number of calls each client can set up per minute.
Limit REGISTER Enter the maximum number of register requests per second allowed
request for the firewall policy.
Limit INVITE request Enter the maximum number of invite requests per second allowed for
the firewall policy.
Enable Logging of Select to enable logging of violations.
Violations
Other options
Command Some of traffic types include a command option. Specify a command
that appears in the traffic that you want to block or pass.
For example, enter GET as a command in the FTP.Command
application to have the FortiGate unit examine FTP traffic for the GET
command. Multiple commands can be entered.
Method A method option is available for HTTP, RTSP, and SIP protocols.
Specify a method that appears in the traffic that you want to block or
pass.
For example, enter POST as a method in the HTTP.Method application
to have the FortiGate unit examine HTTP traffic for the POST method.
Multiple methods can be entered.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 607
http://docs.fortinet.com/ • Feedback
Application control statistics Application Control

Program Number Enter the program number appearing in Sun Remote Procedure Calls
(RPC) that you want to block or pass. Multiple program numbers can
be entered.
UUID Enter the UUID appearing in Microsoft Remote Procedure Calls
(MSRPC) that you want to block or pass. Multiple UUIDs can be
entered.

Application control statistics


The FortiGate unit maintains statistics on selected IM and P2P applications, and VoIP
protocols. You can use these statistics to gain insight into how the protocols are being
used within your network. To view these statistics, go to UTM > Application Control >
Statistics.

Figure 376: Application control statistics

Automatic Refresh Select the automatic refresh interval for statistics. Set the interval from
Interval none to 30 seconds.
Refresh Click to refresh the page with the latest statistics.
Reset Stats Click to reset the statistics to zero.
Users For each IM protocol, the following user information is listed:
• Current Users
• (Users) Since Last Reset
• (Users) Blocked.

FortiGate Version 4.0 MR1 Administration Guide


608 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Application Control Application control statistics

Chat For each IM protocol, the following chat information is listed:


• Total Chat Sessions
• Server-based Chat (Sessions)
• Group Chat (Sessions)
• Direct/Private Chat (Sessions)
Messages For each IM protocol, the following message information is listed:
• Total Messages
• Sent
• Received
File Transfers For each IM protocol, the following file transfer information is listed:
• (Files transferred) Since Last Reset
• (Files) Sent
• (Files) Received
• (Files) Blocked.
Voice Chat For each IM protocol, the following voice chat information is listed:
• (Voice chats) Since Last Reset
• (Voice chats) Blocked.
P2P Usage For each P2P protocol, the following usage information is listed:
• Total Bytes (transferred)
• Average Bandwidth.
If the action for a P2P application is set to pass, the statistics will
display the total usage of the P2P application. Applications set to
Block will not affect the statistics.
Note that the same application can have different actions set in
different application control black/white lists. In this case, the traffic
handled by the black/white lists with the Pass action will be reflected in
the statistics. The traffic handled by the black/white lists with the Block
action will not be reflected.
VoIP Usage For SIP and SCCP protocol, the following information is listed:
• Active Sessions (phones connected, etc)
• Total Calls (since last reset)
• Calls Failed/Dropped
• Calls Succeeded

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 609
http://docs.fortinet.com/ • Feedback
Application control statistics Application Control

FortiGate Version 4.0 MR1 Administration Guide


610 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Overview of IPSec VPN configuration

IPSec VPN
This section provides information about Internet Protocol Security (IPSec) VPN
configuration options available through the web-based manager. FortiGate units support
both policy-based (tunnel-mode) and route-based (interface mode) VPNs.

Note: For information about how to configure an IPSec VPN, see the FortiGate IPSec VPN
User Guide.

If you enable virtual domains (VDOMs) on the FortiGate unit, VPN IPSec is configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.
This section describes:
• Overview of IPSec VPN configuration
• Policy-based versus route-based VPNs
• Auto Key
• Manual Key
• Internet browsing configuration
• Concentrator
• Monitoring VPNs

Overview of IPSec VPN configuration


FortiGate units implement the Encapsulated Security Payload (ESP) protocol. The
encrypted packets look like ordinary packets that can be routed through any IP network.
Internet Key Exchange (IKE) is performed automatically based on pre-shared keys or
X.509 digital certificates. As an option, you can specify manual keys. Interface mode,
supported in NAT/Route mode only, creates a virtual interface for the local end of a VPN
tunnel.
Use the following configuration procedures for all IPSec VPNs:
1 Define the phase 1 parameters that the FortiGate unit needs to authenticate remote
peers or clients and establish a secure a connection. See “Creating a new phase 1
configuration” on page 614.
2 Define the phase 2 parameters that the FortiGate unit needs to create a VPN tunnel
with a remote peer or dialup client. See “Creating a new phase 2 configuration” on
page 619.

Note: You must use steps 1 and 2 if you want the FortiGate unit to generate unique
IPSec encryption and authentication keys automatically. If a remote VPN peer or client
requires a specific IPSec encryption or authentication key, you must configure the
FortiGate unit to use manual keys instead. For more information, see “Manual Key” on
page 622.

3 Create a firewall policy to permit communication between your private network and the
VPN. For a policy-based VPN, the firewall policy action is IPSEC. For an interface-
based VPN, the firewall policy action is ACCEPT. See “Configuring firewall policies” on
page 391.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 611
http://docs.fortinet.com/ • Feedback
Policy-based versus route-based VPNs IPSec VPN

For more information about configuring IPSec VPNs, see the FortiGate IPSec VPN User
Guide.

Policy-based versus route-based VPNs


FortiGate units support both policy-based and route-based VPNs. Generally, you can
configure route-based VPNs more easily than policy-based VPNs. However, the two types
have different requirements that limit where you can use them, as shown in Table 57.
Table 57: Comparison of policy-based and route-based VPNs

Policy-based Route-based
Available in NAT/Route or Transparent Available only in NAT/Route mode
mode
Requires a firewall policy with IPSEC Requires only a simple firewall policy with
action that specifies the VPN tunnel. One ACCEPT action. A separate policy is required
policy controls connections in both for connections in each direction.
directions.

You create a policy-based VPN by defining an IPSEC firewall policy between two network
interfaces and associating it with the VPN tunnel (phase 1 or manual key) configuration.
You need only one firewall policy, even if either end of the VPN can initiate a connection.
You create a route-based VPN by enabling IPSec interface mode when you create the
VPN phase 1 or manual key configuration. This creates a virtual IPSec interface that is
bound to the local interface you selected. You then define an ACCEPT firewall policy to
permit traffic to flow between the virtual IPSec interface and another network interface. If
either end of the VPN can initiate the connection, you need two firewall policies, one for
each direction.
Virtual IPSec interface bindings are shown on the network interfaces page. (Go to System
> Network > Interface.) The names of all tunnels bound to physical, aggregate, VLAN,
inter-VDOM link or wireless interfaces are displayed under their associated interface
names in the Name column. For more information, see “Configuring interfaces” on
page 177. As with other interfaces, you can include a virtual IPSec interface in a zone.

Hub-and-spoke configurations
To function as the hub of a hub-and-spoke VPN, the FortiGate unit provides a
concentrator function. This is available only for policy-based VPNs, but you can create the
equivalent function for a route-based VPN in any of the following ways:
• Define a firewall policy between each pair of IPSec interfaces that you want to
concentrate. This can be time-consuming to maintain if you have many site-to-site
connections, since the number of policies required increases rapidly as the number of
spokes increases.
• Put all the IPSec interfaces into a zone and then define a single zone-to-zone policy.
• Put all the IPSec interfaces in a zone and enable intra-zone traffic. There must be more
than one IPSec interface in the zone.
For more information and an example, see the FortiGate IPSec VPN User Guide.

FortiGate Version 4.0 MR1 Administration Guide


612 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Auto Key

Redundant configurations
Route-based VPNs help to simplify the implementation of VPN tunnel redundancy. You
can configure several routes for the same IP traffic with different route metrics. You can
also configure the exchange of dynamic (RIP, OSPF, or BGP) routing information through
VPN tunnels. If the primary VPN connection fails or the priority of a route changes through
dynamic routing, an alternative route will be selected to forward traffic through the
redundant connection.
A simple way to provide failover redundancy is to create a backup IPSec interface. You
can do this in the CLI. For more information, including an example configuration, see the
monitor-phase1 keyword for the ipsec vpn phase1-interface command in the
FortiGate CLI Reference.

Routing
Optionally, through the CLI, you can define a specific default route for a virtual IPSec
interface. For more information, see the default-gw keyword for the
vpn ipsec phase1-interface command in the FortiGate CLI Reference.

Auto Key
You can configure two VPN peers (or a FortiGate dialup server and a VPN client) to
generate unique Internet Key Exchange (IKE) keys automatically during the IPSec
phase 1 and phase 2 exchanges.
When you define phase 2 parameters, you can choose any set of phase 1 parameters to
set up a secure connection for the tunnel and authenticate the remote peer.
Auto Key configuration applies to both tunnel-mode and interface-mode VPNs.
To configure an Auto Key VPN, go to VPN > IPSEC > Auto Key (IKE).

Figure 377: Auto Key list

Edit
Delete

Create Phase 1 Create a new phase 1 tunnel configuration. For more information, see
“Creating a new phase 1 configuration” on page 614.
Create Phase 2 Create a new phase 2 configuration. For more information, see “Creating a
new phase 2 configuration” on page 619.
Phase 1 The names of existing phase 1 tunnel configurations.
Phase 2 The names of existing phase 2 configurations.
Interface Binding The names of the local interfaces to which IPSec tunnels are bound. These
can be physical, aggregate, VLAN, inter-VDOM link or wireless interfaces.
Delete and Edit icons Delete or edit a phase 1 configuration.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 613
http://docs.fortinet.com/ • Feedback
Auto Key IPSec VPN

Creating a new phase 1 configuration


In phase 1, two VPN peers (or a FortiGate dialup server and a VPN client) authenticate
each other and exchange keys to establish a secure communication channel between
them. The basic phase 1 settings associate IPSec phase 1 parameters with a remote
gateway and determine:
• whether the various phase 1 parameters will be exchanged in multiple rounds with
encrypted authentication information (main mode) or in a single message with
authentication information that is not encrypted (Aggressive mode)
• whether a pre-shared key or digital certificates will be used to authenticate the
identities of the two VPN peers (or a VPN server and its client)
• whether a special identifier, certificate distinguished name, or group name will be used
to identify the remote VPN peer or client when a connection attempt is made.
To define basic IPSec phase 1 parameters, go to VPN > IPSEC > Auto Key (IKE) and
select Create Phase 1. For information about how to choose the correct phase 1 settings
for your particular situation, see the FortiGate IPSec VPN User Guide.

Figure 378: New Phase 1

Name Type a name to represent the phase 1 definition. The maximum


name length is 15 characters for an interface mode VPN, 35
characters for a policy-based VPN. If Remote Gateway is Dialup
User, the maximum name length is further reduced depending on the
number of dialup tunnels that can be established: by 2 for up to 9
tunnels, by 3 for up to 99 tunnels, 4 for up to 999 tunnels, and so on.
For a tunnel mode VPN, the name should reflect where the remote
connection originates. For a route-based tunnel, the FortiGate unit
also uses the name for the virtual IPSec interface that it creates
automatically.
Remote Gateway Select the category of the remote connection:
Static IP Address — If the remote peer has a static IP address.
Dialup User — If one or more FortiClient or FortiGate dialup clients
with dynamic IP addresses will connect to the FortiGate unit.
Dynamic DNS — If a remote peer that has a domain name and
subscribes to a dynamic DNS service will connect to the FortiGate
unit.
IP Address If you selected Static IP Address, type the IP address of the remote
peer.
Dynamic DNS If you selected Dynamic DNS, type the domain name of the remote
peer.

FortiGate Version 4.0 MR1 Administration Guide


614 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Auto Key

Local Interface This option is available in NAT/Route mode only. Select the name of
the interface through which remote peers or dialup clients connect to
the FortiGate unit.
By default, the local VPN gateway IP address is the IP address of
the interface that you selected. Optionally, you can specify a unique
IP address for the VPN gateway in the Advanced settings. For more
information, see “Local Gateway IP” on page 617.
Mode Select Main or Aggressive:
• In Main mode, the phase 1 parameters are exchanged in multiple
rounds with encrypted authentication information.
• In Aggressive mode, the phase 1 parameters are exchanged in
single message with authentication information that is not
encrypted.
When the remote VPN peer has a dynamic IP address and is
authenticated by a pre-shared key, you must select Aggressive
mode if there is more than one dialup phase1 configuration for the
interface IP address.
When the remote VPN peer has a dynamic IP address and is
authenticated by a certificate, you must select Aggressive mode if
there is more than one phase 1 configuration for the interface IP
address and these phase 1 configurations use different proposals.
Peer Options settings may require a particular mode. See Peer
Options, below.
Authentication Method Select Preshared Key or RSA Signature.
Pre-shared Key If you selected Pre-shared Key, type the pre-shared key that the
FortiGate unit will use to authenticate itself to the remote peer or
dialup client during phase 1 negotiations. You must define the same
value at the remote peer or client. The key must contain at least 6
printable characters and should be known only by network
administrators. For optimum protection against currently known
attacks, the key should consist of a minimum of 16 randomly chosen
alphanumeric characters.
Certificate Name If you selected RSA Signature, select the name of the server
certificate that the FortiGate unit will use to authenticate itself to the
remote peer or dialup client during phase 1 negotiations. For
information about obtaining and loading the required server
certificate, see the FortiGate Certificate Management User Guide.
Peer Options One or more of the following options are available to authenticate
VPN peers or clients, depending on the Remote Gateway and
Authentication Method settings.
Accept any peer ID Accept the local ID of any remote VPN peer or client. The FortiGate
unit does not check identifiers (local IDs). You can set Mode to
Aggressive or Main.
You can use this option with RSA Signature authentication. But, for
highest security, you should configure a PKI user/group for the peer
and set Peer Options to Accept this peer certificate only.
Accept this peer ID This option is available only if the remote peer has a dynamic IP
address. Enter the identifier that is used to authenticate the remote
peer. This identifier must match the identifier that the remote peer’s
administrator has configured.
If the remote peer is a FortiGate unit, the identifier is specified in the
Local ID field of the phase 1 configuration.
If the remote peer is a FortiClient dialup client, the identifier is
specified in the Local ID field, accessed by selecting Config in the
Policy section of the VPN connection’s Advanced Settings.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 615
http://docs.fortinet.com/ • Feedback
Auto Key IPSec VPN

Accept peer ID in dialup Authenticate multiple FortiGate or FortiClient dialup clients that use
group unique identifiers and unique pre-shared keys (or unique pre-shared
keys only) through the same VPN tunnel.
You must create a dialup user group for authentication purposes.
(For more information, see “User Group” on page 666.) Select the
group from the list next to the Accept peer ID in dialup group option.
For more information about configuring FortiGate dialup clients, see
the FortiGate IPSec VPN User Guide. For more information about
configuring FortiClient dialup clients, see the Authenticating
FortiClient Dialup Clients Technical Note.
You must set Mode to Aggressive when the dialup clients use unique
identifiers and unique pre-shared keys. If the dialup clients use
unique pre-shared keys only, you can set Mode to Main if there is
only one dialup phase 1 configuration for this interface IP address.
Accept this peer This option is available when Authentication Method is set to
certificate only RSA Signature.
Authenticate remote peers or dialup clients that use a security
certificate. Select the certificate from the list next to the option.
You must add peer certificates to the FortiGate configuration before
you can select them here. For more information, see “PKI” on
page 664.
Accept this peer This option is available when Authentication Method is set to
certificate group only RSA Signature and Remote Gateway is set to Dialup User.
Use a certificate group to authenticate dialup clients that have
dynamic IP addresses and use unique certificates.
Select the name of the peer group from the list. You must first create
the group through the config user peergrp CLI command
before you can select it. For more information, see the “user” chapter
of the FortiGate CLI Reference. Members of the peer group must be
certificates added by using the config user peer CLI command.
You can also add peer certificates using the web-based manager.
For more information, see “PKI” on page 664.
Advanced Define advanced phase 1 parameters. For more information, see
“Defining phase 1 advanced settings” on page 616.

Defining phase 1 advanced settings


You use the advanced P1 Proposal parameters to select the encryption and
authentication algorithms that the FortiGate unit uses to generate keys for the IKE
exchange. You can also select these advanced settings to ensure the smooth operation of
phase 1 negotiations.
To modify IPSec phase 1 advanced parameters, go to VPN > IPSEC > Auto Key (IKE),
select Create Phase 1, and then select Advanced. For information about how to choose
the correct advanced phase 1 settings for your particular situation, see the FortiGate
IPSec VPN User Guide.

FortiGate Version 4.0 MR1 Administration Guide


616 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Auto Key

Figure 379: Phase 1 advanced settings

Add
Delete

Enable IPSec Interface This is available in NAT/Route mode only.


Mode Create a virtual interface for the local end of the VPN tunnel. Select this
option to create a route-based VPN, clear it to create a policy-based
VPN.
IKE Version Select the version of IKE to use: 1 or 2. The default is 1. This is available
only if IPsec Interface Mode is enabled. For more information about IKE
v2, refer to RFC 4306.
IKE v2 is not available if Mode is Aggressive.
When IKE Version is 2, Mode and XAUTH are not available.
IPv6 Version Select if you want to use IPv6 addresses for the remote gateway and
interface IP addresses. This is available only when Enable IPSec
Interface Mode is enabled and IPv6 Support is enabled in the
administrative settings.
Local Gateway IP If you selected Enable IPSec Interface Mode, specify an IP address for
the local end of the VPN tunnel. Select one of the following:
Main Interface IP — The FortiGate unit obtains the IP address of the
interface from the network interface settings. For more information, see
“Configuring interfaces” on page 177.
Specify — You can specify a secondary address of the interface
selected in the phase 1 Local Interface field. For more information, see
“Local Interface” on page 615.
You cannot configure Interface mode in a Transparent mode VDOM.
P1 Proposal Select the encryption and authentication algorithms used to generate
keys for protecting negotiations.
Add or delete encryption and authentication algorithms as required.
Select a minimum of one and a maximum of three combinations. The
remote peer or client must be configured to use at least one of the
proposals that you define.
Select one of the following symmetric-key algorithms:
DES — Digital Encryption Standard, a 64-bit block algorithm that uses a
56-bit key.
3DES — Triple-DES, in which plain text is encrypted three times by three
keys.
AES128 — a 128-bit block Cipher Block Chaining (CBC) algorithm that
uses a 128-bit key.
AES192 — a 128-bit block Cipher Block Chaining (CBC) algorithm that
uses a 192-bit key.
AES256 — a 128-bit block Cipher Block Chaining (CBC) algorithm that
uses a 256-bit key.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 617
http://docs.fortinet.com/ • Feedback
Auto Key IPSec VPN

Select either of the following message digests to check the authenticity


of messages during phase 1 negotiations:
MD5 — Message Digest 5, the hash algorithm developed by RSA Data
Security.
SHA1 — Secure Hash Algorithm 1, which produces a 160-bit message
digest.
To specify a third combination, use the Add button beside the fields for
the second combination.
DH Group Select one or more Diffie-Hellman groups from DH group 1, 2, 5 and 14.
At least one of the DH Group settings on the remote peer or client must
match one the selections on the FortiGate unit.
Keylife Type the time (in seconds) that must pass before the IKE encryption key
expires. When the key expires, a new key is generated without
interrupting service. The keylife can be from 120 to 172 800 seconds.
Local ID If the FortiGate unit will act as a VPN client and you are using peer IDs
for authentication purposes, enter the identifier that the FortiGate unit
will supply to the VPN server during the phase 1 exchange.
If the FortiGate unit will act as a VPN client and you are using security
certificates for authentication, select the distinguished name (DN) of the
local server certificate that the FortiGate unit will use for authentication
purposes.
If the FortiGate unit is a dialup client and will not be sharing a tunnel with
other dialup clients (that is, the tunnel will be dedicated to this FortiGate
dialup client), set Mode to Aggressive.
XAuth This option supports the authentication of dialup clients. It is available for
IKE v1 only.
Disable — Select if you do not use XAuth.
Enable as Client — If the FortiGate unit is a dialup client, type the user
name and password that the FortiGate unit will need to authenticate
itself to the remote XAuth server.
Enable as Server — This is available only if Remote Gateway is set to
Dialup User. Dialup clients authenticate as members of a dialup user
group. You must first create a user group for the dialup clients that need
access to the network behind the FortiGate unit. For more information,
see “Configuring a user group” on page 669.
You must also configure the FortiGate unit to forward authentication
requests to an external RADIUS or LDAP authentication server. For
information about these topics, see “Configuring a RADIUS server” on
page 656 or “Configuring an LDAP server” on page 658.
Select a Server Type setting to determine the type of encryption method
to use between the FortiGate unit, the XAuth client and the external
authentication server, and then select the user group from the User
Group list.
Nat-traversal Select the check box if a NAT device exists between the local FortiGate
unit and the VPN peer or client. The local FortiGate unit and the VPN
peer or client must have the same NAT traversal setting (both selected
or both cleared) to connect reliably.
Keepalive Frequency If you enabled NAT-traversal, enter a keepalive frequency setting. The
value represents an interval ranging from 10 to 900 seconds.
Dead Peer Detection Select this check box to reestablish VPN tunnels on idle connections and
clean up dead IKE peers if required. You can use this option to receive
notification whenever a tunnel goes up or down, or to keep the tunnel
connection open when no traffic is being generated inside the tunnel.
(For example, in scenarios where a dialup client or dynamic DNS peer
connects from an IP address that changes periodically, traffic may be
suspended while the IP address changes).
With Dead Peer Detection selected, you can use the config vpn
ipsec phase1 (tunnel mode) or config vpn ipsec phase1-
interface (interface mode) CLI command to optionally specify a retry
count and a retry interval. For more information, see the FortiGate CLI
Reference.

FortiGate Version 4.0 MR1 Administration Guide


618 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Auto Key

Creating a new phase 2 configuration


After IPSec phase 1 negotiations end successfully, you begin phase 2. You configure the
phase 2 parameters to define the algorithms that the FortiGate unit may use to encrypt
and transfer data for the remainder of the session. During phase 2, you select specific
IPSec security associations needed to implement security services and establish a tunnel.
The basic phase 2 settings associate IPSec phase 2 parameters with the phase 1
configuration that specifies the remote end point of the VPN tunnel. In most cases, you
need to configure only basic phase 2 settings.
To configure phase 2 settings, go to VPN > IPSEC > Auto Key (IKE) and select Create
Phase 2. For information about how to choose the correct phase 2 settings for your
particular situation, see the FortiGate IPSec VPN User Guide.

Figure 380: New Phase 2

Name Type a name to identify the phase 2 configuration.


Phase 1 Select the phase 1 tunnel configuration. For more information, see “Creating a
new phase 1 configuration” on page 614. The phase 1 configuration describes
how remote VPN peers or clients will be authenticated on this tunnel, and how the
connection to the remote peer or client will be secured.
Advanced Define advanced phase 2 parameters. For more information, see “Defining
phase 2 advanced settings” on page 619.

Defining phase 2 advanced settings


In phase 2, the FortiGate unit and the VPN peer or client exchange keys again to establish
a secure communication channel between them. You select the encryption and
authentication algorithms needed to generate keys for protecting the implementation
details of Security Associations (SAs). These are called P2 Proposal parameters. The
keys are generated automatically using a Diffie-Hellman algorithm.
You can use a number of additional advanced phase 2 settings to enhance the operation
of the tunnel. To modify IPSec phase 2 advanced parameters, go to VPN > IPSEC
Auto Key (IKE), select Create Phase 2, and then select Advanced. For information about
how to choose the correct advanced phase 2 settings for your particular situation, see the
FortiGate IPSec VPN User Guide.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 619
http://docs.fortinet.com/ • Feedback
Auto Key IPSec VPN

Figure 381: Phase 2 advanced settings

Add
Delete

P2 Proposal Select the encryption and authentication algorithms that will be proposed to
the remote VPN peer. You can specify up to three proposals. To establish a
VPN connection, at least one of the proposals that you specify must match
configuration on the remote peer.
Initially there are two proposals. Add and Delete icons are next to the
second Authentication field. To specify only one proposal, select Delete to
remove the second proposal. To specify a third proposal, select Add.
It is invalid to set both Encryption and Authentication to NULL.
Encryption Select one of the following symmetric-key algorithms:
NULL — Do not use an encryption algorithm.
DES — Digital Encryption Standard, a 64-bit block algorithm that uses a 56-
bit key.
3DES — Triple-DES, in which plain text is encrypted three times by three
keys.
AES128 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 128-bit key.
AES192 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 192-bit key.
AES256 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 256-bit key.
Authentication Select one of the following message digests to check the authenticity of
messages during an encrypted session:
NULL — Do not use a message digest.
MD5 — Message Digest 5, the hash algorithm developed by RSA Data
Security.
SHA1 — Secure Hash Algorithm 1, which produces a 160-bit message
digest.
SHA256 — Secure Hash Algorithm 2, which produces a 256-bit message
digest.
Enable replay Optionally enable or disable replay detection. Replay attacks occur when an
detection unauthorized party intercepts a series of IPSec packets and replays them
back into the tunnel.
Enable perfect Enable or disable PFS. Perfect forward secrecy (PFS) improves security by
forward secrecy forcing a new Diffie-Hellman exchange whenever keylife expires.
(PFS)
DH Group Select one Diffie-Hellman group (1, 2, 5 or 14). This must match the DH
Group that the remote peer or dialup client uses.
Keylife Select the method for determining when the phase 2 key expires: Seconds,
KBytes, or Both. If you select Both, the key expires when either the time has
passed or the number of KB have been processed. The range is from 120 to
172 800 seconds, or from 5120 to 2 147 483 648 KB.

FortiGate Version 4.0 MR1 Administration Guide


620 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Auto Key

Autokey Keep Alive Select the check box if you want the tunnel to remain active when no data is
being processed.
DHCP-IPSec Provide IP addresses dynamically to VPN clients. This is available for
phase 2 configurations associated with a dialup phase 1 configuration.
You also need configure a DHCP server or relay on the private network
interface. You must configure the DHCP parameters separately. For more
information, see “System DHCP” on page 227.
If you configure the DHCP server to assign IP addresses based on RADIUS
user group attributes, you must also set the Phase 1 Peer Options to Accept
peer ID in dialup group and select the appropriate user group. See “Creating
a new phase 1 configuration” on page 614.
If the FortiGate unit acts as a dialup server and you manually assigned
FortiClient dialup clients VIP addresses that match the network behind the
dialup server, selecting the check box will cause the FortiGate unit to act as
a proxy for the dialup clients.

Note: You can configure settings so that VPN users can browse the Internet through the
FortiGate unit. For more information, see “Internet browsing configuration” on page 624.

Quick Mode Optionally specify the source and destination IP addresses to be used as selectors
Selector for IKE negotiations. If the FortiGate unit is a dialup server, you should keep the
default value 0.0.0.0/0 unless you need to circumvent problems caused by
ambiguous IP addresses between one or more of the private networks making up
the VPN. You can specify a single host IP address, an IP address range, or a
network address. You may optionally specify source and destination port numbers
and a protocol number.
If you are editing an existing phase 2 configuration, the Source address and
Destination address fields are unavailable if the tunnel has been configured to use
firewall addresses as selectors. This option exists only in the CLI. For more
information, see the dst-addr-type, dst-name, src-addr-type and src-
name keywords for the vpn ipsec phase2 command in the FortiGate CLI
Reference.
Source address If the FortiGate unit is a dialup server, type the source IP
address that corresponds to the local senders or network
behind the local VPN peer (for example, 172.16.5.0/24 or
172.16.5.0/255.255.255.0 for a subnet, or
172.16.5.1/32 or 172.16.5.1/255.255.255.255 for a
server or host, or 192.168.10.[80-100] or
192.168.10.80-192.168.10.100 for an address range).
A value of 0.0.0.0/0 means all IP addresses behind the
local VPN peer.
If the FortiGate unit is a dialup client, source address must
refer to the private network behind the FortiGate dialup client.
Source port Type the port number that the local VPN peer uses to
transport traffic related to the specified service (protocol
number). The range is from 0 to 65535. To specify all ports,
type 0.
Destination Type the destination IP address that corresponds to the
address recipients or network behind the remote VPN peer (for
example, 192.168.20.0/24 for a subnet, or
172.16.5.1/32 for a server or host, or 192.168.10.[80-
100] for an address range). A value of 0.0.0.0/0 means all
IP addresses behind the remote VPN peer.
Destination port Type the port number that the remote VPN peer uses to
transport traffic related to the specified service (protocol
number). The range is from 0 to 65535. To specify all ports,
type 0.
Protocol Type the IP protocol number of the service. The range is from
0 to 255. To specify all services, type 0.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 621
http://docs.fortinet.com/ • Feedback
Manual Key IPSec VPN

Manual Key
If required, you can manually define cryptographic keys for establishing an IPSec VPN
tunnel. You would define manual keys in situations where:
• You require prior knowledge of the encryption or authentication key (that is, one of the
VPN peers requires a specific IPSec encryption or authentication key).
• You need to disable encryption and authentication.
In both cases, you do not specify IPSec phase 1 and phase 2 parameters; you define
manual keys by going to VPN > IPSEC > Manual Key instead.

Note: You should use manual keys only if it is unavoidable. There are potential difficulties in
keeping keys confidential and in propagating changed keys to remote VPN peers securely.

For general information about how to configure an IPSec VPN, see the FortiGate IPSec
VPN User Guide.

Figure 382: Manual Key list

Delete
Edit

Create New Create a new manual key configuration. See “Creating a new manual key
configuration” on page 622.
Tunnel Name The names of existing manual key configurations.
Remote Gateway The IP addresses of remote peers or dialup clients.
Encryption Algorithm The names of the encryption algorithms specified in the manual key
configurations.
Authentication The names of the authentication algorithms specified in the manual key
Algorithm configurations.
Delete and Edit icons Delete or edit a manual key configuration.

Creating a new manual key configuration


If one of the VPN devices is manually keyed, the other VPN device must also be manually
keyed with the identical authentication and encryption keys. In addition, it is essential that
both VPN devices be configured with complementary Security Parameter Index (SPI)
settings. The administrators of the devices need to cooperate to achieve this.
Each SPI identifies a Security Association (SA). The value is placed in ESP datagrams to
link the datagrams to the SA. When an ESP datagram is received, the recipient refers to
the SPI to determine which SA applies to the datagram. You must manually specify an SPI
for each SA. There is an SA for each direction, so for each VPN you must specify two
SPIs, a local SPI and a remote SPI, to cover bidirectional communications between two
VPN devices.

Caution: If you are not familiar with the security policies, SAs, selectors, and SA databases
for your particular installation, do not attempt the following procedure without qualified
assistance.

FortiGate Version 4.0 MR1 Administration Guide


622 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Manual Key

To specify manual keys for creating a tunnel, go to VPN > IPSEC > Manual Key and
select Create New.

Figure 383: New Manual Key

Name Type a name for the VPN tunnel. The maximum name length is 15 characters
for an interface mode VPN, 35 characters for a policy-based VPN.
Local SPI Type a hexadecimal number (up to 8 characters, 0-9, a-f) that represents the
SA that handles outbound traffic on the local FortiGate unit. The valid range is
from 0x100 to 0xffffffff. This value must match the Remote SPI value in
the manual key configuration at the remote peer.
Remote SPI Type a hexadecimal number (up to 8 characters, 0-9, a-f) that represents the
SA that handles inbound traffic on the local FortiGate unit. The valid range is
from 0x100 to 0xffffffff. This value must match the Local SPI value in
the manual key configuration at the remote peer.
Remote Gateway Type the IP address of the public interface to the remote peer. The address
identifies the recipient of ESP datagrams.
Local Interface This option is available in NAT/Route mode only. Select the name of the
interface to which the IPSec tunnel will be bound. The FortiGate unit obtains
the IP address of the interface from the network interface settings. For more
information, see “Configuring interfaces” on page 177.
Encryption Select one of the following symmetric-key encryption algorithms:
Algorithm DES — Digital Encryption Standard, a 64-bit block algorithm that uses a 56-
bit key.
3DES — Triple-DES, in which plain text is encrypted three times by three
keys.
AES128 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 128-bit key.
AES192 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 192-bit key.
AES256 — a 128-bit block Cipher Block Chaining (CBC) algorithm that uses
a 256-bit key.
Note: The algorithms for encryption and authentication cannot both be NULL.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 623
http://docs.fortinet.com/ • Feedback
Internet browsing configuration IPSec VPN

Encryption Key Enter an encryption key appropriate to the encryption algorithm:


• for DES, type a 16-character hexadecimal number (0-9, a-f).
• for 3DES, type a 48-character hexadecimal number (0-9, a-f) separated
into three segments of 16 characters.
• for AES128, type a 32-character hexadecimal number (0-9, a-f) separated
into two segments of 16 characters.
• for AES192, type a 48-character hexadecimal number (0-9, a-f) separated
into three segments of 16 characters.
• for AES256, type a 64-character hexadecimal number (0-9, a-f) separated
into four segments of 16 characters.
Authentication Select one of the following message digests:
Algorithm MD5 — Message Digest 5 algorithm, which produces a 128-bit message
digest.
SHA1 — Secure Hash Algorithm 1, which produces a 160-bit message digest.
SHA256 — Secure Hash Algorithm 2, which produces a 256-bit message
digest.
Note: The Algorithms for encryption and authentication cannot both be NULL.
Authentication Enter an authentication key appropriate to the authentication algorithm:
Key • for MD5, type a 32-character hexadecimal number separated into two
segments of 16 characters.
• for SHA1, type a 40-character hexadecimal number separated into two
segments of 16 characters and a third segment of 8 characters.
• for SHA256, type a 64-character hexadecimal number separated into four
segments of 16 characters.
Digits can be 0 to 9, and a to f.
IPSec Interface Create a virtual interface for the local end of the VPN tunnel. Select this check
Mode box to create a route-based VPN, clear it to create a policy-based VPN.
This is available only in NAT/Route mode.

Internet browsing configuration


By using appropriate firewall policies, you can enable VPN users to browse the Internet
through the FortiGate unit. The required policies are different for policy-based and route-
based VPNs. For more information, see “Configuring firewall policies” on page 391.

To create a policy-based VPN Internet browsing configuration


1 Go to Firewall > Policy.
2 Select Create New and enter the following information

Source Interface/Zone Select the FortiGate unit public interface.


Source Address Name Select All.
Destination Interface/Zone Select the FortiGate unit public interface.
Destination Address Name Select the remote network address name.
Action Select IPSEC.
VPN Tunnel Select the tunnel that provides access to the private network
behind the FortiGate unit.
Inbound NAT Select the check box.

3 Configure other settings as required.


4 Select OK.

To configure a route-based VPN Internet browsing configuration


1 Go to Firewall > Policy.

FortiGate Version 4.0 MR1 Administration Guide


624 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Concentrator

2 Select Create New and enter the following information.

Source Interface/Zone Select the IPSec interface.


Source Address Name Select All.
Destination Interface/Zone Select the FortiGate unit public interface.
Destination Address Name Select All.
Action Select ACCEPT.
NAT Select the check box.

3 Configure other settings as required.


4 Select OK.

Concentrator
In a hub-and-spoke configuration, policy-based VPN connections to a number of remote
peers radiate from a single, central FortiGate unit. Site-to-site connections between the
remote peers do not exist; however, You can establish VPN tunnels between any two of
the remote peers through the FortiGate unit “hub”.
In a hub-and-spoke network, all VPN tunnels terminate at the hub. The peers that connect
to the hub are known as “spokes”. The hub functions as a concentrator on the network,
managing all VPN connections between the spokes. VPN traffic passes from one tunnel to
the other through the hub.
You define a concentrator to include spokes in the hub-and-spoke configuration.
To define a concentrator, go to VPN > IPSEC > Concentrator. For detailed information and
step-by-step procedures about how to set up a hub-and-spoke configuration, see the
FortiGate IPSec VPN User Guide.

Figure 384: Concentrator list

Delete
Edit

Create New Define a new concentrator for an IPSec hub-and-spoke configuration. For
more information, see “Defining concentrator options” on page 625.
Concentrator Name The names of existing IPSec VPN concentrators.
Members The tunnels that are associated with the concentrators.
Delete and Edit Delete or edit a concentrator.
icons

Defining concentrator options


A concentrator configuration specifies which spokes to include in an IPSec hub-and-spoke
configuration.
To specify the spokes of an IPSec hub-and-spoke configuration, go to VPN > IPSEC >
Concentrator and select Create New.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 625
http://docs.fortinet.com/ • Feedback
Monitoring VPNs IPSec VPN

Figure 385: New VPN Concentrator

Right Arrow

Left Arrow

Concentrator Name Type a name for the concentrator.


Available Tunnels A list of defined IPSec VPN tunnels. Select a tunnel from the list and then
select the right arrow. Repeat these steps until all of the tunnels associated
with the spokes are included in the concentrator.
Members A list of tunnels that are members of the concentrator. To remove a tunnel
from the concentrator, select the tunnel and select the left arrow.

Monitoring VPNs
You can use the IPSec monitor to view activity on IPSec VPN tunnels and start or stop
those tunnels. The display provides a list of addresses, proxy IDs, and timeout information
for all active tunnels, including tunnel mode and route-based (interface mode) tunnels.
You can use filters to control the information displayed in the list. For more information,
see “Adding filters to web-based manager lists” on page 99.
To view active tunnels, go to VPN IPSec > Monitor.

Figure 386: IPSec Monitor list

Current Page

Type Select the types of VPN to display: “All”, “Dialup”, or “Static IP or Dynamic DNS”.
Column Customize the table view. You can select the columns to hide or display and
Settings specify the column displaying order in the table. For more information, see “Using
column settings to control the columns displayed” on page 103 and “Web-based
manager icons” on page 105.
Clear All Filters Select to clear any column display filters you might have applied.
Current Page The current page number of list items that are displayed. Select the left and right
arrows to display the first, previous, next or last page of monitored VPNs.
Filter icons Edit the column filters to filter or sort the IPSec monitor list according to the
criteria you specify. For more information, see “Adding filters to web-based
manager lists” on page 99.
Name The name of the phase 1 configuration for the VPN.
Remote The public IP address of the remote host device, or if a NAT device exists in front
Gateway of the remote host, the public IP address of the NAT device.

FortiGate Version 4.0 MR1 Administration Guide


626 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
IPSec VPN Monitoring VPNs

Remote Port The UDP port of the remote host device, or if a NAT device exists in front of the
remote host, the UDP port of the NAT device. Zero (0) indicates that any port can
be used.
Proxy ID Source The IP addresses of the hosts, servers, or private networks behind the FortiGate
unit. The page may display a network range if the source address in the firewall
encryption policy was expressed as a range of IP addresses.
Proxy ID When a FortiClient dialup client establishes a tunnel:
Destination • If VIP addresses are not used, the Proxy ID Destination field displays the
public IP address of the remote host Network Interface Card (NIC).
• If VIP addresses were configured (manually or through FortiGate DHCP
relay), the Proxy ID Destination field displays either the VIP address belonging
to the FortiClient dialup client, or the subnet address from which VIP
addresses were assigned.
When a FortiGate dialup client establishes a tunnel, the Proxy ID Destination field
displays the IP address of the remote private network.
Tunnel up or A green arrow means the tunnel is currently processing traffic. Select to bring
tunnel down down the tunnel.
icon A red arrow means the tunnel is not processing traffic. Select to bring up the
tunnel.
For Dialup VPNs, the list provides status information about the VPN tunnels established
by dialup clients, including their IP addresses. The number of tunnels shown in the list can
change as dialup clients connect and disconnect.
For Static IP or dynamic DNS VPNs, the list provides status and IP addressing information
about VPN tunnels, active or not, to remote peers that have static IP addresses or domain
names. You can also start and stop individual tunnels from the list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 627
http://docs.fortinet.com/ • Feedback
Monitoring VPNs IPSec VPN

FortiGate Version 4.0 MR1 Administration Guide


628 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
PPTP VPN PPTP configuration using FortiGate web-based manager

PPTP VPN
FortiGate units support PPTP to tunnel PPP traffic between two VPN peers. Windows or
Linux PPTP clients can establish a PPTP tunnel with a FortiGate unit that has been
configured to act as a PPTP server. As an alternative, you can configure the FortiGate unit
to forward PPTP packets to a PPTP server on the network behind the FortiGate unit.
PPTP VPN is available only in NAT/Route mode. The current maximum number of PPTP
sessions is 254. If you enable virtual domains (VDOMs) on the FortiGate unit, you need to
configure VPN PPTP separately for each virtual domain. For more information, see “Using
virtual domains” on page 159.
When you intend to use the FortiGate unit as a PPTP gateway, you can select a PPTP
client IP from a local address range or use the server defined in the PPTP user group. You
select which method to use for IP address retrieval and, in the case of the user group
server, provide the IP address and the user group.
This section explains how to specify a range of IP addresses for PPTP clients or configure
the PPTP client-side IP address to be used in the tunnel setup. For information about how
to perform other related PPTP VPN setup tasks, see the FortiGate PPTP VPN User
Guide.

Note: The PPTP feature is disabled by default in the FortiGate web-based manager. You
configure the PPTP tunnel configuration by creating a customized FortiGate screen.

This section describes:


• PPTP configuration using FortiGate web-based manager
• PPTP configuration using CLI commands

PPTP configuration using FortiGate web-based manager


To configure the PPTP tunnel, create a customized screen in the web-based manager.
The PPTP Range tab is found under the Categories heading as a selection in the
Additional category:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 629
http://docs.fortinet.com/ • Feedback
PPTP configuration using FortiGate web-based manager PPTP VPN

Figure 387: Categories > Additional > PPTP Range

For information about creating customized screens in the FortiGate web-based manager,
see “Customizable web-based manager” on page 290.
PPTP requires two IP addresses, one for each end of the tunnel. The PPTP address
range is the range of addresses reserved for remote PPTP clients. When the remote
PPTP client establishes a connection, the FortiGate unit assigns an IP address from the
reserved range of IP addresses to the client PPTP interface or retrieves the assigned IP
address from the PPTP user group. If you use the PPTP user group, you must also define
the FortiGate end of the tunnel by entering the IP address of the unit in Local IP (web-
based manager) or local-ip (CLI). The PPTP client uses the assigned IP address as its
source address for the duration of the connection.
To enable PPTP and specify the PPTP address range or specify the IP address for the
peer’s remote IP on the PPTP client side, go to the customized screen in the web-based
manager, select the required options, and then select Apply.

Note: The start and end IPs in the PPTP address range must be in the same 24-bit subnet,
e.g. 192.168.1.1 - 192.168.1.254.

FortiGate Version 4.0 MR1 Administration Guide


630 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
PPTP VPN PPTP configuration using CLI commands

Figure 388: Edit PPTP range options, showing both Range and User Group

Enable PPTP Enable PPTP. You must add a user group before you can select the
option. See “User Group” on page 666.
IP Mode Select how PPTP users are assigned an IP address.
Range User’s IP addresses are assigned from the range of IP addresses
configured by Starting IP and Ending IP.
User Group User’s IP addresses are assigned by the user group used to
authenticate the user. Select the user group. See “Dynamically
assigning VPN client IP addresses from a user group” on page 673.
Starting IP Type the starting address in the range of reserved IP addresses.
Ending IP Type the ending address in the range of reserved IP addresses.
Local IP Type the IP address to be used for the peer’s remote IP on the PPTP
client side.
User Group Select the PPTP user group from the list.
Disable PPTP Select to disable PPTP support.

PPTP configuration using CLI commands


If you prefer not to set up a customized screen in the FortiGate web-based manager, you
can configure the PPTP tunnel using CLI.

Syntax
config vpn pptp
set eip <address_ipv4>
set ip-mode {range | usrgrp}
set local-ip <address_localip>
set sip <address_ipv4>
set status {disable | enable}
set usrgrp <group_name>
end
Variables Description Default
eip <address_ipv4> The ending address of the PPTP address range. 0.0.0.0

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 631
http://docs.fortinet.com/ • Feedback
PPTP configuration using CLI commands PPTP VPN

ip-mode Enable to have the PPTP client retrieve the IP


{range | usrgrp} address from the PPTP user group or select an IP
address from the pre-configured IP address range.
local-ip PPTP server IP address from the PPTP user group.
<address_localip>
sip <address_ipv4> The starting address of the PPTP IP address range. 0.0.0.0
status Enable or disable PPTP VPN. disable
{disable | enable}
usrgrp <group_name> This keyword is available when status is set to Null.
enable.
Enter the name of the user group for authenticating
PPTP clients. The user group must be added to the
FortiGate configuration before it can be specified
here.
eip <address_ipv4> The ending address of the PPTP address range. 0.0.0.0
ip-mode Enable to have the PPTP client retrieve the IP
{range | usrgrp} address from the PPTP user group or select an IP
address from the pre-configured IP address range.

FortiGate Version 4.0 MR1 Administration Guide


632 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN

SSL VPN
An SSL VPN (Secure Sockets Layer virtual private network) is a form of VPN that can be
used with a standard Web browser. SSL VPN does not require the installation of
specialized client software on end users’ computers, and is ideal for applications including
web-based email, business and government directories, file sharing, remote backup,
remote system management, and consumer-level electronic commerce.
The two modes of SSL VPN operation (supported in NAT/Route mode only) are:
• web-only mode, for thin remote clients equipped with a web-browser only.
• tunnel mode, for remote computers that run a variety of client and server applications.
When the FortiGate unit provides services in web-only mode, a secure connection
between the remote client and the FortiGate unit is established through the SSL VPN
security in the FortiGate unit and the SSL security in the web browser. After the
connection has been established, the FortiGate unit provides access to selected services
and network resources through a web portal. The FortiGate SSL VPN web portal has a
widget-based layout with customizable themes. Each widget is displayed in a 1- or 2-
column format with the ability to modify settings, minimize the widget window, or other
functions depending on the type of content within the widget.
When users have complete administrative rights over their computers and use a variety of
applications, tunnel mode allows remote clients to access the local internal network as if
they were connected to the network directly.
This section provides information about the features of SSL VPN available for
configuration in the web-based manager. Only FortiGate units that run in NAT/Route mode
support the SSL VPN feature.
If you enable virtual domains (VDOMs) on the FortiGate unit, VPN SSL is configured
separately for each virtual domain. For details, see “Using virtual domains” on page 159.

Note: For detailed instructions about how to configure web-only mode or tunnel-mode
operation, see the FortiGate SSL VPN User Guide.

This section describes:


• ssl.root
• Configuring SSL VPN
• SSL VPN web portal
• Configuring web portal layout
• Configuring the virtual desktop
• Virtual Desktop Application Control
• Host Check list
• SSL VPN monitor list

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 633
http://docs.fortinet.com/ • Feedback
ssl.root SSL VPN

ssl.root
The FortiGate unit has a virtual SSL VPN interface called ssl.<vdomname>. The root
VDOM, called ssl.root, appears in the firewall policy interface lists and static route
interface lists. You can use the ssl-root interface to allow access to additional networks
and facilitate a connected user’s ability to browse the Internet through the FortiGate unit.
SSL VPN tunnel-mode access requires the following firewall policies:
• External > Internal, with the action set to SSL, with an SSL user group
• ssl.root > Internal, with the action set to Accept
• Internal > ssl.root, with the action set to Accept.
Access also requires a new static route: Destination network - <ssl tunnel mode assigned
range> interface ssl.root.
If you are configuring Internet access through an SSL VPN tunnel, you must add the
following configuration: ssl.root > External, with the action set to Accept, NAT enabled.

Configuring SSL VPN


You can configure basic SSL VPN settings including timeout values and SSL encryption
preferences. If required, you can also enable the use of digital certificates for
authenticating remote clients.

Note: If required, you can enable SSL version 2 encryption (for compatibility with older
browsers) through a FortiGate CLI command. For more information, see the ssl
settings command in the FortiGate CLI Reference.

To enable SSL VPN connections and configure SSL VPN settings, go to VPN > SSL >
Config and select Enable SSL-VPN. When you have completed configuring the settings,
select Apply.

Figure 389: SSL-VPN Settings

Enable SSL VPN Select to enable SSL VPN connections.


IP Pools Select Edit to select the firewall addresses that represent IP address
ranges reserved for tunnel-mode SSL VPN clients. If the appropriate
addresses do not exist, go to Firewall > Address to create them.

FortiGate Version 4.0 MR1 Administration Guide


634 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

Server Certificate Select the signed server certificate to use for authentication purposes. If
you leave the default setting (Self-Signed), the FortiGate unit offers its
factory installed (self-signed) certificate from Fortinet to remote clients
when they connect.
Require Client Certificate If you want to enable the use of group certificates for authenticating
remote clients, select the check box. Afterward, when the remote client
initiates a connection, the FortiGate unit prompts the client for its client-
side certificate as part of the authentication process.
Encryption Key Select the algorithm for creating a secure SSL connection between the
Algorithm remote client web browser and the FortiGate unit.
Default - RC4(128 If the web browser on the remote client can match a cipher suite greater
bits) and higher than or equal to 128 bits, select this option.
High - AES(128/256 If the web browser on the remote client can match a high level of SSL
bits) and 3DES encryption, select this option to enable cipher suites that use more than
128 bits to encrypt data.
Low - RC4(64 bits), If you are not sure which level of SSL encryption the remote client web
DES and higher browser supports, select this option to enable a cipher suite greater
than or equal to 64 bits.
Idle Timeout Type the period of time (in seconds) to control how long the connection
can remain idle before the system forces the user to log in again. The
range is from 10 to 28800 seconds. You can also set the value to 0 to
have no idle connection timeout. This setting applies to the SSL VPN
session. The interface does not time out when web application sessions
or tunnels are up.
Advanced (DNS and WINS Servers)
DNS Server #1 Enter up to two DNS Servers to be provided for the use of clients.
DNS Server #2
WINS Server #1 Enter up to two WINS Servers to be provided for the use of clients.
WINS Server #2
Apply Select to save and apply settings.

SSL VPN web portal


The SSL VPN Service portal allows you to access network resources through a secure
channel using a web browser. FortiGate administrators can configure log in privileges for
system users and which network resources are available to the users, such as
HTTP/HTTPS, telnet, FTP, SMB/CIFS, VNC, RDP and SSH.
The portal configuration determines what the system user sees when they log in to the
FortiGate. Both the system administrator and the system user have the ability to
customize the SSL VPN portal.
This section describes:
• Default web portal configurations
• Configuring web portal settings
• Configuring the virtual desktop
• Configuring security control
• Configuring web portal layout
• Session Information widget
• Bookmarks widget
• Connection Tool widget
• Tunnel Mode widget

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 635
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

Default web portal configurations


There are three pre-defined default web portal configurations available:
• full-access: Includes all widgets available to the user - Session Information,
Connection Tool, Bookmarks, and Tunnel Mode.
• tunnel-access: Includes Session Information and Tunnel Mode widgets.
• web-access: Includes Session Information and Bookmarks widgets.
To use a default SSL VPN web portal configuration, select the Edit icon next to the web
portal in the Portal list. The SSL VPN web portal that you select will open.

FortiGate Version 4.0 MR1 Administration Guide


636 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

Figure 390: Default web portals


Edit button

Default full-access web portal

Default tunnel-access web portal

Default web-access web portal

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 637
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

Configuring web portal settings


Go to VPN > SSL > Portal to adjust web portal settings. If you want to create a new web
portal, select Create New. To edit settings for an existing web portal configuration, select
the Edit icon for the web portal and then select Settings.

Figure 391: SSL VPN web portal configuration - General tab

OK/Cancel Select OK to save the configuration and Cancel to exit the


configuration window without any saving changes made. If you select
OK, the main portal configuration window appears.
General tab
Name Name of the web portal configuration.
Applications Select the abbreviated name of the server applications or network
services clients can use.
Portal Message Enter the caption that appears at the top of the web portal home page.
Theme Select the color scheme for the web portal home page from the list.
Page Layout Select the one or two page column format for the web portal home
page.

Select Apply or OK to save the new web portal.

Configuring the virtual desktop


Available for Windows XP and Windows Vista client PCs, the virtual desktop feature
completely isolates the SSL VPN session from the client computer’s desktop environment.
All data is encrypted, including cached user credentials, browser history, cookies,
temporary files, and user files created during the session. When the SSL VPN session
ends normally, the files are deleted. If the session ends due to a malfunction, files might
remain, but they are encrypted, so the information is protected.
When the user starts an SSL VPN session with virtual desktop enabled, the virtual
desktop replaces the user’s normal desktop. When the virtual desktop exits, the user’s
normal desktop is restored.

FortiGate Version 4.0 MR1 Administration Guide


638 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

Virtual desktop requires the Fortinet host check plugin. If the plugin is not present, it is
automatically downloaded to the client computer.

To enable virtual desktop


1 Go to VPN > SSL > Portal and select the Edit icon for the web portal.
2 Select the Settings button.
3 Select the Virtual Desktop tab.
4 Select Enable Virtual Desktop.
5 Enable options as required.
6 If you want to apply virtual desktop application control, select the Application Control
List to use.
7 Select OK.
8 Select Apply.

Configuring security control


You can apply cache cleaning and host checking to the clients of your web portal.
Cache cleaning clears information from the client browser cache just before the SSL VPN
session ends. The cache cleaner is effective only if the session terminates normally. The
cache is not cleaned if the session ends due to a malfunction, such as a power failure.
Host checking enforces the client’s use of antivirus or firewall software. Each client is
checked for security software that is recognized by the Windows Security Center. As an
alternative, you can create a custom host check that looks for specific security software
selected from the Host Check list located at VPN > SSL > Host Check. See “Host Check
list” on page 648.

To configure Security Control


1 Go to VPN > SSL > Portal and select the Edit icon for the web portal.
2 Select the Settings button.
3 Select the Security Control tab.
4 Enter the following information:

Clean Cache Enable to clear client cache when the SSL VPN session ends.
Host Check Select the type of host checking to use.
AV Check for antivirus software recognized by the Windows Security Center.
AV-FW Check for both antivirus and firewall software recognized by the Windows
Security Center.
Custom Check for the security software listed in the Policy field.
FW Check for firewall software recognized by the Windows Security Center.
None Do not perform host checking.
Interval Select how often to recheck the host. Range is every 120 seconds to 259 200
seconds. Enter 0 to not recheck the host during the session.
Policy The list of acceptable security applications for clients. These application names
are from the Host Check list. This field is available if Host Check is Custom.
Select Edit to choose the host check applications to use. Use the arrow buttons
to move applications between the Available and Selected lists. Clients will be
checked for the applications in the Selected list. Select OK.

5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 639
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

Configuring web portal layout


To add or edit SSL VPN web portal widgets, go to VPN > SSL > Portal and select Create
New, then select OK. The SSL VPN web portal is displayed. You can also edit an existing
SSL VPN web portal. You can add, remove, and edit the widgets that appear on the web
portal.

Figure 392: SSL VPN web portal - full-access Default configuration window

Log out icon


Help icon

Add Widget list

OK Select to save the configuration. If you select OK, you exit out of the
SSL VPN web portal configuration window.
Cancel Select to exit the configuration window without saving any changes.
Apply Select to apply any changes made in the web portal configuration. If
you select Apply, you will not leave the portal configuration window.
Settings Select to edit the General or Advanced settings for the SSL VPN web
portal. See “SSL VPN web portal” on page 635.
Help Indicates the location of the SSL VPN web portal online help icon. You
cannot change or move this icon. Active when SSL VPN web portal is
activated by user.
Log out Indicates the location of the SSL VPN web portal log out icon. You
cannot change or move this icon. Active when SSL VPN web portal is
activated by user.
Add Widget list Select to add a widget to the SSL VPN web portal configuration.
Session Information Displays the login name of the user, the amount of time the user has
been logged in, and the inbound and outbound traffic of HTTP and
HTTPS.
Bookmarks Displays configured bookmarks, allows for the addition of new
bookmarks and editing of existing bookmarks.

FortiGate Version 4.0 MR1 Administration Guide


640 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

Connection Tool Enter the URL or IP address for a connection tool application/server
(selected when configuring the Connection Tool). You can also check
connectivity to a host or server on the network behind the FortiGate
unit by selecting the Type Ping.
Tunnel Mode Displays tunnel information and actions in user mode. The
administrator can configure a split-tunneling option.

Session Information widget


The Session Information widget displays the login name of the user, along with the
amount of time the user has been logged in and the inbound and outbound traffic statistics
of HTTP and HTTPS.
To edit the session information, in the Session Information widget select Edit.

Figure 393: Session Information widget - Edit

Remove widget
Edit

Edit Select to edit the information in the widget.


Remove widget Select to close the widget and remove it from the web portal home
page.
OK Select to save the Session Information configuration.
Cancel Select to exit the Session Information widget without saving any
changes.
Name Enter a customized name for the Session Information widget.

Bookmarks widget
Bookmarks are used as links to specific resources on the network. When a bookmark is
selected from a bookmark list, a pop-up window appears with the requested web page.
Telnet, VNC, and RDP all pop up a window that requires a browser plug-in. FTP and
Samba replace the bookmarks page with an HTML file-browser.

To configure the Bookmarks widget


1 Open the web portal.
2 If the Bookmarks widget is missing, add it by selecting Bookmarks from the Add Widget
list in the top right corner of the web portal window.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 641
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

3 Select the Edit icon in the Bookmarks widget title bar.


4 Optionally, you can change the Name of the Bookmarks widget.
5 Select the Applications check boxes for the types of bookmarks that you want to
support.
6 Select OK.

To add or edit bookmarks


1 Open the web portal.
2 In the Bookmarks widget, do one of the following:
• To add a bookmark, select Add.
• To edit an existing bookmark, select the Edit button and then select the bookmark.
3 Enter or edit the following information:

Name Enter a name for the bookmark.


Type Select the type of application to which the bookmark links. For example, select
HTTP/HTTPS for a web site.
Only the application types that you configured for this widget are in the list. You
can select Edit in the widget title bar to enable additional application types. See
“To configure the Bookmarks widget”.
Location Enter the destination of the bookmark.
For HTTP, enter the URL or just the hostname.
For HTTPS, enter the URL.
For RDP, VNC, Telnet or SSH, enter the hostname.
For FTP or SMB, enter hostname or //<hostname>/<path>.
Description Optionally, enter a descriptive tooltip for the bookmark.
SSO A Single Sign-On (SSO) bookmark automatically enters the login credentials
for the bookmark destination. Select one of:
Disabled — This is not an SSO bookmark.
Automatic — Use the user’s SSL VPN credentials for login.
Static — Use the login credentials defined below.
Single Sign-On settings available when SSO is Static
Field Name Enter a required login page field name, “User Name” for example.
Value Enter the value to enter in the field identified by Field Name.
If you are an administrator configuring a bookmark for users:
• Enter %usrname% to represent the user’s SSL VPN user name.
• Enter %passwd% to represent the user’s SSL VPN password.
Add Enter another Field Name / Value pair, for the password, for example.
A new set of Field Name / Value fields is added. Fill them in.

4 Select OK.
5 If there is a Done button, you can select another bookmark to edit or select Done to
leave the edit mode.
6 Select Apply at the top of the web portal page to save the changes that you made.

FortiGate Version 4.0 MR1 Administration Guide


642 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

Figure 394: Using the Bookmarks widget to add a bookmark


Remove widget
Edit

Add bookmark
window

Select OK

Bookmark
added

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 643
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

Figure 395: Using the Bookmarks widget to edit a bookmark


Remove widget
Edit

Select Delete
bookmark bookmark
to edit

Bookmark
detail
window

Select
OK

Select
Done

Bookmarks
widget with
list of bookmarks

To delete bookmarks
1 Open the web portal.
2 In the Bookmarks widget, select the Edit button.
3 Select the X to the right of the bookmark that you want to delete.
4 Select Done.

Connection Tool widget


You can use the Connection Tool widget to connect to a network resource without adding
a bookmark to the bookmark list. You select the type of resource and specify the URL or
IP address of the host computer.

To configure the Connection Tool widget


1 Open the web portal.
2 If the Connection Tool widget is missing, add it by selecting Connection Tool from the
Add Widget list in the top right corner of the web portal window.

FortiGate Version 4.0 MR1 Administration Guide


644 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN web portal

3 In the Connection Tool widget select the Edit icon in the widget title bar.
4 Enter the following information:

Name Optionally, enter a customized name for the Connection Tool widget.
Applications Select the types of server applications or network services that will be available
to users through the Connection Tool widget.
Type Select the server/application that the FortiGate unit will use to establish a
connection.

5 Select OK.

To use the Connection Tool widget


1 Open the web portal.
2 In the Connection Tool widget, from the Type list select the type network service you
want to use.
The available types of network service depend on the widget configuration. See “To
configure the Connection Tool widget”.
3 In the Host field, enter the URL, host name, or IP address as appropriate.
4 Select Go.

Tunnel Mode widget


If your web portal provides tunnel mode access, you need to configure the Tunnel Mode
widget. These settings determine how tunnel mode clients are assigned IP addresses.
Also, you can enable a split tunneling configuration so that the VPN carries only the traffic
for the networks behind the FortiGate unit. The user’s other traffic follows its normal route.

To configure tunnel mode settings


1 Open the web portal.
2 If the Tunnel Mode widget is missing, add it by selecting Tunnel Mode from the Add
Widget list in the top right corner of the window.
3 Select the Edit icon in the Tunnel Mode widget title bar.
4 Enter the following information:

Name Enter a name for the Tunnel Mode widget. The default is “Tunnel Mode”.
IP Mode Select the mode by which the IP address is assigned to the user.
Range The user IP address is allocated from the IP addresses specified in
IP Pools. If IP Pools is empty, the IP Pools specified in VPN > SSL > Config
are used.
User Group The user is assigned the IP address specified in the Framed-IP-Address
field of the user’s record on the RADIUS server. This option is valid only for
users authenticated by a RADIUS server.
IP Pools Select Edit to select the firewall addresses that represent IP address ranges
reserved for tunnel-mode SSL VPN clients. If the appropriate addresses do
not exist, go to Firewall > Address to create them.
Split tunneling Select to enable split tunneling. In a split tunneling configuration, the tunnel
mode client uses the SSL VPN only for traffic destined for the networks
behind the FortiGate unit. The user’s other traffic follows its normal route.

The remaining items in the widget are available to the user during an SSL VPN
session.
5 Select OK in the Tunnel Mode widget.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 645
http://docs.fortinet.com/ • Feedback
SSL VPN web portal SSL VPN

6 Select Apply.

Figure 396: Configuring the Tunnel Mode widget

Remove widget
Edit

To use the tunnel mode widget


When logged into the portal as an SSL VPN user:
1 View any of the following information:

Link status The state of the SSL VPN tunnel:


Up — an SSL VPN tunnel with the FortiGate unit has been
established.
Down — there is no tunnel connection.
Bytes sent: The number of bytes of data transmitted from the client to the
FortiGate unit since the tunnel was established.
Bytes received: The number of bytes of data received by the client from the FortiGate
unit since the tunnel was established.
<status information> Detailed information about the tunnel connection, for example,
“Fortinet SSL VPN client connected to server”.

2 Do any of the following:

Connect Initiate a session and establish an SSL VPN tunnel with the FortiGate unit.
Disconnect End the session and close the tunnel to the FortiGate unit.
Refresh now Refresh the Fortinet SSL VPN Client page (web portal).

FortiGate Version 4.0 MR1 Administration Guide


646 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN Virtual Desktop Application Control

Virtual Desktop Application Control


You can control which applications users can run on their virtual desktop. To do this, you
create a list of either allowed or blocked applications which you then select when you
configure the virtual desktop.
Go to VPN > SSL > Virtual Desktop Application Control to create a virtual desktop
application control list.

Figure 397: Virtual Desktop Application Control

Delete
Edit
Clone

Delete

Edit

Create New Add a new virtual desktop application control list.


Name The names of the virtual desktop application control lists.
Action The action configured for each virtual desktop application control list:
Block the applications on this list and allow all others
or Allow the applications on this list and block all others.
Edit icon Select Edit beside an existing application control list to modify it.
Delete icon Delete an application control list.
Clone icon Make a copy of an application control list. Make a copy and then modify it to
create a new application control list.
Add button Add an application to the application control list.
Name Enter the name of the application to be added to the application control list. This
can be any name and does not have to match the official name of the application.
MD5 Signatures Enter one or more known MD5 signatures for the application executable file.You
can use a third-party utility to calculate MD5 signatures or hashes for any file.
You can enter multiple signatures to match multiple versions of the application.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 647
http://docs.fortinet.com/ • Feedback
Host Check list SSL VPN

Host Check list


When you enable AV, FW, or AV-FW host checking in the web portal Security Control
settings, each client is checked for security software that is recognized by the Windows
Security Center. As an alternative, you can create a custom host check that looks for
security software selected from the Host Check list. For more information, see
“Configuring security control” on page 639.
The Host Check list includes default entries for many security software products. To add,
modify, or delete entries, go to VPN > SSL > Host Check.

Figure 398: Configuring the host check list

Delete
Edit

Host check list and software entries


Create New Add a new application to the host check list.
Name The name of the applications added to the host check list. The name does not
need to match the actual application name.
Type The type of host check application. Can be AV for antivirus or FW for firewall.
Version The version of the host check application.
Edit icon Select Edit beside an existing host check application to modify it.
Delete icon Delete a host check application.

FortiGate Version 4.0 MR1 Administration Guide


648 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
SSL VPN SSL VPN monitor list

GUID Enter the globally unique identifier (GUID) for the host check application. The
GUID is usually in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx, where each x
is a hexadecimal digit. Windows uses GUIDs to identify applications in the
Windows Registry.
Add button If you do not know the GUID, add alternative checks for the application. The host
check software is considered found only if all checks succeed.
Check Item entry
Type Select how to check for the application:
• File — Look for a file. This could be the application’s executable file or any
other file that would confirm the presence of the application. In File/Path,
enter the full path to the file. Where applicable, you can use environment
variables enclosed in percent (%) marks. For example,
%ProgramFiles%\Fortinet\FortiClient\FortiClient.exe.
• Process — Look for the application as a running process. In Process, enter
the application’s executable file name.
• Registry — Search for a Windows Registry entry. In Registry, enter a registry
item, for example HKLM\SOFTWARE\Fortinet\FortiClient\Misc.
Action Select one of
Require — If the item is found, the client meets the check item condition.
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 use of a particular security
product.
MD5 Signatures If Type is File or Process, enter one or more known MD5 signatures for the
application executable file.You can use a third-party utility to calculate MD5
signatures or hashes for any file. You can enter multiple signatures to match
multiple versions of the application.

SSL VPN monitor list


You can view a list of all active SSL VPN sessions. The list displays the user name of the
remote user, the IP address of the remote client, and the time the connection was made.
You can also see which services are being provided, and delete an active web or tunnel
session from the FortiGate unit. For more information, see “SSL VPN” on page 633.
To view the list of active SLS VPN sessions, go to VPN > SSL > Monitor.

Figure 399: SSL VPN monitor list

Delete

No. The connection identifiers.


User The user names of all connected remote users.
Source IP The IP addresses of the host devices connected to the FortiGate unit.
Begin Time The starting time of each connection.
Description For an SSL VPN tunnel subsession, the client’s assigned tunnel IP
address is shown.
Action Select action to apply to current SSL VPN tunnel session or
subsession.
Delete icon Delete the current session or subsession.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 649
http://docs.fortinet.com/ • Feedback
SSL VPN monitor list SSL VPN

FortiGate Version 4.0 MR1 Administration Guide


650 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Getting started - User authentication

User
This section explains how to set up user accounts, user groups, and external
authentication servers. You can use these components of user authentication to control
access to network resources.
If you enable virtual domains (VDOMs) on the FortiGate unit, user authentication is
configured separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
This section describes:
• Getting started - User authentication
• Local user accounts
• Remote
• RADIUS
• LDAP
• TACACS+
• PKI
• Directory Service
• User Group
• Options
• Monitor
• NAC quarantine and the Banned User list

Getting started - User authentication


FortiGate authentication controls access by user group, but you need to complete one or
more of the following tasks prior to configuring the user groups.
• Configure local user accounts. For each user, you can choose whether the password is
verified by the FortiGate unit, by a RADIUS server, by an LDAP server, or by a
TACACS+ server. For more information, see “Local user accounts” on page 652.
• Configure IM user profiles. For IM users, you can configure user lists that either allow
or block use of network resources.FortiGate. For more information, see “IM user
monitor list” on page 677.
• Configure your FortiGate unit to authenticate users by using your RADIUS, LDAP, or
TACACS+ servers. For more information, see “RADIUS” on page 655, “LDAP” on
page 657, and “TACACS+” on page 661.
• Configure access to the FortiGate unit if you use a Directory Service server for
authentication. For more information, see “Configuring a Directory Service server” on
page 663.
• Configure for certificate-based authentication for administrative access (HTTPS web-
based manager), IPSec, SSL-VPN, and web-based firewall authentication. For more
information, see “PKI” on page 664.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 651
http://docs.fortinet.com/ • Feedback
Local user accounts User

You can configure your FortiGate unit to authenticate system administrators with your
FortiGate unit, using RADIUS, LDAP and TACACS+ servers and with certificate-based
authentication using PKI. For more information, see “System Admin” on page 267. You
can change the authentication timeout value or select the protocol supported for Firewall
authentication. For more information, see “Options” on page 675. You can view lists of
currently authenticated users, active SSL VPN sessions, activity on VPN IPSec tunnels,
authenticated IM users, and banned users. For more information, see “Monitor” on
page 676.
For each network resource that requires authentication, you specify which user groups are
permitted access to the network. There are three types of user groups: Firewall, Directory
Service, and SSL VPN. For more information, see “Firewall user groups” on page 667,
“Directory Service user groups” on page 668, and “SSL VPN user groups” on page 668.

Local user accounts


A local user is a user configured on a FortiGate unit. The user can be authenticated with a
password stored on the FortiGate unit (the user name and password must match a user
account stored on the FortiGate unit) or with a password stored on an authentication
server (the user name must match a user account stored on the FortiGate unit and the
user name and password must match a user account stored on the authentication server
associated with the user).
Instant Messenger (IM) protocols are gaining in popularity as an essential way to
communicate between two or more individuals in real time. Some companies even rely on
IM protocols for critical business applications such as Customer/Technical Support.
The most common IM protocols in use today include AOL Instant Messenger, Yahoo
Instant Messenger, MSN messenger, and ICQ. FortiGate units allow you to set up IM
users that either allow or block the use of applications, to determine which applications are
allowed.

Configuring Local user accounts


You can block a user with a valid local user account from authenticating at all, or configure
the FortiGate unit to allow a user to authenticate with a user name and password stored
on the FortiGate unit, or with an account stored on a specific server (LDAP, RADIUS, or
TACACS+).
To view the list of existing local users, go to User > Local.

Figure 400: Example Local user list

Delete
Edit

Create New Add a new local user account.


User Name The local user name.

FortiGate Version 4.0 MR1 Administration Guide


652 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Local user accounts

Type The authentication type to use for this user. The authentication types are Local
(user and password stored on FortiGate unit), LDAP, RADIUS, and TACACS+
(user and password matches a user account stored on the authentication
server).
Delete icon Delete the user.
The delete icon is not available if the user belongs to a user group.
Edit icon Edit the user account.

Note: Deleting the user name deletes the authentication configured for the user.

To add a Local user, go to User > Local, select Create New, and enter or select the
following:

Figure 401: Local user

User Name A name that identifies the user.


Disable Select to prevent this user from authenticating.
Password Select to authenticate this user using a password stored on the FortiGate unit
and then enter the password. The password should be at least six characters.
LDAP Select to authenticate this user using a password stored on an LDAP server.
Select the LDAP server from the list.
You can select only an LDAP server that has been added to the FortiGate LDAP
configuration. For more information, see “LDAP” on page 657.
RADIUS Select to authenticate this user using a password stored on a RADIUS server.
Select the RADIUS server from the list.
You can select only a RADIUS server that has been added to the FortiGate
RADIUS configuration. For more information, see “RADIUS” on page 655.
TACACS+ Select to authenticate this user using a password stored on a TACACS server.
Select the TACACS+ server from the list.
You can select only a TACACS server that has been added to the FortiGate
TACACS configuration. For more information, see “TACACS+” on page 661.

Configuring IM user policies


IM users determine whether they are permitted to access instant messaging services or
are blocked from these services.
If you enable virtual domains (VDOMs) on the FortiGate unit, IM is available separately for
each virtual domain. For more information, see “Using virtual domains” on page 159.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 653
http://docs.fortinet.com/ • Feedback
Local user accounts User

Note: If virtual domains are enabled on the FortiGate unit, IM features are configured
globally. To access these features, select Global Configuration on the main menu.

The IM user list displays information about configured instant messaging user policies.
The list can be filtered by protocol and policy.
To view the list of IM users, go to User > Local > IM.

Figure 402: IM user list

Create New Add a new user to the list.


Protocol Filter the list by selecting a protocol: AIM, ICQ, MSN, Yahoo, or All.
Policy Filter the list by selecting a policy: Allow, Block, or All.
Protocol The protocol associated with the user.
Username The name selected by the user when registering with an IM protocol. The
same user name can be used for multiple IM protocols. Each user
name/protocol pair appears separately in the list.
Policy The policy applied to the user when attempting to use the protocol: Block
or Deny.
Edit icon Change the following user information: Protocol, Username, and Policy.
Delete icon Permanently remove users from the User List.

To add an IM user, go to User > Local > IM, select Create New, and enter or select the
following:

Figure 403: Edit User dialog

Protocol Select a protocol from the dropdown list: AIM, ICQ, MSN, or Yahoo!.
Username Enter a name for the user.
Policy Select a policy from the dropdown list: Allow or Block.

The IM user monitor list displays information about instant messaging users who are
currently connected. For more information, see “IM user monitor list” on page 677.

Configuring older versions of IM applications


Some older versions of IM protocols are able to bypass file blocking because the message
types are not recognized.

FortiGate Version 4.0 MR1 Administration Guide


654 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Remote

Supported IM protocols include:


• MSN 6.0 and above
• ICQ 4.0 and above
• AIM 5.0 and above
• Yahoo 6.0 and above
If you want to block a protocol that is older than the ones listed above, use the CLI
command:
config imp2p old-version
For more information, see the FortiGate CLI Reference.

Remote
Remote authentication is generally used to ensure that employees working offsite can
remotely access their corporate network with appropriate security measures in place. In
general terms, authentication is the process of attempting to verify the (digital) identity of
the sender of a communication such as a login request. The sender may be someone
using a computer, the computer itself, or a computer program. Since a computer system
should be used only by those who are authorized to do so, there must be a measure in
place to detect and exclude any unauthorized access.
On a FortiGate unit, you can control access to network resources by defining lists of
authorized users, called user groups. To use a particular resource, such as a network or
VPN tunnel, the user must:
• belong to one of the user groups that is allowed access
• correctly enter a user name and password to prove his or her identity, if asked to do so.

RADIUS
Remote Authentication and Dial-in User Service (RADIUS) servers provide authentication,
authorization, and accounting functions. FortiGate units use the authentication function of
the RADIUS server. To use the RADIUS server for authentication, you must configure the
server before you configure the FortiGate users or user groups that will need it.
If you have configured RADIUS support and a user is required to authenticate using a
RADIUS server, the FortiGate unit sends the user’s credentials to the RADIUS server for
authentication. If the RADIUS server can authenticate the user, the user is successfully
authenticated with the FortiGate unit. If the RADIUS server cannot authenticate the user,
the FortiGate unit refuses the connection. You can override the default authentication
scheme by selecting a specific authentication protocol or changing the default port for
RADIUS traffic.

Note: The default port for RADIUS traffic is 1812. If your RADIUS server is using port 1645,
use the CLI to change the default RADIUS port. For more information, see the config
system global command in the FortiGate CLI Reference.

To view the list of RADIUS servers, go to User > Remote > RADIUS.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 655
http://docs.fortinet.com/ • Feedback
RADIUS User

Figure 404: Example RADIUS server list

Delete
Edit

Create New Add a new RADIUS server. The maximum number is 10.
Name Name that identifies the RADIUS server on the FortiGate unit.
Server Name/IP Domain name or IP address of the RADIUS server.
Delete icon Delete a RADIUS server configuration.
You cannot delete a RADIUS server that has been added to a user group.
Edit icon Edit a RADIUS server configuration.

Configuring a RADIUS server


The RADIUS server uses a “shared secret” key to encrypt information passed between it
and clients such as the FortiGate unit. When you configure a RADIUS server, you can also
configure a secondary RADIUS server. The FortiGate unit attempts authentication with the
primary server first, and if there is no response, uses the secondary server. You can
include the RADIUS server in every user group without including it specifically in user
group configurations.

Note: The server secret key should be a maximum of 16 characters in length.

The RADIUS server can use several different authentication protocols during the
authentication process:
• MS-CHAP-V2 is the Microsoft challenge-handshake authentication protocol v2
• MS-CHAP is the Microsoft challenge-handshake authentication protocol v1
• CHAP (challenge-handshake authentication protocol) provides the same functionality
as PAP, but does not send the password and other user information over the network to
a security server
• PAP (password authentication protocol) is used to authenticate PPP connections. PAP
transmits passwords and other user information in clear text (unencrypted).
If you have not selected a protocol, the default protocol configuration uses PAP, MS-
CHAPv2, and CHAP, in that order.
To add a new RADIUS server, go to User > Remote > RADIUS, select Create New, and
enter or select the following:

FortiGate Version 4.0 MR1 Administration Guide


656 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User LDAP

Figure 405: RADIUS server configuration

Name Enter the name that is used to identify the RADIUS server on the
FortiGate unit.
Primary Server Name/IP Enter the domain name or IP address of the primary RADIUS server.
Primary Server Secret Enter the RADIUS server secret key for the primary RADIUS server.
The primary server secret key should be a maximum of 16
characters in length.
Secondary Server Name/IP Enter the domain name or IP address of the secondary RADIUS
server, if you have one.
Secondary Server Secret Enter the RADIUS server secret key for the secondary RADIUS
server. The secondary server secret key should be a maximum of 16
characters in length.
Authentication Scheme Select Use Default Authentication Scheme to authenticate with the
default method. The default authentication scheme uses PAP, MS-
CHAP-V2, and CHAP, in that order.
Select Specify Authentication Protocol to override the default
authentication method, and choose the protocol from the list: MS-
CHAP-V2, MS-CHAP, CHAP, or PAP, depending on what your
RADIUS server needs.
NAS IP/Called Station ID Enter the NAS IP address and Called Station ID (for more
information about RADIUS Attribute 31, see RFC 2548 Microsoft
Vendor-specific RADIUS Attributes). If you do not enter an IP
address, the IP address that the FortiGate interface uses to
communicate with the RADIUS server will be applied.
Include in every User Group Select to have the RADIUS server automatically included in all user
groups.

LDAP
Lightweight Directory Access Protocol (LDAP) is an Internet protocol used to maintain
authentication data that may include departments, people, groups of people, passwords,
email addresses, and printers. An LDAP consists of a data-representation scheme, a set
of defined operations, and a request/response network.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 657
http://docs.fortinet.com/ • Feedback
LDAP User

If you have configured LDAP support and require a user to authenticate using an LDAP
server, the FortiGate unit contacts the LDAP server for authentication. To authenticate
with the FortiGate unit, the user enters a user name and password. The FortiGate unit
sends this user name and password to the LDAP server. If the LDAP server can
authenticate the user, the FortiGate unit successfully authenticates the user. If the LDAP
server cannot authenticate the user, the FortiGate unit refuses the connection.
The FortiGate unit supports LDAP protocol functionality defined in RFC 2251: Lightweight
Directory Access Protocol v3, for looking up and validating user names and passwords.
FortiGate LDAP supports all LDAP servers compliant with LDAP v3. In addition, FortiGate
LDAP supports LDAP over SSL/TLS. To configure SSL/TLS authentication, refer to the
FortiGate CLI Reference.
FortiGate LDAP support does not extend to proprietary functionality, such as notification of
password expiration, that is available from some LDAP servers. Nor does the FortiGate
LDAP supply information to the user about why authentication failed.
To view the list of LDAP servers, go to User > Remote > LDAP.

Figure 406: Example LDAP server list

Delete
Edit

Create New Add a new LDAP server. The maximum number is 10.
Name The name that identifies the LDAP server on the FortiGate unit.
Server Name/IP The domain name or IP address of the LDAP server.
Port The TCP port used to communicate with the LDAP server.
Common Name The common name identifier for the LDAP server. Most LDAP servers use cn.
Identifier However, some servers use other common name identifiers such as uid.
Distinguished The distinguished name used to look up entries on the LDAP servers use. The
Name distinguished name reflects the hierarchy of LDAP database object classes
above the common name identifier.
Delete icon Delete the LDAP server configuration.
Edit icon Edit the LDAP server configuration.

Configuring an LDAP server


A directory is a set of objects with similar attributes organized in a logical and hierarchical
way. Generally, an LDAP directory tree reflects geographic or organizational boundaries,
with the Domain Name System (DNS) names at the top level of the hierarchy. The
common name identifier for most LDAP servers is cn; however some servers use other
common name identifiers such as uid.
For example, you could use the following base distinguished name:
ou=marketing,dc=fortinet,dc=com
where ou is organization unit and dc is a domain component.
You can also specify multiple instances of the same field in the distinguished name, for
example, to specify multiple organization units:
ou=accounts,ou=marketing,dc=fortinet,dc=com

FortiGate Version 4.0 MR1 Administration Guide


658 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User LDAP

Binding is said to occur when the LDAP server successfully authenticates the user and
allows the user access to the LDAP server based on his or her permissions.
You can configure the FortiGate unit to use one of three types of binding:
• anonymous - bind using anonymous user search
• regular - bind using user name/password and then search
• simple - bind using a simple password authentication without a search.
You can use simple authentication if the user records all fall under one dn. If the users are
under more than one dn, use the anonymous or regular type, which can search the entire
LDAP database for the required user name.
If your LDAP server requires authentication to perform searches, use the regular type and
provide values for user name and password.
To add an LDAP server, go to User > Remote > LDAP and select Create New. Enter the
information below and select OK.

Figure 407: LDAP server configuration

Query

Name Enter the name that identifies the LDAP server on the FortiGate unit.
Server Name/IP Enter the domain name or IP address of the LDAP server.
Server Port Enter the TCP port used to communicate with the LDAP server.
By default, LDAP uses port 389.
If you use a secure LDAP server, the default port changes when you
select Secure Connection.
Common Name Identifier Enter the common name identifier for the LDAP server. The maximum
number of characters is 20.
Distinguished Name Enter the base distinguished name for the server using the correct
X.500 or LDAP format. The FortiGate unit passes this distinguished
name unchanged to the server. The maximum number of characters is
512.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 659
http://docs.fortinet.com/ • Feedback
LDAP User

Query icon View the LDAP server Distinguished Name Query tree for the LDAP
server that you are configuring so that you can cross-reference to the
Distinguished Name.
For more information, see “Using Query”.
Bind Type Select the type of binding for LDAP authentication.
Regular Connect to the LDAP server directly with user name/password, then
receive accept or reject based on search of given values.
Anonymous Connect as an anonymous user on the LDAP server, then retrieve the
user name/password and compare them to given values.
Simple Connect directly to the LDAP server with user name/password
authentication.
Filter Enter the filter to use for group searching. Available if Bind Type is
Regular or Anonymous.
User DN Enter the Distinguished name of the user to be authenticated.
Available if Bind Type is Regular.
Password Enter the password of the user to be authenticated. Available if Bind
Type is Regular.
Secure Connection Select to use a secure LDAP server connection for authentication.
Protocol Select a secure LDAP protocol to use for authentication. Depending on
your selection, the value in Server Port will change to the default port
for the selected protocol. Available only if Secure Connection is
selected.
LDAPS: port 636
STARTTLS: port 389
Certificate Select a certificate to use for authentication from the list. The certificate
list comes from CA certificates at System > Certificates >
CA Certificates.

Using Query
The LDAP Distinguished Name Query list displays the LDAP Server IP address, and all
the distinguished names associated with the Common Name Identifier for the LDAP
server. The tree helps you to determine the appropriate entry for the DN field. To see the
distinguished name associated with the Common Name identifier, select the Expand
Arrow beside the CN identifier and then select the DN from the list. The DN you select is
displayed in the Distinguished Name field. Select OK to save your selection in the
Distinguished Name field of the LDAP Server configuration.
To see the users within the LDAP Server user group for the selected Distinguished Name,
select the Expand arrow beside the Distinguished Name in the LDAP Distinguished Name
Query tree.

Figure 408: Example LDAP server Distinguished Name Query tree

Common Name Identifier (CN)

Distinguished Name (DN)


Expand Arrow

FortiGate Version 4.0 MR1 Administration Guide


660 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User TACACS+

TACACS+
In recent years, remote network access has shifted from terminal access to LAN access.
Users connect to their corporate network (using notebooks or home PCs) with computers
that use complete network connections and have the same level of access to the
corporate network resources as if they were physically in the office. These connections
are made through a remote access server. As remote access technology has evolved, the
need for network access security has become increasingly important.
Terminal Access Controller Access-Control System (TACACS+) is a remote
authentication protocol that provides access control for routers, network access servers,
and other networked computing devices via one or more centralized servers. TACACS+
allows a client to accept a user name and password and send a query to a TACACS+
authentication server. The server host determines whether to accept or deny the request
and sends a response back that allows or denies network access to the user. The default
TCP port for a TACACS+ server is 49.
To view the list of TACACS+ servers, go to User > Remote > TACACS+.

Figure 409: Example TACACS+ server list

Delete
Edit

Create New Add a new TACACS+ server. The maximum number is 10.
Server The server domain name or IP address of the TACACS+ server.
Authentication Type The supported authentication method. TACACS+ authentication methods
include: Auto, ASCII, PAP, CHAP, and MSCHAP.
Delete icon Delete this TACACS+ server.
Edit icon Edit this TACACS+ server.

Configuring TACACS+ servers


There are several different authentication protocols that TACACS+ can use during the
authentication process:
• ASCII
Machine-independent technique that uses representations of English characters.
Requires user to type a user name and password that are sent in clear text
(unencrypted) and matched with an entry in the user database stored in ASCII format.
• PAP (password authentication protocol)
Used to authenticate PPP connections. Transmits passwords and other user
information in clear text.
• CHAP (challenge-handshake authentication protocol)
Provides the same functionality as PAP, but more secure as it does not send the
password and other user information over the network to the security server.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 661
http://docs.fortinet.com/ • Feedback
Directory Service User

• MS-CHAP (Microsoft challenge-handshake authentication protocol v1)


Microsoft-specific version of CHAP.
The default protocol configuration, Auto, uses PAP, MS-CHAP, and CHAP, in that order.
To add a new TACACS+ server, go to User > Remote > TACACS+, select Create New,
and enter or select the following:

Figure 410: TACACS+ server configuration

Name Enter the name of the TACACS+ server.


Server Name/IP Enter the server domain name or IP address of the TACACS+ server.
Server Key Enter the key to access the TACACS+ server. The server key should be a
maximum of 16 characters in length.
Authentication Type Select the authentication type to use for the TACACS+ server. Selection
includes: Auto, ASCII, PAP, CHAP, and MSCHAP. Auto authenticates using
PAP, MSCHAP, and CHAP (in that order).

Directory Service
Windows Active Directory (AD) and Novell eDirectory provide central authentication
services by storing information about network resources across a domain (a logical group
of computers running versions of an operating system) in a central directory database.
Each person who uses computers within a domain receives his or her own unique
account/user name. This account can be assigned access to resources within the domain.
In a domain, the directory resides on computers that are configured as domain controllers.
A domain controller is a server that manages all security-related features that affect the
user/domain interactions, security centralization, and administrative functions.
FortiGate units use firewall policies to control access to resources based on user groups
configured in the policies. Each FortiGate user group is associated with one or more
Directory Service user groups. When a user logs in to the Windows or Novell domain, a
Fortinet Server Authentication Extension (FSAE) sends the FortiGate unit the user’s IP
address and the names of the Directory Service user groups to which the user belongs.
The FSAE has two components that you must install on your network:
• The domain controller (DC) agent must be installed on every domain controller to
monitor user logins and send information about them to the collector agent.
• The collector agent must be installed on at least one domain controller to send the
information received from the DC agents to the FortiGate unit.
The FortiGate unit uses this information to maintain a copy of the domain controller user
group database. Because the domain controller authenticates users, the FortiGate unit
does not perform authentication. It recognizes group members by their IP address.

FortiGate Version 4.0 MR1 Administration Guide


662 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Directory Service

You must install the Fortinet Server Authentication Extensions (FSAE) on the network and
configure the FortiGate unit to retrieve information from the Directory Service server. For
more information about FSAE, see the FSAE Technical Note.
To view the list of Directory Service servers, go to User > Directory Service.

Figure 411: Example Directory Service server list

Delete
Edit User/Group

Expand Arrow (Directory Service server) Edit


Add User/Group
Domain and groups

Create New Add a new Directory Service server.


Name Select the Expand arrow beside the server/domain/group name to
display Directory Service domain and group information.
AD Server The name defined for the Directory Service server.
Domain The domain name imported from the Directory Service server.
Groups The group names imported from the Directory Service server.
FSAE Collector IP The IP addresses and TCP ports of up to five FSAE collector agents
that send Directory Service server login information to the FortiGate
unit.
Delete icon Delete this Directory Service server.
Edit icon Edit this Directory Service server.
Add User/Group Add a user or group to the list. You must know the distinguished name
for the user or group.
Edit Users/Group Select users and groups to add to the list.

Configuring a Directory Service server


You need to configure the FortiGate unit to access at least one FSAE collector agent. You
can specify up to five Directory Service servers on which you have installed a collector
agent. If your FSAE collector agent requires authenticated access, you enter a password
for the server. The server name appears in the list of Directory Service servers when you
create user groups. You can also retrieve Directory Service information directly through an
LDAP server instead of through the FSAE agent.

Note: You can create a redundant configuration on your FortiGate unit if you install a
collector agent on two or more domain controllers. If the current (or first) collector agent
fails, the FortiGate unit switches to the next one in its list of up to five collector agents.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 663
http://docs.fortinet.com/ • Feedback
PKI User

You can enter information for up to five collector agents.


To add a new Directory Service server, go to User > Directory Service, select Create New,
and enter or select the following:

Figure 412: Directory Service server configuration

Name Enter the name of the Directory Service server. This name appears in the list of
Directory Service servers when you create user groups.
FSAE Collector Enter the IP address or name of the Directory Service server where this
IP/Name collector agent is installed. The maximum number of characters is 63.
Port Enter the TCP port used for Directory Service. This must be the same as the
FortiGate listening port specified in the FSAE collector agent configuration.
Password Enter the password for the collector agent. This is required only if you
configured your FSAE collector agent to require authenticated access.
LDAP Server Select the check box and select an LDAP server to access the Directory
Service.

PKI
Public Key Infrastructure (PKI) authentication utilizes a certificate authentication library
that takes a list of peers, peer groups, and/or user groups and returns authentication
successful or denied notifications. Users only need a valid certificate for successful
authentication—no user name or password are necessary. Firewall and SSL VPN are the
only user groups that can use PKI authentication.
For more information about certificate authentication, see the FortiGate Certificate
Management User Guide. For information about the detailed PKI configuration settings
available only through the CLI, see the FortiGate CLI Reference.
To view the list of PKI users, go to User > PKI.

FortiGate Version 4.0 MR1 Administration Guide


664 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User PKI

Figure 413: Example PKI User list


Delete
Edit

Name The name of the PKI user.


Subject The text string that appears in the subject field of the certificate of the
authenticating user.
CA The CA certificate that is used to authenticate this user.
Delete icon Delete this PKI user.
The delete icon is not available if the peer user belongs to a user group.
Remove it from the user group first.
Edit icon Edit this PKI user.

Configuring peer users and peer groups


You can define peer users and peer groups used for authentication in some VPN
configurations and for PKI certificate authentication in firewall policies.
A peer user is a digital certificate holder that can use PKI authentication. Before using PKI
authentication, you must define peer users to include in the user group that is incorporated
into the firewall authentication policy.
To define a peer user, you need:
• a peer user name
• the text from the subject field of the certificate of the authenticating peer user, or the
CA certificate used to authenticate the peer user.
You can add or modify other configuration settings for PKI authentication. For more
information, see the FortiGate CLI Reference.

Caution: If you use the CLI to create a peer user, Fortinet recommends that you enter a
value for either subject or ca. If you do not do so, and then open the user record in the web-
based manager, you will be prompted to enter a subject or ca value before you can
continue.

To create a peer user for PKI authentication, go to User > PKI, select Create New., and
enter the following:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 665
http://docs.fortinet.com/ • Feedback
User Group User

Figure 414: PKI user

Name Enter the name of the PKI user.


Subject Enter the text string that appears in the subject field of the certificate of the
authenticating user. This field is optional.
CA Enter the CA certificate that must be used to authenticate this user. This
field is optional.
Two-factor authentication
Require two-factor Require this PKI user to authenticate by password in addition to
authentication certificate authentication. Enter a Password.
Password Enter the password that this PKI user must enter.

Note: You must enter a value for at least one of Subject or CA.

You can configure peer user groups only through the CLI. For more information, see the
FortiGate CLI Reference.

User Group
A user group is a list of user identities. An identity can be:
• a local user account (user name and password) stored on the FortiGate unit
• a local user account with a password stored on a RADIUS, LDAP, or TACACS+ server
• a RADIUS, LDAP, or TACACS+ server (all identities on the server can authenticate)
• a user or user group defined on a Directory Service server.
Each user group belongs to one of three types: Firewall, Directory Service or SSL VPN.
For information about each type, see “Firewall user groups” on page 667, “Directory
Service user groups” on page 668, and “SSL VPN user groups” on page 668. For
information on configuring each type of user group, see “Configuring a user group” on
page 669.
In most cases, the FortiGate unit authenticates users by requesting each user name and
password. The FortiGate unit checks local user accounts first. If the unit does not find a
match, it checks the RADIUS, LDAP, or TACACS+ servers that belong to the user group.
Authentication succeeds when the FortiGate unit finds a matching user name and
password.

FortiGate Version 4.0 MR1 Administration Guide


666 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User User Group

For a Directory Service user group, the Directory Service server authenticates users when
they log in to the network. The FortiGate unit receives the user’s name and IP address
from the FSAE collector agent. For more information about FSAE, see the
FSAE Technical Note.
You can configure user groups to provide authenticated access to:
• Firewall policies that require authentication
See “Adding authentication to firewall policies” on page 396.
You can choose the user groups that are allowed to authenticate with these policies.
• SSL VPNs on the FortiGate unit
See “Configuring SSL VPN identity-based firewall policies” on page 400.
• IPSec VPN Phase 1 configurations for dialup users
See “Creating a new phase 1 configuration” on page 614.
Only users in the selected user group can authenticate to use the VPN tunnel.
• XAuth for IPSec VPN Phase 1 configurations
See XAUTH in “Defining phase 1 advanced settings” on page 616.
Only user groups in the selected user group can be authenticated using XAuth.
• FortiGate PPTP configuration
See “PPTP configuration using FortiGate web-based manager” on page 629.
Only users in the selected user group can use PPTP.
• FortiGate L2TP configuration
You can configure this only by using the config vpn l2tp CLI command. See the
FortiGate CLI Reference.
Only users in the selected user group can use L2TP.
• Administrator login with RADIUS authentication
See “Configuring RADIUS authentication for administrators” on page 273.
Only administrators with an account on the RADIUS server can log in.
• FortiGuard Web Filtering override groups
See “FortiGuard - Web Filter” on page 559.
When FortiGuard Web Filtering blocks a web page, authorized users can authenticate
to access the web page or to allow members of another group to access it.
For each resource that requires authentication, you specify which user groups are
permitted access. You need to determine the number and membership of user groups
appropriate to your authentication needs.

Firewall user groups


A firewall user group provides access to a firewall policy that requires authentication and
lists the user group as one of the allowed groups. The FortiGate unit requests the group
member’s user name and password when the user attempts to access the resource that
the policy protects.
You can also authenticate a user by certificate if you have selected this method. For more
information, see “Adding authentication to firewall policies” on page 396.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 667
http://docs.fortinet.com/ • Feedback
User Group User

A firewall user group can also provide access to an IPSec VPN for dialup users. In this
case, the IPSec VPN phase 1 configuration uses the Accept peer ID in dialup group peer
option. The user’s VPN client is configured with the user name as peer ID and the
password as pre-shared key. The user can connect successfully to the IPSec VPN only if
the user name is a member of the allowed user group and the password matches the one
stored on the FortiGate unit.

Note: A user group cannot be a dialup group if any member is authenticated using a
RADIUS or LDAP server.

For more information, see “Creating a new phase 1 configuration” on page 614.
For information about configuring a Firewall user group, see “Configuring a user group” on
page 669.
You can also use a firewall user group to provide override privileges for FortiGuard web
filtering. For more information, see “Configuring FortiGuard Web filtering override options”
on page 672. For detailed information about FortiGuard Web Filter, including the override
feature, see “FortiGuard - Web Filter” on page 559.

Directory Service user groups


On a network, you can configure the FortiGate unit to allow access to members of
Directory Service server user groups who have been authenticated on the network. The
Fortinet Server Authentication Extensions (FSAE) must be installed on the network
domain controllers.

Note: You cannot use Directory Service user groups directly in FortiGate firewall policies.
You must add Directory Service groups to FortiGate user groups. A Directory Service group
should belong to only one FortiGate user group. If you assign it to multiple FortiGate user
groups, the FortiGate unit recognizes only the last user group assignment.

A Directory Service user group provides access to a firewall policy that requires Directory
Service type authentication and lists the user group as one of the allowed groups. The
members of the user group are Directory Service users or groups that you select from a
list that the FortiGate unit receives from the Directory Service servers that you have
configured. See “Directory Service” on page 662.

Note: A Directory Service user group cannot have SSL VPN access.

You can also use a Directory Service user group to provide override privileges for
FortiGuard web filtering. For more information, see “Configuring FortiGuard Web filtering
override options” on page 672. For detailed information about FortiGuard Web Filter,
including the override feature, see “FortiGuard - Web Filter” on page 559.
For information on configuring user groups, see “Configuring a user group” on page 669.

SSL VPN user groups


An SSL VPN user group provides access to a firewall policy that requires SSL VPN type
authentication and lists the user group as one of the allowed groups. Local user accounts,
LDAP, and RADIUS servers can be members of an SSL VPN user group. The FortiGate
unit requests the user’s user name and password when the user accesses the SSL VPN
web portal. The user group settings include options for SSL VPN features.

FortiGate Version 4.0 MR1 Administration Guide


668 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User User Group

An SSL VPN user group can also provide access to an IPSec VPN for dialup users. In this
case, the IPSec VPN phase 1 configuration uses the Accept peer ID in dialup group peer
option. You configure the user’s VPN client with the user name as peer ID and the
password as pre-shared key. The user can connect successfully to the IPSec VPN only if
the user name is a member of the allowed user group and the password matches the one
stored on the FortiGate unit. For more information about configuring user groups for IPSec
VPN, see “Creating a new phase 1 configuration” on page 614.

Note: A user group cannot be an IPSec dialup group if any member is authenticated using
a RADIUS or LDAP server.

For information on configuring user groups, see “Configuring a user group” on page 669.
For information on configuring SSL VPN user group options, see “Configuring SSL VPN
identity-based firewall policies” on page 400.

Viewing the User group list


To view the User group list, go to User > User Group.

Figure 415: Example User group list

Delete

Expand Arrow Edit

Create New Add a new user group.


Group Name The name of the user group. User group names are listed by type of
user group: Firewall, Directory Service and SSL VPN. For more
information, see “Firewall user groups” on page 667, “Directory
Service user groups” on page 668, and “SSL VPN user groups” on
page 668.
Members The Local users, RADIUS servers, LDAP servers, TACACS+ servers,
Directory Service users/user groups or PKI users found in the user
group.
Delete icon Delete the user group.
You cannot delete a user group that is included in a firewall policy, a
dialup user phase 1 configuration, or a PPTP or L2TP configuration.
Edit icon Edit the membership and options of the group.

Configuring a user group


To add a new user group, go to User > User Group, select Create New, and enter or select
the following according to user group type:

Note: By default, the FortiGate web-based manager displays Firewall options. The
following figures show the variations that display for each of the user group types: Firewall,
Directory Service, and SSL VPN.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 669
http://docs.fortinet.com/ • Feedback
User Group User

Note: If you try to add LDAP servers or local users to a group configured for administrator
authentication, an “Entry not found” error occurs.

Figure 416: User group configuration - Firewall

Right Arrow

Expand Arrow Left Arrow

Figure 417: User group configuration - Directory Service

Right Arrow

Left Arrow
Expand Arrow

FortiGate Version 4.0 MR1 Administration Guide


670 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User User Group

Figure 418: User group configuration - SSL VPN

Right Arrow

Left Arrow

Name Enter the name of the user group.


Type Select the user group type.
Firewall Select this group in any firewall policy that requires Firewall
authentication. See “Adding authentication to firewall policies”
on page 396 and “Configuring FortiGuard Web filtering
override options” on page 672.
Directory Service Select this group in any firewall policy that requires Directory
Service authentication. See “Adding authentication to firewall
policies” on page 396.
SSL VPN Select this group in any firewall policy with Action set to
SSL VPN.
Not available in Transparent mode.
See “Configuring SSL VPN identity-based firewall policies” on
page 400.
Portal Select the SSL VPN web portal configuration to use with the
User Group. For more information, see “SSL VPN web portal”
on page 635.
Available Users/Groups The list of Local users, RADIUS servers, LDAP servers,
or Available Members* TACACS+ servers, Directory Service users/user groups, or
PKI users that can be added to the user group. To add a
member to this list, select the name and then select the Right
Arrow.
* Available Members if user group type is Directory Service.
Members The list of Local users, RADIUS servers, LDAP servers,
TACACS+ servers, Directory Service users/user groups, or
PKI users that belong to the user group. To remove a
member, select the name and then select the Left Arrow.
FortiGuard Web Filtering Available only if Type is Firewall or Directory Service.
Override Configure Web Filtering override capabilities for this group.
See “Configuring FortiGuard Web filtering override options” on
page 672.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 671
http://docs.fortinet.com/ • Feedback
User Group User

Configuring FortiGuard Web filtering override options


FortiGuard Web Filtering is a managed web filtering solution that sorts hundreds of
millions of web pages into a wide range of categories that users can allow, block, or
monitor. The FortiGate unit accesses the nearest FortiGuard Web Filtering Service Point
to determine the category of a requested web page and then follows the firewall policy
configured for the user or interface. The FortiGuard Web Filtering Override option is
available only if the user group is Firewall or Directory Service.
To configure FortiGuard Web Filtering Override, go to User > User Group and select the
Edit icon for a Firewall or Directory Service user group. Select the Expand Arrow beside
FortiGuard Web Filtering Override, and enter or select the following information:

Figure 419: FortiGuard Web Filtering Override configuration

Expand Arrow

Allow to create FortiGuard Select to allow members of this group to request an override
Web Filtering overrides on the FortiGuard Web Filtering Block page. The firewall
protection profile governing the connection must have
FortiGuard overrides enabled.
The protection profile may have more than one user group as
an override group. Members of an override group can
authenticate on the FortiGuard Web Filter Block Override
page to access the blocked site.
For more information, see “FortiGuard - Web Filter” on
page 559.
Override Scope The override can apply to just the user who requested the
override, or include others. Select one of the following from
the list:
User Only the user.
User Group The user group to which the user belongs.
IP Any user at the user’s IP address.
Profile Any user with the specified protection profile of the user
group.
Ask Authenticating user, who chooses the override scope.
User Only the user.
Override Type Select from the list to allow access to:
Directory Only the lowest level directory in the URL.

FortiGate Version 4.0 MR1 Administration Guide


672 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User User Group

Domain The entire website domain.


Categories The FortiGuard category.
Ask Authenticating user, who chooses the override type.
Override Time Select to set the duration of the override:
Constant Select to set the duration of override in days, hours, minutes.
Ask Authenticating user, who determines the duration of override.
The duration set is the maximum.
Protection Profiles One protection profile can have several user groups with
Available override permissions. Verification of the user group occurs
once the user name and password are entered. The overrides
can still be enabled or not enabled on a profile-wide basis
regardless of the user groups that have permissions to
override the profile.
Permission Granted For The list of defined protection profiles applied to user groups
that have override privileges.

Dynamically assigning VPN client IP addresses from a user group


SSL VPN tunnel mode, dialup IPSec VPN, and PPTP VPN sessions can assign IP
addresses to remote users by getting the IP address to assign to the user from the
Framed-IP-Address field in the RADIUS record received when the RADIUS server
confirms that the user has authenticated successfully. See RFC 2865 and RFC 2866 for
more information about RADIUS fields.
For the FortiGate unit to dynamically assign an IP address, the VPN users must be
configured for RADIUS authentication and you must include the IP address to assign to
the user in the Framed-IP-Address RADIUS field on your RADIUS server. You configure
each type of VPN differently. In each case you are associating the configuration that
assigns IP addresses to users with a user group.
Assigning IP addresses from a RADIUS record replaces dynamically assigning IP
addresses from an address range. You cannot include an IP address range and assigning
IP addresses from a RADIUS record in the same configuration.

To add a RADIUS server that assigns IP addresses


1 Go to User > Remote > RADIUS and select Create New to add a RADIUS server.
2 Configure the RADIUS server as require.
No special FortiGate configuration is required.
3 Select OK to save the RADIUS server.

To dynamically assign IP addresses for SSL VPN tunnel mode users


To use a RADIUS server to assign IP addresses for SSL VPN tunnel mode users, you
enable tunnel mode for an SSL VPN portal by adding the Tunnel Mode widget to the
portal. In the Tunnel Mode widget set IP Mode to User Group. You must also add the
portal and the RADIUS server that assigns IP addresses to the same SSL VPN user
group. Finally, you must select the user group in an SSL VPN firewall policy.
1 Go to VPN > SSL > Portal.
2 Create a new or edit an SSL VPN portal.
3 Add a Tunnel mode widget to the portal or edit the tunnel mode widget if it has already
been added to the portal.
4 Set IP Mode to User Group and save the changes to the portal.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 673
http://docs.fortinet.com/ • Feedback
User Group User

Figure 420: Using RADIUS records to assign IP addresses for SSL VPN Tunnel Mode

5 Go to User > User Group and create a new user group or edit an SSL VPN user group.
6 Set Type to SSL VPN.
7 Select the name of the Portal that contains the tunnel mode widget.
8 Add the RADIUS server that assigns IP addresses to the Members list and save the
SSL VPN user group.
9 Go to Firewall > Policy and select Create New.
10 Set Action to SSL VPN.
11 Add an identity based policy and add the SSL VPN user group containing the RADIUS
server and the portal to the Selected User Groups list.
12 Configure the remaining firewall policy settings as required.

To dynamically assign IP addresses for dialup IPSec VPN


To use a RADIUS server to assign IP addresses for dialup IPSec VPN users you
configure an IPSec DHCP server for your IPSec VPN configuration and configure
advanced settings to set IP Assignment Mode to User-group defined method. You must
also add the RADIUS server to a firewall user group. Then in the phase 1 configuration of
the dialup VPN you configure advanced settings to set XAUTH to server mode and select
the firewall user group that you added the RADIUS server to.
1 Go to System > DHCP and add or edit the IPSec DHCP server used by the IPSec VPN
configuration.
2 Select Advanced and set IP Assignment Mode to User-group defined method and save
the changes to the DHCP server.
3 Go to User > User Group and create a new user group or edit a Firewall user group.
4 Set Type to Firewall.
5 Add the RADIUS server that assigns IP addresses to the Members list and save the
Firewall user group.
6 Go to VPN > IPSec and create or edit a User Phase 1 with Remote Gateway set to
Dialup User.
7 Select Advanced.
8 Set XAUTH to Enable as Server.
9 Set User Group to the firewall user group containing the RADIUS server.
10 Configure the remaining IPSec VPN settings as required.

FortiGate Version 4.0 MR1 Administration Guide


674 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Options

To dynamically assign IP addresses for PPTP VPN users


For PPTP VPN you can use a RADIUS server to assign IP addresses for PPTP users by
adding the RADIUS server that can assign IP addresses to a firewall user group. Then
configure PPTP VPN to use this user group.
1 Go to User > User Group and create a new user group or edit a firewall user group.
2 Set Type to Firewall.
3 Add the RADIUS server that assigns IP addresses to the Members list and save the
Firewall user group.
4 Connect to the FortiGate CLI and enter the following command to enable PPTP,
configure assigning IP addresses with a user group, and add the user group containing
the RADIUS server to the PPTP VPN configuration.
config vpn pptp
set status enable
set ip-mode usrgrp
set usrgrp <user_group>
set sip <address>
set eip <address>
end

Options
You can define setting options for user authentication, including authentication timeout,
supported protocols, and authentication certificates.
Authentication timeout controls how long an authenticated firewall connection can be idle
before the user must authenticate again.
When user authentication is enabled on a firewall policy, the authentication challenge is
normally issued for any of the four protocols (depending on the connection protocol):
• HTTP (can also be set to redirect to HTTPS)
• HTTPS
• FTP
• Telnet.
The selections made in the Protocol Support list of the Authentication Settings screen
control which protocols support the authentication challenge. Users must connect with a
supported protocol first so they can subsequently connect with other protocols. If HTTPS
is selected as a method of protocol support, it allows the user to authenticate with a
customized Local certificate.
When you enable user authentication on a firewall policy, the firewall policy user will be
challenged to authenticate. For user ID and password authentication, users must provide
their user names and passwords. For certificate authentication (HTTPS or HTTP
redirected to HTTPS only), you can install customized certificates on the FortiGate unit
and the users can also have customized certificates installed on their browsers.
Otherwise, users will see a warning message and have to accept a default FortiGate
certificate.

Note: When you use certificate authentication, if you do not specify any certificate when
you create the firewall policy, the global settings will be used. If you specify a certificate, the
per-policy setting will overwrite the global setting. For information about how to use
certificate authentication, see FortiGate Certificate Management User Guide.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 675
http://docs.fortinet.com/ • Feedback
Monitor User

To configure authentication setting options, go to User > Options.

Figure 421: Authentication Settings

Authentication Timeout Enter a length of time in minutes, from 1 to 480. Authentication


Timeout controls how long an authenticated firewall connection can be
idle before the user must authenticate again. The default value is 30
Protocol Support Select the protocols to challenge during firewall user authentication.
Certificate If using HTTPS protocol support, select the Local certificate to use for
authentication. Available only if HTTPS protocol support is selected.
Apply Apply selections for user Authentication Settings.

Monitor
You can go to User > Monitor to view lists of currently authenticated users, active SSL
VPN sessions, activity on VPN IPSec tunnels, authenticated IM users, and banned users.
For each authenticated user, the list includes the user name, user group, how long the
user has been authenticated (Duration), how long until the user’s session times out (Time
left), and the method of authentication used. VPN tunnel information includes user name,
IP address of the remote client, connection type (IPSec), Proxy ID source/destination
(IPSec), and start time of the sessions (SSL). The list of IM users includes the source IP
address, protocol, and last time the protocol was used. The Banned User list includes
users configured by administrators in addition to those quarantined based on AV, IPS, or
DLP rules.
The following lists are available:
• Firewall user monitor list
• IM user monitor list
• NAC quarantine and the Banned User list

Firewall user monitor list


In some environments, it is useful to determine which users are authenticated by the
FortiGate unit and allow the system administrator to de-authenticate (stop current session)
users. With the Firewall monitor, you can de-authenticate all currently authenticated users,
or select single users to de-authenticate. To permanently stop a user from re-
authenticating, change the FortiGate configuration (disable a user account) and then use
the User monitor to immediately end the user’s current session.
To view the list of authenticated users (Firewall), go to User > Monitor > Firewall.

FortiGate Version 4.0 MR1 Administration Guide


676 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User Monitor

Figure 422: Firewall user monitor list

Refresh
Current Page

Stop individual
authentication session

Refresh Refresh the Firewall user monitor list.


Current Page The current page number of list items that are displayed. Select the left and
right arrows to display the first, previous, next or last page of logged in users.
Column Settings Customize the table view. You can select the columns to hide or display and
specify the column displaying order in the table. For more information, see
“Using column settings to control the columns displayed” on page 103 and
“Web-based manager icons” on page 105.
Clear All Filters Remove all filters applied to the Firewall user monitor list.
De-authenticate All Stop authenticated sessions for all users in the Firewall user monitor list.
Users User(s) must re-authenticate with the firewall to resume their communication
session.
Filter icons Edit the column filters to filter or sort the firewall user monitor list according to
the criteria you specify. For more information, see “Adding filters to web-based
manager lists” on page 99.
User Name The user names of all connected remote users.
User Group The user group that the remote user is part of.
Duration Length of time since the user was authenticated.
Time-left Length of time remaining until the user session times out. Only available if the
authentication time of the session will be automatically extended
(authentication keepalive is enabled). If authentication keepalive is not
enabled, the value in Time-left will be N/A. For more information, see the
FortiGate CLI Reference.
IP Address The user’s source IP address.
Traffic Volume The amount of traffic through the FortiGate unit generated by the user.
Method Authentication method used for the user by the FortiGate unit (authentication
methods can be FSAE, firewall authentication, or NTLM).

IM user monitor list


User lists can be managed to allow or block certain users. Each user can be assigned a
policy to allow or block activity for each IM protocol. Each IM function can be individually
allowed or blocked providing the administrator the granularity to block the more bandwidth
consuming features such as voice chat while still allowing text messaging. The IM user
monitor list displays information about instant messaging users who are currently
connected. The list can be filtered by protocol. After IM users connect through the firewall,
the FortiGate unit displays which users are connected. You can analyze the list and
decide which users to allow or block.

To view the list of active IM users, go to User > Monitor > IM.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 677
http://docs.fortinet.com/ • Feedback
NAC quarantine and the Banned User list User

Figure 423: IM user monitor list

Protocol Filter the list by selecting the protocol for which to display current users: AIM, ICQ,
MSN, or Yahoo. All current users can also be displayed.
# The position number of the IM user in the list.
Protocol The protocol being used.
User Name The name selected by the user when registering with an IM protocol. The same user
name can be used for multiple IM protocols. Each user name/protocol pair appears
separately in the list.
Source IP The Address from which the user initiated the IM session.
Last Login The last time the current user used the protocol.
Block Select to add the user name to the permanent black list. Each user name/protocol pair
must be explicitly blocked by the administrator.

NAC quarantine and the Banned User list


You can use Network Access Control (NAC) quarantine to block access through the
FortiGate unit when virus scanning detects a virus, or when an IPS sensor or a DoS
sensor detects an attack. You can configure NAC quarantine for IPS sensor filters and
overrides. NAC quarantine blocks access for the IP address that sent the virus or attack or
blocks all traffic from connecting to the FortiGate interface that received the virus or attack.
You can also configure IPS sensors and DoS sensors to block communication between
the IP address that sent the attack and the target or receiver (victim) of the attack. NAC
quarantine blocking drops blocked packets at the network layer before the packets are
accepted by firewall policies.

Caution: If you have configured NAC quarantine to block IP addresses and if the FortiGate
unit receives sessions that have passed through a NAT device, all traffic—not just
individual users—could be blocked from that NAT device.

NAC quarantine adds blocked IP addresses or interfaces to the Banned User list. To view
the Banned User list, go to User > Monitor > Banned User. When you configure NAC
quarantine settings, you can specify how long to block the IP addresses or interfaces.
FortiGate administrators can manually enable access again by removing IP addresses or
interfaces from the Banned User list. Removing an IP address from the Banned User list
means the user can start accessing network services through the FortiGate unit again.
Removing an interface from the list means the interface can resume normal receiving and
processing of communication sessions. For more information, see “The Banned User list”
on page 680.

NAC quarantine and DLP


You can also use Data Leak Prevention (DLP) sensors to block access and to add users
to the Banned User list. However, unlike NAC quarantine, which drops packets at the
network layer, DLP blocks packets at the application layer, after the packets have been
accepted by firewall policies. Because of this difference, with DLP you have more control
over what is blocked and what is not. For example, if a DLP sensor matches content in an

FortiGate Version 4.0 MR1 Administration Guide


678 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User NAC quarantine and the Banned User list

SMTP email message, you can configure DLP to block all SMTP email from a sender
identified in the “From:” field of the email messages, without blocking the user from web
browsing. DLP will also add the sender’s name to the Banned User list. For more
information about using actions in DLP sensors, see “Adding or editing a rule or
compound rule in a DLP sensor” on page 585.

NAC quarantine and DLP replacement messages


A user who is blocked by NAC quarantine or a DLP sensor with action set to Quarantine
IP address will typically attempt to start an HTTP session through the FortiGate unit using
TCP port 80. When this happens, the FortiGate unit connects the user to one of four NAC
quarantine web pages displaying messages that access has been blocked. You can
customize these web pages by going to System > Config > Replacement Message and
editing the NAC Quarantine replacement messages. For more information, see “NAC
quarantine replacement messages” on page 261.
When an interface is blocked by NAC quarantine or a DLP sensor with action set to
Quarantine Interface, any user attempting to start an HTTP session through this interface
using TCP port 80 will also be connected by the FortiGate unit to one of the four NAC
quarantine web pages.
The DLP Ban and Ban Sender options also send messages to blocked users. For more
information, see “Adding or editing a rule or compound rule in a DLP sensor” on page 585.

Configuring NAC quarantine


You can configure NAC quarantine for antivirus protection in a protection profile and for
IPS sensors and DoS sensors:
• To configure NAC quarantine for antivirus protection, go to Firewall > Protection
Profile. Add or edit a protection profile and configure Anti-Virus. Enable Quarantine
Virus Sender (to Banned Users List), select a Method, and configure Expires. For more
information, see “Anti-Virus options” on page 489.
• To configure NAC quarantine for an IPS sensor, go to UTM > Intrusion Protection >
IPS Sensor. Add or edit an IPS sensor. To add NAC quarantine to a filter, select Add
Filter, enable Quarantine Attackers (to Banned Users List) select a Method, and
configure Expires. You can also add NAC quarantine to pre-defined and custom
overrides in an IPS sensor. For more information, see “Configuring filters” on page 540
and “Configuring pre-defined and custom overrides” on page 541.
• To configure NAC quarantine for a DoS sensor, you create or edit a DoS sensor and
from the CLI configure NAC quarantine for one or more of the 12 anomaly types. To
configure NAC quarantine for an anomaly, you set quarantine to attacker to block
the attacker, both to block both the attacker and the target, or interface to block the
interface that received the attack.
You can add the DoS sensor from the web-based manager or the CLI but you can only
configure NAC quarantine from the CLI. The following example shows how to edit a
DoS sensor named QDoS_sensor, set quarantine to attacker for the
udp_dst_session and set the quarantine expiry time to 30 minutes. The example
also shows how to set quarantine to both for the icmp_flood anomaly:
config ips DoS
edit QDoS_sensor
config anomaly
edit udp_dst_session
set quarantine attacker
set quarantine-expiry 30
next

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 679
http://docs.fortinet.com/ • Feedback
NAC quarantine and the Banned User list User

edit icmp_flood
set quarantine both
end
end
For more information, see the FortiGate CLI Reference.

The Banned User list


The Banned User list shows all IP addresses and interfaces blocked by NAC quarantine.
The list also shows all IP addresses, authenticated users, senders, and interfaces blocked
by Data Leak Prevention (DLP). The system administrator can selectively release users or
interfaces from quarantine or configure quarantine to expire after a selected time period.
All sessions started by users or IP addresses on the Banned User list are blocked until the
user or IP address is removed from the list. All sessions to an interface on the list are
blocked until the interface is removed from the list.
You can configure NAC quarantine to add users or IP addresses to the Banned User list
under the following conditions:
• Users or IP addresses that originate attacks detected by IPS - To quarantine users
or IP addresses that originate attacks, enable and configure Quarantine Attackers in
an IPS Sensor Filter. For more information, see “Configuring filters” on page 540.
• IP addresses or interfaces that send viruses detected by virus scanning - To
quarantine IP addresses that send viruses or interfaces that accept traffic containing a
virus, enable Quarantine Virus Sender in a protection profile. For more information,
see “Anti-Virus options” on page 489.
• Users or IP addresses that are banned or quarantined by Data Leak Prevention -
Set various options in a DLP sensor to add users or IP addresses to the Banned User
list. For more information, see “Adding or editing a rule or compound rule in a DLP
sensor” on page 585.
To view the Banned User list, go to User > Monitor > Banned User.

Figure 424: Banned User list

Clear
Current Page

Delete

Current Page The current page number of list items that are displayed. Select the left and right
arrows to display the first, previous, next or last page of banned users or IP
addresses.
Clear icon Remove all users and IP addresses from the Banned User list.
# The position number of the user or IP address in the list.
Application The protocol that was used by the user or IP address added to the Banned User
Protocol list.

FortiGate Version 4.0 MR1 Administration Guide


680 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
User NAC quarantine and the Banned User list

Cause or rule The FortiGate function that caused the user or IP address to be added to the
Banned User list. Cause or rule can be IPS, Antivirus, or Data Leak Prevention.
Created The date and time the user or IP address was added to the Banned User list.
Expires The date and time the user or IP address will be automatically removed from the
Banned User list. If Expires is Indefinite you must manually remove the user or host
from the list.
Delete icon Delete the selected user or IP address from the Banned User list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 681
http://docs.fortinet.com/ • Feedback
NAC quarantine and the Banned User list User

FortiGate Version 4.0 MR1 Administration Guide


682 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching Configuring WAN optimization

WAN optimization and web


caching
You can use FortiGate WAN optimization and web caching to improve performance and
security of traffic passing between locations on your wide area network (WAN) or from the
Internet to your web servers. This section introduces FortiGate WAN optimization and web
caching and describes how to configure these features.
For a more complete description of FortiGate WAN optimization, web caching see the
FortiGate WAN Optimization, Web Cache, and Web Proxy User Guide.
If you enable virtual domains (VDOMs) on the FortiGate unit, WAN optimization is
available separately for each virtual domain. For details, see “Using virtual domains” on
page 159.
This section contains the following topics:
• Configuring WAN optimization
• Configuring a WAN optimization rule
• Configuring WAN optimization peers
• Configuring authentication groups
• WAN optimization monitoring
• Changing web cache settings

Configuring WAN optimization


The WAN optimization rule list displays WAN optimization rules in their order of matching
precedence.
If virtual domains are enabled on the FortiGate unit, WAN optimization rules are
configured separately for each virtual domain; you must access the VDOM before you can
configure its rules. To access a VDOM, go to System > VDOM, and in the row
corresponding to the VDOM whose policies you want to configure, select Enter. For more
information about enabling virtual domains, see “Enabling VDOMs” on page 164.
You can add, delete, edit, and re-order rules in the rule list. WAN optimization rule order
affects rule matching. For details about arranging rules in the rule list, see “Moving a rule
to a different position in the rule list” on page 685.
To view the WAN optimization rule list, go to WAN Opt. & Cache > Rule.
Before you add WAN optimization rules, you must add firewall policies to accept the traffic
that you want to optimize. Then you add WAN optimization rules that:
• match WAN traffic to be optimized that is accepted by a firewall policy according to
source and destination addresses and destination port of the traffic
• add the WAN optimization techniques to be applied to the traffic.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 683
http://docs.fortinet.com/ • Feedback
Configuring WAN optimization WAN optimization and web caching

Figure 425: WAN optimization rule list

Edit
Delete

Enable/ Insert WAN Optimization


Disable Rule Before
Rules
Move To

Create New Add a new WAN optimization rule. New rules are added to the bottom of the list.
Status Select to enable a rule or deselect to disable a rule. A disabled rule is out of
service.
ID The rule identifier. Rules are numbered in the order they are added to the rule
list.
Source The source address or address range that the rule matches. See “About WAN
optimization addresses” on page 687.
Destination The destination address or address range that the rule matches. See “About
WAN optimization addresses” on page 687.
Port The destination port number or port number range that the rule matches.
Method Indicates whether you have selected byte caching in the WAN optimization rule.
Auto-Detect Indicates whether the rule is an active (client) rule, a passive (server) rule or if
auto-detect is off. If auto-detect is off, the rule can be a peer-to-peer rule or a
Web Cache Only rule.
Protocol The protocol optimization WAN optimization technique applied by the rule. See
the FortiGate WAN Optimization, Web Cache, and Web Proxy User Guide.
Peer For a peer-to-peer rule, the name of the peer WAN optimizer at the other end of
the link.
Mode Indicates whether the rule applies Full Optimization or Web Cache Only.
SSL Indicates whether the rule is configured for SSL offloading.
Secure Tunnel Indicates whether the rule is configured to used a WAN optimization tunnel.
Delete icon Delete a rule from the list.
Edit icon Edit a rule.
Insert WAN Add a new rule above the corresponding rule (the New rule screen appears).
Optimization
Rule Before icon
Move To icon Move the corresponding rule before or after another rule in the list. See “Moving
a rule to a different position in the rule list” on page 685.

FortiGate Version 4.0 MR1 Administration Guide


684 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching Configuring a WAN optimization rule

Moving a rule to a different position in the rule list


You can arrange the WAN optimization rule list to influence the order in which rules are
evaluated for matches with incoming traffic. When more than one rule has been defined,
the first matching rule will be applied to the traffic session.
Moving a rule in the rule list does not change its ID, which only indicates the order in which
the rule was created.

Figure 426:Move rule

To move a rule in the WAN optimization rule list


1 Go to WAN Opt & Cache > Rule.
2 In the rule list, note the ID of a rule that is before or after your intended destination.
3 In the row corresponding to the rule that you want to move, select the Move To icon.
4 Select Before or After, and enter the ID of the rule that is before or after your intended
destination. This specifies the rule’s new position in the WAN optimization rule list.
5 Select OK.

Configuring a WAN optimization rule


This section describes the WAN optimization rule options. The options that appear in
WAN optimization rules depend on how you configure the rule. This section describes all
of the options.
To add a WAN optimization rule, go to WAN Opt. & Cache > Rule and select Create New.

Figure 427: Configuring a WAN optimization rule

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 685
http://docs.fortinet.com/ • Feedback
Configuring a WAN optimization rule WAN optimization and web caching

Mode Select Full Optimization to add a rule that can apply all WAN optimization features.
Select Web Cache Only to add a rule that just applies web caching. If you select
Web Cache Only, you can configure the source and destination address and port
for the rule. You can also select Transparent Mode and Enable SSL.
Source Enter an IP address, followed by a forward slash (/), then subnet mask, or enter an
IP address range separated by a hyphen. See “About WAN optimization
addresses” on page 687.
Only packets whose source address header contains an IP address matching this
IP address or address range will be accepted by and subject to this rule.
For a passive rule, the server (passive) source address range should be
compatible with the source addresses of the matching client (active) rule. To match
one passive rule with many active rules, the passive rule source address range
should include the source addresses of all of the active rules.
Destination Enter an IP address, followed by a forward slash (/), then subnet mask, or enter an
IP address range separated by a hyphen. See “About WAN optimization
addresses” on page 687.
Only a packet whose destination address header contains an IP address matching
this IP address or address range will be accepted by and subject to this rule.
Tip: For a Web Cache Only rule, if you set Destination to 0.0.0.0, the rule caches
web pages on the Internet or any network.
For a passive rule, the server (passive) destination address range should be
compatible with the destination addresses of the matching client (active) rule. To
match one passive rule with many active rules, the passive rule destination
address range should include the destination addresses of all of the active rules.
Port Enter a single port number or port number range. Only packets whose destination
port number matches this port number or port number range will be accepted by
and subject to this rule.
For a passive rule, the server (passive) port range should be compatible with the
port range of the matching client (active) rule. To match one passive rule with many
active rules, the passive rule port range should include the port ranges of all of the
active rules.
Auto-Detect Available only if Mode is set to Full Optimization.
Specify whether the rule is an Active (client) rule, a Passive (server) rule or if auto-
detect is Off. If auto-detect is off the rule is a peer-to-peer rule.
• For an Active (client) rule, you must select all of the WAN optimization features to
be applied by the rule. You can select the protocol to optimize, transparent mode,
byte caching, SSL offloading, secure tunneling, and an authentication group.
• A Passive (server) rule uses the settings in the active rule on the client FortiGate
unit to apply WAN optimization settings. You can also select web caching for a
passive rule.
• If Auto-Detect is Off, the rule must include all required WAN optimization features
and you must select a Peer for the rule. Select this option to configure peer-to-
peer WAN optimization where this rule can start a WAN optimization tunnel with
this peer only.
Protocol Available only if Mode is set to Full Optimization, and Auto-Detect is set to Off or
Active.
Select CIFS, FTP, HTTP, or MAPI to apply protocol optimization for one of these
protocols. For information about protocol optimization, see the FortiGate WAN
Optimization, Web Cache, and Web Proxy User Guide.
Select TCP if the WAN optimization tunnel accepts sessions that use more than
one protocol or that do not use the CIFS, FTP, HTTP, or MAPI protocol.
Peer Available only if Mode is set to Full Optimization, and Auto-Detect is set to Off.
Select the peer host ID of the peer that this peer-to-peer WAN optimization rule will
start a WAN optimization tunnel with. You can also select [Create New ...] to add a
new peer.
Enable Web Available only if Mode is set to Full Optimization, and Auto-Detect is set to Off or
Cache Passive. If Auto-Detect is set to Off, then Protocol must be set to HTTP.
Select to apply WAN optimization web caching to the sessions accepted by this
rule. For more information, see the FortiGate WAN Optimization, Web Cache, and
Web Proxy User Guide.

FortiGate Version 4.0 MR1 Administration Guide


686 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching Configuring a WAN optimization rule

Transparent Servers receiving packets after WAN optimization “see” different source addresses
Mode depending on whether or not you select Transparent Mode. You can select this
option if Auto-Detect is set to Active or Off. You can also select it for Web Cache
Only rules.
Select this option to keep the original source address of the packets when they are
sent to servers. The servers appear to receive traffic directly from clients. The
server network should be configured to route traffic with client source IP addresses
from the server side FortiGate unit to the server and back to the server side
FortiGate unit.
If this option is not selected, the server side FortiGate unit changes the source
address of the packets received by servers to the address of the server side
FortiGate unit interface that sends the packets to the servers. So servers appear to
receive packets from the server side FortiGate unit. Routing on the server network
is usually simpler in this case because client addresses are not involved, but the
server sees all traffic as coming from the server side FortiGate unit and not from
individual clients.
Enable Byte Available only if Mode is set to Full Optimization, and Auto-Detect is set to Off or
Caching Active.
Select to apply WAN optimization byte caching to the sessions accepted by this
rule. For more information, see the FortiGate WAN Optimization, Web Cache, and
Web Proxy User Guide.
Enable SSL Available only if Auto-Detect is set to Active or Off.
Select to apply SSL offloading for HTTPS traffic. You can use SSL offloading to
offload SSL encryption and decryption from one or more HTTP servers to the
FortiGate unit. If you enable this option, you must configure the rule to accept
SSL-encrypted traffic, for example, by configuring the rule to accept HTTPS traffic
by setting Port to 443.
If you enable SSL offloading, you must also use the CLI command config
wanopt ssl-server to add an SSL server for each HTTP server that you want
to offload SSL encryption/decryption for. For more information, see the FortiGate
WAN Optimization, Web Cache, and Web Proxy User Guide.
Enable Secure Available only if Mode is set to Full Optimization, and Auto-Detect is set to Active or
Tunnel Off.
If you select Enable Secure Tunnel, the WAN optimization tunnel is encrypted
using SSL encryption. You must also add an authentication group to the rule. For
more information, see the FortiGate WAN Optimization, Web Cache, and Web
Proxy User Guide.
Authentication Available only if Mode is set to Full Optimization, and Auto-Detect is set to Active or
Group Off.
Select this option and select an authentication group from the list if you want
groups of FortiGate units to authenticate with each other before starting the WAN
optimization tunnel. You must also select an authentication group if you select
Enable Secure Tunnel.
You must add identical authentication groups to both of the FortiGate units that will
participate in the WAN optimization tunnel started by the rule. For more
information, see “Configuring authentication groups” on page 689.

About WAN optimization addresses


A WAN optimization source or destination address can contain one or more network
addresses. Network addresses can be represented by an IP address with a netmask or an
IP address range.
When representing hosts by an IP address with a netmask, the IP address can represent
one or more hosts. For example, a source or destination address can be:
• a single computer, such as 192.45.46.45
• a subnetwork, such as 192.168.1.0 for a class C subnet
• 0.0.0.0, which matches any IP address.
The netmask corresponds to the subnet class of the address being added, and can be
represented in either dotted decimal or CIDR format. The FortiGate unit automatically
converts CIDR formatted netmasks to dotted decimal format. Example formats:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 687
http://docs.fortinet.com/ • Feedback
Configuring WAN optimization peers WAN optimization and web caching

• netmask for a single computer: 255.255.255.255, or /32


• netmask for a class A subnet: 255.0.0.0, or /8
• netmask for a class B subnet: 255.255.0.0, or /16
• netmask for a class C subnet: 255.255.255.0, or /24
• netmask including all IP addresses: 0.0.0.0
Valid IP address and netmask formats include:
• x.x.x.x/x.x.x.x, such as 192.168.1.0/255.255.255.0
• x.x.x.x/x, such as 192.168.1.0/24

Note: An IP address 0.0.0.0 with netmask 255.255.255.255 is not a valid source or


destination address.

When representing hosts by an IP range, the range indicates hosts with continuous IP
addresses in a subnet, such as 192.168.1.[2-10], or 192.168.1.* to indicate the
complete range of hosts on that subnet. Valid IP range formats include:
• x.x.x.x-x.x.x.x, such as 192.168.110.100-192.168.110.120
• x.x.x.[x-x], such as 192.168.110.[100-120]
• x.x.x.*, such as 192.168.110.*

Configuring WAN optimization peers


You can add the local host ID that identifies the FortiGate unit for WAN optimization and
add the peer host ID and IP address of each FortiGate unit with which a FortiGate unit can
create WAN optimization tunnels.
To configure WAN optimization peers, go to WAN Opt. & Cache > Peer.

Figure 428: WAN optimization peer list

Delete
Edit

Viewing basic information


Create New Add a new peer.
Local Host ID Enter the local host ID of this FortiGate unit and select Apply. If you add this
FortiGate unit as a peer to another FortiGate unit, use this ID as its peer host ID.
Apply Save a change to the Local Host ID to the FortiGate configuration.
Adding or modifying a peer
Create New Select to add a new peer.

FortiGate Version 4.0 MR1 Administration Guide


688 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching Configuring authentication groups

Edit icon Select Edit beside an existing peer to modify it.


Delete icon Delete a peer.
Peer Host ID The peer host ID of the peer FortiGate unit. This is the local host ID added to the
peer FortiGate unit.
IP Address The IP address of the FortiGate unit. Usually this is the IP address of the
FortiGate interface connected to the WAN.

Configuring authentication groups


You need to add authentication groups to support authentication and secure tunneling
between WAN optimization peers.
To perform authentication, WAN optimization peers use a certificate or a pre-shared key
added to an authentication group to identify each other before forming a WAN optimization
tunnel. Both peers must have an authentication group with the same name and settings.
You add the authentication group to a peer-to-peer or active rule on the client side
FortiGate unit. When the server side FortiGate unit receives a tunnel start request from
the client side FortiGate unit that includes an authentication group, the server side
FortiGate unit finds an authentication group in its configuration with the same name. If
both authentication groups have the same certificate or pre-shared key, the peers can
authenticate and set up the tunnel.
Authentication groups are also required for secure tunneling. To configure secure
tunneling, both peers must have an authentication group with the same name and
settings. On the client side FortiGate unit, to enable secure tunneling you select Enable
Secure Tunnel in a peer-to-peer or active rule and select the authentication group. After
the client and server side FortiGate units authenticate with each other, they also use the
pre-shared key or certificate in the authentication group to encrypt and decrypt the tunnel
packets. The encrypted tunnel uses SSL encryption.
To add authentication groups, go to WAN Opt. & Cache > Peer > Authentication Group.

Figure 429: WAN optimization Authentication Group list

Delete
Edit

Viewing basic information


Create New Add a new authentication group.
Name The name of the authentication group.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 689
http://docs.fortinet.com/ • Feedback
WAN optimization monitoring WAN optimization and web caching

Authentication The method used to authenticate the tunnels: certificate (plus certificate
method name) or pre-shared key.
Peer(s) The host IDs of the peers added to the authentication group. When you add
the authentication group to a WAN optimization rule, only these FortiGate
units can authenticate to use this WAN optimization rule. Peer(s) can be any
peer, a peer added to the FortiGate unit peer list (defined peers), or a
selected peer.
Adding or modifying an authentication group
Create New Select to add a new authentication group
Edit icon Select Edit beside an existing authentication group to modify it.
Delete icon Select to delete an authentication group.
Name Add or change the name of the authentication group. Select this name when
adding the authentication group to a rule.
Other FortiGate units that participate in WAN optimization tunnels with this
FortiGate unit must have an authentication group with the same name.
Authentication Select the authentication method to use.
Method Select Certificate if you want to use a certificate to authenticate and encrypt
WAN optimization tunnels.
Select Pre-shared key if you want to use a pre-shared key or password to
authenticate and encrypt WAN optimization tunnels.
Certificate (list) Available only when Authentication Method is Certificate.
Select a local certificate that has been added to this FortiGate unit. Other
FortiGate units that participate in WAN optimization tunnels with this
FortiGate unit must have an authentication group with the same name and
certificate.
Go to System > Certificates > Local Certificates to add a local certificate to a
FortiGate unit.
Password Available only when Authentication Method is Pre-shared key.
Add the password (or pre-shared key) used by the authentication group.
Other FortiGate units that participate in WAN optimization tunnels with this
FortiGate unit must have an authentication group with the same name and
password.
The key must contain at least 6 printable characters and should be known
only by network administrators. For optimum protection against currently
known attacks, the key should consist of a minimum of 16 randomly chosen
alphanumeric characters.
Peer Acceptance One or more of the following options are available to authenticate WAN
optimization peers:
Accept Any Peer Authenticate with any peer. Use this setting if you do not know the peer host
IDs or IP addresses of the peers that will use this authentication group. This
setting is most often used for WAN optimization with the FortiClient
application.
Accept Defined Authenticate with any peer in the FortiGate unit peer list.
Peers
Specify Peer Authenticate with the selected peer only. Select this option and then select
the peer to add to this authentication group.

WAN optimization monitoring


Using WAN optimization monitoring, you can view and improve WAN optimization
performance. The monitoring tools help isolate performance problems, aid in
troubleshooting, and enable network optimization and capacity planning.
The monitor unit uses collected log information and presents it in a graphical format to
show network traffic summary and bandwidth optimization information.
To view the WAN optimization monitor, go to WAN Opt. & Cache > Monitor.

FortiGate Version 4.0 MR1 Administration Guide


690 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching WAN optimization monitoring

Figure 430: WAN optimization monitor

Refresh Traffic Summary

Refresh Bandwidth Optimization

Traffic Summary This section provides traffic optimization information. The piechart illustrates
the percentage of traffic for supported applications processed during the
selected Period. The table displays how much traffic has been reduced by
WAN optimization by comparing the amount of LAN and WAN traffic for
each protocol.
Refresh icon Refresh the Traffic Summary.
Period Select a time period to show traffic summary for. You can select:
• Last 10 Minutes
• Last 1 Hour
• Last 1 Day
• Last 1 Week
• Last 1 Month
Reduction Rate Displays each application’s optimization rate. For example, a rate of 80%
means the amount of data processed by that application has been reduced
by 20%.
LAN The amount of data in MB received from the LAN for each application.
WAN The amount of data in MB sent across the WAN for each application. The
greater the difference between the LAN and WAN data, the greater the
amount of data reduced by WAN optimization byte caching, web caching,
and protocol optimization.
Bandwidth This section shows network bandwidth optimization per time Period. A line
Optimization or column chart compares an application’s pre-optimized (LAN data) size
with its optimized size (WAN data).
Refresh icon Select to refresh the Bandwidth Optimization display.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 691
http://docs.fortinet.com/ • Feedback
Changing web cache settings WAN optimization and web caching

Period Select a time frame to show bandwidth optimization. You can select:
• Last 10 Minutes
• Last 1 Hour
• Last 1 Day
• Last 1 Week
• Last 1 Month
Protocol Select All to display bandwidth optimization for all applications. Select an
individual protocol to display bandwidth optimization for that individual
protocol.
Chart Type Select to display bandwidth optimization with a line chart or a column chart.

Changing web cache settings


In most cases the default settings for the WAN optimization web cache are acceptable.
However, you may want to change them to improve performance or optimize the cache for
your configuration. To change these settings, go to WAN Opt. & Cache > Cache.

Note: For more information about many of these web cache settings, see RFC 2616.

Figure 431: Web Cache Settings

Always revalidate Select to always revalidate requested cached object with content on the
server before serving it to the client.
Max Cache Object Set the maximum object size to cache. The default size is 512000 KB. This
Size object size determines the maximum object size to store in the web cache.
Objects retrieved that are larger than the maximum size are still delivered to
the client but are not stored in the web cache.
Negative Response Set how long in minutes to cache negative responses. The default is 0,
Duration meaning negative responses are not cached. The content server might send
a client error code (4xx HTTP response) or a server error code (5xx HTTP
response) as a response to some requests. If the web cache is configured to
cache these negative responses, it returns that response in subsequent
requests for that page or image for the specified number of minutes.

FortiGate Version 4.0 MR1 Administration Guide


692 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
WAN optimization and web caching Changing web cache settings

Fresh Factor Set the fresh factor as a percentage. The default is 100, and the range is 1 to
100. For cached objects that do not have an expiry time, the web cache
periodically checks the server to see if the objects have expired. The higher
the fresh factor the less often the checks occur. For example, if you set the
Max TTL value and Default TTL at 7200 minutes (5 days) and set the Fresh
Factor at 20, the web cache will check the cached objects 5 times before
they expire, but if you set the Fresh Factor at 100, the web cache will check
once.
Max TTL The maximum amount of time (Time to Live) an object can stay in the web
cache without the cache checking to see if it has expired on the server. The
default is 7200 minutes (120 hours or 5 days).
Min TTL The minimum amount of time an object can stay in the web cache before the
web cache checks to see if it has expired on the server. The default is 5
minutes.
Default TTL The default expiry time for objects that do not have an expiry time set by the
web server. The default expiry time is 1440 minutes (24 hours).
Explicit Proxy Indicates whether the explicit proxy has been enabled for the FortiGate unit.
See “Configuring the explicit web proxy” on page 210.
Enable Cache Select to enable using the WAN optimization web cache to cache for the
Explicit Proxy explicit proxy.
Ignore
If-modified-since By default, if the time specified by the if-modified-since (IMS) header in the
client's conditional request is greater than the last modified time of the object
in the cache, it is a strong indication that the copy in the cache is stale. If so,
HTTP does a conditional GET to the Overlay Caching Scheme (OCS), based
on the last modified time of the cached object. Enable ignoring If-modified-
since to override this behavior.
HTTP 1.1 HTTP 1.1 provides additional controls to the client over the behavior of
Conditionals caches toward stale objects. Depending on various cache-control headers,
the FortiGate unit can be forced to consult the OCS before serving the object
from the cache. For more information about the behavior of cache-control
header values, see RFC 2616.
Pragma-no- Typically, if a client sends an HTTP GET request with a pragma no-cache
cache (PNC) or cache-control no-cache header, a cache must consult the OCS
before serving the content. This means that the FortiGate unit always re-
fetches the entire object from the OCS, even if the cached copy of the object
is fresh.
Because of this behavior, PNC requests can degrade performance and
increase server-side bandwidth utilization. However, if ignore Pragma-no-
cache is enabled, then the PNC header from the client request is ignored.
The FortiGate unit treats the request as if the PNC header is not present at
all.
IE Reload Some versions of Internet Explorer issue Accept / header instead of Pragma
no-cache header 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.
When ignore IE Reload is enabled, the FortiGate unit ignores the PNC
interpretation of the Accept / header.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 693
http://docs.fortinet.com/ • Feedback
Changing web cache settings WAN optimization and web caching

Cache Expired Applies only to type-1 objects. When this option is selected, expired type-1
Objects objects are cached (if all other conditions make the object cacheable).
Revalidated Pragma- The pragma-no-cache (PNC) header in a client's request can affect the
no-cache efficiency of the FortiGate unit’s bandwidth. If you do not want to completely
ignore PNC in client requests (which you can do by selecting to ignore
Pragma-no-cache, above), you can nonetheless lower the impact on the
bandwidth by selecting Revalidate Pragma-no-cache. When this option is
selected, a client's non-conditional PNC-GET request results in a conditional
GET request sent to the OCS if the object is already in the cache. This gives
the OCS a chance to return the 304 Not Modified response, which consumes
less server-side bandwidth, because the OCS has not been forced to
otherwise return full content. By default, Revalidate Pragma-no-cache is
disabled and is not affected by changes in the top-level profile. When the
Substitute Get for PNC configuration is enabled, the revalidate PNC
configuration has no effect.
Most download managers make byte-range requests with a PNC header. To
serve such requests from the cache, you should also configure byte-range
support when you configure the Revalidate pragma-no-cache option.

FortiGate Version 4.0 MR1 Administration Guide


694 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Endpoint NAC Configuring Endpoint NAC overview

Endpoint NAC
Endpoint Network Access Control (NAC) enforces the use of the FortiClient End Point
Security (Enterprise Edition) application on your network. It can also allow or deny network
access to endpoints based on the applications installed on them.
FortiClient enforcement can check that the endpoint is running the most recent version of
the FortiClient application, that the antivirus signatures are up-to-date and that the firewall
is enabled. An endpoint is most often a single PC with a single IP address being used to
access network services through a FortiGate unit.
You enable endpoint NAC in a firewall policy. When traffic attempts to pass through the
firewall policy, the FortiGate unit runs compliance checks on the originating host on the
source interface. Non-compliant endpoints are blocked. If web browsing, the endpoints
are redirected to a web portal that explains the non-compliance and provides a link to
download the FortiClient application installer.
You can monitor the endpoints that are subject to endpoint NAC, viewing information
about the computer, its operating system and detected applications.
This section describes:
• Configuring Endpoint NAC overview
• Configuring FortiClient installer download and version enforcement
• Configuring application detection lists
• Configuring Endpoint NAC profiles
• Monitoring endpoints

Configuring Endpoint NAC overview


Endpoint NAC requires that all hosts using the firewall policy have the FortiClient Endpoint
Security application installed. Make sure that all hosts affected by this policy are able to
install this application. Currently, FortiClient Endpoint Security is available for Microsoft
Windows 2000 and later only.
To set up endpoint NAC, you need to
• Enable Central Management by the FortiGuard Analysis & Management Service if you
will use FortiGuard Services to update the FortiClient application or antivirus
signatures. You do not need to enter account information. See “Central Management”
on page 285.
• Configure the minimum required version of FortiClient and the source of FortiClient
installer downloads for non-compliant endpoints. See “Configuring FortiClient installer
download and version enforcement” on page 696.
• Define application detection lists to specify which applications are allowed or not
allowed. Optionally, you can deny access to endpoints that have applications installed
that are not on the detection list.
• Configure Endpoint NAC profiles which specify the FortiClient enforcement settings
and the application detection list to apply. You select the Endpoint NAC profile to use
when you enable Endpoint NAC in the firewall policy.
• Enable endpoint NAC in firewall policies.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 695
http://docs.fortinet.com/ • Feedback
Configuring FortiClient installer download and version enforcement Endpoint NAC

Note: You cannot enable Endpoint NAC in firewall policies if Redirect HTTP Challenge
to a Secure Channel (HTTPS) is enabled in User > Options > Authentication.

• Configure software detection if you want to monitor the applications installed on


endpoints. See “Configuring application detection lists” on page 697.
You can also modify the appearance of the FortiClient Download Portal. Go to System >
Config > Replacement Messages > Endpoint NAC and edit the Endpoint NAC Download
Portal. This is an HTML page. Be sure to retain the %%LINK%% tag which provides the
download URL for the FortiClient installer. For more information about modifying
replacement messages, see “Endpoint NAC replacement message” on page 261.

Configuring FortiClient installer download and version


enforcement
Go to Endpoint NAC > Config to set the minimum FortiClient version that endpoints are
required to run and to configure the download source for the FortiClient installer.

Figure 432: Configuring FortiClient version requirements and installer source

Information
FortiGuard Availability FortiGuard Services is available if the indicator is green.
FortiClient Endpoint FortiClient software versions available from FortiGuard Services are
Versions listed. Select the Download link to download the installer.
AV Signature Package The latest AV signature package available from FortiGuard Services.
Application Signature The latest application signature package available from FortiGuard
Package Services.
FortiClient Downloads The number of FortiClient software downloads through this FortiGate
unit.
Update Now Retrieve the latest information from FortiGuard Services.
FortiClient Installer Select one of the following options to determine the link that the
Download Location FortiClient Download Portal provides to non-compliant users to
download the FortiClient installer.

FortiGate Version 4.0 MR1 Administration Guide


696 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Endpoint NAC Configuring application detection lists

FortiGuard Distribution The FortiClient application is provided by the FortiGuard Distribution


Network Network. The FortiGate unit must be able to access the FortiGuard
Distribution Network. See “Configuring FortiGuard Services” on
page 322.
If the FortiGate unit contains a hard disk drive, the files from
FortiGuard Services are cached to more efficiently serve downloads
to multiple end points.
This FortiGate Users download a FortiClient installer file from this FortiGate unit.
This option is available only on FortiGate models that support upload
of FortiClient installer files. Upload your FortiClient installer file using
the execute restore forticlient CLI command. For more
information, refer to the FortiGate CLI Reference.
Custom URL Specify a URL from which users can download the FortiClient
installer. You can use this option to provide custom installer files even
if your FortiGate unit does not have storage space for them.
Enforce Minimum Version From the list select either Latest Available or a specific FortiClient
version as the minimum requirement for endpoints.
The list contains the FortiClient versions available from the selected
FortiClient Installer Download Location.
Fortinet recommends that administrators deploy a FortiClient version
update to their users or ask users to install the update and then wait a
reasonable period of time for the updates to be installed before
updating the minimum version required to the most recent version.

Note: Select This FortiGate or Custom URL if you want to provide a customized FortiClient
application. This is required if a FortiManager unit will centrally manage FortiClient
applications. For information about customizing the FortiClient application, see the
FortiClient Administration Guide.

Configuring application detection lists


Application detection lists determine which applications are permitted or not permitted on
network endpoints. An application detection list is part of an Endpoint NAC profile that you
can apply in your firewall policies. You can create multiple lists.
Application detection is based on application signatures provided by FortiGuard Services.
You create your application detection list entries by selecting applications from FortiGuard-
supplied lists of categories, vendors, and application names. To view application
information from FortiGuard services, go to Endpoint NAC > Application Detection >
Predefined.
Application detection checks applications against the detection list from the top down until
it finds a match. Specific entries, such as those that list one particular application, should
precede more general entries, such as those that match all applications of a particular
category.
Go to Endpoint NAC > Application Detection > Detection List to create application
detection lists.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 697
http://docs.fortinet.com/ • Feedback
Configuring application detection lists Endpoint NAC

Figure 433: Creating an application detection list

1 2
3
Edit

4 5 Delete
Edit
Insert
Move To

Application Detection List


Create New Create a new application detection list.
Name Enter a name for the application detection list.
Comments Optionally, enter descriptive information about this list.
# of Entries The number of application entries in the list.
Profiles The Endpoint NAC profiles that use this application detection list.
Edit Edit this application detection list.
Application Detection List Entry
Other Applications Select what to do if applications not included in this list are installed on the
(not specified below) endpoint:
• Allow — allow the endpoint to connect
• Deny — quarantine the endpoint
• Monitor — include this endpoint’s information in statistics and logs
Create New Create a new application entry.
Category Select the software category, Remote Access, for example.
Vendor Select the software vendor.
Application Select the application from the list.
Status Select one of the following:
• Installed — application is installed but not currently running
• Running — application is currently running

FortiGate Version 4.0 MR1 Administration Guide


698 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Endpoint NAC Configuring Endpoint NAC profiles

Action Select what to do if the application is running on the endpoint:


• Allow — allow the endpoint to connect
• Deny — quarantine the endpoint
• Monitor — include this endpoint’s information in statistics and logs on
the Endpoint NAC Monitor page.
Delete Delete this application entry.
Edit Edit this application entry.
Insert Add a new entry preceding this one.
Move To Move this entry. Enter the ID of another entry and select Before or After.

Viewing the application list


You can view the application list provided by FortiGuard Services. Go to Endpoint NAC >
Application Detection > Predefined.

Figure 434: Endpoint NAC Predefined application list

Configuring Endpoint NAC profiles


An Endpoint NAC profile contains FortiClient enforcement settings and can specify an
application detection list. Firewall policies can apply an Endpoint NAC profile to the traffic
they handle.
Go to Endpoint NAC > Profile to create Endpoint NAC profiles.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 699
http://docs.fortinet.com/ • Feedback
Monitoring endpoints Endpoint NAC

Figure 435: Creating Endpoint NAC profiles

Delete
Edit

Profile list
Create New Create a new Endpoint NAC profile.
Name The name of the Endpoint NAC profile.
FortiClient Enforcement Green check mark icon - enabled.
Grey X icon - not enabled.
Application Detection List The application detection list specified in this profile.
Delete Delete this profile.
Edit Edit this profile.
Endpoint NAC Profile settings
Name Enter a name for the Endpoint NAC profile.
For non-compliant hosts: Enable one of the following options:
Notify hosts to install Allow users to continue browsing without installing
FortiClient (warn only) FortiClient Endpoint Security.
Quarantine hosts to user Keep endpoint quarantined until user installs FortiClient
portal (enforce compliance) Endpoint Security.
Additional Client Options Enable to enforce any of the following:
Anti-virus Enabled Require that the antivirus feature is enabled.
Anti-virus Up-to-date Require that the antivirus signatures are up-to-date.
Firewall Enabled Require that the firewall feature is enabled.
Enable Application Detection Enable to check applications on the endpoint against an
application detection list.
Application Detection List Select the application detection list to use.

Monitoring endpoints
To view the list of known endpoints, go to Endpoint NAC > Endpoints. An endpoint is
added to the list when it uses a firewall policy that has Endpoint NAC enabled.

FortiGate Version 4.0 MR1 Administration Guide


700 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Endpoint NAC Monitoring endpoints

Once an endpoint is added to the list it remains there until you manually delete it or until
the FortiGate unit restarts. Every time an endpoint accesses network services through the
FortiGate unit (or attempts to access services) the entry for the endpoint is updated.
The endpoints list can provide an inventory of the endpoints on your network. Entries for
endpoints not running the FortiClient application include the IP address, last update time,
and traffic volume/attempts. The “non-compliant” status indicates the endpoint is not
running the FortiClient application.
Entries for endpoints running the FortiClient application show much more information,
depending on what is available for the FortiClient application to gather. Detailed
information you can view includes endpoint hardware (CPU and model name) and the
software running on the endpoints. You can adjust column settings and filters to display
this information in many different forms.
From the endpoints list, you can view information for each endpoint, temporarily exempt
end points from endpoint NAC, and restore exempted end points to their blocked state.

Figure 436: Endpoints list (showing one endpoint that does not have FortiClient software
installed)

Refresh

Non-Compliant View
Exempt Temporarily

Non-Compliant Restore to Blocked


But Temporarily State
Exempted

Refresh Update the list.


Status Display Compliant or Non-compliant endpoints or Both. Compliant
endpoints are running the minimum required version of FortiClient or a
more recent version. To configure the minimum required version of
FortiClient, see “Configuring FortiClient installer download and version
enforcement” on page 696.
The Status column displays a gray icon if the endpoint is non-compliant
and a green icon if the endpoint is compliant. The Status column
displays a green icon with an hourglass if the endpoint is non-compliant
but has been temporarily exempted.
Page Shows the current page number in the list. Select the left and right
arrows to display the first, previous, next or last page of known
endpoints.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 701
http://docs.fortinet.com/ • Feedback
Monitoring endpoints Endpoint NAC

Column Settings Select the columns to display in the list. You can also determine the
order in which they appear. For more information, see “Using column
settings to control the columns displayed” on page 103 and
“Web-based manager icons” on page 105.
Clear All Filters Clear any column display filters you might have applied.
Filter icons Edit the column filters to filter or sort the endpoints list according to the
criteria you specify. For example, you could add a filter to the Detected
Software column to display all endpoints running BitTorrent software.
For more information, see “Adding filters to web-based manager lists”
on page 99.
View icon View details about a selected endpoint. Select this icon to display the
information about the endpoint found by the FortiClient application.
Exempt Temporarily icon Exempt the selected endpoint from endpoint NAC. This means an
endpoint that is blocked and added to the endpoint list can temporarily
access network services through the FortiGate unit. When you select
this icon you can specify how long the end point is exempted from
endpoint NAC. The default exempt duration is 600 seconds.
Restore to Blocked State Re-enable blocking access to a temporarily exempted endpoint.
icon
Information columns Select Column Settings determine which of the following columns to
display. All information that appears in the columns is reported by the
FortiClient application running on the endpoint, unless otherwise noted.
AV signature The version of the FortiClient antivirus signatures installed on the
endpoint.
Computer Manufacturer The name of the manufacturer of the endpoint.
Computer Model The model name of the endpoint.
CPU Model The CPU running on the endpoint.
Description The description of the endpoint.
Detected Software The software applications detected on this endpoint. See “Configuring
application detection lists” on page 697.
You can control the applications that appear in the Detected Software
column by editing the Detected Software filter. See “Adding filters to
web-based manager lists” on page 99.
FortiClient Version The version of the FortiClient application running on the endpoint.
Host Name The host name of the endpoint.
Installed FCT Features The FortiClient features enabled on the endpoint.
IP Address The IP address of the endpoint as found from the communication
session. The FortiClient application is not required to obtain this
information.
Last User The last user to log in to the endpoint.
Last Update The time that the status of the endpoint was last verified by the
FortiGate unit. The FortiClient application is not required to obtain this
information.
Memory Size The amount of memory installed on the endpoint.
OS Version The version of the operating system running on the endpoint.
System Uptime The system up time of the endpoint.
Traffic Volume/Attempts If the endpoint is compliant, this column displays the amount of data
passed through the FortiGate unit by communication sessions
originating from the endpoint. If the endpoint is non-compliant, this
column displays the number of times the endpoint has attempted to
connect through the FortiGate unit. The FortiClient application is not
required to obtain this information.

FortiGate Version 4.0 MR1 Administration Guide


702 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Wireless Controller Configuration overview

Wireless Controller
Most FortiGate units, but not FortiWiFi models, can act as a wireless network controller,
managing the wireless Access Point (AP) functionality of FortiWiFi units. All units must be
running the most recent FortiOS 4.0 firmware.
You create virtual access points that can be associated with multiple physical access
points. Clients can roam amongst the physical access points, extending the range of the
wireless network.
The following topics are included in this section:
• Configuration overview
• Enabling the wireless controller
• Configuring FortiWiFi units as managed access points
• Configuring a virtual wireless access point
• Configuring a physical access point
• Configuring DHCP for your wireless LAN
• Configuring firewall policies for the wireless LAN
• Monitoring wireless clients
• Monitoring rogue APs

Configuration overview
To set up a wireless network using the Wireless Controller feature, you need to:
• Enable the wireless controller, if it is not already enabled.
• Configure FortiWiFi units to be managed by the wireless controller.
• Configure each virtual access point (VAP). A VAP has the SSID and security
configuration settings you would find on a wireless access point device. Optionally, you
can limit the number of simultaneous wireless clients who can use this VAP.
• Configure each physical access point (AP). The AP settings include the radio settings
and rogue AP scan settings. You select the VAPs that will be carried on the physical
access point. Optionally, you can limit the number of simultaneous clients this AP will
accept.
• Configure DHCP service to provide addresses to your wireless clients.
• Configure firewall policies to enable communication between the wireless LAN and
other networks.

Enabling the wireless controller


The wireless controller feature is hidden by default on some FortiGate models.

To enable the wireless controller


1 Go to System > Admin > Settings.
2 Select Enable Wireless Controller.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 703
http://docs.fortinet.com/ • Feedback
Configuring FortiWiFi units as managed access points Wireless Controller

3 Select Apply.
If you disable the Wireless Controller feature, all of the related configuration is discarded.

Configuring FortiWiFi units as managed access points


You also need to enable each FortiWiFi unit to act as a managed physical access point
(AP). You can do this in the CLI on each unit as follows:
config system global
set wireless-terminal-mode enable
end
The wireless functionality of a FortiWiFi unit in wireless terminal mode cannot be
controlled from the unit itself.
If there are firewall devices between the wireless controller FortiGate unit and the
managed FortiWiFi units, make sure that ports 5246 and 5247 are open. These ports
carry, respectively, the encrypted control channel data and the wireless network data. If
needed, you can change these ports in the CLI:
config system global
set wireless-controller-port <port_int> (access controller)
set wireless-terminal-port <port_int> (access point)
end
These commands set the control channel port. The data channel port is always the control
port plus one. The port setting must match on the access controller and all access points.

Configuring a virtual wireless access point


A Virtual Access Point (VAP) defines the SSID and security settings for a wireless LAN.
For each VAP, the FortiGate unit creates a virtual network interface. You create firewall
policies to control traffic between the VAP interface and other networks. Users need the
correct security settings to connect to the access point, and they can also be required to
authenticate to use a firewall policy.

To configure a virtual access point


1 Go to Wireless Controller > Virtual AP, select Create New, and enter the following
information:

Figure 437: Configuring a virtual access point

Name Enter a name to identify the VAP. This is also the name of the virtual
network interface you will use in firewall policies.
SSID Enter the wireless service set identifier (SSID) or network name for this
wireless interface. Users who want to use the wireless network must
configure their computers with this network name.

FortiGate Version 4.0 MR1 Administration Guide


704 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Wireless Controller Configuring a physical access point

SSID Broadcast Select to broadcast the SSID. Broadcasting the SSID enables clients to
connect to your wireless network without first knowing the SSID. For better
security, do not broadcast the SSID.
Security mode Select the security mode for the wireless interface. Wireless users must
use the same security mode to be able to connect to this wireless
interface.
None — has no security. Any wireless user can connect to the wireless
network.
WEP64 — 64-bit web equivalent privacy (WEP). To use WEP64 you must
enter a Key containing 10 hexadecimal digits (0?9 a?f) and inform wireless
users of the key.
WEP128 — 128-bit WEP. To use WEP128 you must enter a Key
containing 26 hexadecimal digits (0-9 a-f) and inform wireless users of the
key.
WPA — Wi-Fi protected access (WPA) security. To use WPA you must
select a data encryption method. You must also enter a pre?shared key
containing at least eight characters or select a RADIUS server. If you
select a RADIUS server the wireless clients must have accounts on the
RADIUS server.
WPA2 — WPA with more security features. To use WPA2 you must select
a data encryption method and enter a pre-shared key containing at least
eight characters or select a RADIUS server. If you select a RADIUS server
the wireless clients must have accounts on the RADIUS server.
WPA2 Auto — the same security features as WPA2, but also accepts
wireless clients using WPA security. To use WPA2 Auto you must select a
data encryption method You must also enter a pre-shared key containing
at least 8 characters or select a RADIUS server. If you select a RADIUS
server the wireless clients must have accounts on the RADIUS server.
Maximum Clients Enter the maximum number of clients permitted to connect simultaneously.
Enter 0 for no limit.
2 Select OK.

Configuring a physical access point


The access controller needs to be configured to identify the FortiWiFi unit that provides
the physical access point and the radio settings for the wireless LAN.

To configure a physical access point


1 Go to Wireless Controller > Physical AP, select Create New, and enter the following
information:

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 705
http://docs.fortinet.com/ • Feedback
Configuring a physical access point Wireless Controller

Figure 438: Configuring a physical access point

Serial Number Enter the serial number of the FortiWiFi unit. This field is completed
automatically if the AP discovers this AC and registers itself.
Name Enter a name for the physical AP.
Admin Select one of the following:
Discovery — This is the setting for APs that have discovered this AC and
registered themselves. To use such an AP, select Enabled.
Disabled — Do not manage this AP.
Enabled — Manage this AP.
Last Error The last error message, if any, for this AP.
Rogue AP Scan Rogue AP scanning detects other APs and reports them on the Wireless
Controller > Rogue AP page.
Select one of the following:
Dedicated — AP performs scanning only and does not provide service.
Background — AP performs scanning during idle periods while acting as
an AP.
Disabled — Do not perform scanning. Scanning can reduce performance.
Radio Select the wireless frequency band. Keep in mind the capabilities of your
users’ wireless cards or devices.
Geography Select your country or region. This determines which channels are
available.
Channel Select a channel for your wireless network or select Auto. The channels
that you can select depend on the Geography setting.
TX Power Set the transmitter power level. The higher the number, the larger the area
the AP will cover.
Maximum Clients Enter the maximum number of clients permitted to connect simultaneously
to this physical AP. Enter 0 for no limit.
Virtual AP In the Available list, select the virtual APs to be carried on this physical AP
and then select the right-arrow button to move them to the Selected list.

2 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


706 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Wireless Controller Configuring DHCP for your wireless LAN

Configuring DHCP for your wireless LAN


Go to System > DHCP > Service to configure DHCP services to provide IP addresses to
your wireless clients. See “Configuring DHCP services” on page 228.

Configuring firewall policies for the wireless LAN


For your VAP clients to communicate with other networks, including other wireless LANs,
you must have appropriate firewall policies. Your VAP has a virtual interface of the same
name that you can select as the source or destination interface in firewall policies.

Monitoring wireless clients


Go to Wireless Controller > Wireless Client to view information about the wireless clients
of your managed access points.

IP The IP address assigned to the client.


Physical AP The name of the physical access point with which the client is
associated.
Virtual AP The name of the virtual access point with which the client is
associated.
Signal Strength/Noise The signal-to-noise ratio in deciBels calculated from signal
strength and noise level.
Rx (KBytes) The amount of data in kilobytes received this session.
Tx (KBytes) The amount of data in kilobytes sent this session.
Clients list (AP mode) Real-time details about the client wireless devices that can
reach this FortiWiFi unit access point. Only devices on the
same radio band are listed.
MAC Address The MAC address of the connected wireless client.
IP Address The IP address assigned to the connected wireless client.
AP Name The name of the wireless interface that the client is connected
to.

Monitoring rogue APs


Go to Wireless Controller > Rogue AP to view information about detected APs.

Refresh Interval Set time between information updates. none means no updates.
Refresh Updates displayed information now.
Inactive Access Points Select which inactive access points to show: all, none, those detected
less than one hour ago, or those detected less than one day ago.
Online A green checkmark indicates an active access point. A grey X indicates
that the access point is inactive.
SSID The wireless service set identifier (SSID) or network name for the
wireless interface.
MAC Address The MAC address of the Wireless interface.
Signal Strength /Noise The signal strength and noise level.
Channel The wireless radio channel that the access point uses.
Rate The data rate of the access point.
First Seen The data and time when the FortiWifi unit first detected the access point.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 707
http://docs.fortinet.com/ • Feedback
Monitoring rogue APs Wireless Controller

Last Seen The data and time when the FortiWifi unit last detected the access point.
Mark as ‘Accepted AP’ Select the icon to move this entry to the Accepted Access Points list.
Mark as ‘Rogue AP’ Select the icon to move this entry to the Rogue Access Points list.
Forget AP Return item to Unknown Access Points list from Accepted Access Points
list or Rogue Access Points list.

FortiGate Version 4.0 MR1 Administration Guide


708 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report

Log&Report
FortiGate units provide extensive logging capabilities for traffic, system and network
protection functions. They also allow you to compile reports from the detailed log
information gathered. Reports provide historical and current analysis of network activity to
help identify security issues that will reduce and prevent network misuse and abuse.
This section provides an introduction to FortiGate logging and reporting. For more
information see the Logging and Reporting in FortiOS 4.0.
For better log storage and retrieval, the FortiGate unit can send log messages to a
FortiAnalyzer unit. FortiAnalyzer units provide integrated log collection, analysis tools and
data storage. Detailed log reports provide historical as well as current analysis of network
activity. Detailed log reports also help identify security issues, reducing network misuse
and abuse. The FortiGate unit can send all log message types, including quarantine files
and DLP archives, to a FortiAnalyzer unit for storage. The FortiAnalyzer unit can upload
log files to an FTP server for archival purposes. For more information about configuring
the FortiGate unit to send log messages to a FortiAnalyzer unit, see “Remote logging to a
FortiAnalyzer unit” on page 710.
If you have a subscription for the FortiGuard Analysis and Management Service, your
FortiGate unit can send logs to a FortiGuard Analysis server. This service provides
another way to store and view logs, as well as archiving email messages. For more
information, see the FortiGuard Analysis and Management Service Administration Guide.
For details and descriptions of log messages and formats, see the FortiGate Log Message
Reference.
This section provides information about how to enable logging, view log messages, and
configure reports. If you have VDOMs enabled, see “Using virtual domains” on page 159
for more information.
The following topics are included in this section:
• Configuring how a FortiGate unit stores logs
• Configuring Alert Email
• Configuring Event logging
• Accessing and viewing log messages
• Viewing DLP Archives
• Viewing the File Quarantine list
• Configuring FortiAnalyzer report schedules
• Viewing Executive Summary reports from SQL logs
• Viewing FortiAnalyzer reports
• Viewing basic traffic reports
• Log severity levels
• Log types
• Example configuration: logging all FortiGate traffic

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 709
http://docs.fortinet.com/ • Feedback
Configuring how a FortiGate unit stores logs Log&Report

Note: If the FortiGate unit is in Transparent mode, certain settings and options for logging
may not be available because certain features do not support logging, or are not available
in Transparent mode. For example, SSL VPN events are not available in Transparent
mode.

Configuring how a FortiGate unit stores logs


The type and frequency of log messages you intend to save determines the type of log
storage to use. For example, if you want to log traffic and content logs, you need to
configure the FortiGate unit to log to a FortiAnalyzer unit or Syslog server. The FortiGate
system memory is unable to log traffic and content logs because of their frequency and
large file size.
Storing log messages to one or more locations, such as a FortiAnalyzer unit or Syslog
server, may be a better solution for your logging requirements than the FortiGate system
memory. Configuring your FortiGate unit to log to a FortiGuard Analysis server may also
be a better log storage solution if you do not have a FortiAnalyzer unit and want to create
reports.
This section describes:
• Remote logging to a FortiAnalyzer unit
• Remote logging to the FortiGuard Analysis and Management Service
• Remote logging to a Syslog server
• Local logging to memory
• Local logging to disk

Remote logging to a FortiAnalyzer unit


FortiAnalyzer units are network devices that provide integrated log collection, analysis
tools and data storage. Detailed log reports provide historical as well as current analysis of
network activity to help identify security issues and reduce network misuse and abuse.
You can configure the FortiGate unit to log up to three FortiAnalyzer units. The FortiGate
unit sends logs to all three FortiAnalyzer units. Each FortiAnalyzer unit stores the same
information. Logging to multiple FortiAnalyzer units provides real-time backup protection
in the event one of the FortiAnalyzer units fails. You can configure logging to multiple
FortiAnalyzer units only in the CLI.

Figure 439: Configuring remote logging to the FortiAnalyzer unit

Expand
Arrow

To configure the FortiGate unit to send logs to the FortiAnalyzer unit


1 Go to Log&Report > Log Config > Log Setting.

FortiGate Version 4.0 MR1 Administration Guide


710 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring how a FortiGate unit stores logs

2 Select the Expand Arrow beside Remote Logging & Archiving to reveal the available
options.
3 Select FortiAnalyzer.
4 From the Minimum log level list, select one of the following:
Emergency The system in unusable.
Alert Immediate action is required.
Critical Functionality is affected.
Error An erroneous condition exists and functionality is probably affected.
Warning Functionality might be affected.
Notification Information about normal events.
Information General information about system operations.
Debug Information used for diagnosing or debugging the FortiGate unit.

5 Enter the IP address of the FortiAnalyzer unit.


6 Select Apply.
The FortiAnalyzer unit needs to be configured to receive logs from the FortiGate unit
after you have configured log settings on the FortiGate unit. Contact a FortiAnalyzer
administrator to complete the configuration.

Note: You cannot configure a FortiAnalyzer unit to be a backup solution for the FortiGuard
Analysis server, and vice versa. If you require a backup solution for one of these logging
devices, using a Syslog server or WebTrends server is preferred.

Testing the FortiAnalyzer configuration


After configuring FortiAnalyzer settings, test the connection between the FortiGate unit
and FortiAnalyzer unit to verify both devices are communicating properly. During testing,
the FortiGate unit displays information about specific settings for transmitting and
receiving logs, reports, DLP archive and quarantine files.
The FortiGate unit must learn the IP address of the FortiAnalyzer unit before testing the
connection. A false test report failure may result if testing the connection occurs before the
FortiGate unit learns the IP address of the FortiAnalyzer unit.
To test the connection, go to Log&Report > Log Config > Log Setting, expand Remote
Logging options, and then select Test Connectivity.

Figure 440: Test Connectivity with FortiAnalyzer

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 711
http://docs.fortinet.com/ • Feedback
Configuring how a FortiGate unit stores logs Log&Report

FortiAnalyzer The name of the FortiAnalyzer unit. The default name of a FortiAnalyzer unit is
(Hostname) its product name, for example, FortiAnalyzer-400.
FortiGate The serial number of the FortiGate unit.
(Device ID)
Registration The status of whether or not the FortiGate unit is registered with the
Status FortiAnalyzer unit. If the FortiGate unit is unregistered, it may not have full
privileges. For more information, see the FortiAnalyzer Administration Guide.
Connection The connection status between FortiGate and FortiAnalyzer units. A green
Status check mark indicates there is a connection and a gray X indicates there is no
connection.
Disk Space (MB) The amount of disk space, in MB, on the FortiAnalyzer unit for logs.
Allocated The amount of space designated for logs, including quarantine
Space files and DLP archives.
Used Space The amount of used space.
Total Free The amount of unused space.
Space
Privileges The permissions of the device for sending and viewing logs, reports, DLP
archives, and quarantined logs.
• Tx indicates the FortiGate unit is allowed to transmit log packets to the
FortiAnalyzer unit.
• Rx indicates the FortiGate unit is allowed to display reports and logs stored
on the FortiAnalyzer unit.
A check mark indicates the FortiGate unit has permissions to send or view log
information and reports. An X indicates the FortiGate unit is not allowed to send
or view log information.

You can also test the connection status between the FortiGate unit and the FortiAnalyzer
unit by using the following CLI command:
execute log fortianalyzer test-connectivity
The command displays the connection status and the amount of disk usage in percent.
For more information, see the FortiGate CLI Reference.

Note: The test connectivity feature also provides a warning when a FortiGate unit requires
a higher-end FortiAnalyzer unit or when the maximum number of VDOMs/FortiGate units
has been reached on the FortiAnalyzer unit.

Remote logging to the FortiGuard Analysis and Management Service


You can configure logging to a FortiGuard Analysis server after registering for the
FortiGuard Analysis and Management Service on the Fortinet support web site. Fortinet
recommends verifying that the connection is working properly before configuring logging
to a FortiGuard Analysis server.
You can enable FortiGate features from the FortiGate web-based manager. For more
information, see “Log types” on page 734. Logging traffic, as well as summary and email
DLP archiving, is also available.

To log to a FortiGuard Analysis server


1 Go to Log&Report > Log Config.
2 Select the Expand Arrow beside Remote Logging to reveal the available options.
3 Select FortiGuard Analysis Service.
4 Enter the account ID in the Account ID field.

FortiGate Version 4.0 MR1 Administration Guide


712 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring how a FortiGate unit stores logs

5 Select one of the following:


Overwrite oldest Deletes the oldest log entry and continues logging when the maximum log
logs disk space is reached.
Do not log Stops log messages going to the FortiGuard Analysis server when the
maximum log disk space is reached.

6 Select a severity level.


7 Select Apply.

Remote logging to a Syslog server


A Syslog server is a remote computer running Syslog software and is an industry standard
for logging. Syslog is used to capture log information provided by network devices. The
Syslog server is both a convenient and flexible logging device, since any computer
system, such as Linux, Unix, and Intel-based Windows can run syslog software.
When configuring logging to a Syslog server, you need to configure the facility and log file
format, normal or Comma Separated Values (CSV). The CSV format contains commas
whereas the normal format contains spaces. Logs saved in the CSV file format can be
viewed in a spread-sheet application, while logs saved in normal format are viewed in a
text editor (such as Notepad) because they are saved as plain text files.
Configuring a facility easily identifies the device that recorded the log file.

Figure 441: Remote logging to a Syslog server

IP/FQDN The IP address or fully qualified domain name of the syslog server. For
example, the FQDN could be log.example.com.
Port The port number for communication with the syslog server, typically port 514.
Minimum log level The FortiGate unit logs all messages at and above the logging severity level
you select. For more information about the logging levels, see “Log severity
levels” on page 733.
Facility Facility indicates to the syslog server the source of a log message. By
default, FortiGate reports Facility as local7. You may want to change Facility
to distinguish log messages from different FortiGate units.
Enable CSV Format If you enable CSV format, the FortiGate unit produces the log in Comma
Separated Value (CSV) format. If you do not enable CSV format the
FortiGate unit produces plain text files.

To configure the FortiGate unit to send logs to a syslog server


1 Go to Log&Report > Log Config > Log Setting.
2 Select the check box beside Syslog.
3 Select the Expand Arrow beside the check box to reveal the Syslog options.
4 Enter the appropriate information for the Syslog server.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 713
http://docs.fortinet.com/ • Feedback
Configuring how a FortiGate unit stores logs Log&Report

5 Select Apply.

Note: If more than one Syslog server is configured, the Syslog servers and their settings
appear on the Log Settings page. You can configure multiple Syslog servers in the CLI. For
more information, see the FortiGate CLI Reference.

Local logging to memory


The FortiGate system memory has a limited capacity for log messages. The FortiGate
system memory displays only the most recent log entries. It does not store traffic and
content logs in system memory due to their size and the frequency of log entries. When
the system memory is full, the FortiGate unit overwrites the oldest messages. All log
entries are cleared when the FortiGate unit restarts.
For local logs, the SQL log storage format is the default for all log types except content
archiving and traffic logs. This is the only format from which you can generate reports.
Content archiving is not available in SQL format. You can enable SQL format logging for
traffic logs, but this can cause some loss of logs because SQL format writing is slower
than the compressed format.

Figure 442: Configuring local logging to memory

To configure the FortiGate unit to save logs in memory


1 Go to Log&Report > Log Config > Log Setting.
2 Select Local Logging & Archiving and select the check box beside Memory.
3 Select Minimum log level for memory logs
The FortiGate unit logs all messages at and above the logging severity level you
select. For more information about the logging levels, see “Log severity levels” on
page 733.

Local logging to disk


If your FortiGate unit contains a hard disk, an AMC hard disk, or an ASM-SAS module you
can configure logging to disk. You can specify the minimum log level and how the
FortiGate unit handles local logging if the hard disk becomes full.
For local logs, the SQL log storage format is the default for all log types except content
archiving and traffic logs. This is the only format from which you can generate reports.
Content archiving is not available in SQL format. You can enable SQL format logging for
traffic logs, but this can cause some loss of logs because SQL format writing is slower
than the compressed format.

FortiGate Version 4.0 MR1 Administration Guide


714 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring Alert Email

Figure 443: Configuring local logging to disk

To configure the FortiGate unit to save logs on the local hard disk
1 Go to Log&Report > Log Config > Log Setting.
2 Select Local Logging & Archiving and select the check box beside Disk.
3 Select Minimum log level for memory logs
The FortiGate unit logs all messages at and above the logging severity level you
select. For more information about the logging levels, see “Log severity levels” on
page 733.
4 Change the When log disk is full settings if required.
5 Change the Log rolling settings if required.
6 Select which log message types are saved as SQL logs.
7 Select Apply.

Configuring Alert Email


You can use the Alert Email feature to monitor logs for log messages, and to send email
notification about a specific activity or event logged. For example, if you require
notification about administrators logging in and out, you can configure an alert email that is
sent whenever an administrator logs in and out.
You can also base alert email messages on the severity levels of the logs.
To configure alert email go to Log&Report > Log Config > Alert E-mail. Enter the
information the FortiGate unit needs to send email. Select Test Connectivity to confirm
that you can receive alert email messages from the FortiGate unit.
Then configure Alert Email options to control when the FortiGate unit sends alert email.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 715
http://docs.fortinet.com/ • Feedback
Configuring Alert Email Log&Report

Figure 444: Alert Email options

SMTP Server The name/address of the SMTP email server.


Email from The SMTP user name.
Email to Enter up to three email address recipients for the alert email message.
Authentication Select the authentication Enable check box to enable SMTP
authentication.
SMTP user Enter the user name for logging on to the SMTP server to send alert
email messages. You need to do this only if you have enabled the
SMTP authentication.
Password Enter the password for logging on to the SMTP server to send alert
email. You need to do this only if you selected SMTP authentication.
Send alert email for the Select to have the alert email sent for one or multiple events that
following occur, such as an administrator logging in and out.
Interval Time Enter the minimum time interval between consecutive alert emails.
(1-9999 minutes) Use this to rate-limit the volume of alert emails.
Intrusion detected Select if you require an alert email message based on attempted
intrusion detection.
Virus detected Select if you require an alert email message based on virus detection.
Web access blocked Select if you require an alert email message based on blocked web
sites that were accessed.
HA status changes Select if you require an alert email message based on HA status
changes.

FortiGate Version 4.0 MR1 Administration Guide


716 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring Event logging

Violation traffic Select if you require an alert email message based on violated traffic
detected that is detected by the FortiGate unit.
Firewall authentication Select if you require an alert email message based on firewall
failure authentication failures.
SSL VPN login failure Select if you require an alert email message based on any SSL VPN
logins that failed.
Administrator Select if you require an alert email message based on whether
login/logout administrators log in or out.
IPSec tunnel errors Select if you require an alert email message based on whether there is
an error in the IPSec tunnel configuration.
L2TP/PPTP/PPPoE Select if you require an alert email message based on errors that
errors occurred in L2TP, PPTP, or PPPoE.
Configuration changes Select if you require an alert email message based on any changes
made to the FortiGate configuration.
FortiGuard license Enter the number of days before the FortiGuard license expiry time
expiry time (1-100 notification is sent.
days)
FortiGuard log quota Select if you require an alert email message based on the FortiGuard
usage Analysis server log disk quota getting full.
Disk Usage Select if you require an alert email when the internal hard disk or AMC
disk reaches a disk usage level. You can set the disk usage level at
which the alert email is sent.
Send alert email for logs Select if you want to send an alert email that is based on a specified
based on severity log severity, such as warning.
Minimum log level Select a log severity from the list. For more information about log
severity levels, see “Log severity levels” on page 733.

Configuring Event logging


The Event Log records management and activity events, such as when a configuration
has changed, or VPN and High Availability (HA) events occur.
When you are logged into VDOMs that are in Transparent mode, or if all VDOMs are in
Transparent mode, certain options may not be available such as VIP ssl event or CPU and
memory usage event. You can enable event logs only when you are logged in to a VDOM;
you cannot enable event logs in the root VDOM.
To enable the event logging go to Log&Report > Log Config > Event Log. Select the
Enable check box. Select one or more of the following logs and select Apply.

System Activity All system-related events, such as ping server failure and gateway status.
event
IPSec negotiation All IPSec negotiation events, such as progress and error reports.
event
DHCP service All DHCP-events, such as the request and response log.
event
L2TP/PPTP/PPPoE All protocol-related events, such as manager and socket creation
service event processes.
Admin event All administrative events, such as user logins, resets, and configuration
updates.
HA activity event All high availability events, such as link, member, and state information.
Firewall All firewall-related events, such as user authentication.
authentication event

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 717
http://docs.fortinet.com/ • Feedback
Configuring Event logging Log&Report

Pattern update All pattern update events, such as antivirus and IPS pattern updates and
event update failures.
SSL VPN user All user authentication events for an SSL VPN connection, such as logging
authentication event in, logging out and timeout due to inactivity.
SSL VPN All administration events related to SSL VPN, such as SSL configuration
administration event and CA certificate loading and removal.
SSL VPN session All session activity such as application launches and blocks, timeouts, and
event verifications.
VIP ssl event All server-load balancing events happening during SSL sessions, especially
details about handshaking.
VIP server health All related VIP server health monitor events that occur when the VIP health
monitor event monitor is configured, such as an interface failure.
CPU & memory All real-time CPU and memory events, at 5-minute intervals.
usage (every 5 min)

Data Leak Prevention log


Data Leak Prevention (DLP) provides additional information for administrators that can
better analyze and detect data leaks. You can enable logging of your configured settings
for Data Leak Prevention in a protection profile.
Before enabling logging of DLP events, verify that the correct DLP sensor is available for
what you want to log. A DLP sensor is required for both logging and DLP archiving of DLP
events. You cannot apply multiple DLP sensors for logging or DLP archiving of DLP
events.

To enable logging of Data Leak Prevention settings


1 Go to Firewall > Protection Profile.
2 Select the Expand Arrow to view the policy list for a policy.
3 Select Edit beside the policy that you want.
4 Select the Expand Arrow to view the Data Leak Prevention options.
5 Select the check box next to the sensor list.
6 Select a sensor from the list.
7 Select the Expand Arrow to view the Logging options.
8 Select the Data Leak Prevention Log DLP check box.

Application Control log


This log file includes IPS, IM/P2P and VoIP events that the FortiGate unit records. The
application control log also includes some IPS activities.
Before enabling logging of Application Control events, verify that the correct application
control list is available for what you want to log. An application control list is required for
logging application control events.

To enable logging of Application Control settings


1 Go to Firewall > Protection Profile.
2 Select Edit beside the protection profile that you want.
3 Select the Expand arrow to expand Application Control.
4 Select the check box beside the application control list.
5 Select a list from the application control list.

FortiGate Version 4.0 MR1 Administration Guide


718 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring Event logging

6 Select the Expand Arrow to expand the Logging options.


7 Select the Log Application Control check box.

Antivirus log
The Antivirus log records virus incidents in Web, FTP, and email traffic. For example,
when the FortiGate unit detects an infected file, blocks a file type, or blocks an oversized
file or email that is logged, it records an antivirus log. You can also apply filters to
customize what the FortiGate unit logs, which are:
• Viruses – The FortiGate unit logs all virus infections.
• Blocked Files – The FortiGate unit logs all instances of blocked files.
• Oversized Files/Emails – The FortiGate unit logs all instances of files and email
messages exceeding defined thresholds.
• AV Monitor – The FortiGate unit logs all instances of viruses, blocked files, and
oversized files and email. This applies to HTTP, FTP, IMAP, POP3, SMTP, and IM
traffic.

To enable antivirus logs


1 Go to Firewall > Protection Profile.
2 Select Edit beside the protection profile that you want.
3 Select the Expand Arrow beside Logging to reveal the available options.
4 Select the antivirus events you want logged.
5 Select OK.

Web filter log


The Web Filter log records HTTP FortiGuard log rating errors including web content
filtering actions.

To enable web filter logs


1 Go to Firewall > Protection Profile.
2 Select Edit beside the protection profile that you want.
3 Select the Expand Arrow beside Logging to reveal the available options.
4 Select the web filtering events to log.
5 Select the FortiGuard Web Filtering Rating Errors (HTTP only) check box, to log
FortiGuard filtering.
6 Select OK.

Spam filter log


The Spam Filter log records blocking of email address patterns and content in SMTP,
IMAP and POP3 traffic.

To enable the Spam log


1 Go to Firewall > Protection Profile.
2 Select Edit beside the protection profile that you want.
3 Select the Expand Arrow beside Logging to reveal the available options.
4 Select Log Spam.
5 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 719
http://docs.fortinet.com/ • Feedback
Accessing and viewing log messages Log&Report

Attack log (IPS)


The Attack (IPS) log records attacks detected and prevented by the FortiGate unit. The
FortiGate unit logs the following:
• Attack Signature – The FortiGate unit logs all detected and prevented attacks based
on the attack signature, and the action taken by the FortiGate unit.
• Attack Anomaly – The FortiGate unit logs all detected and prevented attacks based
on unknown or suspicious traffic patterns, and the action taken by the FortiGate unit.
You can view attack log messages from either the Memory or Remote tab.

To enable the attack logs


1 Go to Firewall > Protection Profile.
2 Select Edit beside the protection profile that you want.
3 Select the Expand Arrow beside Logging to reveal the available options.
4 Select Log Intrusions under IPS.
5 Select OK.

Note: Make sure attack signature and attack anomaly DoS sensor settings are enabled to
log the attack. The logging options for the signatures included with the FortiGate unit are
set by default. Ensure any custom signatures also have the logging option enabled. For
more information, see “Intrusion Protection” on page 531.

Accessing and viewing log messages


You can use the Log Access feature in the FortiGate web-based manager to view logs
stored in memory, on a hard disk, stored on a FortiAnalyzer unit running FortiAnalyzer 3.0,
and on the FortiGuard Analysis server.
To view log messages go to Log&Report > Log Access and then select:
• Remote to view log messages stored on a FortiAnalyzer unit or the FortiGuard
Analysis and Management Service
• Memory to view log messages stored in FortiGate unit system memory
• Disk to view log messages stored on a hard disk such as an internal hard disk or an
AMC hard disk.
Log Access provides tabs for viewing logs according to these locations. Each tab provides
options for viewing log messages, such as search and filtering options, and choice of log
type. The Remote tab displays logs stored on either the FortiGuard Analysis server or
FortiAnalyzer unit, whichever one is configured for logging.
Log information is displayed in the Log Access menu. Different tabs in Log Access display
log information stored on the FortiAnalyzer unit, FortiGate system memory and hard disk if
available, including the FortiGuard Analysis server.
The columns that appear reflect the content found in the log file. The top portion of the Log
Access page includes navigational features to help you move through the log messages
and locate specific information.
To view log messages, go to Log&Report > Log Access and then select the tab that
corresponds to the log storage device used: Remote, Memory or Disk. If you are logging
to the FortiGate unit’s hard disk, select Edit beside a rolled log file to view log messages.

FortiGate Version 4.0 MR1 Administration Guide


720 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Accessing and viewing log messages

Figure 445: Viewing log messages


Current
Page

Log Type Select the type of log you want to view. Some log files, such as the traffic log,
cannot be stored to memory due to the volume of information logged.
Current Page By default, the first page of the list of items is displayed. The total number of
pages displays after the current page number. For example, if 3/54 appears,
you are currently viewing page 3 of 54 pages.
To view pages, select the left and right arrows to display the first, previous,
next, or last page.
To view a specific page, enter the page number in the field and then press
Enter.
For more information, see “Using page controls on web-based manager lists”
on page 102.
Column Settings Select to add or remove columns. This changes what log information appears
in Log Access. For more information, see “Column settings” on page 724.
Raw or Formatted By default, log messages are displayed in Formatted mode. Select Formatted
to view log messages in Raw mode, without columns. When in Raw mode,
select Formatted to switch back to viewing log messages organized in
columns.
When log messages are displayed in Formatted view, you can customize the
columns, or filter log messages.
Clear All Filters Clear all filter settings. For more information, see “Filtering log messages” on
page 725.

Accessing logs stored in memory


You can access logs stored in the FortiGate system memory from the Memory tab. The
traffic log type is not available in the Log Type list because the FortiGate system memory
is unable to store them; however, you can view attack logs.
To view log messages in the FortiGate memory buffer, go to Log&Report > Log Access >
Memory, and then select a log type from the Log Type list.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 721
http://docs.fortinet.com/ • Feedback
Accessing and viewing log messages Log&Report

Accessing logs stored on the hard disk


You can access logs stored on the hard disk if your FortiGate unit has a hard disk. Logs
stored on the hard disk are available for viewing in the Disk tab. You can view, navigate,
and download logs stored on the hard disk.
To access log files on the hard disk, go to Log&Report > Log Access > Disk, and then
select a log type from the Log Type list. The FortiGate unit displays a list of rolled log files.
You can view log messages when you select the View icon.

Figure 446: Viewing log files stored on the FortiGate hard disk

Delete

Clear View
log
Download

Log Type Select the type of log you want to view. Some log files, such as the traffic log,
cannot be stored to memory due to the volume of information logged.
Refresh Refresh the displayed log messages.
File name The names of the log files of the displayed Log Type stored on the FortiGate
hard disk.
When a log file reaches its maximum size, the FortiGate unit saves the log files
with an incremental number, and starts a new log file with the same name. For
example, if the current attack log is alog.log, any subsequent saved logs appear
as alog.n, where n is the number of rolled logs.
Size (bytes) The size of the log file in bytes.
Last access The time a log message was recorded on the FortiGate unit. The time is in the
time format name of day month date hh:mm:ss yyyy, for example Fri Feb
16 12:30:54 2007.
Clear log icon Clear the current log file. Clearing deletes only the current log messages of that
log file. The log file is not deleted.
Download icon Download the log file or rolled log file. Select either Download file in Normal
format or Download file in CSV format. Select Return to return to the Disk tab
page. Downloading the current log file includes only current log messages.
View icon View a log file’s log messages.
Delete icon Delete rolled logs. Fortinet recommends to download the rolled log file before
deleting it because the rolled log file cannot be retrieved after deleting it.

Accessing logs stored on the FortiAnalyzer unit


You can view and navigate through logs saved to the FortiAnalyzer unit. For information
about configuring the FortiGate unit to send log files to the FortiAnalyzer unit, see
“Remote logging to a FortiAnalyzer unit” on page 710.
Logs accessed on a remote logging device such as the FortiAnalyzer unit, automatically
appear in the Remote tab.

FortiGate Version 4.0 MR1 Administration Guide


722 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Accessing and viewing log messages

To access log files on the FortiAnalyzer unit, go to Log&Report > Log Access, select the
Remote tab, and select a log type from the Log Type list.

Figure 447:Viewing log files stored on the FortiAnalyzer unit

Current
Page

Log Type Select the type of log you want to view.


Refresh Refresh the displayed log messages.
Current Page By default, the first page of the list of items is displayed. The total number of
pages appears after the current page number. For example, if 3/54 appears,
you are currently viewing page 3 of 54 pages.
To view pages, select the left and right arrows to display the first, previous,
next, or last page.
To view a specific page, enter the page number in the field and then press
Enter.
For more information, see “Using page controls on web-based manager lists”
on page 102.
Column Settings Select to add or remove columns. This changes what log information appears in
Log Access. For more information, see “Column settings” on page 724.
Raw or Formatted By default, log messages is displayed in Formatted mode. Select Formatted to
view log messages in Raw mode, without columns. When in Raw mode, select
Formatted to switch back to viewing log messages organized in columns.
When log messages are displayed in Formatted view, you can customize the
columns, or filter log messages.
Clear All Filters Clear all filter settings. For more information, see “Filtering log messages” on
page 725.

Note: The FortiAnalyzer unit must be running firmware version 3.0 or higher to view logs
from the FortiGate unit.

Accessing logs stored on the FortiGuard Analysis and Management Service


You can access log files stored on the FortiGuard Analysis server from the FortiGate web-
based manager, if you have subscribed to FortiGuard Analysis and Management Service.
After enabling logging to the FortiGuard Analysis server, a Remote tab appears in the Log
Access menu. For more information about viewing real-time and historical log files, see
the FortiGuard Analysis and Management Service Guide.
To access log files on the FortiGuard Analysis server, go to Log&Report > Log Access,
select the Remote tab, and then select a log type from the Log Type list.

Customizing the display of log messages


By customizing the display of log messages, you can view certain parts or different
formats of log messages. For example, log messages can be viewed in Formatted or Raw
view. In Formatted view, you can customize the columns, or filter log messages. In Raw
view, the log message appears as it would in the log file.
Filtering is also another way to customize the display of log messages. By using the filter
icon, you can display specific information of log messages. For example, you may want to
display only event log messages that have a severity level of alert.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 723
http://docs.fortinet.com/ • Feedback
Accessing and viewing log messages Log&Report

Note: For more information about filtering log messages, see “Adding filters to web-based
manager lists” on page 99.

Column settings
By using Column Settings, you can customize the view of log messages in Formatted
view. By adding columns, changing their order, or removing them, you can view only the
log information you want.
The Column Settings feature is available only in Formatted view.

Figure 448: Column settings for viewing log messages

To customize the columns


1 Go to Log&Report > Log Access.
2 Select the tab to view logs from, Memory, Disk or Remote.
3 Select a log type from the Log Type list.
4 Select the View icon if you are viewing a log file on a FortiAnalyzer unit.
5 Select the Column Settings icon.
6 Select a column name in the Available fields list and then select one of the following to
change the views of the log information:

-> Select the right arrow to move selected fields from the Available fields list to
the Show these fields in this order list.
<- Select the left arrow to move selected fields from the Show these fields in this
order list to the “Available fields” list.
Move up Move the selected field up one position in the Show these fields in this order
list.
Move down Move the selected field down one position in the Show these fields in this
order list.

7 Select OK.

FortiGate Version 4.0 MR1 Administration Guide


724 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Viewing DLP Archives

Note: The Detailed Information column provides the entire raw log entry and is needed only
if the log contains information not available in any of the other columns. The VDOM column
displays which VDOM the log was recorded in.

You can view the device ID and device name when customizing columns. The device ID
provides the identification name of the device. The device name is the host name that you
configured for the FortiGate unit, for example Headquarters.

Filtering log messages


You can filter log messages by selecting the Filter icon to display specific information
about log messages. The filter settings that are applied remain until you log out of the
web-based manager. Log filters automatically reset to default settings when you log into
the web-based manager.

Figure 449: Log filters

Filter icon
Filter icon
(enabled)
(disabled)

To filter log messages


1 Go to Log&Report > Log Access.
2 Select the tab to view logs from, Memory, Remote or Disk.
3 Select a log type from the Log Type list.
4 Select the Filter icon in the column to view logs.
5 Select Enable to enable filtering for the column.
6 Enter the information as appropriate. Fields vary between type.
For more information about using the filter icons to filter log messages, see “Adding
filters to web-based manager lists” on page 99.
7 Select OK.
8 Select the columns to filter in the Filter list.
You can also select the columns that appear in the Filter list instead of selecting the
actual column.
You can view log messages in Raw format only after configuring the filters. If you want to
delete all filter settings, select the Clear All Filters that is located under the Filters list.

Viewing DLP Archives


Go to Log & Report > DLP Archive to view all DLP archived content stored on a
FortiAnalyzer unit or the FortiGuard Analysis and Management server.
The DLP Archive menu is only visible if:
• You have configured the FortiGate unit for remote logging and archiving to a
FortiAnalyzer unit. See “Remote logging to a FortiAnalyzer unit” on page 710.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 725
http://docs.fortinet.com/ • Feedback
Viewing the File Quarantine list Log&Report

• You have subscribed to the FortiGuard Analysis and Management Service. See the
FortiGuard Analysis and Management Service Administration Guide.
Select the following tabs to view DLP archives for one of these protocols.
• E-mail to view POP3, IMAP, SMTP, POP3S, IMAPS, SMTPS, and spam email
archives.
• Web to view HTTP and HTTPS archives.
• FTP to view FTP archives.
• IM to view AIM, ICQ, MSN, and Yahoo! archives.
• VoIP to view session control (SIP, SIMPLE and SCCP) archives.
If you need to view logs in Raw format, select Raw beside the Column Settings icon. For
more information, see “Column settings” on page 724.
For information about configuring DLP archiving, see “DLP archiving” on page 588.

Viewing the File Quarantine list


The Quarantined Files list displays information about each quarantined file because of
virus infection or file blocking. Sort the files by file name, date, service, status, duplicate
count (DC), or time to live (TTL). Filter the list to view only quarantined files with a specific
status or from a specific service.
To view the Quarantined Files list, go to UTM > AntiVirus > Quarantined Files.

Figure 450: File Quarantine list

The file quarantine list displays the following information about each quarantined file:

Source Either FortiAnalyzer or Local disk, depending where you configure to


quarantined files to be stored.
Sort by Sort the list. Choose from: Status, Service, File Name, Date, TTL, or Duplicate
Count. Select Apply to complete the sort.
Filter Filter the list. Choose either Status (infected, blocked, or heuristics) or Service
(IMAP, POP3, SMTP, FTP, HTTP, IM, or NNTP). Select Apply to complete the
filtering. Heuristics mode is configurable through the CLI only.
If your FortiGate unit supports SSL content scanning and inspection Service can
also be IMAPS, POP3S, SMTPS, or HTTPS.
Apply Select to apply the sorting and filtering selections to the list of quarantined files.
Delete Select to delete the selected files.

FortiGate Version 4.0 MR1 Administration Guide


726 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring FortiAnalyzer report schedules

Page Controls Use the controls to page through the list. For details, see “Using page controls
on web-based manager lists” on page 102.
Remove All Removes all quarantined files from the local hard disk.
Entries This icon only appears when the files are quarantined to the hard disk.
File Name The file name of the quarantined file.
Date The date and time the file was quarantined, in the format dd/mm/yyyy hh:mm.
This value indicates the time that the first file was quarantined if duplicates are
quarantined.
Service The service from which the file was quarantined (HTTP, FTP, IMAP, POP3,
SMTP, IM, NNTP, IMAPS, POP3S, SMTPS, or HTTPS).
Status The reason the file was quarantined: infected, heuristics, or blocked.
Status Specific information related to the status, for example, “File is infected with
Description “W32/Klez.h”” or “File was stopped by file block pattern.”
DC Duplicate count. A count of how many duplicates of the same file were
quarantined. A rapidly increasing number can indicate a virus outbreak.
TTL Time to live in the format hh:mm. When the TTL elapses, the FortiGate unit
labels the file as EXP under the TTL heading. In the case of duplicate files, each
duplicate found refreshes the TTL.
The TTL information is not available if the files are quarantined on a
FortiAnalyzer unit.
Upload status Y indicates the file has been uploaded to Fortinet for analysis, N indicates the
file has not been uploaded.
This option is available only if the FortiGate unit has a local hard disk.
Download icon Select to download the corresponding file in its original format.
This option is available only if the FortiGate unit has a local hard disk.
Submit icon Select to upload a suspicious file to Fortinet for analysis.
This option is available only if the FortiGate unit has a local hard disk.

Note: Duplicates of files (based on the checksum) are not stored, only counted. The TTL
value and the duplicate count are updated each time a duplicate of a file is found.

Configuring FortiAnalyzer report schedules


You can configure a FortiAnalyzer report schedule from FortiGate logs in the web-based
manager or CLI. You need to configure a report layout before configuring a report
schedule. Contact a FortiAnalyzer administrator before configuring report schedules from
the FortiGate unit to verify that the appropriate report layout is configured. Report layouts
can only be configured from the FortiAnalyzer unit.
For information about how to configure a report layout, see the FortiAnalyzer
Administration Guide.

Note: Make sure to check the Report Title of the report displayed on the FortiAnalyzer page
before printing.
FortiAnalyzer reports are available only when in a VDOM.

The following procedure describes how to clone a report schedule. When you clone a
report schedule, a duplicate of the original is used as a basis for a new one.
To view the list of report schedules, go to Log&Report > Report Config.
To configure a report schedule, go to Log&Report > Report Config, select Create New,
enter the appropriate information and then select OK.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 727
http://docs.fortinet.com/ • Feedback
Configuring FortiAnalyzer report schedules Log&Report

Figure 451: Report schedules in Report Config

Delete
Edit
Clone

General report schedule settings


Create New Create a new report schedule.
Name The name of the report schedule.
Description The comment made when the report schedule was created.
Report Layout The name of the report layout used for the report schedule.
Schedule When the report schedule will be generated. The time depends on
what time period was selected when the report schedule was created:
once, daily, or specified days of the week.
For example, if you select monthly, the days of the month and time
(hh:mm) will appear in the format Monthly 2, 10, 21, 12:00.
Delete and Edit icons Delete or edit a report schedule in the list.
Clone icons Create a duplicate of the report schedule and use it as a basis for a
new report schedule.
Report schedule configuration settings
Name Enter a name for the schedule.
Description Enter a description for the schedule. This is optional.
Report Layout Select a configured report layout from the list. You must apply a report
layout to a report schedule. For more information, see the
FortiAnalyzer Administration Guide.
Language Select the language you want used in the report schedule from the list.

FortiGate Version 4.0 MR1 Administration Guide


728 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Configuring FortiAnalyzer report schedules

Schedule Select one of the following to have the report generate once only,
daily, weekly, or monthly at a specified date or time period.
Once Select to have the report generated only once.
Daily Select to generate the report every date at the same time, and then
enter the hour and minute time period for the report. The format is
hh:mm.
These Days Select to generate the report on specified days of the week, and then
select the days of the week check boxes.
These Dates Select to generate the report on a specific day or days of the month,
and then enter the days with a comma to separate them. For example,
if you want to generate the report on the first day, the 21st day and
30th day, enter: 1, 21, 30.
Log Data Filtering You can specify the following variables for the report:
Virtual Domain Select to create a report based on virtual domains. Enter a specific
virtual domain to include in the report.
User Select to create a report based on a network user. Enter the user or
users in the field, separated by spaces. If a name or group name
contains a space, if should be specified between quotes, for example,
“user 1”.
Group Select to create a report based on a group of network users, defined
locally. Enter the name of the group or groups in the field.
LDAP Query Select the LDAP Query check box and then select an LDAP directory
or Windows Active Directory group from the list.
Time Period Select to include the time period of the logs to include in the report.
Relative to Report Select a time period from the list. For example, this year.
Runtime
Specify Select to specify the date, day, year and time for the report to run.
From – Select the beginning date and time of the log time range.
To – Select the ending date and time of the log time range.
Output Select the format you want the report to be in and if you want to apply
an output template.
Output Types Select the type of file format for the generated report. You can choose
from PDF, MS Word, Text, and MHT.
Email/Upload Select the check box if you want to apply a report output template from
the list.
This list is empty if a report output template does not exist. For more
information, see the FortiAnalyzer Administration Guide.

Note: FortiAnalyzer reports do not appear if the FortiGate unit is not connected to a
FortiAnalyzer unit, or if the FortiAnalyzer unit is not running firmware 3.0 or higher.

To clone a report schedule


1 Go to Log&Report > Report Config.
2 Select Clone in the same row of the report schedule that will be the basis of a new
report schedule.
3 Rename the report schedule.
The report schedule is renamed, for example, CloneOfFGT_100A.
4 Enter the appropriate information and select OK.
You can use the Log&Report menu to configure FortiAnalyzer report schedules and to
view generated FortiAnalyzer reports. You can also configure basic traffic reports, which
use the log information stored in your FortiGate system memory to present basic traffic
information in a graphical format.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 729
http://docs.fortinet.com/ • Feedback
Viewing Executive Summary reports from SQL logs Log&Report

Viewing Executive Summary reports from SQL logs


On FortiGate units that contain a hard drive, you can display Executive Summary reports
based on logs stored in an SQL database. The log messages are stored in text format in
the database.
To enable SQL logging go to Log&Report > Log Config. Select Local Logging & Archiving
and then select the types of logs to enable SQL logging for. See “Local logging to disk” on
page 714.
To view, select, and customize Executive Summary reports go to Log&Report > Report
Access > Executive Summary. There are many default reports that you can select and
customize in the web-based manager. You can customize reports by selecting the report
update schedule and location in the Executive Summary.
You can also customize the appearance of existing reports and create new reports from
the FortiGate CLI using the config report CLI commands.

To add a report to the Executive Summary


1 Go to Log&Report > Report Access > Executive Summary.
2 Select Add Widget.

Figure 452: Adding a new report widget

3 Enter the following information and select OK:

Widgets Select a report from the list.


Schedule Configure the update time for the report.
Select Daily and enter the hour of the day or select Weekly and enter
the day of the week and the hour of the day.
Display Column Select where to display the report, either first or second column of the
Executive Summary.

The report updates at the configured time. To update the report immediately, select the
Refresh icon near the right end of the widget title bar. You can also select the Edit icon
to change the report update schedule.

Viewing FortiAnalyzer reports


After the FortiAnalyzer unit generates the report, it appears on the Report Access page.
All reports are listed on the page, including the rolled reports. A list displays the generated
report schedules as well as other reports that the FortiAnalyzer unit generated.
To view reports, go to Log&Report > Report Access and select a report name in the
Report Files column. You can also select the Expand Arrow to view the rolled report and
view the entire report. After viewing the report, select Historical Reports to return to the
list.

FortiGate Version 4.0 MR1 Administration Guide


730 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Viewing basic traffic reports

Figure 453: Generated reports displayed in Report Access

Report Files The name of the generated report. Select the name to view the report.
You can also select the Expand Arrow to view the report and the select the
rolled report to view the report.
Date The date the report was generated on.
Size(bytes) The size of the report in bytes.
Other Formats Displays the formats PDF, RTF or MHT or all if these formats were chosen in the
report schedule.

Printing your FortiAnalyzer report


After the FortiAnalyzer unit generates the report, you may want to print the report to have
as a hardcopy reference or for a presentation. To print a FortiAnalyzer report, go to
Log&Report > Report Access, select the report you want printed from the list and then
select Print.

Viewing basic traffic reports


The FortiGate unit uses collected log information and presents it in a graphical format to
show network usage for a number of services. The charts show the bytes used for the
service traffic.
To view basic traffic reports, go to Log&Report > Report Access > Memory.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 731
http://docs.fortinet.com/ • Feedback
Viewing basic traffic reports Log&Report

Figure 454: Viewing the basic traffic report

Time Period Select a time range to view for the graphical analysis. You can choose from
one day, three days, one week or one month. The default is one day. When
you refresh your browser or go to a different menu, the settings revert to
default.
Services By default all services are selected. When you refresh your browser or go to
a different menu, all services revert to default settings. Clear the check
boxes beside the services you do not want to include in the graphical
analysis.
• Browsing
• DNS
• Email
• FTP
• Gaming
• Instant Messaging
• Newsgroups
• P2P
• Streaming
• TFTP
• VoIP
• Generic TCP
• Generic UDP
• Generic ICMP
• Generic IP

FortiGate Version 4.0 MR1 Administration Guide


732 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Log severity levels

Bandwidth Per This bar graph is based on what services you select, and is updated when
Service you select Apply. The graph is based on date and time, which is the current
date and time.
Top Protocols This bar graph displays the traffic volume for various protocols, in
Ordered by Total decreasing order of volume. The bar graph does not update when you
Volume select different Services and then select Apply.

The report is not updated in real-time. You can refresh the report by selecting the Memory
tab.

Note: The data used to present the graphs is stored in the FortiGate system memory.
When the FortiGate unit is reset or rebooted, the data is erased.

Configuring the graphical view


The FortiGate basic traffic report includes a wide range of services you can monitor. For
example, you can choose to view only email services for the last three days.

To change the graphical information


1 Go to Log&Report > Report Access > Memory.
2 Select the time period to include in the graph from the Time Period list.
3 Clear the services to exclude them from the graph. All services are selected by default.
4 Select Apply.
The graph refreshes and displays the content you specified in the above procedure.
The Top Protocols Ordered by Total Volume graph does not change.

Note: If you require a more specific and detailed report, you can configure a simple report
from the FortiAnalyzer web-based manager or CLI. The FortiAnalyzer unit can generate
over 140 different reports providing you with more options than the FortiGate unit provides.
If you need to configure a FortiAnalyzer report schedule, see “Configuring FortiAnalyzer
report schedules” on page 727.

Log severity levels


You can define what severity level the FortiGate unit records logs at when you configure
the logging location. The FortiGate unit logs all messages at and above the logging
severity level you select. For example, if you select Error, the unit logs Error, Critical, Alert
and Emergency level messages.

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 733
http://docs.fortinet.com/ • Feedback
Log types Log&Report

Table 58: Log severity levels

Levels Description Generated by


0 - Emergency The system has become unstable. Event logs, specifically administrative
events, can generate an emergency
severity level.
1 - Alert Immediate action is required. Attack logs are the only logs that generate
an Alert severity level.
2 - Critical Functionality is affected. Event, Antivirus, and Spam filter logs.
3 - Error An error condition exists and Event and Spam filter logs.
functionality could be affected.
4 - Warning Functionality could be affected. Event and Antivirus logs.
5 - Notification Information about normal events. Traffic and Web Filter logs.
6 - Information General information about system DLP Archive, Event, and Spam filter logs.
operations.
6 - Debug Displays debugging messages. The Debug severity level is rarely used. It
is the lowest log severity level and usually
contains some firmware status information
that is useful when the FortiGate unit is
not functioning properly. Debug log
messages are generated by all types of
FortiGate features.

Log types
The FortiGate unit provides a wide range of features to log, enabling you to better monitor
activity that is occurring on your network. For example, you can enable logging of IM/P2P
features, to obtain detailed information on the activity occurring on your network where
IM/P2P programs are used.
Before enabling FortiGate features, you need to configure what type of logging device will
store the logs. For more information, see “Configuring how a FortiGate unit stores logs” on
page 710.
This topic also provides details on each log type and explains how to enable logging of the
log type.

Note: If the FortiGate unit is in Transparent mode, certain settings and options for logging
may not be available because they do not support logging, or are not available in
Transparent mode. For example, SSL VPN events are not available in Transparent mode.

Traffic log
The Traffic log records all the traffic to and through the FortiGate interfaces. You can
configure logging of traffic controlled by firewall policies and for traffic between any source
and destination addresses. You can also filter to customize the traffic logged:
• Allowed traffic – The FortiGate unit logs all traffic that is allowed according to the
firewall policy settings.
• Violation traffic – The FortiGate unit logs all traffic that violates the firewall policy
settings.
If you are logging “other-traffic”, the FortiGate unit will incur a higher system load because
“other-traffic” logs log individual traffic packets. Fortinet recommends logging firewall
policy traffic since it minimizes the load. Logging “other-traffic” is disabled by default.

FortiGate Version 4.0 MR1 Administration Guide


734 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Log&Report Example configuration: logging all FortiGate traffic

Firewall policy traffic logging records the traffic that is both permitted and denied by the
firewall policy, based on the protection profile. Firewall policy traffic logging records
packets that match the policy.

To enable firewall policy traffic logging


1 Go to Firewall > Policy.
2 Select the Expand Arrow to view the policy list for a policy.
3 Select Edit beside the policy that you want.
If required, create a new firewall policy by selecting Create New. For more information,
see “Firewall Policy” on page 387.
4 Select Log Allowed Traffic.
5 Select OK.

Note: You need to set the logging severity level to Notification when configuring a logging
location to record traffic log messages. Traffic log messages generally have a severity level
no higher than Notification. If VDOMs are in Transparent mode, make sure that VDOM
allows access for enabling traffic logs.

Example configuration: logging all FortiGate traffic


You can use the following procedure to configure your FortiGate unit record traffic log
messages for all traffic. This procedure enables traffic logging for all FortiGate interfaces
that receive traffic. However, traffic logging may not log traffic that would otherwise be
dropped by the FortiGate unit. To record log messages for this traffic, you can add an IPS
Sensor that includes predefined IPS signatures that can detect and log traffic that would
otherwise be dropped by the FortiGate unit.

To log all traffic received by a FortiGate unit


1 Enter the following CLI command to enable logging of failed connection attempts to the
FortiGate unit that use TCP/IP ports other than the TCP/IP ports configured for
management access:
config system global
set localdeny enable
end
2 Enter the following CLI command to set global header checking to strict.
config system global
set check-protocol-header strict
end
Strict header checking detects invalid raw IP packets by validating packet checksums
and also checks IP headers to make sure they adhere to current standards. The
default setting is loose which is usually appropriate for most environments. Loose
header checking improves performance while meeting most organizations’
requirements.
3 Enter the following CLI commands to enable traffic logging for all of the FortiGate
interfaces that receive traffic. The following commands enable traffic logging on port1
and port2. You should repeat these commands for all other FortiGate unit interfaces
that receive traffic.
config system interface
edit port1
set log enable

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 735
http://docs.fortinet.com/ • Feedback
Example configuration: logging all FortiGate traffic Log&Report

next
edit port2
set log enable
end
4 Use the following command to enable logging of other traffic. This option is only
available when logging to an external syslog server.
config log syslogd filter
set other-traffic enable
end
5 Go to UTM > Intrusion Protection > IPS Sensor and select Create New to add an IPS
Sensor.
Edit the IPS Sensor and select Add Pre-defined Override to add the following
predefined IPS signatures to the sensor.
• Invalid.Protocol.Header
• TCP.Bad.Flags
• TCP.Invalid.Packet.Size
Enable each of these signatures, set Action to Block and enable Logging.
6 Enter the following CLI commands to add a DoS policy (called an interface policy in the
CLI) that includes the IPS Sensor.
config firewall interface-policy
edit 1
set interface <interface_name>
set srcaddr all
set dstaddr all
set service ANY
set ips-sensor-status enable
set ips-sensor <sensor_name>
end
Where <sensor_name> is the name of the IPS sensor added above.

FortiGate Version 4.0 MR1 Administration Guide


736 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

Index
Numerics Certificate Revocation List (CRL), 309
cipher suite, 635
802.3ad aggregate interface combined IP pool and virtual IP, 466
creating, 186 custom firewall service, 433
custom service, firewall, 433
A custom signatures, 535
customized CLI console, 108
abr-type DHCP interface settings, 188
router ospf, 52 DHCP relay agent, 229
accept action DHCP server, 229
firewall policy, 691, 692 Directory Service server, 662, 663
access profile, See admin profile, 283 Directory Service user groups, 668
accessing logs stored in hard disk, 722 DoS sensors, 546
access-list Dynamic DNS on an interface, 191
router rip offset-list, 61 dynamic virtual IP, 460
action event logs, 717
firewall policy, 391 fail-open, IPS, 548
router access-list, 51 firewall address, 423
router prefix-list, 57 firewall address group, 424
spam filter banned word, 572 firewall policy, 390, 391, 443
spam filter IP address, 574 firewall policy traffic logging, 734
action type firewall policy, modem connections, 203
spam filter email address, 577 firewall protection profile, 486
activate firewall schedule, 437
router bgp neighbor, 48 firewall service group, 435
active sessions firewall user groups, 667
HA statistics, 239 firewall virtual IP, 447
firmware upgrade, 317
ActiveX filter
firmware version, 126
protection profile, 494
FortiAnalyzer report schedules, 727
add signature to outgoing email FortiGuard override options for a user group, 672
protection profile, 491 FortiGuard Web Filtering options, 495
adding, configuring or defining FortiWiFi-50B settings, 218, 219
admin profile, 284 FortiWiFi-60B settings, 218, 219
administrative access to interface, 192 gateway for default route, 342
administrator account, 270 HA, 233
administrator password, 272 HA device priority, 239
administrator settings, 286 HA subordinate unit host name, 239
antispam advanced options, 577 health check monitor, 476
antispam email address list, 576, 577 IM/P2P/VoIP applications, older versions, 654
antispam IP address, 575 interface settings, 181
antispam IP address list, 573 inter-VDOM links, 169
antivirus file filter list, 522, 524 IP pool, 465
antivirus file patterns, 524 IPS log (attack), 720
antivirus file quarantine, 524 IPS options, 492
antivirus log, 719 IPS sensor filters, 540
antivirus quarantine options, 525 IPS sensors, 537
antivirus scanning options, 489 IPSec encryption policy, 399
application control options, 502 IPSec VPN concentrator, 625
attack log (IPS), 720 IPSec VPN phase 1, 614
authentication settings, 675 IPSec VPN phase 1 advanced options, 616
authentication, firewall policy, 396 IPSec VPN phase 2, 619
autosubmit list, 525 IPSec VPN phase 2 advanced options, 619
banned word list, 571, 572 IPv6 support, 289
basic traffic report, graphical view, 733 LDAP authentication, 275
BFD, 375 LDAP server, 657, 658
BFD on BGP, 376 license key, 333
BFD on OSPF, 376 local ratings, 564
BGP settings, 371 local URL block categories, 563
CA certificates, 307 local user account, 652

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 737
http://docs.fortinet.com/ • Feedback
Index

log message display, 723 system status widgets, 108


logging options, 503 system time, 125
logging to a FortiAnalyzer unit, 710 TACACS+ authentication, 277
logging to a FortiGuard Analysis server, 712 TACACS+ server, 661
logging to a Syslog server, 713 topology diagram, 145, 146
logging to memory, 714 updates for FDN and FortiGuard services, 323
MAC filter list, 222 URL filter list, 556, 557
modem connections, firewall policy, 203 URL overrides, 561
modem interface, 199 user authentication settings, 675
MTU size, 195 user group, 669
multicast settings, 373 user groups, 666
NAT virtual IP, 454 VDOM configuration settings, 161, 167
OCSP certificates, 307 VDOM configuration settings, advanced, 165
one-time schedule, 439 VDOM configuration settings, global, 163
OSPF areas, 367 VDOM interface, 168
OSPF AS, 363 VDOM, new, 166
OSPF basic settings, 364 VIP group, 462
OSPF interface, operating parameters, 369 virtual IP, 452
OSPF networks, 368 virtual IP group, 462
OSPF settings, advanced, 366 virtual IP, port translation only, 461
override server, 329 virtual IPSec interface, 191
password, 272 VPN firewall policy-based internet browsing, 624
password, administrator, 272 VPN route-based internet browsing, 624
peer users and peer groups, 665 web content filter list, 553, 554
PKI authentication, 278 web filtering options, 493
policy, 391, 396 wireless interface, 219
policy route, 352 zone, 198
PPPoE or PPPoA interface settings, 190 address
PPTP range, 629, 631 firewall address group, 424
PPTP VPN, 629, 631 list, 422
protection profile, 480 address group, 424
push updates, 331 adding, 424
RADIUS authentication, 273 creating new, 424
RADIUS server, 656 list, 424
recurring schedule, 438 Address Name
redundant interface, 187 firewall address, 423
redundant mode, 201 admin
remote authentication, 272 administrator account, 91
RIP settings, advanced, 360
admin profile
RIP settings, basic, 358
administrator account, 280
RIP-enabled interface, 361
CLI commands list, 282
scripts, 321
configuring, 284
secondary IP address, 196
viewing list, 283
SIP advanced features, 512
SNMP community, 242 administrative access
socket-size, IPS, 548 changing, 92
spam filter log, 719 interface settings, 184, 192, 196
spam filtering options, 498 monitoring logins, 289
SSL VPN options, firewall policy, 400 administrative distance, 336
SSL VPN settings, 634 administrative interface. See web-based manager
SSL VPN user groups, 668 administrator
standalone mode, 202 assigning to VDOM, 171
static NAT port forwarding, IP address and port range, 459 administrator account
static NAT port forwarding, single address and port, 457 admin, 91
static NAT virtual IP, IP address range, 455 admin profile, 280
static route (transparent mode), 214 configuring, 270
static route, adding to routing table, 343 netmask, 271, 272
subnet object, 145 administrator login
system administrators, 267 disclaimer, 257
system certificates, 305 administrator password
system configuration backup and restore, 312 changing, 91
system configuration backup and restore, FortiManager, administrator settings, 286
314 administrators
system configuration, central management options, 315 viewing list, 269

FortiGate Version 4.0 MR1 Administration Guide


738 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

administrators, monitoring, 289 antivirus options


Advanced Mezzanine Card (AMC), 114 protection profile, 489
advertise antivirus updates, 329
router ospf area filter-list, 54 manual, 129
AFS3, advanced file security encrypted file through a proxy server, 330
AFS3, 428 ANY
age limit service, 428
quarantine, 526 AOL
aggregate interface service, 428
creating, 186 append tag format
AH, predefined service, 428 protection profile, 501
alert email, 715 append tag to location
options, 715 protection profile, 501
SMTP user, 716 application control, 603
alert message console statistics, 608
viewing, 115 application level gateway
ALG SIP, 507
SIP, 507 application list
allow inbound SIP, 512
IPSec firewall policy, 399 archiving
allow outbound spam email, 593
IPSec firewall policy, 399 area border router (ABR), 53, 362, 367
allow web sites when a rating error occurs ARP, 452, 472
protection profile, 497 proxy ARP, 452, 472
allowas-in AS
router bgp neighbor, 48 OSPF, 362
allowas-in-enable ASM-CX4, 134
router bgp neighbor, 48 ASM-cx4, 134
allowed ASM-FX2, 134
web category report, 566 as-set
AMC router bgp aggregate-address, 48
bridge module, 134 attack updates
configuring AMC modules, 133 manual, 129
AMC module, 179 scheduling, 329
configuring, 133 through a proxy server, 330
antispam attribute-unchanged
port 53, 327 router bgp neighbor, 48
port 8888, 327 Authentication
antispam email address list IPSec VPN, phase 2, 620
adding, 576 authentication
viewing, 576 client certificates and SSL VPN, 635
antispam IP address list configuring remote authentication, 272
viewing, 574 defining settings, 675
antispam. See also spam filter, 567 firewall policy, 396, 402
antivirus MD5, 368
av_failopen, 528 RIP, 362
CLI configuration, 528 router ospf ospf-interface, 55
configure antivirus heuristic, 528 server certificate and SSL VPN, 635
file block, 521 Authentication Algorithm
file block list, 523 IPSec VPN, manual key, 622, 624
heuristics, 528 Authentication Key
optimize, 528 IPSec VPN, manual key, 624
quarantine, 524 Authentication Method
quarantine files list, 726 IPSec VPN, phase 1, 615
scanning large files, 529 Auto Key
splice, 490, 501 IPSec VPN, 613
streaming mode, 490, 501 Autokey Keep Alive
system global av_failopen, 528 IPSec VPN, phase 2, 621
system global optimize, 528 autonomous system (AS), 362, 370
virus list, 527
AutoSubmit
antivirus and attack definitions, 328 quarantine, 527

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 739
http://docs.fortinet.com/ • Feedback
Index

autosubmit list blackhole routing, 185


configuring, 525 block, 513
enabling uploading, 525 block login (IM)
quarantine files, 525 protection profile, 503
av_failopen blocked
antivirus, 528 web category report, 566
Boot Strap Router (BSR), 372
B BOOTP, 231
back to HA monitor branch, 516
HA statistics, 239 bridge mode, 134
backdoor bridge module
router bgp network, 51 AMC, 134
backing up button bar
3.0 config to FortiUSB, 149 features, 93
3.0 configuration, 148
config using web-based manager, 3.0, 148 C
configuration, 94
CA certificates
backup (redundant) mode
importing, 307
modem, 199
viewing, 307
backup and restore, system maintenance, 312
capability-default-originate
backup mode router bgp neighbor, 48
modem, 201
capability-graceful-restart
band router bgp neighbor, 48
wireless setting, 219
capability-orf
bandwidth router bgp neighbor, 49
guaranteed, 395, 444
catalog
maximum, 395, 444, 684, 689
banned word, 570
banned word content filter, 553
character set, 495 email address back/white list, 575
banned word (spam filter) IP address black/white list, 573
action, 572 URL filter, 556
adding words to the banned word list, 572 viewing file pattern, 522
catalog, 570 category
language, 572 protection profile, 498
list, 571 web category report, 566
pattern, 572
category block
pattern type, 572
configuration options, 560
banned word check reports, 565
protection profile, 501
central management, 285
banned word list revision control, 286
creating new, 571
Certificate Name
banned word list catalog IPSec VPN, phase 1, 615
viewing, 570
certificate, security. See system certificate
beacon interval
certificate, server, 635
wireless setting, 219
certificate. See system certificates
BFD
configuring on BGP, 376 certification, 27
configuring on OSPF, 376 channel
disabling, 376 wireless setting, 219
BGP character set
AS, 370 converting, 495
flap, 371 DLP, 495
graceful restart, 371 spam filter, 495
MED, 370 web filtering, 495
RFC 1771, 370 CIDR, 30, 421, 687
service, 428 cipher suite
settings, viewing, 371 SSL VPN, 635
stabilizing the network, 371 CLI, 89
storing updates from neighbor, 50 admin profile, 282
black/white list, 573 connecting to from the web-based manager, 93
blackhole route, 337 CLI command
PPTP tunnel setup, 631

FortiGate Version 4.0 MR1 Administration Guide


740 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

CLI configuration conventions, 28


antivirus, 528 cookie filter
customizing CLI console, 108 protection profile, 494
using in web-based manager, 119 cost
web category block, 565 router ospf ospf-interface, 55
CLI console, 119 counting to infinity loop, 61
client certificates CPU load, 166
SSL VPN, 635 CPU usage
client comforting, 491 HA statistics, 239
cluster member, 236 CRL (Certificate Revocation List)
cluster members list, 238 importing, 309
priority, 238 viewing, 309
role, 238 custom service
cluster unit adding, 433
disconnecting from a cluster, 240 adding a TCP or UDP custom service, 433
code, 434 list, 432
column settings, 724 custom signatures
configuring, 103 intrusion protection, 535
using with filters, 104 viewing, 535
comfort clients customer service, 26, 165
protection profile, 491 customer support
comforting contacting, 93
client, 491 customized GUI
command line interface (CLI), 28, 29 PPTP tunnel setup, 629
comments CVSPSERVER, concurrent versions system proxy server,
, 27 428
firewall policy, 396, 402 cx4, 134
concentrator
adding, 625 D
equivalent for route-based VPN, 612
IPSec tunnel mode, 625 dashboard, 89, 107
IPSec VPN, policy-based, 625 dashboard statistics
Concentrator Name protection profile, 502
IPSec VPN, concentrator, 625 data encryption
config antivirus heuristic wireless setting, 221
CLI command, 528 data leak prevention sensor, 501
configuration data leak protection, 583
backing up the configuration, 94 compound rule, 599
configuring rule, 594
WAN optimization peer, 688 sensor, 583
WAN optimization rule, 683 date
connecting quarantine files list, 727
modem, dialup account, 203 daylight saving changes, 126
web-based manager, 90 DC
conservation mode, 247 quarantine files list, 727
conserve mode, 116 DCE-RPC
contact information firewall service, 428
SNMP, 242 Dead Peer Detection
contacting customer support, 93 IPSec VPN, phase 1, 618
content archiving dead-interval
DLP archiving, 588 router ospf area virtual-link, 54
content block router ospf ospf-interface, 55
catalog, 553 default
web filter, 552 password, 27
content filtering default gateway, 340
character set, 495 default route, 340
content filtering mode default-cost
HTTPS, 489 router ospf area, 53
content scanning default-information-originate
SSL, 481 router rip, 59
content streams
replacement messages, 251

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 741
http://docs.fortinet.com/ • Feedback
Index

default-metric distribute-list-out
router ospf, 52 router bgp neighbor, 49
router rip, 59 DLP
Designated Routers (DR), 372 archiving, 588
destination character set, 495
firewall policy, 390, 394, 398, 401 content archiving, 588
destination IP address DLP archive
system status, 124 viewing, 130, 594, 725
destination NAT DLP archiving, 588
SIP, 508 DLP. See data leak protection
destination network address translation (DNAT) DNAT
virtual IPs, 449, 450 virtual IPs, 449, 450
destination port, custom services, 434 DNS
device priority service, 428
HA, 235 split, 205, 208
subordinate unit, 239 documentation, 27
DH Group commenting on, 27
IPSec VPN, phase 1, 618 conventions, 28
IPSec VPN, phase 2, 620 Fortinet, 27
DHCP domain name, 422
and IP Pools, 395 DoS policy, 404
configuring relay agent, 229 configuring, 406, 409
configuring server, 229 viewing, 404
servers and relays, 227 DoS sensor, 545
service, 228 IPS, 493
system, 227 list, 546
transparent mode, 227 SCCP, 512
viewing address leases, 231 SIP, 512
DHCP (Dynamic Host Configuration Protocol) dotted decimal, 30
configuring on an interface, 188 dotted-decimal notation, 367
service, 428 double NAT, 466
DHCP6 downgrading. See also reverting
service, 428 3.0 using the CLI, 155
DHCP-IPSec 3.0 using web-based manager, 154
IPSec VPN, phase 2, 621 download
diagnose quarantine files list, 727
commands, 93 duplicates
diagram quarantine files list, 727
topology viewer, 142 Dynamic DNS
dialup VPN IPSec VPN, phase 1, 614
monitor, 626 monitor, 626
direction network interface, 191
router rip distribute-list, 60 VPN IPSec monitor, 626
router rip offset-list, 61 dynamic IP pool
Directory Service SIP, 509
configuring server, 662, 663 dynamic resources
FSAE, 663 VDOM resource limits, 172, 173
disclaimer dynamic routing, 357
administrator login, 257 OSPF, 362
disconnecting PIM, 372
modem, dialup account, 203 dynamic virtual IP
disk space adding, 460
quarantine, 527
display content meta-information on dashboard E
protection profile option, 502
display content meta-information on the system dashboard ECMP, 337
protection profile, 502 eip
Distinguished Name vpn pptp, 631, 632
query, 660 email
distribute-list-in oversize threshold, 491
router bgp neighbor, 49

FortiGate Version 4.0 MR1 Administration Guide


742 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

email address FDN


action type, 577 attack updates, 264
adding to the email address list, 577 HTTPS, 328
back/white list catalog, 575 override server, 325
BWL check, protection profile, 500 port 443, 328
list, spam filter, 576 port 53, 327
pattern type, 577 port 8888, 327
email alert, 715 port forwarding connection, 331
enable FortiGuard Web Filtering proxy server, 330
protection profile, 497 push update, 325
enable FortiGuard Web Filtering overrides troubleshooting connectivity, 328
protection profile, 497 updating antivirus and attack definitions, 328
Enable perfect forward secrecy (PFS) FDS, 322
IPSec VPN, phase 2, 620 file block
Enable replay detection antivirus, 521
IPSec VPN, phase 2, 620 default list of patterns, 521
enable session pickup list, antivirus, 523
HA, 236 protection profile, 490
Encryption file name
IPSec VPN, phase 2, 620 quarantine files list, 727
Encryption Algorithm file pattern
IPSec VPN, manual key, 622, 623 catalog, 522
quarantine autosubmit list, 525
Encryption Key
IPSec VPN, manual key, 624 filter
filtering information on web-based manager lists, 99
end IP
IPS sensor, 540
IP pool, 465
quarantine files list, 726
Equal Cost Multipath (ECMP), 337 using with column settings, 104
equal-cost multi-path (ECMP), 344 web-based manager lists, 99
ESP filter-list-in
service, 428 router bgp neighbor, 49
exact-match filter-list-out
router access-list, 51 router bgp neighbor, 49
example FINGER
firewall policy, 414 service, 428
source IP address and IP pool address matching, 464 firewall, 387, 421, 427, 437, 447, 479
exclude range address list, 422
adding to DHCP server, 231 configuring, 387, 421, 479
expected input, 29 configuring firewall service, 427
expire configuring service group, 435
system status, 124 configuring virtual IP, 447
expired configuring, schedule, 437
subscription, 325 custom service list, 432
explicit mode one-time schedule, 438
WAN optimization, 687 overview, 387, 421, 427, 479
exported server certificates overview, firewall schedule, 437
importing, 305 overview, virtual IP, 447
external interface policy list, 390
virtual IP, 452 policy matching, 387
external IP address predefined services, 427
virtual IP, 452 recurring schedule, 437
virtual IP list, 451
external service port
virtual IP, 453 firewall address
adding, 423
address group, 424
F address name, 423
fail-open, CLI command for IPS, 548 create new, 422
FAQ, 27 IP range/subnet, 423
list, 422
name, 422
subnet, 423

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 743
http://docs.fortinet.com/ • Feedback
Index

firewall address group GRE, 428


adding, 424 group list, 435
available addresses, 425 H323, 429
group name, 425 HTTP, 429
members, 425 HTTPS, 429
firewall IP pool list, 465 ICMP_ANY, 429
firewall IP pool options, 465 IKE, 429
firewall policy IMAP, 429
accept action, 691, 692 INFO_ADRESS, 429
action, 391 INFO_REQUEST, 429
adding, 391 Internet-Locator-Service, 429
adding a protection profile, 480 IRC, 429
allow inbound, 399 L2TP, 429
allow outbound, 399 LDAP, 429
authentication, 396, 402 MGCP, 429
changing the position in the policy list, 388, 685 MS-SQL, 429
comments, 396, 402 MYSQL, 429
configuring, 391 NetMeeting, 429
creating new, 390, 443 NFS, 429
deleting, 388, 685 NNTP, 429
destination, 390, 394, 398, 401 NTP, 429
example, 414 ONC-RPC, 430
guaranteed bandwidth, 395, 444 OSPF, 430
ID, 390 PC-Anywhere, 430
identity-based, 397 PING, 430
inbound NAT, 400 PING6, 430
insert policy before, 391, 684 POP3, 430
list, 390 PPTP, 430
log traffic, 396, 398, 403 QUAKE, 430
matching, 387 RAUDIO, 430
maximum bandwidth, 395, 444, 684, 689 REXEC, 430
modem, 203 RIP, 430
moving, 388, 685 RLOGIN, 430
multicast, 389 RSH, 430
outbound NAT, 400 RTSP, 430
protection profile, 395, 402 SAMBA, 430
schedule, 390, 394 SCCP, 431
service, 390, 394 SIP, 431
source, 390, 393, 401 SIP-MSNmessenger, 431
SSL VPN options, 400 SMTP, 431
traffic priority, 684, 689 SNMP, 431
traffic shaping, 395, 398, 403 SOCKS, 431
user groups, 667 SQUID, 432
firewall protection profile SSH, 432
default protection profiles, 480 SYSLOG, 432
list, 481 TALK, 432
options, 486 TCP, 432
TELNET, 432
firewall service
TFTP, 432
AFS3, 428
TIMESTAMP, 432
AH, 428
UDP, 432
ANY, 428
UUCP, 432
AOL, 428
VDOLIVE, 432
BGP, 428
viewing custom service list, 432
CVSPSERVER, 428
viewing list, 427
DCE-RPC, 428
VNC, 432
DHCP, 428
WAIS, 432
DHCP6, 428
WINFRAME, 432
DNS, 428
WINS, 432
ESP, 428
X-WINDOWS, 432
FINGER, 428
FTP, 428 firmware
FTP_GET, 428 reverting to previous version, 128
FTP_PUT, 428 upgrading to a new version, 127
GOPHER, 428 viewing, 316

FortiGate Version 4.0 MR1 Administration Guide


744 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

fixed port conventions, 28


IP pool, 464 Technical Support, 26
FortiAnalyzer, 23, 710 Technical Support, registering with, 26
accessing logs, 722 Technical Support, web site, 26
configuring report schedules, 727 Training Services, 27
logging to, 710 Fortinet customer service, 26
printing reports, 731 Fortinet documentation, 27
VDOM, 160 Fortinet Family Products, 23
FortiBridge, 23 Fortinet Knowledge Center, 27
FortiClient, 23 Fortinet MIB, 245, 248
system maintenance, 312 Fortinet product
FortiGate SNMP event, 244 registering, 94
FortiGate-ASM-CX4, 134 FortiWiFi-50B
FortiGate-ASM-FB4, 179 wireless settings, 218
FortiGate-ASM-FX2, 134 FortiWiFi-60B
FortiGuard, 23 wireless settings, 218
Antispam, 27 fragmentation threshold
Antivirus, 26, 27 wireless setting, 221
changing the host name, 565 FSAE
CLI configuration, 565 Directory Service server, 663
configuration options, 560 FTP
configuring FortiGuard Web filtering options, 495 service, 428
manually configuring definition updates, 129
FTP_GET
override options for user group, 672
service, 428
report allowed, 566
report blocked, 566 FTP_PUT
report category, 566 service, 428
report profiles, 566 fully qualified domain name (FQDN), 30, 422
report range, 566 FX2, 134
report type, 566
reports, 565 G
services, 26
web filter, 559 garbage-timer
router rip, 59
FortiGuard Analysis Service
accessing logs on FortiGuard Analysis server, 723 ge
router prefix-list, 57
FortiGuard Antispam
email checksum check, 500 geography
IP address check, 500 wireless setting, 219
FortiGuard Distribution Network. See FDN glossary, 27
FortiGuard Distribution Server. See FDS GOPHER
service, 428
FortiGuard Management Services
remote management options, 315 graceful restart, 371
FortiGuard Services, 322 graphical user interface. See web-based manager
antispam service, 323 grayware
configuring antispam service, 323 updating antivirus and attack definitions, 328
configuring updates for FDN and services, 323 GRE, 61, 362
configuring web filter service, 323 service, 428
FortiGuard Management and Analysis Services, 323 group name
licenses, 110, 323 HA, 235
management and analysis service options, 327 grouping services, 435
support contract, 324 groups
web filtering, 323 user, 666
web filtering and antispam options, 326 guaranteed bandwidth
FortiMail, 23 firewall policy, 395, 444
FortiManager, 23 traffic shaping, 395, 444
FortiManager Management Services GUI. See web-based manager
revision control, 319
Fortinet H
customer service, 165
Knowledge Center, 27 H323
Technical Documentation, 27 service, 429

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 745
http://docs.fortinet.com/ • Feedback
Index

HA, 233, 238 host name


changing cluster unit host names, 238 changing, 126
cluster member, 238 changing for a cluster, 238
cluster members list, 236 viewing, 126
configuring, 233 hostname
device priority, 235 cluster members list, 238
disconnecting a cluster unit, 240 how-to, 27
enable session pickup, 236 HTTP, 477
group name, 235 service, 429
heartbeat interface, 236 virus scanning large files, 529
host name, 238 HTTPS, 89, 265
interface monitoring, 236 service, 429
mode, 235
HTTPS content filtering mode, 489
password, 236
port monitor, 236 hub-and-spoke
router monitor, 384 IPSec VPN (see also concentrator), 612
routes, 384
session pickup, 236 I
subordinate unit device priority, 239 ICMP custom service, 434
subordinate unit host name, 239 code, 434
VDOM partitioning, 236 protocol type, 434
viewing HA statistics, 238 type, 434
HA statistics ICMP echo request, 477
active sessions, 239
ICMP_ANY
back to HA monitor, 239
service, 429
CPU usage, 239
intrusion detected, 239 ID
memory usage, 239 firewall policy, 390
monitor, 239 identity-based
network utilization, 239 firewall policy, 397
refresh every, 239 idle timeout
status, 239 changing for the web-based manager, 92
total bytes, 239 IEEE 802.11a, channels, 216
total packets, 239 IEEE 802.11b, channels, 217
unit, 239 IEEE 802.11g, channels, 217
up time, 239 IEEE 802.3ad, 186
virus detected, 239 IKE
health check monitor service, 429
configuring, 476 IMAP
heartbeat, HA service, 429
interface, 236 inbound NAT
hello-interval IPSec firewall policy, 400
router ospf area virtual-link, 54 index, 30
router ospf ospf-interface, 55 index number, 30
HELO DNS lookup INFO_ADDRESS
protection profile, 500 service, 429
help INFO_REQUEST
navigating using keyboard shortcuts, 97 service, 429
searching the online help, 96
input constraints, 29
using FortiGate online help, 94
insert policy before
heuristics
firewall policy, 391, 684
antivirus, 528
quarantine, 529 inspection
SSL, 481
high availability See HA, 233
installation, 27
hop count., 62

FortiGate Version 4.0 MR1 Administration Guide


746 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

interface IP custom service, 434


adding system settings, 181 protocol number, 434
administrative access, 184, 192, 196 protocol type, 434
administrative status, 180 IP pool
configuring administrative access, 192 adding, 465
GRE, 362 configuring, 465
IP pool, 466 creating new, 465
loopback, 179, 338 DHCP, 395
modem, configuring, 199 end IP, 465
MTU, 184 fixed port, 464
proxy ARP, 452, 472 interface, 466
router ospf ospf-interface, 55 IP range/subnet, 466, 467
router rip distribute-list, 60 list, 465
router rip offset-list, 61 name, 466, 467
software switch, 183 options, 465
spillover, 184 PPPoE, 395
status detection, 184 proxy ARP, 452, 472
wireless, 215 SIP, 509
WLAN, 215 start IP, 465
Interface Mode, 181 transparent mode, 468
interface monitoring IP range/subnet
HA, 236 firewall address, 423
internet browsing IP pool, 466, 467
IPSec VPN configuration, 624 IPS
Internet-Locator-Service see intrusion protection
service, 429 IPS sensor
inter-VDOM links, 169 filter, 540
introduction options, protection profile, 492
Fortinet documentation, 27 IPS sensors
intrusion detected creating, 537
HA statistics, 239 IPSec, 61, 362
intrusion protection IPSec firewall policy
custom signature list, 535 allow inbound, 399
DoS sensor list, 546 allow outbound, 399
DoS sensor, protection profile, 493 inbound NAT, 400
fail-open, CLI command for IPS, 548 outbound NAT, 400
filter, 540 IPSec Interface Mode
IPS sensor list, 537 IPSec VPN, manual key, 624
IPS sensor, protection profile, 493 IPSec VPN, phase 1, 617
predefined signature list, 533 IPSec VPN
protection profile options, 492 adding manual key, 622
protocol decoder, 536 authentication for user group, 667
protocol decoder list, 536 Auto Key list, 613
signatures, 532 concentrator list, 625
socket-size, CLI command for IPS, 548 configuring phase 1, 614
IP configuring phase 1 advanced options, 616
virtual IP, 451 configuring phase 2, 619
ip configuring phase 2 advanced options, 619
router rip neighbor, 61 configuring policy-, route-based Internet browsing, 624
IP address Manual Key list, 622
action, antispam, 574 monitor list, 626
antispam black/white list catalog, 573 remote gateway, 667
BWL check, protection profile, 500 route-based vs policy-based, 612
defining PPTP range, 629, 631 IPv6, 289, 338
IPSec VPN, phase 1, 614 IPv6 support
list, spam filter, 574 settings, 288
PPTP user group, 629, 631 IRC
private network, 28 service, 429
spam filter, 573
IP address, configuring secondary, 196 J
java applet filter
protection profile, 494

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 747
http://docs.fortinet.com/ • Feedback
Index

K log
attack anomaly, 720
Keepalive Frequency attack signature, 720
IPSec VPN, phase 1, 618 column settings, 724
key raw or formatted, 721
license, 333 to FortiAnalyzer, 710
wireless setting, 221 traffic, firewall policy, 396, 398, 403
keyboard shortcut log traffic
online help, 97 firewall policy, 396, 398
Keylife log types, 734
IPSec VPN, phase 1, 618 antivirus, 719
IPSec VPN, phase 2, 620 attack, 720
Knowledge Center, 27 event, 717
spam filter, 719
L traffic, 734
web filter, 719
L2TP, 667 logging, 722
service, 429 accessing logs in memory, 721
language accessing logs on FortiAnalyzer unit, 722
changing the web-based manager language, 91 accessing logs on FortiGuard Analysis server, 723
spam filter banned word, 572 ActiveX filter, 504
web content block, 554 alert email, configuring, 715
web-based manager, 91, 288 applying through protection profile, 503
LDAP basic traffic reports, 731
configuring server, 657, 658 blocked files, 504
service, 429 configuring FortiAnalyzer report schedules, 727
user authentication, 652 configuring graphical system memory report, 733
LDAP Distinguished Name query, 660 content block, 504
LDAP server cookie filter, 504
authentication, 272 customizing display of log messages, 723
configuring authentication, 275 DLP archive, 725
le FortiGuard Analysis server, 712
router prefix-list, 57 intrusions, 504
license key, 333 java applet filter, 504
licenses log severity levels, 733
viewing, 110 log types, 734
oversized files/emails, 504
limit
printing FortiAnalyzer reports, 731
VDOM resources, 172
rating errors, 504
listname searching, filtering logs, 725
router rip distribute-list, 60 SIP, 512
lists spam, 504
using web-based manager, 99 storing logs, 710
load balancer, 471 testing FortiAnalyzer configuration, 711
local certificates to a FortiAnalyzer unit, 710
options, 303 to memory, 714
viewing, 302 to syslog server, 713
Local Gateway IP URL block, 504
IPSec VPN, phase 1, 617 viewing DLP archives, 594, 725
Local ID viewing raw or formatted logs, 721
IPSec VPN, phase 1, 618 viruses, 504
Local Interface logging out
IPSec VPN, manual key, 623 web-based manager, 97
IPSec VPN, phase 1, 615 loopback interface, 179, 338
local ratings lost password
configuring, 564 recovering, 91, 271, 272
local ratings list low disk space
viewing, 563 quarantine, 527
Local SPI
IPSec VPN, manual key, 623 M
local user, 652
MAC address
local user account
filtering, 221
configuring, 652

FortiGate Version 4.0 MR1 Administration Guide


748 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

MAC filter modem interface


wireless, 221 configuring, 199
MAC filter list monitor
configuring, 222 administrator logins, 289
viewing, 222 HA statistics, 239
major version, 127 IPSec VPN, 626
Management Information Base (MIB), 241 routing, 383
management VDOM, 168, 172 monitored ports, 489
Manual Key monitoring
IPSec VPN, 622 WAN optimization, 690
map to IP moving a firewall policy, 388, 685
virtual IP, 451 MS-CHAP, 656
map to port MS-CHAP-V2, 656
virtual IP, 451, 453 MS-SQL
matched content, 478 service, 429
matching MTU size, 184, 195
firewall policy, 387 multicast, 372
max filesize to quarantine multicast destination NAT, 374
quarantine, 527 multicast policy, 389
maximum bandwidth, 395, 444, 684, 689 multicast settings
firewall policy, 395, 444, 684, 689 overriding, 374
traffic shaping, 395, 444, 684, 689 viewing, 373
maximum-prefix Multi-Exit Discriminator (MED), 370
router bgp neighbor, 49 MYSQL
maximum-prefix-threshold service, 429
router bgp neighbor, 49
maximum-prefix-warning-only N
router bgp neighbor, 49
MD5 Name
OSPF authentication, 368, 370 IP pool, 466, 467
Members IPSec VPN, manual key, 623
IPSec VPN, concentrator, 625 IPSec VPN, phase 1, 614
IPSec VPN, phase 2, 619
memory, 166
name, 30
memory usage
HA statistics, 239 NAPT, 410
menu NAT
web-based manager menu, 98 in transparent mode, 468
inbound, IPSec firewall policy, 400
metric
multicast, 374
router ospf redistribute, 56
NAPT, 410
router rip redistribute, 62
outbound, IPSec firewall policy, 400
metric-type port selection, 410
router ospf redistribute, 56 preserving SIP NAT IP, 514
MGCP push update, 331
service, 429 SIP, 507
mheader, 577 SIP contact headers, 515
MIB, 248 symmetric, 450
FortiGate, 244 NAT virtual IP
RFC 1213, 244 adding for single IP address, 454
RFC 2665, 244 adding static NAT virtual IP for IP address range, 455
minor version, 127 Nat-traversal
Mode IPSec VPN, phase 1, 618
IPSec VPN, phase 1, 615 netmask
mode administrator account, 271, 272
HA, 235 NetMeeting
operation, 27 service, 429
modem network
adding firewall policies, 203 topology viewer, 142
backup mode, 201 Network Address Port Translation, 410
connecting and disconnecting to dialup account, 203 network address translation (NAT), 448
redundant (backup) mode, 199
Network Layer Reachability Information (NLRI), 49
standalone mode, 199, 202
viewing status, 204 Network Time Protocol, 126

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 749
http://docs.fortinet.com/ • Feedback
Index

network utilization OSPF


HA statistics, 239 area ID, 368
next-hop-self AS, 365
router bgp neighbor, 49 authentication, 368, 370
NFS Dead Interval, 370
service, 429 dead packets, 370
NNTP GRE, 369
service, 429 Hello Interval, 370
not registered Hello protocol, 362
subscription, 325 interface definition, 369
IPSec, 369
notification, 715
link-state, 362
Not-so-stubby Area (NSSA), 367 LSA, 370
not-so-stubby area (NSSA), 384 multiple interface parameter sets, 369
Novel edirectory, 662 neighbor, 362
NRLI prefix network, 365
router bgp, 49 network address space, 370
NTP, 126 NSSA, 367, 384
service, 429 path cost, 363
sync interval, 126 regular area, 367
synchronizing with an NTP server, 126 service, 430
settings, 364
O stub, 367
virtual lan, 369
OCSP certificates virtual link, 367
importing, 307 VLAN, 369
offset ospf
router rip offset-list, 62 RFC 3509, 52
ONC-RPC OSPF AS, 362
service, 430 defining, 363
one-time schedule outbound NAT
adding, 439 IPSec firewall policy, 400
configuring, 439 Outbound Routing Filter (ORF), 49
creating new, 438 override server
list, 438 adding, 329
start, 439
oversize threshold, 491
stop, 439
oversized file/email
online help
protection profile, 491
content pane, 95
keyboard shortcuts, 97
navigation pane, 95 P
search, 96 P1 Proposal
using FortiGate online help, 94 IPSec phase 1, 617
operation mode, 27, 264 P2 Proposal
wireless setting, 219 IPSec VPN, phase 2, 620
operational history packets
viewing, 129 VDOM, 160
optimize page controls
antivirus, 528 web-based manager, 102
PAP, 656
pass fragmented email
protection profile, 491
passive-interface
router ospf, 53
router rip, 59
password
administrator, 27
configuring authentication password, 272
HA, 236
recovering lost password, 91, 271, 272
PAT
virtual IPs, 448
patch number, 127

FortiGate Version 4.0 MR1 Administration Guide


750 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

pattern policy
default list of file block patterns, 521 accept action, 691, 692
spam filter banned word, 572 action, 391
pattern type adding, 391
spam filter banned word, 572 allow inbound, 399
spam filter email address, 577 allow outbound, 399
web content block, 554 authentication, 396, 402
PC-Anywhere changing the position in the policy list, 388, 685
service, 430 comments, 396, 402
peer configuring, 391
router ospf area virtual-link, 54 creating new, 390, 443
peer group deleting, 388, 685
configuring, 665 destination, 390
DoS, 404
Peer option
example, 414
IPSec VPN, phase 1, 615
guaranteed bandwidth, 395, 444
peer user ID, 390
configuring, 665 identity-based, 397
Perl regular expressions inbound NAT, 400
spam filter, 578 insert policy before, 391, 684
persistence, 474 list, 390
Phase, 619 log traffic, 396, 398, 403
phase 1 matching, 387
IPSec VPN, 614, 619 maximum bandwidth, 395, 444, 684, 689
phase 1 advanced options move, 388, 685
IPSec VPN, 616 multicast, 389
phase 2 outbound NAT, 400
IPSec VPN, 619 protection profile, 395, 402
phase 2 advanced options schedule, 390, 394
IPSec VPN, 619 service, 390, 394
PIM sniffer, 406
BSR, 372 source, 390
dense mode, 372 SSL VPN options, 400
DR, 372 traffic priority, 684, 689
RFC 2362, 372 traffic shaping, 395, 398, 403
RFC 3973, 372 policy route
RP, 372 moving in list, 354
sparse mode, 372 policy-based routing, 351
PING, 477 POP3
service, 430 service, 430
PING6 port
firewall service, 430 NAT, 410
pinholing port 53, 327
RTP, 513 port 8888, 327
SIP, 513 port 9443, 331
PKI, 664 port address translation
authentication, 278 virtual IPs, 448
poisoned split horizon, 60 port forwarding, 448
port monitor
HA, 236
PPPoE
and IP Pools, 395
PPPoE (Point-to-Point Protocol over Ethernet)
RFC 2516, 190
PPTP, 629, 667
service, 430
PPTP IP address
user group, 629, 631
PPTP range
defining addresses, 629, 631
PPTP tunnel setup
CLI command, 631
customized GUI, 629

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 751
http://docs.fortinet.com/ • Feedback
Index

predefined services, 427 logging, ActiveX filter, 504


predefined signature logging, blocked files, 504
default action, 534 logging, content block, 504
list, 533 logging, cookie filter, 504
prefix logging, intrusions, 504
router access-list, 51 logging, java applet filter, 504
router bgp aggregate-address, 48 logging, oversized files/emails, 504
router bgp network, 51 logging, rating errors, 504
router ospf area range, 54 logging, spam, 504
router prefix-list, 57 logging, URL block, 504
prefix-list-in logging, viruses, 504
router bgp neighbor, 50 options, 486
prefix-list-out oversized file/email, 491
router bgp neighbor, 50 pass fragmented email, 491
provide details for blocked HTTP errors, 497
Pre-shared Key
quarantine, 490
IPSec VPN, phase 1, 615
rate images by URL, 497
pre-shared key rate URLs by domain and IP address, 498
wireless setting, 221 return email DNS check, 500
priority scan (default protection profile), 480
cluster members, 238 spam action, 501
router ospf ospf-interface, 55 spam filtering options, 498
private key strict (default protection profile), 480
importing, 305, 306 strict blocking (HTTP only), 498
product registration, 26, 94 tag format, 501
products, family, 23 tag location, 501
profile unfiltered (default protection profile), 480
category block reports, 566 virus scan, 490
proposal web (default protection profile), 480
IPSec phase 1, 617 web content block, 494
IPSec VPN, phase 2, 620 web filtering options, 493, 550
protection profile web resume download block, 494
ActiveX, 494 web URL block, 494
add signature to outgoing email, 491 protocol
adding to a firewall policy, 480 number, custom service, 434
allow web sites when a rating error occurs, 497 OSPF Hello, 362
antivirus options, 489 service, 428
append tag format, 501 system status, 123
append tag to location, 501 type, custom service, 433, 434
banned word check, 501 virtual IP, 453
block login (IM), 503 protocol decoder, 536
category, 498 list, 536
comfort clients, 491 Protocol Independent Multicast (PIM), 372
cookie filter, 494 protocol recognition, 489
dashboard statistics, 502 protocol type, 434
default protection profiles, 480 provide details for blocked HTTP errors
display content meta-information on dashboard, 502 protection profile, 497
display content meta-information on the system proxy
dashboard options, 502 SIP, 505
DoS sensor, 493
proxy ARP, 452, 472
email address BWL check, 500
FortiGate interface, 452, 472
enable FortiGuard Web Filtering, 497
IP pool, 452, 472
enable FortiGuard Web Filtering overrides, 497
virtual IP, 452, 472
file block, 490
firewall policy, 395, 402 proxy server, 330
FortiGuard Antispam IP address check, 500 push updates, 330
FortiGuard email checksum check, 500 push update, 325
HELO DNS lookup, 500 configuring, 330
IP address BWL check, 500 external IP address changes, 330
IPS sensor, 493 IP address changes, 330
IPS sensor options, 492 management IP address changes, 331
java applet filter, 494 through a proxy server, 330
list, 481

FortiGate Version 4.0 MR1 Administration Guide


752 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

Q read only access level


administrator account, 126, 127, 269, 271
QUAKE real servers
service, 430 configuring, 475
quarantine monitoring, 478
age limit, 526 recurring schedule
antivirus, 524 adding, 438
autosubmit list, 525 configuring, 438
autosubmit list file pattern, 525 creating new, 437
configuring, 525 list, 437
configuring the autosubmit list, 525 select, 438
enable AutoSubmit, 527 start, 438
enabling uploading autosubmit file patterns, 525 stop, 438
heuristics, 529 redirect
low disk space, 527 SIP, 505
max filesize to quarantine, 527
redundant interface
options, 526
adding system settings, 187
protection profile, 490
redundant mode
quarantine files list
configuring, 201
antivirus, 726
apply, 726 refresh every
date, 727 HA statistics, 239
DC, 727 registering
download, 727 Fortinet product, 94
duplicates, 727 with Fortinet Technical Support, 26
file name, 727 regular administrator, 267
filter, 726 regular expression, 30
service, 727 relay
sorting, 726 DHCP, 227, 229
status, 727 remote administration, 193, 265
status description, 727 remote certificates
TTL, 727 options, 306
upload status, 727 viewing, 306
query, 660 Remote Gateway
Quick Mode Selector IPSec manual key setting, 623
IPSec VPN, phase 2, 621 IPSec VPN, manual key, 622
IPSec VPN, phase 1, 614
R remote peer
manual key configuration, 622
RADIUS
Remote SPI
configuring server, 656
IPSec VPN, manual key, 623
servers, 655
user authentication, 652 remote user authentication, 655
viewing server list, 655 remove-private-as
WPA Radius, 221 router bgp neighbor, 50
RADIUS authentication Rendezvous Point (RP), 372
VDOM, 172 replacement messages, 251
RADIUS server report
authentication, 272, 273 basic traffic, 731
wireless setting, 221 configuring report schedules, 727
range FortiAnalyzer, printing, 731
web category reports, 566 FortiGuard, 565
rate images by URL type, category block, 566
protection profile, 497 viewing FortiAnalyzer reports, 730
web category block, 565
rate limiting
SCCP, 512 resource limits
SIMPLE, 512 dynamic resources, 172, 173
SIP, 510, 512 static resources, 172, 173
VDOM, 172
rate URLs by domain and IP address
protection profile, 498 resource usage
VDOM, 174
RAUDIO
service, 430 restoring 3.0 configuration, 157
using the CLI, 157
read & write access level
using web-based manager, 157
administrator account, 126, 127, 269

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 753
http://docs.fortinet.com/ • Feedback
Index

retransmit-interval routing
router ospf area virtual-link, 54 administrative distance, 336
router ospf ospf-interface, 55 blackhole, 337
return email DNS check configuring, 210
protection profile, 500 ECMP, 337
Reverse Path Forwarding (RPF), 374 loopback interface, 338
revision control, 286 monitor, 383
REXEC static, 338
firewall service, 430 routing policy
RFC, 372 protocol number, 352
1918, 28 routing table, 383
RFC 1058, 357 searching, 385
RFC 1213, 241, 244 RSH
firewall service, 430
RFC 1215, 246
RTP, 507
RFC 1321, 368
pinholing, 513
RFC 1771, 370
RTS threshold
RFC 2132, 231 wireless setting, 221
RFC 2362, 372 RTSP
RFC 2385, 370 firewall service, 430
RFC 2453, 357
RFC 2516, 190 S
RFC 2543, 516
RFC 2665, 241, 244 SAMBA
RFC 3509, 52, 363 service, 430
RFC 3973, 372 scan
default protection profile, 480
RFC 5237, 352
SCCP
RIP
DoS sensor, 512
authentication, 362
firewall service, 431
hop count, 358
protection profile, 512
RFC 1058, 357
rate limiting, 512
RFC 2453, 357
service, 430 schedule
settings, viewing, 358 antivirus and attack definition updates, 329
split horizon, 60, 61, 361 firewall policy, 390, 394
version 1, 357 one-time schedule list, 438
version 2, 357 organizing schedules into groups, 439
recurring schedule list, 437
RLOGIN
service, 430 schedule group
adding, 439
role
cluster members, 238 scheduled updates
through a proxy server, 330
route
HA, 384 score
webfilter bword, 85
route-map
router bgp network, 51 screen resolution
minimum recommended, 89
routemap
router ospf redistribute, 56 search
router rip redistribute, 62 online help, 96
online help wildcard, 96
route-map-in
router bgp neighbor, 50 searching
routing table, 385
route-map-out
router bgp neighbor, 50 security
MAC address filtering, 221
router monitor
HA, 384 security certificates. See system certificates
route-reflector-client security mode
router bgp neighbor, 50 wireless setting, 221
router-id select
router ospf, 53 recurring schedule, 438
route-server-client send-community
router bgp neighbor, 50 router bgp neighbor, 50
sensor
DoS, 545
IPS, 537

FortiGate Version 4.0 MR1 Administration Guide


754 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

separate server certificates RAUDIO, 430


importing, 306 REXEC, 430
server RIP, 430
DHCP, 227 RLOGIN, 430
server certificate, 635 RSH, 430
server certificates RTSP, 430
importing, 305, 306 SAMBA, 430
server health, 478 SCCP, 431
service name, 428
service
SIP, 431
AH, 428
SIP-MSNmessenger, 431
ANY, 428
SMTP, 431
AOL, 428
SNMP, 431
BGP, 428
SOCKS, 431
custom service list, 432
SQUID, 432
CVSPSERVER, 428
SSH, 432
DCE-RPC, 428
SYSLOG, 432
DHCP, 228, 428
TALK, 432
DHCP6, 428
TCP, 432
DNS, 428
TELNET, 432
ESP, 428
TFTP, 432
FINGER, 428
TIMESTAMP, 432
firewall policy, 390, 394
UDP, 432
FTP, 428
UUCP, 432
FTP_GET, 428
VDOLIVE, 432
FTP_PUT, 428
VNC, 432
GOPHER, 428
WAIS, 432
GRE, 428
WINFRAME, 432
group, 435
WINS, 432
H323, 429
X-WINDOWS, 432
HTTPS, 429
ICMP_ANY, 429 service group, 435
IKE, 429 adding, 435
IMAP, 429 create new, 435
INFO_ADDRESS, 429 list, 435
INFO_REQUEST, 429 service port
Internet-Locator-Service, 429 virtual IP, 451
IRC, 429 service set identifier (SSID), 177
L2TP, 429 Session Initiation Protocol. See SIP
LDAP, 429 session list
MGCP, 429 viewing, 122
MS-SQL, 429 session pickup
MYSQL, 429 HA, 236
NetMeeting, 429 set time
NFS, 429 time
NNTP, 429 set the time, 126
NTP, 429 settings, 219
ONC-RPC, 430 administrators, 286
organizing services into groups, 435 IPv6 support, 288
OSPF, 430 timeout, 288
PC-Anywhere, 430
Shortest Path First (SPF), 363
PING, 430
PING6, 430 shortest path first (SPF), 53
POP3, 430 signatures
PPTP, 430 custom, intrusion protection signatures, 535
predefined, 427 SIMPLE
QUAKE, 430 protection profile, 512
quarantine files list, 727 rate limiting, 512

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 755
http://docs.fortinet.com/ • Feedback
Index

SIP, 505 software switch, 183


accepting register response, 515 sorting
ALG, 507 quarantine files list, 726
application level gateway, 507 URL filter list, 559
application list, 512 source
archiving communication, 514 firewall policy, 390, 393, 401
blocking requests, 513 source IP address
configuring advanced features, 512 system status, 124
contact headers and NAT, 515 source IP port
controlling client connection, 514 system status, 124
destination NAT, 508
source NAT
different source and destination NAT for SIP and RTP, 509
SIP, 507
DoS sensor, 512
enabling, 510 source port, 433
logging, 512 spam action
NAT, 507 protection profile, 501
NAT with dynamic IP pool, 509 spam email
operating modes, 505 archiving, 593
preserving NAT IP, 514 spam filter, 567
protection profile, 512 adding an email address or domain to the email address
proxy, 505 list, 577
rate limiting, 510, 512 adding words to the banned word list, 572
redirect, 505 banned word list, 571
RTP pinholing, 513 email address list, 576
service, 431 IP address, 573
source NAT, 507 IP address list, 574
support workflow, 510 Perl regular expressions, 578
turning on tracking, 513 spam filtering options
VoIP, 505 protection profile, 498
sip spf-timers
vpn pptp, 632 router ospf, 53
SIP requests, 513 spill-over, 184
SIP support workflow, 510 spillover, 184
SIP-MSNmessenger spilt DNS, 205, 208
service, 431 splice, 490, 501
Skinny Call Control Protocol. See SCCP split horizon, 61
SMTP split-DNS, 205, 208
service, 431 split-horizon
user, 716 router rip interface, 61
SNAT split-horizon-status
virtual IPs, 449 router rip interface, 61
sniffer policy, 406 SQUID
viewing, 407 service, 432
SNMP SSH, 265
configuring community, 242 service, 432
contact information, 242 SSID
event, 244 wireless setting, 220
manager, 241, 242 SSID broadcast
MIB, 248 wireless setting, 220
MIBs, 244
SSL
queries, 244
content inspection, 481
RFC 12123, 244
content scanning, 481
RFC 1215, 246
inspection, 481
RFC 2665, 244
service definition, 429, 430
service, 431
traps, 244, 245 SSL VPN
checking client certificates, 635
SNMP Agent, 242
configuring settings, 634
SNMP communities, 242 default web portal, 636
socket-size, CLI command for IPS, 548 firewall policy, 400
SOCKS setting the cipher suite, 635
service, 431 specifying server certificate, 635
soft-reconfiguration specifying timeout values, 635
router bgp neighbor, 50 web-only mode, 633

FortiGate Version 4.0 MR1 Administration Guide


756 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

SSL VPN Client Certificate, 400 stub-type


SSL VPN login message, 262 router ospf area, 54
SSL VPN web portal, 635 subnet
default, 636 adding object, 145
standalone mode firewall address, 423
modem, 199, 202 subscription
start expired, 325
IP pool, 465 not registered, 325
one-time schedule, 439 valid license, 325
recurring schedule, 438 summary-only
static IP router bgp aggregate-address, 48
monitor, 626 super administrator, 267
static NAT port forwarding switch mode, 180, 181
adding for IP address and port range, 459 sync interval
adding for single address and port, 457 NTP, 126
static resources synchronize
VDOM resource limits, 172, 173 with NTP Server, 126
static route syntax, 29
adding, 214, 343 SYSLOG
adding policy, 352 service, 432
administrative distance, 336 system administrators, 267
concepts, 335 system certificate
creating, 338 FortiGate unit self-signed security certificate, 90
default gateway, 340 system certificates
default route, 340 CA, 307
editing, 338 CRL, 309
moving in list, 354 importing, 305
overview, 335 OCSP, 307
policy, 351 requesting, 303, 304
policy list, 351 viewing, 302
selecting, 336
system configuration, 233
table building, 336
table priority, 337 system DHCP see also DHCP, 227
table sequence, 337 system global av_failopen
viewing, 338 antivirus, 528
viewing in transparent mode, 213 system global optimize
statistics antivirus, 528
viewing, 130 system idle timeout, 265
viewing HA statistics, 238 system information
status viewing, 109
HA statistics, 239 system maintenance
interface, 180 advanced, 318
quarantine files list, 727 backup and restore, 312
router ospf ospf-interface, 55 creating scripts, 321
router ospf redistribute, 56 enabling push updates, 330
router rip distribute-list, 60 firmware, 316
router rip offset-list, 62 firmware upgrade, 317
router rip redistribute, 62 managing configuration, 311
vpn pptp, 632 push update through a NAT device, 331
status description remote FortiManager options, 314
quarantine files list, 727 remote management options, 315
stop revision control, 319
one-time schedule, 439 scripts, 320
recurring schedule, 438 updating antivirus and attack definitions, 328
streaming mode, 490, 501 uploading scripts, 321
USB disks, 318
strict
VDOM, 312
default protection profile, 480
system resources
strict blocking (HTTP only)
viewing, 114
protection profile, 498
system status
string, 30
viewing, 108
stub
system status widgets
OSPF area, 367
customizing, 108

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 757
http://docs.fortinet.com/ • Feedback
Index

system time traffic priority


configuring, 125 firewall policy, 684, 689
system wireless. See wireless traffic shaping, 684, 689
traffic reports
T viewing, 731
traffic shaping
TACACS+ configuring, 443
configuring server, 661 firewall policy, 395, 398, 403
user authentication, 652 guaranteed bandwidth, 395, 444
TACACS+ server guaranteed bandwidth and maximum bandwidth, 441
authentication, 272, 277 maximum bandwidth, 395, 444, 684, 689
tag format priority, 442
protection profile, 501 traffic priority, 684, 689
tag location Training Services, 27
protection profile, 501 transmit-delay
TALK router ospf area virtual-link, 54
service, 432 router ospf interface, 55
TCP, 477 transparent mode
service, 432 IP pools, 468
TCP custom service, 433, 434 NAT, 468
adding, 433 VDOMs, 160
destination port, 434 VIP, 468
protocol type, 433 virtual IP, 468
source port, 433 WAN optimization, 687
technical traps
documentation, 27 SNMP, 245
documentation conventions, 28 troubleshooting
notes, 27 FDN connectivity, 328
support, 26 trusted host
technical support, 26, 165 administrators options, 271
TELNET security issues, 280
service, 432 TTL
TFTP quarantine files list, 727
service, 432 tunnel mode
threshold SSL VPN, SSL VPN
oversize, 491 tunnel mode, 633
time Tunnel Name
configuring, 125 IPSec VPN, manual key, 622
timeout Tx Power
settings, 288 wireless setting, 219
timeout values type, 434
specifying for SSL VPN, 635 router ospf area, 54
timeout-timer virtual IP, 452
router rip, 59
TIMESTAMP U
service, 432
top attacks UDP custom service, 433, 434
viewing, 124 adding, 433
destination port, 434
top sessions
protocol type, 433
viewing, 120
source port, 433
top viruses
UDP service, 432
viewing, 124
unfiltered
topology viewer, 142
default protection profile, 480
total bytes
unicast, 61
HA statistics, 239
unit
total packets
HA statistics, 239
HA statistics, 239
unit operation
tracking
viewing, 113
SIP, 513
unsuppress-map
traffic history
router bgp neighbor, 50
viewing, 124
up time
Traffic Priority, 684, 689
HA statistics, 239

FortiGate Version 4.0 MR1 Administration Guide


758 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

update VDOM
push, 330 adding interface, 168
update-timer assigning administrator, 171
router rip, 59 assigning interface, 170
upgrading configuration settings, 161
3.0 using web-based manager, 151 dynamic resource limits, 172, 173
4.0 using the CLI, 152 enabling multiple VDOMs, 164
backing up using the CLI, 3.0, 148 FortiAnalyzer, 160
firmware, 127 inter-VDOM links, 169
FortiGate unit to 3.0, 151 license key, 333
using the web-based manager, 151 limited resources, 166
using web-based manager, 3.0, 148 management VDOM, 168
upload status maximum number, 166
quarantine files list, 727 NAT/Route, 160
URL block packets, 160
adding a URL to the web filter block list, 557 RADIUS authentication, 172
configuring overrides, 561 resource limits, 172
local categories, 563 resource usage, 174
web filter, 555 static resource limits, 172, 173
system maintenance, 312
URL filter
transparent mode, 160
adding new list, 556
catalog, 556 VDOM partitioning
sorting in list, 559 HA, 236
viewing list, 556 verifying
URL formats, 558 downgrade to 2.80 MR11, 155
upgrade to 4.0, 153
USB disk, 312
auto-install, 318 viewing
backup and restore configuration, 311 address group list, 424
formatting, 318 admin profiles list, 283
system maintenance, 318 administrators, 289
administrators list, 269
user authentication
Alert Message Console, 115
overview, 651
antispam email address list catalog, 575
PKI, 664
antispam IP address list, 574
remote, 655
antispam IP address list catalog, 573
user group antivirus file filter list, 523
configuring, 669 antivirus file pattern list catalog, 522
PPTP source IP address, 629, 631 antivirus list, 527
user groups antivirus quarantined files list, 726
configuring, 666 autosubmit list, 525
Directory Service, 668 banned word list, 571
firewall, 667 banned word list catalog, 570
SSL VPN, 668 BGP settings, 371
viewing, 669 CA certificates, 307
usrgrp certificates, 302
vpn pptp, 632 cluster members list, 236
UTF-8 CRL (Certificate Revocation List), 309
character set, 495 custom service list, firewall service, 432
UUCP custom signatures, 535
service, 432 DHCP address leases, 231
DLP archive, 130
V DLP archives, 594, 725
DoS sensor list, 546
valid license, 325 firewall policy list, 390
value parse error, 30 firewall service group list, 435
VDOLIVE firewall service list, 427
service, 432 firmware, 316
FortiAnalyzer reports, 730
FortiGuard support contract, 324
HA statistics, 238
hostname, 126
IP pool list, 465
IPS sensor list, 537
IPS sensor options, 492

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 759
http://docs.fortinet.com/ • Feedback
Index

IPSec VPN auto key list, 613 virtual IP, 452, 472
IPSec VPN concentrator list, 625 configuring, 452
IPSec VPN manual key list, 622 create new, 451, 462
IPSec VPN monitor list, 626 destination network address translation (DNAT), 449, 450
LDAP server list, 657 external interface, 452
licenses, 110 external IP address, 452
local ratings list, 563 external service port, 453
modem status, 204 IP, 451
multicast settings, 373 list, 451
one-time schedule list, 438 map to IP, 451
operational history, 129 map to port, 451, 453
protection profile list, 481 NAT, 448
protocol decoder list, 536 PAT, 448
RADIUS server list, 655 port address translation, 448
recurring schedule list, 437 protocol, 453
remote certificates, 306 server down, 478
revision control, 319 service port, 451
RIP settings, 358 SNAT, 449
routing information, 383 source network address translation, 449
session list, 122 type, 452
static route, 338 virtual IP group
static route (transparent mode), 213 configuring, 462
statistics, 130 virtual IP group list
system information, 109 viewing, 462
system resources, 114 virtual IP, port translation only
system status, 108 adding, 461
system topology, 142 virtual IPSec
TACACS+ server, 661 configuring interface, 191
top attacks, 124
virtual servers
top sessions, 120
configuring, 472
top viruses, 124
traffic history, 124 virus detected
traffic reports, 731 HA statistics, 239
unit operation, 113 virus list, 527
URL filter list, 556 virus name, 263
URL filter list catalog, 556 virus protection. See antivirus
URL override list, 560 virus scan
user group list, 669 protection profile, 490
VIP group list, 462 VLAN
virtual IP group list, 462 jumbo frames, 195
virtual IP list, 451 OSPF, 369
virtual IP pool list, 465 VNC
web content block list, 553 service, 432
web content filter list, 553 VoIP
web content filter list catalog, 553 SIP, 505
wireless monitor, 223 VoIP security, 507
viewport, 143 VPN IPSec (see also IPSec VPN), 611
VIP VPN PPTP, 629
transparent mode, 468
VPN SSL. See SSL VPN
VIP group
VPN tunnel
configuring, 462
IPSec VPN, firewall policy, 399
Virtual IP
VPN, IPSec
transparent mode, 468
firewall policy, 399
VPNs, 629

W
WAIS
service, 432
WAN optimization
explicit mode, 687
monitoring, 690
transparent mode, 687

FortiGate Version 4.0 MR1 Administration Guide


760 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
Index

WAN optimization peer web-based manager, 89, 90


configuring, 688 changing the language, 91
WAN optimization rule connecting to the CLI, 93
configuring, 683 idle timeout, 92
web IPv6 support, 288
default protection profile, 480 language, 91, 288
web category block logging out, 97
changing the host name, 565 online help, 94
CLI configuration, 565 pages, 97
configuration options, 560 screen resolution, 89
report allowed, 566 using the menu, 98
report blocked, 566 using web-based manager lists, 99
report category, 566 web-only mode
report profiles, 566 SSL VPN, 633
report range, 566 WEP, 220
report type, 566 WEP128, 215, 221
reports, 565 WEP64, 215, 221
web content block WiFi protected access, 221
language, 554 wild cards, 30
pattern type, 554 wildcard
protection profile, 494 online help search, 96
web content filter Windows Active Directory, 662
web filter, 554 WINFRAME
web content filter list service, 432
web filter, 553 WINS
web equivalent privacy, 221 service, 432
web filter, 549 wireless
adding a URL to the web URL block list, 557 band, 219
character set, 495 beacon interval, 219
configuring the web content filter list, 554 channel, 219
configuring the web URL block list, 557 configuration, 215
content block, 552 data encryption, 221
filter interaction, 550 fragmentation threshold, 221
FortiGuard, 559 geography, 219
protection profile options, 550 interface, 215
URL block, 555 key, 221
URL category, 327 MAC filter, 221
web content filter list, 553 operation mode, 219
web URL block list, 556 pre-shared key, 221
web filtering options RADIUS server, 221
protection profile, 493 RTS threshold, 221
web filtering service, 263 security, 220
web portal security mode, 221
SSL VPN,SSL VPN web portal settings FortiWiFi-50B, 218
customize, 635 settings FortiWiFi-60A, 218
web resume download block settings FortiWiFi-60AM, 218
protection profile, 494 settings FortiWiFi-60B, 218
web site, content category, 262 SSID, 220
Web UI. See web-based manager SSID broadcast, 220
Tx power, 219
web URL block
viewing monitor, 223
configuring the web URL block list, 557
list, 556 WLAN
list, web filter, 556 interface, 215
protection profile, 494 WLAN interface
adding to a FortiWiFi-50B, 219
adding to a FortiWiFi-60A, 219
adding to a FortiWiFi-60AM, 219
adding to a FortiWiFi-60B, 219
WPA, 215, 220, 221
WPA Radius
wireless security, 221
WPA2, 215, 221
WPA2 Auto, 215, 221

FortiGate Version 4.0 MR1 Administration Guide


01-410-89802-20090903 761
http://docs.fortinet.com/ • Feedback
Index

WPA2 Radius X-Forwarded-For (XFF), 211


wireless security, 221 X-WINDOWS
service, 432
X
X.509 security certificates. See system certificates
Z
XAuth zones
IPSec VPN, phase 1, 618 configuring, 198

FortiGate Version 4.0 MR1 Administration Guide


762 01-410-89802-20090903
http://docs.fortinet.com/ • Feedback
www.fortinet.com
www.fortinet.com

Você também pode gostar