www.fortinet.com
FortiGate Multi-Threat Security Systems I
Administration, Content Inspection and VPNs
Student Guide for FortiOS 5.0 (Revision C)
Course 201
01-50000-0201-20130215-C
© Copyright 2013 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.
Course 201 – Administration, Content Inspection and VPNs
MODULE 1:
MODULE 2:
MODULE 3:
MODULE 4:
MODULE 5:
MODULE 6:
MODULE 7:
Antivirus ............................................................................................................................................................ 82
MODULE 8:
01-50000-0201-20130215-C i
Course 201 – Administration, Content Inspection and VPNs
MODULE 9:
MODULE 10:
01-50000-0201-20130215-C ii
Course 201 - Administration, Content Inspection and VPNs Introduction
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
1
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
VPN
Intrusion Prevention
Application Control
Web Filtering
WAN Optimization
Antispam
Antivirus
Firewall
Fortinet Solution
VPN
Intrusion Prevention
Application Control
Web Filtering
WAN Optimization
Antispam
Antivirus
Firewall
and more…
2
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Fortinet Solution
Web
Firewall AV
Filter
IPS …
FortiOS
Hardware
Security
Automated
and network-level
Specialized update
operating
Purpose-driven service
services
system
hardware
1
1
Application
WAN
Intrusion
DataAntivirus
Secure
Email
High
Endpoint
1
1 Dynamic
Logging and
Traffic
Virtual
Web control
optimization
leak prevention
prevention
VPN
filtering
availability
Firewall
compliance
Wireless routing
Authentication
reporting
shaping
filtering
domains
3
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Fortinet Appliances
FortiClient FortiScan
4
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Device Administration
10
5
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Admin Profiles
11
Admin Profiles
Read Read-Write
System Configuration
Network Configuration Admin
Firewall Configuration
UTM Configuration
Profile
VPN Configuration
etc.
12
6
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Administrators
13
14
7
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Administrator Authentication
15
Administrator Authentication
16
8
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Device Configuration
17
18
9
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
Interface IPs
• Every used interface on the unit must have an IP assigned (in NAT
mode) using one of three methods:
» Manual IP, DHCP assigned, PPPoE (CLI only)
19
Static Gateway
20
10
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
IP and DNS
Configuration
21
22
11
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
DHCP Activity
23
24
12
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
25
• Step 1: Backup and store old configuration (Full config backup from CLI)
• Step 2: Have copy of old firmware available
• Step 3: Have disaster recovery option on standby (especially if remote)
• Step 4: READ THE RELEASE NOTES (upgrade path, bug information)
• Step 5: Double check everything
• Step 6: Upgrade
26
13
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
27
Labs
(OPTIONAL)
• Lab 2: Administrative Access
» Ex 1: Profiles and Administrators
» Ex 2: Restricting Administrator Access
28
14
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Introduction
29
15
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
16
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
17
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
Memory and
Hard drive
Syslog SNMP
Local logging
Remote logging
• Traffic Log
» Forward (Traffic passed/blocked by Firewall policies)
» Local (Traffic aimed directly at, or created by FortiGate device)
» Invalid (Packets considered invalid/malformed and dropped)
• Event Log
» System (System related events)
» Router, VPN, User, WanOpt & Cache, Wifi
• UTM Security Log
» Antivirus, Web Filter, Intrusion Protection, etc.
18
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
utm-incident-
Log Traffic UTM Function Extended-utm Behavior
traffic-log
Enabled Disabled (traffic does not N/A N/A Traffic log generated by kernel (like
go to UTM) today). All new UTM fields empty.
Enabled Enabled (traffic goes to Disabled Either UTM Events generate logs in traffic log
UTM) All traffic through policy generates traffic
log
Disabled Enabled (traffic goes to Disabled Enabled UTM Events generate logs in traffic log
UTM) Only traffic that has a UTM even occur
generates traffic logs
Disabled Enabled (traffic goes to Disabled Disabled Only UTM events generates logs in the
UTM) traffic log (no other traffic logs)
Disabled Enabled (traffic goes to Enabled Enabled UTM Events generate logs in utm log
UTM) Only traffic that has a UTM even occur
generates traffic logs
19
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
10
20
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
• Log severity level indicated in the level field of the log message
11
12
21
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
» Log header
date=2012-08-30 time=12:55:06 log_id=32001 type=utm
subtype=dlp eventtype=dlp level=warning vd=“root”
filteridx=0
y
» Log body
nl
policyid=12345 identidx=67890 sessionid=312 epoch=0
eventid=0 user="user" group="group" srcip=1.1.1.1
srcport=2560 srcintf="lo" dstip=2.2.2.2 dstport=5120
O
dstintf="port1" service=mm1 …….
13
» Log body
srcip=172.16.78.32 srcport=900 srcintf=unknown-0
dstip=1.1.1.32 dstport=800 dstintf=unknown-0
dstcountry="Australia" srccountry="Reserved"
service=800/tcp wanoptapptype=cifs duration=20
policyid=100 user="test user" group="test group"
identidx=200 wanin=400 wanout=300 lanin=200 lanout=100
hostname="host" url="www.abcd.com" msg="Data Leak
Prevention Testing Message" action=block severity=0
infection="carrier end point filter"
14
22
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
» Log body
srcip=172.16.78.88 srcname=host srcport=0 srcintf=unknown-0
dstip=229.118.95.200 dstport=0 dstintf=unknown-0 sessionid=0
status=deny user="test user" group="test group" policyid=0
dstcountry="Reserved" srccountry="Reserved" trandisp=snat+dnat
tranip=0.0.0.0 tranport=0 transip=0.0.0.0 transport=0
service=other proto=0 appid=1 app="AIM" appcat="IM"
applist=unknown-1 duration=0 sentbyte=0 rcvdbyte=0 sentpkt=0
rcvdpkt=0 vpn="vpn0" shapersentname="shaper sent name"
shaperdropsentbyte=16843009 shaperrcvdname="shaper rcvd name"
shaperdroprcvdbyte=16843009 shaperperipname="perip name"
shaperperipdropbyte=16843009 devtype="iPad" osname="linux"
osversion="ver" unauthuser="user" unauthusersource="none"
collectedemail="mail" mastersrcmac=02:02:02:02:02:02
srcmac=01:01:01:01:01:01
Alert Email
16
23
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
SNMP
17
Event Logging
18
24
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
Event Log
19
Monitor
20
25
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
Monitor
21
Monitor
22
26
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
23
Labs
(OPTIONAL)
• Lab 2: Remote Monitoring
» Ex 1: Remote Syslog and SNMP Monitoring
24
27
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Logging and Monitoring
25
28
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Firewall Policies
Module 3
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
29
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Firewall Policies
Types of Policies
• Address
» Policy match based on IPs
• User Identity
» Policy match based on authentication information (user)
• Device Identity
» Policy match based on OS
30
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Firewall Actions
Policy Action
Accept Deny
Deny
31
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
32
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
10
33
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
11
• Device-identify
» Identifies the device through the HTTP user-agent
12
34
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
• Email-collection
» Used in conjunction with device type Collected Emails
» Collects an email to be associated with the device
13
14
35
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
15
16
36
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
17
Firewall Interfaces
Incoming Outgoing
Interface Interface
18
37
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
• FortiGate unit uses Services to determine the types of communication accepted or denied
• Default of ALL services available
• Select a Service from predefined list on FortiGate unit or create a custom service
• Web Proxy Service also available if Incoming Interface is set to web-proxy
• Group Services and Web Proxy Service Group to simplify administration
19
Traffic Logging
Accept Deny
20
38
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
11.12.13.14
Firewall policy
with NAT enabled
wan1 IP address: 200.200.200.200
wan1
200.200.200.200
Source IP address:
200.200.200.200
internal
Source port: 30912
10.10.10.1
Destination IP address:
11.12.13.14
Source IP address: Destination Port: 80
10.10.10.1
Source port: 1025
Destination IP address:
11.12.13.14
Destination Port: 80
21
11.12.13.14
Firewall policy
with NAT + IP pool enabled
wan1 IP pool: 200.200.200.2-200.200.200.10
wan1
200.200.200.200
Source IP address:
200.200.200.?
internal Source port: 30957
10.10.10.1
Destination IP address:
11.12.13.14
Destination Port: 80
Source IP address:
10.10.10.1
Source port: 1025
Destination IP address:
11.12.13.14
Destination Port: 80
22
39
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
23
24
40
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Traffic Shaping
HTTP
FTP
IM
25
26
41
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
11.12.13.14
Firewall policy
with NAT + IP pool enabled + fixed port (CLI only)
wan1 IP pool: 200.200.200.201
wan1
200.200.200.200
Source IP address:
200.200.200.201
internal Source port: 1025
10.10.10.1
Destination IP address:
Source IP address: 11.12.13.14
10.10.10.1 Destination Port: 80
Source port: 1025
Destination IP address:
11.12.13.14
Destination Port: 80
27
wan1
Source IP address:
internal 11.12.13.14
10.10.10.10
Destination IP address:
200.200.200.222
Destination Port: 80
28
42
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
wan1
• Used to allow connections through a FortiGate
using NAT firewall policies
Source IP address:
internal 11.12.13.14
» FortiGate unit can respond to ARP requests on a
10.10.10.10
network for a server that is installed
Destination on another
IP address:
200.200.200.200
network Destination Port: 80
» Used for (1) Server Redundancy and Load Balancing;
(2) IPSec VPN site-to-site with identical subnets at
VIP translates destination
both sites;
200.200.200.200 -> etc.
10.10.10.10
» VIP Group: A group of Virtual IPs for ease-of-use
29
30
43
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Threat Management
31
32
44
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Traffic Shapers
Guaranteed Bandwidth
Maximum Bandwidth
Guaranteed Bandwidth
Guaranteed Bandwidth
Maximum Bandwidth Maximum Bandwidth
Guaranteed Bandwidth
Maximum Bandwidth
34
45
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Traffic Shapers
Guaranteed Bandwidth
Maximum Bandwidth
35
DoS Policies
36
46
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Endpoint Control
Up to date ?
Disallowed software
installed ?
37
38
47
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Object Tagging
39
Monitor
40
48
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Firewall Policies
Labs
(OPTIONAL)
• Lab 2: Traffic Log
» Ex 1: Enabling Traffic Logging
» Ex 2: Device Policies
41
42
49
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
50
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
Authentication
?
A
must be established to ensure that only A
A
authorized parties can access the networkA
51
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
Digital Directory
RADIUS LDAP certificates Services TACACS+
Remote Users
52
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
User Groups
Active
Paris Visitors Directory
• User groups are assigned one of four group types: Firewall, Fortinet Single Sign on
(FSSO), Guest and Radius Single Sign on (RSSO)
• Firewall user groups provide access to firewall policies that require authentication
• Directory Service user groups used to allow single sign on for Active Directory or Novell
eDirectory users
Identity-Based Policies
Policy
• Identity-based policies are
enabled to require firewall Enable Identity Based Policy
authentication
• Authentication rules identify the
?
Authentication Rule
users and user groups that will
be forced to authenticate User/Group
» Also defines other aspects of
authentication, including services, Services
schedules, UTM, logging and
traffic shaping Schedules
Logging
Threat management
Traffic Shaping
53
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
Disclaimers
Authentication Timeout
10
54
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
Password Policy
11
Two-Factor Authentication
12
55
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
Two-Factor Authentication
13
Policy Configuration
14
56
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
User Monitor
15
Labs
16
57
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Local User Authentication
17
58
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
SSL VPN
Module 5
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
59
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
FortiGate VPN
60
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
61
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
User Groups
• Web mode and tunnel mode both require a firewall policy for
authentication
»Tunnel mode requires additional policies to allow internal network
access
• Mode(s) user has access to is determined by authentication policy
» Determines the portal page users are presented
Authentication
62
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
10
63
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
11
12
64
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
• Only traffic destined for the tunnel IP range network will be routed over
the SSL VPN
• If access to another inside network is desired, the client will need to
create a static route pointing to their own SSL VPN interface
» Associated firewall policies must exist
13
14
65
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
16
66
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
17
18
67
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
19
Configuration
20
68
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
Configuration
21
Labs
22
69
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs SSL VPN
23
70
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
IPSec VPN
Module 6
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
71
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
IPSec VPN
Private network
Data
confidential
Data has
integrity
Sender
authenticated
IPSec VPN
• Provides:
» Authentication of the sender
» Confidentiality of data
» Proof that data has not been tampered with
72
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
IPSec VPN
73
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
Phase 1
KB IDs:
11657
13574
74
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
Phase 2
10
75
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
Interface Mode
11
Tunnel Mode
12
76
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
13
Overlapping Subnets
14
77
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
Headquarters
Site-to-site
Branch office
15
16
78
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
17
Configuration
18
79
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
Configuration
19
Labs
20
80
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs IPSec VPN
21
81
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Antivirus
Module 7
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
82
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Conserve Mode
Conserve Mode
83
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
AV Fail-Open
• There are currently two conditions that can cause the FortiGate unit to
operate in AV fail-open mode:
» The system is low on memory and has entered conserve mode
» The individual proxy pool is full (no free connections are available)
• With the first condition, low memory, the av-failopen setting will be
applied
» The default for this setting is Pass
AV Fail-Open
84
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
AV Fail-Open
Antivirus
85
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
.jpg
Proxy-Based Scanning
10
86
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Flow-Based Scanning
• File is scanned on a
packet-by-packet basis as
it passes through the
FortiGate unit
• Faster scanning, but lower
accuracy rate
» Difficulty in catching virus
variants
• Only available on certain
models
• Non-proxy scanning
11
Virus Scanning
Regular
Extended
Extreme
Flow-based
12
87
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Unknown Viruses
13
Known Virus
14
88
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Heuristics Scanning
Virus-like attribute
+ Virus-like attribute
+ Virus-like attribute
15
Antivirus Profiles
16
89
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
17
Quarantine
• Infected, blocked or
suspicious files can be
quarantined to the hard
drive on the FortiGate
unit or to the
FortiAnalyzer device
» Files quarantined based
on their protocol
? Local hard drive
» Information regarding
quarantined files is
displayed in the logs FortiAnalyzer
18
90
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
Logs
19
Labs
20
91
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Antivirus
21
92
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
Email Filtering
Module 8
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
93
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
Email Filtering
Email filtering
SPAM?
Spam Actions
94
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
95
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
Banned word
Return Email DNS (on Body)
FortiGuard IP
FortiGuard URL
FortiGuard Checksum
DNSBL & ORDBL
96
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
Our online
pharmacy offers
great prices on hash
all your
prescription
• The FortiGate unit medications.
sends a hash of
the email message
to the FortiGuard
Antispam Service
• FortiGuard
Antispam Service
compares the hash
received to hashes
of known spam
messages
10
97
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
11
12
98
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
13
14
99
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
• Confirms that sending email domain from the reply-to field resolves to
an IP Address
» Domain the email gets sent to, should resolve to an IP
• Does NOT perform any kind of comparison to sender’s IP
15
Banned words
• FortiGate unit blocks Let us fill all your prescription
Drugs
email based on words or drugs. Visit our online pharmacy
Score=10
for great prices on prescription
patterns in the message medications. We offer the widest
• A weight is assigned to selection of popular drugs. Pharmacy
Score=5
any banned words in the
message Prescription
Score=5
• If threshold is exceeded,
the message is marked
Threshold=18
as spam
10 +5 +5 =20
• Can define Banned
words using Wildcards
and regular expressions
16
100
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
17
18
101
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
19
Cache
• Caching reduces IP address:
FortiGuard requests; 10.10.10.1
can improve
URL:
performance www.acme.com
• Small % of system
memory dedicated to Message
checksum:
cache x65Fsd34c
• Query results cached
until TTL setting is
reached
• Alternate port 8888 for
access to FortiGuard
servers
20
102
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
21
Labs
22
103
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Email Filtering
23
104
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Web Filtering
Module 9
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
105
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Web Filtering
106
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
107
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
108
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
www.acme.com
DNS Request
DNS Response
!
TCP 3-Way Handshake
HTTP GET
! HTTP 200
10
109
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Exempt Block
URL
Web URL Allow FortiGuard
Filter Filter
Block Allow
Block Page
Allow
Block Advanced Content
Block Page
Filter Filter
Allow Block
Block Page
Allow
Block
Block Page Virus Scan Display Page
11
• Proxy-Based
» Highly secure
» Traffic is cached
• Flow-Based
» High throughput
» No caching
» Not as secure
• DNS-Based
» Very lightweight
» Hostname filtering only
» No advanced options, URL and FortiGuard only
12
110
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
13
14
111
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
www.mypage.com/index.html
Block
Allow
Monitor
Exempt
www.mypage.com
15
• Safe Search is used by search sites to prevent explicit web sites and
images from appearing in search results
• FortiGate unit rewrites the search URL to include the required codes to
enable Safe Search
» Supported for Google, Bing and Yahoo!
» Does not force strict safe search
• Youtube EDU available
» Instructions for Youtube will include value to enter on FortiGate unit
16
112
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Allow
Block
Monitor
Warning
Authenticate
www.mypage.com
17
18
113
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
19
FortiGuard Caching
114
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Category:
“Games” Quota Games
21
Rating Submissions
22
115
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Rating Override
www.acme.com
Sub-Category: Information and Computer Security
23
Rating Override
24
116
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Local Categories
25
Warning Action
26
117
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Authenticate Action
Marketing
www.hackthissite.org
27
28
118
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Web Filtering
Labs
29
30
119
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Application Control
Module 10
© 2013 Fortinet Training Services. This training may not be recorded in any medium, disclosed, copied, reproduced or
1 distributed to anyone without prior written consent of an authorized representative of Fortinet. Rev. 20130215-C
Module Objectives
120
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Application Control
121
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
122
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
123
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Order of Operations
Implicit Rules
10
124
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
11
Categories
12
125
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Proper Identification
13
? ?
?
?
14
126
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
15
Peer-to-Peer Detection
16
127
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Peer-to-Peer Detection
• Peer-to-peer transfer
» 1 Client
» N Servers
17
Peer-to-Peer Detection
18
128
01-50000-0201-20130215-C
Course 201 - Administration, Content Inspection and VPNs Application Control
Labs
19
20
129
01-50000-0201-20130215-C
FortiGate Multi-Threat Security Systems I
Administration, Content Inspection and VPNs
www.fortinet.com
FortiGate Multi-Threat Security Systems I
Administration, Content Inspection and VPNs
Student Lab Guide for FortiOS 5.0 (Revision C)
Course 201
01-50000-0201-20130215-C
© Copyright 2013 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.
Table of Contents
MODULE 1 ............................................................................................................................... 9
MODULE 2 ............................................................................................................................. 21
MODULE 3 ............................................................................................................................. 28
Page |1
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Table of Contents
MODULE 4 ............................................................................................................................. 42
MODULE 5 ............................................................................................................................. 44
MODULE 6 ............................................................................................................................. 51
MODULE 7 ............................................................................................................................. 54
MODULE 8 ............................................................................................................................. 57
MODULE 9 ............................................................................................................................. 59
MODULE 10 ........................................................................................................................... 63
Page |2
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Virtual Lab Environment Basics
This section provides details of the virtual lab environment that will be used for the hands-on labs in
this course. Steps are included for connecting to the virtual environment along with troubleshooting
tips to help students easily navigate the lab configuration.
Alert: The following section is only applicable to the Fortinet hosted virtual lab
environment. Please ignore this section if you are using an alternate classroom lab
environment unless otherwise directed by your trainer. If you are uncertain, consult your
trainer to find out which lab setup documentation you must follow.
The network diagram below shows the configuration of the virtual environment that students will use
in the course.
Page |3
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Virtual Lab Environment Basics
1. Run the TrueLab System Checker to verify the compatibility of your computer with the virtual
lab environment.
Use the URL that is specific to your location.
Americas:
http://truelab.hatsize.com/syscheck
EMEA:
http://truelab.hatsize.com/syscheck/frankfurt/
APAC:
http://truelab.hatsize.com/syscheck/singapore/
Click Run if a security warning window appears.
The TrueLab System Checker will determine whether a connection can be established from
the PC to the TrueLab environment. It can also help troubleshoot connectivity problems
related to the Java Virtual Machine, company firewall, or proxy server.
If the PC is successfully able to connect to the TrueLab virtual lab environment a Success
message will be displayed.
Page |4
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Virtual Lab Environment Basics
If a status of Failed is displayed, verify the on-screen messages to identify potential problem
areas or click the Troubleshooter link to help diagnose any problems that were encountered.
For assistance with troubleshooting speak to your instructor.
2. If a status of SUCCESS is displayed, log in to the virtual lab portal by browsing to the
following URL:
Americas:
http://remotelabs.training.fortinet.com/
EMEA:
http://virtual.mclabs.com/
Enter the username and password provided by the instructor and click LOGIN.
3. Select the time zone for your location from the drop-down menu and click UPDATE.
By selecting the proper time zone you ensure that the class schedule is accurate.
Page |5
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Virtual Lab Environment Basics
4. The virtual lab Java applet is launched. Select a resolution for the applet and click Open to
access the Windows 2003 Server device in the virtual lab environment. This will serve as the
primary student machine for the classroom exercises.
Note: If for any reason the connection to the virtual Windows 2003 Server is lost, regain
access by selecting Operations > Disconnect and then Operations > Connect to Primary from
the menu.
The instructor will provide a description of each of the virtual systems available to you in the
virtual lab environment.
Page |6
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Virtual Lab Environment Basics
Troubleshooting Tips
It is not recommended to connect to the virtual lab environment using a wireless (Wi-Fi)
connection or a VPN tunnel. For optimal performance, connect to the lab environment
through a dedicated LAN connection.
Ensure that the company network or firewall policies are not blocking Java applets.
Students should ensure that the following settings are configured on their computer:
− Screen savers should be disabled on the computer
− The Power Scheme used on the computer should be set to Always on
− In the Java Control Panel (located in the Windows Control Panel) ensure that Java
console is set to Show console. It is recommended that the Java console be left open
as it often provides useful logs for troubleshooting.
If you get disconnected unexpectedly from any of the virtual machines (or from the virtual
lab portal) please reattempt a connection. If unable to reconnect repeatedly after multiple
attempts, please notify the instructor.
If during the labs, particularly when reloading configuration files, you see a message
similar to the one shown below, go to the console and enter the following CLI command:
execute update-now
This message indicates that the FGT VM is waiting for a response from the authentication
server. The command ‘execute update-now’ will resend the request and force a response.
Page |7
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Classroom Lab Configuration
The following diagram illustrates the classroom network configuration that will be used for the labs in
this course. Each student has an identical lab environment and has full control of their lab devices.
− 2 FortiGate devices
− Windows XP
− Linux Server
Page |8
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
This first lab will provide an initial orientation to the CLI and administrative GUI and will guide the
student through the basic setup of the FortiGate unit. This lab will demonstrate how to properly
backup and restore a configuration file, as well as manipulate administrative access to a FortiGate
unit.
Page |9
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
The steps below only need to be performed if your virtual lab set-up has been started from a blank
FortiGate image. Before proceeding, please check with your instructor to confirm if these steps are
required for your particular classroom lab configuration.
1. Connect to the console of the Student FortiGate device (in the virtual lab applet, go to
Operations > Connect to Secondary > Student) and at the login screen, enter the default
username of admin (all lowercase) and leave the password blank.
2. To access the Student FortiGate device using the GUI, you must first modify the port3
interface settings by executing the following CLI commands:
conf system interface
edit port3
set ip 10.0.1.254/24
set allowaccess http
end
You have now configured the port3 interface with a proper IP address and device access
settings.
4. Open a web browser and enter the following URL to access the GUI for the Student
FortiGate device:
http://10.0.1.254
Accept the FortiGate unit’s self-signed certificate or security exemption if a security warning
appears.
HTTPS is the recommended protocol for administrative access to the FortiGate unit. Other
available protocols include SSH, PING, SNMP, HTTP and Telnet.
Note: To access the FortiGate GUI using a standard web browser, cookies and JavaScript
must be enabled for proper rendering and display of the graphical user interface.
P a g e | 10
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
The login page of the Student FortiGate device should now be displayed. Please do not log
in at this point. You will have the opportunity to explore the FortiGate unit’s GUI in a later
exercise.
If you are not presented with a login page, check with your Instructor before proceeding.
5. Connect to the console of the Remote FortiGate device (in the virtual lab applet, go to
Operations > Connect to Secondary > Remote) and at the login screen, enter the default
username of admin (all lowercase) and leave the password blank.
6. Enter the following CLI commands to set the port4 IP address and access control settings for
your device.
conf system interface
edit port4
set ip 10.200.3.1/24
set allowaccess http
end
7. You will also need to set a route to allow connections from your remote Windows Server host.
Execute the following commands to set this static route. (Routing will be explained in more
detail in a later section.)
conf route static
edit 0
set device port4
set gateway 10.200.3.254
end
P a g e | 11
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
In this exercise, students will be introduced to the FortiGate unit’s command line interface (CLI).
1. Connect to the console of the Student FortiGate device and at the Fortigate-VM prompt, and
at the login screen log in with the default username of admin (all lowercase) and no
password.
2. Type the following command to display status information about the FortiGate unit:
get system status
The output displays the FortiGate unit serial number, firmware build, operational mode, and
additional settings.
Confirm that the firmware build is the correct version for this class.
3. Type the following command to see a full list of accepted objects for the get command:
get ?
At the --More-- prompt in the CLI, press the spacebar to continue scrolling or <enter> to
scroll one line at a time. Press <q> to exit.
Depending on objects and branches used with this command, there may be other sub-
keywords and additional parameters to enter.
4. Press the up arrow key to display the previous get system status command and try
some of the control key sequences that are summarized below.
Previous command up arrow, or CTRL+P
Next command down arrow, or CTRL+N
Beginning of line CTRL+A
End of line CTRL+E
Back one word CTRL+B
Forward one word CTRL+F
Delete current character CTRL+D
Abort command and exit branch CTRL+C
Clear screen CTRL+L
CTRL+C is context sensitive and in general aborts the current command and moves up to
the previous command branch level. If already at the root branch level, CTRL+C will force a
logout of the current session and another login will be required.
P a g e | 12
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
5. Type the following command and press the <tab> key 2 or 3 times.
execute <tab>
The command displays the list of available system utility commands one at a time each time
the <tab> key is pressed.
6. Type the following command to see the entire list of execute commands:
execute ?
7. Enter the following CLI commands and compare the available keywords for each one:
config ?
show ?
config begins the configuration mode while show displays the configuration. The only
difference is show full-configuration. The default behavior of the show command is
to only display the differences from the factory-default configuration.
8. Enter the following CLI commands to display the FortiGate unit’s internal interface
configuration settings and compare the output for each of them:
show system interface port3
show full-configuration system interface port3
Only the characters shown in bold type face need to be typed, optionally followed by <tab>,
to complete the command key word. Use this technique to reduce the number of keystrokes
to enter information. CLI commands can be entered in an abbreviated form as long as
enough characters are entered to ensure the uniqueness of the command keyword.
P a g e | 13
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
From the Windows Server, you first will need to connect to each FortiGate device and restore the
configuration files that are needed to complete the upcoming exercises.
1. From the GUI on the Student FortiGate device go to System > Dashboard > Status. Under
System Information, click Restore.
2. Browse the Desktop and navigate to the Resources > Module1 folder.
P a g e | 14
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
After restoring the configuration the FortiGate unit will automatically reboot and the following
dialog is displayed:
The length of the boot process is affected by how complex the configuration is. The more
complicated the configuration, the longer it will take to parse it and complete the boot process.
Most configurations take less than 1 minute to complete the reboot process.
3. Reconnect to the GUI on the Student FortiGate device and verify the restored configuration.
Go to System > Network > Interface and check your network interfaces.
Go to Router > Static > Static Route and check your default route.
4. Execute the following steps to check and test the Student and Remote FortiGate device DNS
configuration. This configuration will be used to simplify access to the lab devices.
− Go to System > Admin > Settings and under Display Options on GUI verify that DNS
Database is selected.
− Go to System > Network > DNS Server and review the student and remote DNS
zones.
− In the student DNS zone, verify the IPv4 Address records and Pointer records for the
Student FortiGate device and the Windows Server (10.0.1.10).
− In the Remote DNS zone, check the IPv4 Address records and Pointer records for the
Remote FortiGate device and the Windows host (10.0.2.10).
5. From a DOS command prompt on the virtual Windows Server, execute the following
commands to verify the DNS lookup functionality. DNS requests are being sent to port3, and
recursive DNS requests are allowed on this interface.
nslookup server.student.lab 10.0.1.254
nslookup fgt.student.lab 10.0.1.254
nslookup pc.remote.lab 10.0.1.254
nslookup fgt.remote.lab 10.0.1.254
P a g e | 15
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Initial Setup and Configuration
6. In a web browser on the virtual Windows Server, connect to the following web pages to verify
that the GUI of the Student and Remote FortiGate devices can be accessed using their DNS
hostnames:
http://fgt.student.lab
http://fgt.remote.lab
1. Connect to the GUI on the Student FortiGate device by accessing the URL:
https://fgt.student.lab
2. Go to System > Dashboard > Status and under System Information, click Backup.
Select Encrypt configuration file and enter the password: fortinet. Click Backup and
save the encrypted configuration file to the Desktop with the filename student-initial-enc.conf.
Caution: When backing up the FortiGate unit’s configuration, be sure to use a naming
convention that you understand and which identifies both the date and the device
information. Every time that you log in and make changes to your device (even if the
change seems minor or insignificant), you should ALWAYS make a backup of the
configuration file. This will always be the best form of protection against problems.
P a g e | 16
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
3. Next try restoring the encrypted configuration file. Browse the Desktop and navigate to the
file student-initial-enc.conf and click Restore.
This time you will need to enter the password fortinet as this file is encrypted.
Using WordPad, open the file student-initial.conf. In another instance of WordPad, open the
file remote-enc.conf and compare the details in both.
Note: In both the normal and encrypted configuration the top of the file acts as a
header, describing the firmware and model information this configuration belongs
to.
P a g e | 17
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Administrative Access
The aim of this lab will be to demonstrate how to create and modify administrative access
permissions.
1. From the GUI on the Student FortiGate device, go to System > Admin > Settings and select
Enable Password Policy.
Configure the password policy using the following settings:
Minimum length: 8
P a g e | 18
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Administrative Access
2. Log out of the GUI then log back in again and you will be prompted to enter a new
administrator password. Enter a new password that meets the requirements configured
above.
3. Next, go to System > Admin > Admin Profile and create a new Admin profile called
UTM_Admin_Profile. Set UTM Security Configuration to Read-Write and set all other
permissions to Read Only.
4. Go to System > Admin > Administrators to create a new Admin user. Set Admin Profile to
the new profile you created in the previous step. By doing this, you are limiting this Admin
user’s access so that they will only able to modify and create UTM profiles.
Note: Administrator names and passwords are case-sensitive. You cannot include the
< > ( ) # ” characters in an administrator name or password. Spaces are allowed, but
not as the first or last character. Spaces in a name or password can be confusing and
require the use of quotes to enter the name in the CLI.
To view the configuration for administrative users and profiles, type the following CLI
commands:
show system admin
show system accprofile
5. Log out of the GUI on the Student FortiGate device and log back in using the UTM-only
Admin user created earlier. The warning message “You do not have permission to access
the requested page” is displayed. Close the No Access dialog box.
6. Test this administrator’s access by attempting to create or modify various settings on the
Student FortiGate device.
For convenience in the labs, the admin password will not be set in the configuration files
used in the subsequent modules.
P a g e | 19
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Administrative Access
1. On the Remote FortiGate device, edit the admin account and enable the setting Restrict this
Admin Login from Trusted Hosts Only. Set Trusted Host #1 to the address 10.0.2.0/24.
Now, try connecting to the GUI of the Remote FortiGate device again. What is the result this
time?
Because you are connecting from the 10.200.1.1 address (because of NAT on the
Student FortiGate device) you should notice that you are no longer able to connect to the
device since restricting the connecting source IP using Trusted Hosts.
2. Attempt to ping the IP address 10.200.3.1. You should note that the ping no longer
responds. This type of access is also affected by the restriction on source IP which we have
configured above.
3. Go to the console of the Remote FortiGate device and enter the following CLI commands to
add 10.200.0.0/16 as the second trusted IP address (Trusted Host #2) of the admin
account:
conf sys admin
edit admin
set trusthost2
end
4. Test the GUI and ping access again to the IP address 10.200.3.1. You should now be
able to connect to the GUI of the Remote device and ping it as well.
5. Go to System > Dashboard > Status and under System Information, click Details for Current
Administrator.
The administrators currently logged in to the FortiGate unit are displayed.
P a g e | 20
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Status Monitor and Event Log
The aim of this lab is for students to work with the event log and monitoring on a FortiGate unit.
1. From the GUI of the Student FortiGate device, go to System > Dashboard > Status and
locate the System Resources widget.
2. Some widgets are not displayed on the dashboard by default. Click Widget to display the list
of widgets available to add to the dashboard. Click the Log and Archive Statistics widget from
the pop-up window to add it to the dashboard.
P a g e | 21
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Status Monitor and Event Log
3. Hover the mouse over the title bar of the System Resources widget and click Edit to create a
custom widget.
4. The Alert Message Console widget displays recent system events, such as system restart
and firmware upgrade.
Hover the mouse over the title bar of the Alert Message Console widget and click History to
view the entire message list.
5. Go to System > Dashboard and add a new dashboard. Enter any name of your choice for
the new dashboard and select the single column display.
P a g e | 22
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Status Monitor and Event Log
6. Next add the Top Sessions widget on your new dashboard. Click the edit icon in the title bar
of the Top Sessions widget and observe the different ways in which Top Sessions can be
reported. For example, by top destination address, top applications etc. You can also select
to display the top sessions by Source and Destination interfaces. Create your own
customized Top Sessions widget and examine the sessions that are listed.
7. Test the functionality of the refresh, page forward, and page back icons in this window. You
may need to generate some additional traffic in order to properly test these functions.
8. Click Dashboard and select Reset Dashboards to re-display the default dashboard.
1. In this lab we will be working with local logging to the disk. On a new device you will first
need to format the hard drive.
From the Student FortiGate CLI, execute the following command to check the system status.
get system status
Verify the Log hard disk status. If it is set to Available proceed to Step 2, if the status
appears as Need format, enter the following command:
execute formatlogdisk
2. Once the system has restarted, check the log disk settings by executing the following
command:
config log disk setting
get
You should observe that the status is enabled and SQL logging is enabled for all log types.
4. Return to the Student FortGate device and log out of the GUI. When logging back in, use an
incorrect password once and then use the correct password.
Log back in again with the correct password then go to Log & Report > Event Log > System
and examine the log to find the bad password event.
5. Go to Firewall Objects > Address > Address, and create a new firewall address in the
configuration. For example, set Type to FQDN and set the FQDN value to
www.fortinet.com.
P a g e | 23
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Status Monitor and Event Log
6. Next go to Log & Report > Event Log > System and review the log entries.
7. Go to Log & Report > Log Config > Log Setting and uncheck the option System activity event.
Click Apply.
Different types of log entries fall into different categories. Only enable logging for the
activity(s) that you need to monitor. Otherwise your logs will become cluttered with
information that is of no use to you.
8. Go to Firewall Objects > Address > Address and create another firewall address entry. Go to
Log & Report > Event Log > System and review the log entries again.
Note that the entries are no longer visible for this activity. With this option deselected in the
Event Logging settings, you will no longer see entries in the log for Admin users logging
on/off or making changes to the unit’s configuration. Other types of log entries will still appear.
9. Go to Log & Report > Log Config > Log Settings and re-enable System activity event.
P a g e | 24
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Remote Monitoring
The aim of this lab is for students to set up logging to a remote device and monitoring of the
FortiGate unit’s behavior. It can be advantageous to use remote monitoring instead of local
monitoring in order to reduce resource usage. For example, while the GUI widgets provide useful
displays of your system information, they also carry a significant resource cost and should be used
sparingly.
The LINUX host in your student lab environment has been pre-configured for you to allow remote
syslog.
1. From the CLI on the Student FortiGate device enter the following commands to set up
logging to the syslog server:
conf log syslogd setting
set status enable
set facility local6
set server 10.200.1.254
end
3. Repeat the previous steps from the CLI on the Remote FortiGate device.
P a g e | 25
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Remote Monitoring
4. From the virtual Windows Server desktop launch the putty.exe application and open an SSH
session to the LINUX host (10.200.1.254).
5. Run the following command to monitor the FortiGate unit syslog messages which are
mapped to their own file by the local6 facility.
tail –f /var/log/fortinet
6. Leave the SSH window open and return to the Student FortiGate device and generate some
log entries by doing the following:
− Attempt to log in with invalid credentials
− Make a minor configuration change
7. From the GUI on the Student FortiGate device, go System > Config > SNMP to enable
SNMP monitoring. Select Enable for the SNMP Agent then click Apply.
P a g e | 26
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Remote Monitoring
8. Create a new SNMP v3 security name using the settings displayed below. Set the Auth
password to fortinet.
Click OK.
9. Go to System > Network > Interface and edit port1. Enable SNMP under Administrative
Access settings.
10. Leave the SSH window open that is currently running the Tail command and open a new
SSH connection to the LINUX host.
Type the following command:
snmpwalk -v 3 -a sha -A fortinet -u training -l authNoPriv
10.200.1.1
P a g e | 27
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
The aim of this lab is for students to work with firewall policies and examine the FortiGate unit
behavior when policies are re-ordered.
1. From the Windows Server, you first will need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\Module3\student-policy.conf.
2. From the GUI on the Student FortiGate device, go to Firewall Objects > Address > Address
and create the following address object:
Address Name: STUDENT_INTERNAL
Type: Subnet
Subnet/IP Range: 10.0.1.0/255.255.255.0
Interface : Any
P a g e | 28
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
3. The unrestricted port3port1 policy will need to be temporarily disabled in the policy list. To
do this, go to Policy > Policy > Policy, right-click the unrestricted port3port1 policy and
select Status > Disable.
4. Next click Create New to add a new firewall policy to provide general Internet access from
the internal network. Configure the following settings:
Policy Type: Firewall
Policy Subtype: Address
Incoming Interface: port3
Source Address: STUDENT_INTERNAL
Outgoing Interface: port1
Destination Address: all
Schedule: always
Service: Multiple: HTTP, HTTPS, DNS, ALL_ICMP, SSH
Action: ACCEPT
Log Allowed Traffic: Enabled
Enable NAT: Enabled
Use Destination Interface Address: Enabled
Comments: General Internet access
When creating firewall policies, keep in mind that the FortiGate device is a stateful firewall,
therefore, a firewall policy only needs to be created for the direction of the originating traffic.
5. From the virtual Windows Server desktop, open a web browser and connect to various
external web servers.
6. On the Student FortiGate device go to Policy > Policy and right-click any of the column
headings. Select Column Settings > Count to display a packet and bytes count for each rule
in the policy list display. Move this column accordingly for easier viewing.
P a g e | 29
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
7. From the CLI, enter the following command to see the source NAT action.
#get system session list
Sample Output:
Note that the new source address being applied is that of the destination interface
port1(10.200.1.1).
1. Use the same steps you performed earlier to create a second firewall policy. Configure the
following settings:
P a g e | 30
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
2. From the Windows Server, open a DOS command prompt and ping the port1 gateway as
follows.
ping –t 10.200.1.254
Provided you have not changed the rule ordering, the ping should still work as it matches the
ACCEPT policy and not the DENY policy just created. This demonstrates the behavior of
policy ordering. The second policy was never checked because the traffic matched the first
policy.
3. From the GUI on the Student FortiGate device, go to Policy > Policy > Policy and right-click
any of the column headings. Select Column Settings > ID. Move this column accordingly for
easier viewing. By default only the sequence number of the firewall policy is displayed in the
GUI.
4. Next, click the Seq.# for the DENY policy created previously and drag this policy upwards to
position it before the General Internet access policy.
5. Return to the Windows Server and examine the DOS command prompt window still running
the continuous ping. You should observe that this traffic is now blocked.
In this exercise, a virtual IP address will be configured to allow remote Internet connections to
the Windows Server located at 10.0.1.10.
1. Go to Firewall Objects > Virtual IP > Virtual IP and create a new virtual IP mapping with the
following details:
Name: VIP_WIN2K3
External Interface: port1
Type: Static NAT
External IP Address/Range: 10.200.1.200
Mapped IP Address/Range: 10.0.1.10
P a g e | 31
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
2. Next, create a new firewall policy to provide access to the web server. Configure the
following settings:
3. The firewall is stateful so any existing sessions will not use this new firewall policy until they
time out or are cleared. The sessions can be cleared individually from the session widget on
the status page or from the CLI by executing the following:
diag sys session clear
4. Connect to the console of the remote Windows host. (From the virtual lab applet, go to
Operations > Connect to Secondary > WinXP to connect to the console of your WINXP host.)
On the WinXP desktop, open a web browser and access the following URL:
http://10.200.1.200
5. From the CLI on the Student FortiGate device, check the destination NAT entries in the
session table by using the following command:
#get system session list
Sample Output:
P a g e | 32
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
6. On the virtual Windows Server desktop open a web browser and connect to a few external
web sites. Now examine the session information again as follows:
#get system session list
Sample Output:
Note that the outgoing connections from the Windows Server are now being NATed with the
VIP address as opposed to the firewall address. This is a behavior of the static NAT VIP.
That is, when SNAT is enabled on a policy, a VIP static NAT takes priority over the
destination interface IP address.
P a g e | 33
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
Currently, all traffic generated from the Windows Server through the Student FortiGate
device has a translated source IP address of 10.200.1.200 because of the static NAT
translation in the VIP.
In this exercise, an IP address pool will be applied to a new rule which will override this
behavior.
1. From the GUI on the Student FortiGate device, go to Firewall Objects > Virtual IP > IP Pool
and create a new IP pool using the following settings:
Name: WIN2K3_EXT_IP
External IP Range/Subnet: 10.200.1.100
2. Go to Policy > Policy > Policy, and right-click the outgoing General Internet access policy.
Select Copy Policy then right-click the same policy again and select Paste > Above.
3. Select the new copy of the General Internet access policy and configure the following
settings:
Policy Type: Firewall
Policy Subtype: Address
Incoming Interface: port3
Source Address: WIN2K3
Outgoing Interface: port1
Destination Address: all
Schedule: always
Service: ALL
Action: ACCEPT
Log Allowed Traffic: Enabled
Enable NAT: Enabled
Use Dynamic IP Pool: WIN2K3_EXT_IP
Comments: Windows Server source NAT override
Click OK to save the policy and verify that you have enabled it.
4. The firewall is stateful so any existing sessions will not use this new firewall policy until they
time out or are cleared. The sessions can be cleared individually from the session widget on
the status page or from the CLI by executing the following:
diag sys session clear
P a g e | 34
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Firewall Policy
5. Connect to a few external web sites and then examine the session table to check the source
NAT used. From the CLI on the Student FortiGate device enter the following command to
verify the source NAT IP address:
# get system session list
Sample Output:
STUDENT # get system session list
PROTO EXPIRE SOURCE SOURCE-NAT DESTINATION DESTINATION-NAT
tcp 3599 10.0.1.10:3963 10.200.1.100:64379 74.125.225.126:443 -
tcp 3599 10.0.1.10:3961 10.200.1.100:64377 74.125.225.111:443 -
tcp 3552 10.0.1.10:3953 10.200.1.100:64369 76.74.133.167:80 -
tcp 3597 10.0.1.10:3956 10.200.1.100:64372 74.125.225.118:80 -
tcp 3597 10.0.1.10:3954 10.200.1.100:64370 74.125.225.117:80 -
tcp 3598 10.0.1.10:3959 10.200.1.100:64375 199.7.57.72:80 -
tcp 16 10.0.1.10:3948 10.200.1.100:64364 66.36.238.121:22 -
tcp 3598 10.0.1.10:3958 10.200.1.100:64374 209.85.225.84:443 -
tcp 3599 10.0.1.10:3962 10.200.1.100:64378 74.125.225.99:443 -
tcp 0 10.0.1.10:3960 10.200.1.100:64376 98.139.200.238:80 -
tcp 3597 10.0.1.10:3955 10.200.1.100:64371 74.125.225.118:80 -
Observe that the source NAT address is now 10.200.1.100 as configured in the VIP pool,
therefore the order of precedence is IP Pool > Static-NAT VIP > Destination Interface.
P a g e | 35
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
The aim of this lab is to read traffic logs and become familiar with its contents.
1. Go to Policy > Policy > Policy and click the Seq.# of the DENY policy that you created
previously. Drag this policy to position it BEFORE the Window Server Source NAT Override
policy.
2. Edit the DENY policy and verify that Log Violation Traffic is enabled.
3. From the Windows Server, open a DOS command prompt and ping the port1 gateway as
follows.
ping –t 10.200.1.254
Provided you have positioned the rule correctly this traffic should be blocked, and timeout.
4. From the GUI on the Student FortiGate device, go to Log & Report > Traffic Log > Forward
Traffic to examine the log entries. You should observe violation traffic entries.
From the Windows Server, you should observe that the ping now succeeds.
6. From the GUI on the Student FortiGate device, go to Log & Report > Traffic Log > Forward
Traffic.
The log entries will no longer show violation traffic, but summaries of the ping traffic that
passed.
P a g e | 36
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
In this exercise you will create a Firewall policy that uses email captive portal. Once the device is
learnt, access to a test web server should be given to the device
1. From the Windows host, you first will need to connect to the Student FortiGate device and
restore the configuration file needed for this exercise.
Restore the following configuration file: Resources\Delta\delta-student-initial.conf.
2. Edit the outgoing port3 to port3 firewall policy using the following settings:
Policy Type: Firewall
Policy Subtype: Device Identity
Incoming Interface: port3
Source Address: STUDENT_INTERNAL
Outgoing Interface: port2
Enable NAT: Enabled. Select Use Destination Interface.
Next click Create New under Configure Authentication Rules and create the following sub-
policies:
Sub-policy 1:
P a g e | 37
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
Sub-policy 2:
3. Use drag-and-drop to reorder the sub-policies. The captive portal policy should be last in the
sub-policy list because this rule should only be matched if the device has not already been
identified.
In this example, the first web traffic from the client matches the email captive portal rule, the
subsequent traffic matches the collected email device object as we now have this information.
Note when saving this policy you will be informed that device identification will be enabled on
port3.
Click OK.
P a g e | 38
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
5. You will now test the device policy on the Student FortiGate device. First execute the
following CLI commands to disable the email DNS check for the captive portal. (This step is
required for the purposes of this lab.)
config system settings
set email-portal-check-dns disable
end
P a g e | 39
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
7. Edit the captive portal sub policy and add Windows PC as a second device type.
9. Go to User & Device > Device > Device Definition and check the new device.
This device is a dynamic device. These devices may update and are stored to the flash to
speed up detection.
diag user device list
10. Clear the device from the CLI and reload the web page as follows:
diag user device clear
You should observe that you are redirected to the email portal again. Accept the conditions
and enter your email address.
11. Perform a show from the CLI to confirm there are no devices in the configuration file.
show user device
12. From the GUI, go to User & Device > Device > Device Definition and edit your device from
the device list. Add an alias called myDevice. This creates a static device in the configuration
file.
Perform the following show command to confirm that the device now appears in the
configuration file.
show user device
P a g e | 40
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 2: Traffic Log
13. Go to User & Device > Device > Device Group. Note that your device is already a member
of several predefined device groups.
Click Create New and add a new device group called myDevGroup. From the Members
drop-down list, select myDevice.
Note that your device is still a member of the predefined groups and is now a member of the
custom group myDevGroup.
14. From your PC, test that you can open an FTP connection to 10.200.1.254.
Open a DOS prompt on your Windows PC. Once you have connected, close the FTP
connection.
15. Now add a sub-policy to your firewall device policy blocking FTP.
Edit the device policy and create the following sub-policy:
Sub-policy 3:
Destination: LINUX_ETH1
Device: myDevGroup
Schedule: always
Service: FTP
Action: Deny
Log Violation Traffic: Enable
Use drag-and-drop to reorder the sub-policies so that this policy is first in the list.
Click OK.
16. From your PC test that you can open an FTP connection to 10.200.1.254.
You should observe that the connection now fails to establish.
17. Go to one of your Dashboards and add the Device Type distribution widget. Since we only
have a single device to test in our lab environment, the graph is less effective.
P a g e | 41
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: User Authentication
The aim of this lab is to introduce students to user authentication management on the FortiGate unit.
1. From the Windows Server, you first will need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\Module4\student-auth.conf.
2. When the device has rebooted review the user configuration for this lab.
Go to User & Device > User > User to review the local user settings
Go to User & Device > User Group > User Group to review the user group configuration.
P a g e | 42
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: User Authentication
3. On the virtual Windows Server desktop, open a web browser and connect to a new web site.
At the login prompt, enter the following credentials:
Username: student
Password: F0rtinet
You should observe that after successful authentication, you are redirected to your
destination web site.
4. From the GUI on the Student FortiGate device go to Policy > Policy > Policy and review the
outgoing firewall policy with authentication configured.
5. Next, open a putty.exe session and try to ping or connect via SSH to 10.200.1.254. Log in
as root with the password: password.
What happens?
You should observe that this fails even though there is an accept rule for this traffic. This
highlights an important behavior of identity policies. The service becomes a permission and
not a selector, therefore, in our example the identity policy matches all outgoing traffic
regardless of service. The service is then allowed if it is set for the user.
There are two ways to correct this. Either add ALL_ICMP and SSH to the identify policy rule
for the training user group, or move the regular policy before the identity policy.
6. Go to User & Device > Monitor > Firewall to view the details of the authenticated user along
with the policy used to authenticate this user.
7. Next go to Log & Report > Event Log > User and then Log & Report > Traffic Log > Forward
Traffic.
Locate the log messages for the firewall policy authentication events. The details for the entry
are displayed in the lower pane of the Event Log window.
Notice that the user’s name “student” is now included in the log messages.
8. From the CLI, view the IP addresses and users which have successfully authenticated to the
FortiGate unit with the following command:
diagnose firewall iprope authuser
P a g e | 43
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
The aim of this lab for students to work with and manage user groups and portals for the SSL VPN.
1. From the Windows Server, you first will need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\Module5\student-ssl.conf.
2. When the device has rebooted review the SSL VPN configuration access for this lab. First
look at the firewall polices. You will find a port1port3 policy for SSL VPN. This policy also
has sub-policies. Expand this policy in order to view the sub-policies.
3. Open this SSL VPN policy and look at the objects making up this policy. Observe the Policy
Type of VPN and the Policy Subtype of SSL-VPN. Also note the Destination address and the
SSL-VPN Authentication Rules.
Open the first rule (sub-policy), and notice that this allows users in the training group to
access the web-access SSL-VPN portal.
P a g e | 44
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
4. To observe the effect of this policy you will now access the SSL VPN. On the virtual external
Windows host (WINXP) desktop, open a web browser and access the SSL VPN by browsing
to the following URL: https://10.200.1.1.
Accept the security warnings for the self-signed certificate and log in using the following
credentials:
Username: student
Password: F0rtinet
You should notice that you are successfully able to log in however, the web portal is currently
in default settings. We will now configure the web-access portal which is selected in the SSL
VPN policy. Log out and return to your Windows Server host.
5. Go to VPN > SSL > Portal and from the drop-down list displayed in the top right hand corner,
select web-access to edit this portal. Verify that Include Bookmarks is selected and then
create the following bookmarks in the table for the internal server.
Bookmark for HTTP:
Category: Test
Name: HTTP/HTTPS
Type: HTTP/HTTPS
Location: 10.0.1.10
Click OK.
Category: Test
Name: RDP
Type: RDP
Location: 10.0.1.10
Click OK. Add a Portal Message then click Apply to save the changes. Select View Portal to
review your changes.
6. Test the SSL VPN access again from the external Windows host (WINXP) by browsing to:
https://10.200.1.1
You should now observe that you have two book marks listed.
P a g e | 45
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
7. Select the HTTP/HTTPS bookmark and examine the items listed below to understand how
the web access functions.
Note the URL of the web site in the browser address bar:
https://10.200.1.1/proxy/http/10.0.1.10/
The first part of the address is the encrypted link to the FortiGate SSL VPN gateway:
https://10.200.1.1/
The second part of the address is the instruction to use the SSL VPN HTTP
proxy: .../proxy/http...
The final part of the address is the destination of the connection from the HTTP
proxy: .../10.0.1.10/
In this example, the connection is encrypted up to the SSL VPN gateway. The connection to
the final destination from the HTTP proxy is in clear text.
8. Return to the virtual Windows Server device and from the GUI on the Student FortiGate
device, go to VPN > Monitor > SSL-VPN Monitor. Locate the details of the SSL VPN
connection.
Note the User, Source IP and Begin Time.
9. Go to Log & Report > Event Log > VPN and view the corresponding log entry. Look for the
“SSL tunnel established” message.
10. From the external Windows XP host, log out of the SSL VPN connection. Return to the log
and look for the “SSL tunnel shutdown” message.
P a g e | 46
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
11. The firewall policy is required for the SSL VPN access. Find the firewall policy for SSL VPN
access and examine its components.
Note from the policy list that this policy has a sub-policy. Edit this policy to view its contents.
Under Configure SSL-VPN Authentication Rules, edit the first rule to view its contents.
You will notice that this rule contains many settings including User(s), Schedule, Service and
SSL-VPN Portal. Select Cancel to close the edit window for this sub-policy.
In the next exercise, we will be adding on to this policy to allow tunnel access.
P a g e | 47
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
In this exercise you will edit the current SSL policy adding a new sub-rule for a second user
configured for tunnel mode.
1. Edit the SSL VPN policy and under Configure SSL-VPN Authentication Rules, create a new
sub-policy for a full-access portal using the following settings:
Group(s): training
Schedule: always
Service ALL
SSL-VPN Portal: full-access
When you have added this sub-policy select OK to save the changes.
2. To observe the effect of this sub-policy you will now access the SSL VPN again. From the
virtual external Windows host (WINXP) desktop, open a web browser and access the SSL
VPN by browsing to the following URL:
https://10.200.1.1
When prompted, log in to the SSL VPN using the following credentials:
Username: student
Password: F0rtinet
The training user group is associated with both sub-policies therefore the first one matching
the web-access portal is applied.
You could move the rule so that the rule for the full-access portal is first in the list however,
this will end up affecting all users in that group. Instead, edit the sub-rule created in step 1
above and set the user group to training2.
P a g e | 48
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
4. In the web browser on the virtual remote Windows host, connect to the SSL VPN portal once
again at the following address:
https://10.200.1.1
Note that you may need to clear the web browser’s cache if the login window is not displayed.
Username: student2
Password: F0rtinet2
You should now observe that the portal established is the full-access portal.
Note: If using the SSL VPN client available with FortiClient, you do not need to log
in via the portal.
5. In the Tunnel Mode panel, click Connect. You should see a link status of UP and the bytes
sent and received incrementing.
6. On the virtual remote Windows host, open a DOS command prompt and perform the
following:
ipconfig
Note that the ‘fortissl’ adapter has an IP address. Where does this IP address come
from? Display the routing information by entering the following command:
route print
Note the low metric routes and observe that there is a route to 10.0.1.10. Where did this
come from?
P a g e | 49
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: SSL VPN
7. From the GUI on the Student FortiGate device observe the following:
− VPN > Monitor > SSL-VPN Monitor shows client connections and the IP allocated to
the tunnel connection
8. In the firewall policy list, modify the column settings to show Count so that you can see the
packets and bytes per policy (click any of the column headings and select Column Settings >
Count). Move this column accordingly for easier viewing.
Notice that there is traffic associated with the incoming rule from the ssl.<vdom name>
interface. This rule is created automatically. This traffic is the incoming traffic from your SSL
VPN client.
9. Go VPN > SSL > Portal to access the SSL VPN portal configuration. Edit the full-access
portal.
Within the Enable Tunnel Mode options, note the IP Pool used which refers to a firewall
address object.
10. Go to Firewall Objects to look up that firewall address object. What are the values of that
object?
The object defines an address range that matches your assigned address, so this is how IP
addresses are configured and assigned to SSL VPN clients.
HINT: Look at the Destination address of the address of the SSL VPN policy.
You will observe that the address object values for WIN2K3 are 10.0.1.10/32, so this is
where the SSL VPN client route came from.
With this present configuration, the SSL VPN client is split tunneling. This means that only
traffic to the specific destination behind the firewall is tunneled, and all other traffic goes to
the default gateway.
What configuration change would you need to make to give the client a default route into the
tunnel?
Disable split tunneling in the full-access portal which means a default route is pushed to the
client forcing all traffic into the tunnel.
P a g e | 50
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: IPSec VPN
The aim of this lab for students to configure an IPSec VPN on the FortiGate device using both
interface-based and policy-based modes.
1. From the Windows Server, you first will need to connect to the Student and Remote
FortiGate devices and restore the configuration files that are needed for this lab.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the
following configuration file: Resources\Module6\student-ipsec.conf.
Connect to the GUI on the Remote FortiGate device (10.200.3.1) and restore the
following configuration file: Resources\Module6\remote-ipsec.conf.
2. When the Student FortiGate device has rebooted, open a DOS command prompt from the
virtual Windows Server and run a continuous ping to the remote Windows XP host as
follows:
ping -t 10.0.2.10
P a g e | 51
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: IPSec VPN
3. From the GUI on the Student FortiGate device, go to VPN > Monitor > IPsec Monitor and
examine the tunnel status.
You should observe a tunnel named remote with the destination 10.200.3.1 and the status
is currently up. This is the tunnel that is established to the Remote FortiGate device.
4. From the Student FortiGate device review the firewall policy. Modify the column settings to
show Count so that you can see the packets and bytes per policy.
Observe that the counter is incrementing for the port3 > remote policy.
Go to System > Network > Interface and note the blue arrow head associated with port1. If
you expand this you will be able to see the remote interface and the type for this interface
which is set to Tunnel.
5. Go to VPN > IPsec > Auto Key (IKE) and review the IPsec configuration. Note the Phase 1
and Phase 2 IKE objects.
Edit the Phase1 IKE object remote. Select Advanced to view all the settings. Note that IPsec
Interface Mode is selected.
The Phase1 IKE object is the IPsec interface referenced in the interface list and firewall
policy. How is the traffic getting to this policy?
Traffic arrives at the FortiGate unit on the ingress interface. For new connections, a routing
lookup is performed to select the egress interface and gateway, and then there is a lookup in
the firewall policy to find a matching rule. It is the routing lookup that selects the egress, and
therefore, the remote interface is selected in this case. So a route is driving the traffic to the
IPsec interface.
6. Go to Router > Monitor and view the current routing table. You will observe a static route to
the destination 10.0.2.0/24 pointing to the remote interface.
This is an example of the route-based VPN configuration. The alternative is the policy base
VPN which we will review next.
Generally, the route-based VPN is the preferred approach however there are a few
exceptions where you would need to use the policy-based VPN. These will be discussed
later.
7. Open a web browser on the Windows Server and connect to the GUI on the Remote
FortiGate device.
8. Go to VPN > Monitor > IPsec Monitor and examine the tunnel status from the Remote
FortiGate device. You should observe a tunnel named student with the destination
10.200.1.1 and the status is up.
This is the tunnel that is established to the Student FortiGate device.
P a g e | 52
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: IPSec VPN
9. Still on the Remote FortiGate device, go to System > Network > Interface and note there is
no tunnel sub-interface for port4.
10. Go to Route > Monitor and view the current routing table. You will observe that there is no
route to the 10.0.2.0/24 destination, there is only a default route.
How is the traffic entering the tunnel then?
11. Review the firewall policy that exists on the Remote FortiGate device. Note that there is a
policy from port6 to port4 for address 10.0.2.0/24 to address 10.0.1.0/24 with action
IPsec.
Edit this policy to view its settings.
The policy action is IPsec, and it uses the tunnel student. It also has permissions to allow
outbound and allow inbound. We will look at these settings later.
On the Student FortiGate device, a static route was sending traffic to the IPSec interface.
Here there is no static route and the traffic is being sent to the tunnel using the policy action,
hence policy-based.
The IPSec policy matches traffic from 10.0.2.0/24 to 10.0.1.0/24 and forwards it the
tunnel student.
12. From the Remote FortiGate device, go to VPN > IPsec > Auto Key (IKE) and review the
IPSec configuration. Note the Phase 1 and Phase 2 IKE objects.
13. Edit the Phase1 IKE object remote and select Advanced to view all the settings. Note that
IPSec Interface Mode is not selected.
The Phase1 IKE object is the IPSec tunnel referenced in the IPSec firewall policy. Here we
are using policy-based on the Remote FortiGate device and interface-based on the Student
FortiGate device. The type we use is of local significance therefore we can mix them, as is
the case in this example.
14. From the remote Windows host, attempt to run a continuous ping to: 10.0.1.10.
You should observe this ping fails. Identify why?
The IPsec action policy controls inbound and outbound traffic within the same policy;
however for interface-based IPsec, regular accept policies are used.
In the Student FortiGate device we have only configured the outgoing policy and this is why
the new incoming connection is dropped.
15. Return to the Student FortiGate device and add the missing rule.
P a g e | 53
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Antivirus Scanning
The aim of this lab is to work with both flow-based and proxy-based Antivirus scanning.
1. From the Windows Server, you first will need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\Module7\student-utm.conf.
2. When the FortiGate device has rebooted go to UTM Security Profiles > AntiVirus > Profile
and edit the default profile.
Configure the following details to enable AV scanning on HTTP:
P a g e | 54
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Antivirus Scanning
3. Go to Policy > Policy > Policy and edit the port3port1 policy. Confirm that Use Standard
UTM Profiles is enabled and turn on AntiVirus. Ensure that the default antivirus profile is
selected.
4. Next go to Policy > Policy > UTM Proxy Options and examine the UTM proxy options.
The default profile is displayed. These settings determine how FortiOS handles each
protocol. For example, which port numbers to use, whether to use client comforting, or
whether to perform deep SSL inspection and so on.
5. Go to System > Config > Replacement Message. From the top right-hand corner select
Extended View and under UTM modify the Virus Block Page.
The HTML editor that is displayed allows you to see the changes as you are making them.
Click Save shown above the editor window to apply your changes.
6. On the virtual Windows Server desktop, launch a web browser and access the following web
site:
http://eicar.org
7. On the Eicar web page, click Download Anti Malware Test File (located in the top right-hand
corner of the page) and then click the Download link that appears on the left.
Download the eicar.com file from the section Download area using the standard protocol http.
The download attempt will be blocked by the FortiGate unit and a replacement message will
be displayed similar to the following (should also include any customization you made
earlier):
The Eicar file is an industry-standard used to test antivirus detection. The file contains the
following characters:
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
8. The HTTP virus message is shown when infected files are blocked or have been quarantined.
In the message that is displayed, click the link to the Fortinet Virus Encyclopedia to view
information about the detected virus.
P a g e | 55
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Antivirus Scanning
9. From the GUI on Student FortiGate device, go to Log & Report > Traffic Log > Forward
Traffic and locate the antivirus event messages.
Alternately, go to UTM Security Profiles > Monitor > AV Monitor to view details of the log
event. If the AV monitor is not displayed in the GUI, go to System > Admin > Settings and
select UTM Monitors from the Display Options on GUI area.
10. On the Eicar web page, click Download Anti Malware Test File and then click the Download
link that appears on the left. This time, select the eicar.com file from the Download area
using the secure, SSL enabled protocol https section.
The download should be successful.
11. To enable inspection of SSL encrypted traffic on the Student FortiGate unit, go to Policy >
Policy > UTM Proxy Options and edit the default profile. Under SSL Inspection Options,
enable the protocol HTTPS on port 443.
12. To ensure that there are no existing sessions prior to deep scanning the communication
exchange, connect to the CLI of the Student FortiGate unit and enter the following command:
diag sys session filter dport 443
diag sys session clear
13. Return to the Eicar web page and attempt to download the eicar.com file from the Download
area using the secure SSL enabled protocol https section.
This time, the download will be blocked by the FortiGate unit and the replacement message
will be displayed. (If this is not the case, you may need to clear your recent browsing history
as the object may be cached.)
14. Go to UTM Security Profiles > Antivirus > Profile and change the Inspection Mode for the
default Antivirus Profile to Flow-based.
Try downloading the eicar.com file again. What happens now when the virus is detected?
Go to Log & Report > Traffic Log > Forward Traffic and examine the logs again. Ensure the
event was detected.
P a g e | 56
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Email Filtering
The aim of this lab is for students to work with email filtering.
− Modify inspection rules to black or white list emails (using banned word, IP, email etc.)
1. From the Windows Server, you will first need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab. This module uses the same config as
in Module 7.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\ Module7\student-utm.conf.
2. When the FortiGate device has rebooted go to UTM Security Profiles > Email Filter > Profile
and edit the default email filtering profile. Select Enable Spam Detection and Filtering to
enable it then click Apply. Configure the following settings:
SMTP Spam Action: Tagged
FortiGuard Spam Filtering: Enable IP Address Check
Enable URL Check
Click Apply.
P a g e | 57
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Email Filtering
3. By default FortiGuard services are enabled. Go to System > Config > FortiGuard and check
the status of the service. (If you are using the hosted virtual lab environment you will need to
change the service port to UDP 8888).
4. Go to Policy > Policy > Policy and edit the port3port1 outgoing policy. Under UTM Security
Profiles, turn on Email Filter and ensure that the default email filter profile is selected.
In the steps that follow, you will generate and send test spam emails to your Microsoft
Outlook user@internal.lab inbox. In the classroom lab environment, you will initiate the spam
generation using a script called smtpmboxgen.pl which is provided in the Resources\Module8
folder. Details for using this script will be provided in the steps that follow.
5. From the Windows server, open a command prompt and change directory to the
C:\Documents and Settings\Administrator\Desktop\Resources\Module8 folder as follows:
CD C:\Documents and Settings\Administrator\Desktop\Resources\Module8
6. From your Microsoft Outlook mail client, check the email inbox. Review the tagged spam and
the corresponding logging events.
7. Next, enable Banned Word Check in the default spam filter profile by entering the following
CLI commands:
config spamfilter profile
edit "default"
set spam-filtering enable
set options bannedword spamfsip spamfsurl
set spam-bword-table 1
end
8. Run the following commands in the CLI to review the configured banned words.
config spam bword
show
Notice the use of both regular expression and wild cards in that list.
9. Generate a message that will be caught by the banned words configured, for example,
training. Remember that some banned words apply only to the subject line, others apply only
to the body and others apply to both.
A banned word is only scored once, for example if a banned word has a score 10 and yet the
word occurs four times in the message body, it will only still be assigned a count of 10.
10. Go to Log & Report > UTM Security Log > Email Filter and review the email filtering log
entries.
P a g e | 58
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Web Filtering
The aim of this lab is for students to configure web filtering to block specific categories of web
content. The interaction of local categories and overrides will also be demonstrated.
− Select the most effective method for blocking or allowing a web site
1. From the Windows Server, you will first need to connect to the Student FortiGate device and
restore the configuration file that is needed for this lab. This module uses the same config as
in Module 7.
Connect to the GUI on the Student FortiGate device (10.0.1.254) and restore the following
configuration file: Resources\ Module7\student-utm.conf.
2. When the FortiGate device has rebooted go to System > Status and under License
information check the FortiGuard Services Web Filtering status.
P a g e | 59
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Web Filtering
3. From the CLI on the Student FortiGate device, check the low-level status information of the
web filtering service by entering the following command:
diag debug rating
The command diag debug rating shows the list of FDS servers for web filtering that the
FortiGate unit is using to send requests. Rating requests are only sent to the server on the
top of the list in normal operation. Each server is probed for RTT every 2 minutes.
The diag debug rating flags indicate the server status as explained below:
− D indicates the server was found via the DNS lookup of the hostname. If the
hostname returns more than one IP address, all of them will be flagged with 'D' and
will be used first for INIT requests before falling back to the other servers.
− I indicates the server to which the last INIT request was sent.
− F signifies the server has not responded to requests and is considered to have failed.
− T signifies server is currently being timed.
4. In the GUI on the Student FortiGate device, go to UTM Security Profiles > Web Filter >
Profile and review the settings of the default web filter profile. Select this profile using drop-
down listed in the upper right-hand corner of the Edit Web Filter Profile window.
5. Verify that the Inspection Mode is set to Proxy and enable FortiGuard Categories.
For the web categories listed below, set the Authenticate action to the training user group.
You will need to right-click each Group or Category name that is listed below in order to
make this change.
• Potentially Liable
• Adult/Mature Content
• Security Risk
Next set the following web categories to Warning and accept the default Warning Interval
value:
• Bandwidth Consuming
• Unrated
6. Go to Policy > Policy > Policy and edit the outing port3port1 policy. Under UTM Security
Profile, turn on Web Filter and ensure that the default UTM profile is selected.
P a g e | 60
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Web Filtering
7. From a web browser on the virtual Windows Server, connect to a web site that is usually
blocked by the training policy and verify that the blocked message is displayed.
A FortiGuard replacement message should be displayed.
8. Go to System > Config > Replacement Message. Select FortiGuard Block Page and change
the text of the URL block message to customize it. Click Save to apply your changes.
9. Revisit the same web site and ensure that the customized FortiGuard Block Page Blocked
message is displayed.
10. Next, in the web browser, attempt to connect to a web site category with an Authenticate
action. For example:
A Web Page Blocked message is displayed again, this time with a Proceed button.
11. Click Proceed to view the Web Filter Block Override page. Enter the username student and
the password F0rtinet and click Continue.
The web page should now be displayed.
12. From the GUI on the Student FortiGate device, go Log & Report > Traffic Log > Forward
Traffic and locate the log messages related to the web filtering activity.
13. In the following step, you will configure an access quota for a couple of categories. Quotas
allow access to web resources for a specified length of time. Go to UTM Security Profiles >
Web Filter > Profile and edit the default web filter profile.
14. Expand Quota on Categories with Monitor, Warning and Authenticate Actions and click
Create New to create new quotas. Select the categories (same as in Step 4) to be assigned
quotas and set the quota time value to 5 minutes.
P a g e | 61
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Web Filtering
15. From a web browser on the Windows Server, attempt to visit a blocked category web site
again.
16. Click the Proceed link on the Web Page Blocked page. Authenticate on the Web Filter Block
Override page using the username student and the password F0rtinet and click Continue.
Once authenticated properly, the quota timer is initiated. To view the current quota timer
value, go to UTM Security Profiles> Monitor > FortiGuard Quota. If the AV monitor is not
displayed in the GUI, go to System > Admin > Settings and select UTM Monitors from the
Display Options on GUI area.
When the daily quota value is reached the FortiGuard replacement message will be
displayed again.
17. From the GUI on the Student FortiGate device go Log & Report > Traffic Log > Forward
Traffic and locate the log messages related to the web filtering activity.
18. Edit the default profile, expand Quota on Categories with Monitor, Warning and Authenticate
Actions and delete the quotas on the selected categories.
19. Still in the web filter profile and select flow-based. A notification is displayed as follows:
20. Test the behavior of the flow based inspection by connecting to a web site that is usually
blocked. Check the log entry for this blocked request.
P a g e | 62
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Application Identification
The aim of this lab is for students to use the application control feature to properly identify a given
application.
1. Go to UTM Security Profiles > Application Control > Application Sensor and review the
default application control sensor.(Ensure you are selecting the sensor named default.)
2. On the Edit Application Sensor page, check the settings for the following rules:
Application: Youtube
Application: Myspace
Check the actions for the filters. What are the expected actions of these sensors?
Traffic shaping is enabled for Youtube and these applications use a shared traffic shaper
which is capped at 1 Mbps. Connections to Myspace are blocked.
Before proceeding place both of these signatures at the top of the list.
3. Go to Policy > Policy > Policy and edit the port3port1 policy. Ensure that Application
Control is turned ON and that the default Application Control sensor is selected.
P a g e | 63
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Application Identification
4. You will now test the application control configuration. From the virtual Windows Server,
open a web browser and connect to YouTube.
Check the application monitor in UTM Security Profiles > Monitor > Application Monitor.
6. From the virtual Windows Server, open a web browser and connect to Myspace.
You should observe that you cannot connect to this site.
7. Go to UTM Security Profiles > Application Control > Application Sensor and edit the default
sensor again. Click Create New to add a new application filter and select Specify
Applications.
8. In the search field shown above the Application Name column enter Facebook. A window
displays with a description of the application including popularity, and a reference link that
you can click to obtain more rating information from the FortiGuard Center.
Set Action to block and ensure that this new signature is place at the top of the list.
Test that this site is now blocked and view the log information (Log & Report > Traffic Log >
Forward Traffic) to confirm that this action was correctly logged. The status of the connection
should be displayed as deny.
9. Return the web browser, and attempt to access the following web site:
http://proxite.us
10. On the proxy web page, scroll down to the bottom and enter the URL of MySpace. Click Go.
You should observe this does allow some connectivity to the site. What action can be taken
to stop this?
You can create a new rule in the sensor to block the Proxy category.
P a g e | 64
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C
Lab 1: Application Identification
P a g e | 65
Course 201 – Administration, Content Inspection and VPNs
01-50000-0201-20130215-C