Fortios-5.6-Firewall.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
FortiOS™ Handbook - Firewall VERSION 5.6.9 FORTINET DOCUMENT LIBRARY https://docs.fortinet.com FORTINET VIDEO GUIDE https://video.fortinet.com FORTINET KNOWLEDGE BASE http://kb.fortinet.com FORTINET BLOG https://blog.fortinet.com CUSTOMER SERVICE & SUPPORT https://support.fortinet.com FORTINET NSE INSTITUTE (TRAINING) https://training.fortinet.com/ FORTIGUARD CENTER https://fortiguard.com FORTICAST http://forticast.fortinet.com END USER LICENSE AGREEMENT AND PRIVACY POLICY https://www.fortinet.com/doc/legal/EULA.pdf https://www.fortinet.com/corporate/about-us/privacy.html FEEDBACK Email: [email protected] June 4, 2019 FortiOS™ Handbook - Firewall 01-563-1248222-20180124 TABLE OF CONTENTS Change Log 15 Firewall 16 How this Guide is Organized 16 Fundamentals 16 Firewall Optimization 18 How does a FortiGate Protect Your Network? 18 What's new for Firewall in 5.6 20 New Firewall Features in 5.6.4 20 Using a FortiCache as a cache service 20 New Firewall Features in 5.6.3 20 Multi-port support for Explicit Proxy (402775) 20 Nturbo support CAPWAP traffic and fix IPsec IPv6 firewall policy code typo (290708) (423323) 20 Toggling SNAT in Central SNAT policies (434981) 21 Improved wildcard support for firewall fqdn (444646) 22 Policy Matching based on Referrer Headers and Query Strings (446257) 22 New Firewall Features in 5.6.1 24 Improvement to NAT column in Policy List Display (305575) 24 GUI support for adding Internet-services to proxy-policies (405509) 25 Inline editing of profile groups on policy (409485) 25 Rename "action" to "nat" in firewall.central-snat-map (412427) 26 Explicit proxy supports session-based Kerberos authentication (0437054) 26 New Firewall Features in 5.6.0 26 Optimization of the firewall Service cache (355819) 26 New CLI option to prevent packet order problems for sessions offloaded to NP4 or NP6 (365497) 26 GUI changes to Central NAT (371516) 27 Max value for Firewall User authentication changed (378085) 27 Changes to default SSL inspection configuration (380736) 27 Add firewall policy comment field content to log messages (387865) 28 Learning mode changes profile type to single (387999) 28 MAC address authentication in firewall policies and captive portals (391739) 29 Display resolved IP addresses for FQDN in policy list (393927) 29 Added comment for acl-policy, interface-policy and DoS-policy (396569) 29 Internet service settings moved to more logical place in CLI (397029) 30 Certificate key size selection (397883) 31 AWS API integration for dynamic firewall address object (400265) 32 Internet service configuration (405518) 33 Changes to SSL abbreviate handshake (407544) 33 NGFW mode in the VDOM - NAT & SSL Inspection considerations (407547) 34 Support HTTP policy for flow-based inspection (411666) 36 Support for CA chain downloading to improve certificate verification (369270) 36 New WAN Optimization Features in 5.6 36 WAN Optimization GUI changes (283422) 36 New Proxy Features in 5.6 36 Explicit proxy supports multiple incoming ports and port ranges (402775, 398687) 36 Explicit proxy supports IP pools (402221) 37 Option to remove unsupported encoding from HTTP headers (392908) 37 New authentication process for explicit web proxying (386474, 404355) 37 Added Internet services to explicit proxy policies (386182) 37 Virtual WAN link in an explicit proxy firewall policy (385849, 396780) 38 Added application ID and category setting on the explicit proxy enabled service (379330) 38 Explicit Proxy - populate pac-file-url in transparent mode (373977) 38 SSL deep inspection OCSP support for Explicit Proxy (365843) 38 Timed out authentication requests are now logged (357098) 39 Firewall concepts 40 What is a Firewall? 40 Network Layer or Packet Filter Firewalls 41 Application Layer Firewalls 41 Proxy Servers 42 UTM/ NGFW 42 FortiGate Modes 43 NAT Mode 44 Transparent Mode 44 How packets are handled by FortiOS 44 Interfaces and Zones 45 Interfaces 46 Zones 46 Virtual Wire Pair 46 Access Control Lists 47 Firewall policies 48 Firewall policy parameters 49 What is not expressly allowed is denied 50 Policy order 51 Policy Identification 53 UUID Support 53 Nturbo support CAPWAP traffic 54 Learning mode for policies 54 Policy Modes 56 NGFW policy mode and NAT 56 Application control in NGFW policy mode 57 Web Filtering in NGFW mode 58 Other NGFW policy mode options 59 Security profiles 59 AntiVirus 60 Web Filtering 60 The configuration for each of these protocols is handled separately. 61 Application Control 61 Intrusion Protection (IPS) 61 Anti-Spam 61 Data Leak Prevention (DLP) 61 VoIP 62 ICAP 62 Security Profile Groups 63 Proxy Option Components 65 The use of different proxy profiles and profile options 65 SSL/SSH Inspection 67 Mirroring SSL inspected traffic 68 RPC over HTTP 68 Configuration in Protocol Options 69 Configuration in SSL/SSH inspection 69 IPv6 69 IPv6 in FortiOS 70 Dual Stack routing configuration 71 IPv6 Tunneling 71 Tunneling IPv6 through IPsec VPN 72 NAT 72 The Origins of NAT 73 Dynamic NAT 73 Static NAT 74 Benefits of NAT 75 NAT in Transparent Mode 76 Central NAT Table 77 NAT 64 and NAT46 77 NAT 66 78 How FortiOS differentiates sessions when NATing 79 IP Pools 85 Source IP address and IP pool address matching when using a range 86 ARP Replies 87 IP pools and zones 88 Fixed Port 88 Match-VIP 88 Services and TCP ports 88 Protocol Types 89 VPN Policies 114 IPsec Policies 114 DSRI 114 CLI syntax for changing the status of the DSRI setting 115 Interface Policies 115 DoS Protection 116 One-Arm IDS 120 IPv6 IPS 121 Traffic Destined to the FortiGate unit 121 Dropped, Flooded, Broadcast, Multicast and L2 packets 121 GUI and CLI 121 Local-In Policies 121 Security Policy 0 123 Deny Policies 123 Accept Policies 123 Fixed Port 124 Endpoint Security 124 Traffic Logging 124 Network defense 127 Monitoring 127 Blocking external probes 127 Address sweeps 128 Port scans 128 Probes using IP traffic options 128 Evasion techniques 130 Defending against DoS attacks 132 The “three-way handshake” 132 SYN flood 133 SYN spoofing 133 DDoS SYN flood 134 Configuring the SYN threshold to prevent SYN floods 135 SYN proxy 135 Other flood types 135 DoS policies 135 Inside FortiOS: Denial of Service (DoS) Protection 137 About DoS and DDoS attacks 137 FortiOS DoS and DDoS protection 137 FortiOS DDoS Prevention 138 Configuration options 139 Standard configuration 139 Out of band configuration (sniffer mode) 139 DoS policies 140 Hardware acceleration 140 The FortiGuard Center 140 Firewall Policies 142 Viewing Firewall Policies 142 Menu Items 143 Menu items not shared by all policies 143 The Table of Policies 143 Policy Names 144 Configuring the Name field 144 Disabling Policy name requirement 144 IPv4 Policy 145 To configure a IPv4 policy in the GUI 145 IPv6 Policy 149 To configure a IPv6 policy in the GUI 149 NAT64 Policy 151 To configure a NAT64 policy in the GUI 151 NAT46 Policy 153 To configure a NAT46 policy in the GUI 153 Central SNAT 154 To configure a Central SNAT entry in the GUI 155 To configure Central SNAT in the CLI 156 IPv4 Access Control List 157 To configure a IPv4 Access Control List entry in the GUI 157 To configure a IPv4 Access Control List entry in the CLI 158 IPv6 Access Control List 158 To configure a IPv6 Access Control List entry in the GUI 158 To configure a IPv6 Access Control List entry in the CLI 159 IPv4 DoS Policy 159 To configure a IPv4 DoS Policy in the GUI 159 Example 160 IPv6 DoS Policy 164 To configure a IPv6 DoS Policy in the GUI 164 Multicast Policy 165 Object Configuration 167 Addresses 169 Interfaces 170 IPv4 Addresses 171 FQDN Addresses 171 Verification 173 Geography Based Addresses 173 IP Range Addresses 176 IP / Netmask Addresses 177 Wildcard FQDN 179 IPv6 Addresses 180 Subnet Addresses 180 Multicast Addresses 181 Multicast IP Range 181 Broadcast Subnet 183 Multicast IP addresses 184 Proxy Addresses 184 Internet Services 187 Address Groups 189 UUID Support 190 Virtual IPs 190 Creating a Virtual IP 192 Dynamic VIP according to DNS translation 197 Virtual IP Groups 197 Configuring IP pools 198 Creating a IPv4 Pool 198 Creating a IPv6 Pool 202 Services 203 Categories 203 Configuring a new service 205 Specific Addresses in TCP/UDP/SCTP 209 Service Groups 209 Firewall schedules 210 One-time schedule object 210 Recurring schedule object 212 Schedule Groups 215 Creating a Schedule Group object 215 Schedule expiration 215 Secure Web Gateway, WAN Optimization, Web Caching and WCCP 217 Before you begin 217 FortiGate models that support WAN optimization 218 Distributing WAN optimization, explicit proxy, and web caching to multiple CPU Cores 218 Toggling Disk Usage for logging or wan-opt 218 Example topologies relevant to WAN Optimization 220 Basic WAN optimization topology 220 Out-of-path WAN Optimization topology 221 Topology for multiple networks 221 WAN optimization with web caching 222 Explicit Web proxy topologies 222 Explicit FTP proxy topologies 222 Web caching topologies 223 WCCP topologies 223 Inside FortiOS: WAN Optimization 224 Centralize without compromising your WAN performance 224 FortiOS WAN Optimization 224 Protocol optimization 224 Web caching 225 Byte caching 225 Dynamic data chunking 226 Data Deduplication 226 Server Monitoring and Management 226 SSL acceleration 226 VPN replacement 226 Road warriors and home workers 227 WAN Optimization Concepts 228 Client/server architecture 228 WAN optimization peers 229 Protocol optimization 229 Protocol optimization and MAPI 229 Byte caching 230 Dynamic data chunking for byte caching 230 WAN optimization transparent mode 230 Configuring Transparent