• No results found

BIG-IP Systems: DoS Protection and Protocol Firewall Implementations. Version 11.6

N/A
N/A
Protected

Academic year: 2021

Share "BIG-IP Systems: DoS Protection and Protocol Firewall Implementations. Version 11.6"

Copied!
108
0
0

Loading.... (view fulltext now)

Full text

(1)

BIG-IP

®

Systems: DoS Protection and

Protocol Firewall Implementations

Version 11.6

(2)
(3)

Table of Contents

Legal Notices...7

Acknowledgments...9

Chapter 1:  Detecting and Protecting Against DoS, DDoS, and Protocol Attacks...13

About detecting and protecting against DoS, DDoS, and protocol attacks...14

About profiles for DoS and DNS service attacks...14

Chapter 2:  Detecting and Preventing System DoS and DDoS Attacks...17

About configuring the BIG-IP system to detect and prevent DoS and DDoS attacks...18

Detecting and protecting against DoS and DDoS attacks...18

Device DoS attack types...19

Chapter 3:  Preventing DoS Sweep and Flood Attacks...27

About DoS sweep and flood attack prevention...28

Detecting and protecting against single endpoint DoS flood attacks...28

Detecting and protecting against DoS sweep attacks...29

Detecting and protecting against UDP flood attacks...30

Allowing addresses to bypass DoS checks with a whitelist...31

Chapter 4:  Detecting and Preventing DNS DoS Attacks...33

About configuring the BIG-IP system to detect DNS DoS attacks...34

Detecting and protecting against DNS denial-of-service attacks with a DoS profile...34

Creating a custom DNS profile to firewall DNS traffic...35

Assigning a DNS profile to a virtual server...35

Associating a DoS profile with a virtual server...36

Allowing addresses to bypass DoS checks with a whitelist...36

Creating a custom DoS Protection Logging profile ...37

Configuring an LTM virtual server for DoS Protection event logging...37

Chapter 5:  Detecting SIP DoS Attacks...39

About configuring the BIG-IP system to detect SIP DoS attacks...40

Detecting SIP denial-of-service attacks with a DoS profile...40

Assigning a SIP profile to a virtual server...41

Associating a DoS profile with a virtual server...41

Allowing addresses to bypass DoS checks with a whitelist...42

Creating a custom SIP DoS Protection Logging profile ...42

Configuring an LTM virtual server for DoS Protection event logging...43

3 Table of Contents

(4)

Chapter 6:  SNMP Trap Configuration...45

Overview: SNMP trap configuration...46

Enabling traps for specific events...46

Setting v1 and v2c trap destinations...46

Setting v3 trap destinations...47

Viewing pre-configured SNMP traps...48

Creating custom SNMP traps...48

Chapter 7:  Configuring High-Speed Remote Logging of DoS Events...51

Overview: Configuring DoS Protection event logging...52

Creating a pool of remote logging servers...53

Creating a remote high-speed log destination...54

Creating a formatted remote high-speed log destination...54

Creating a publisher ...55

Creating a custom DoS Protection Logging profile ...55

Configuring an LTM virtual server for DoS Protection event logging...56

Disabling logging ...56

Implementation result...57

Chapter 8:  Configuring High-Speed Remote Logging of DNS DoS Events...59

Overview: Configuring DNS DoS Protection event logging...60

Task summary...61

Creating a pool of remote logging servers...61

Creating a remote high-speed log destination...62

Creating a formatted remote high-speed log destination...62

Creating a publisher ...63

Creating a custom DNS DoS Protection Logging profile ...63

Configuring an LTM virtual server for DoS Protection event logging...64

Disabling logging ...64

Implementation result...65

Chapter 9:  About Logging DNS DoS Events to IPFIX Collectors...67

Overview: Configuring IPFIX logging for DNS DoS...68

Assembling a pool of IPFIX collectors...68

Creating an IPFIX log destination...69

Creating a publisher ...69

Creating a custom DNS DoS Protection Logging profile ...70

Implementation result...70

Chapter 10:  Filtering DNS Packets...71

About DNS protocol filtering...72

Filtering DNS traffic with a DNS security profile...72

4

(5)

Creating a custom DNS profile to firewall DNS traffic...72

Chapter 11:  Configuring High-Speed Remote Logging of SIP DoS Events...75

Overview: Configuring SIP DoS Protection event logging...76

Task summary...77

Creating a pool of remote logging servers...77

Creating a remote high-speed log destination...78

Creating a formatted remote high-speed log destination...78

Creating a publisher ...79

Creating a custom SIP DoS Protection Logging profile ...79

Configuring an LTM virtual server for DoS Protection event logging...80

Disabling logging ...80

Implementation result...81

Chapter 12:  About Logging SIP DoS Events to IPFIX Collectors...83

Overview: Configuring IPFIX logging for SIP DoS...84

Assembling a pool of IPFIX collectors...84

Creating an IPFIX log destination...85

Creating a publisher ...85

Creating a custom DNS DoS Protection Logging profile ...86

Implementation result...86

Chapter 13:  Configuring High-Speed Remote Logging of Protocol Security Events...87

Overview: Configuring Remote Protocol Security Event Logging...88

Creating a pool of remote logging servers...89

Creating a remote high-speed log destination...90

Creating a formatted remote high-speed log destination...90

Creating a publisher ...91

Creating a custom Protocol Security Logging profile ...91

Configuring a virtual server for Protocol Security event logging...92

Disabling logging ...93

Implementation result...93

Appendix A: IPFIX Templates for AFM DNS Events...95

Overview: IPFIX Templates for AFM DNS Events...96

About IPFIX Information Elements for AFM DNS events...96

IANA-defined IPFIX Information Elements...96

IPFIX enterprise Information Elements...96

About individual IPFIX Templates for each event...97

IPFIX template for DNS security...97

IPFIX template for DNS DoS...98

Appendix B: IPFIX Templates for AFM SIP Events...101

5 Table of Contents

(6)

Overview: IPFIX Templates for AFM SIP Events...102

About IPFIX Information Elements for AFM SIP events...102

IANA-defined IPFIX information elements...102

IPFIX enterprise Information Elements...102

About individual IPFIX Templates for each event...103

IPFIX template for SIP security...103

IPFIX template for SIP DoS...104

6

(7)

Legal Notices

Publication Date

This document was published on August 20, 2014.

Publication Number

MAN-0440-03

Copyright

Copyright©2014-2015, F5 Networks, Inc. All rights reserved.

F5 Networks, Inc. (F5) believes the information it furnishes to be accurate and reliable. However, F5 assumes no responsibility for the use of this information, nor any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent, copyright, or other intellectual property right of F5 except as specifically described by applicable user licenses. F5 reserves the right to change specifications at any time without notice.

Trademarks

AAM, Access Policy Manager, Advanced Client Authentication, Advanced Firewall Manager, Advanced Routing, AFM, Application Acceleration Manager, Application Security Manager, APM, ARX, AskF5, ASM, BIG-IP, BIG-IQ, Cloud Extender, CloudFucious, Cloud Manager, Clustered Multiprocessing, CMP, COHESION, Data Manager, DevCentral, DevCentral [DESIGN], DNS Express, DSC, DSI, Edge Client, Edge Gateway, Edge Portal, ELEVATE, EM, Enterprise Manager, ENGAGE, F5, F5 [DESIGN], F5 Certified [DESIGN], F5 Networks, F5 SalesXchange [DESIGN], F5 Synthesis, f5 Synthesis, F5 Synthesis [DESIGN], F5 TechXchange [DESIGN], Fast Application Proxy, Fast Cache, FirePass, Global Traffic Manager, GTM, GUARDIAN, iApps, IBR, iCall, Intelligent Browser Referencing, Intelligent Compression, IPv6 Gateway, iControl, iHealth, iQuery, iRules, iRules OnDemand, iSession, L7 Rate Shaping, LC, Link Controller, LineRate, LineRate Systems [DESIGN], Local Traffic Manager, LROS, LTM, Message Security Manager, MobileSafe, MSM, OneConnect, Packet Velocity, PEM, Policy Enforcement Manager, Protocol Security Manager, PSM, Real Traffic Policy Builder, SalesXchange, ScaleN, SDAC (except in Japan), SDC, Signalling Delivery Controller, Solutions for an application world, Software Designed Applications Services, SSL Acceleration, StrongBox, SuperVIP, SYN Check, TCP Express, TDR, TechXchange, TMOS, TotALL, Traffic Management Operating System, Traffix (except Germany), Traffix [DESIGN] (except Germany), Transparent Data Reduction, UNITY, VAULT, vCMP, VE F5 [DESIGN], Versafe, Versafe [DESIGN], VIPRION, Virtual Clustered Multiprocessing, WebSafe, and ZoneRunner, are trademarks or service marks of F5 Networks, Inc., in the U.S. and other countries, and may not be used without F5's express written consent.

All other product and company names herein may be trademarks of their respective owners.

Patents

This product may be protected by one or more patents indicated at:

http://www.f5.com/about/guidelines-policies/patents Export Regulation Notice

This product may include cryptographic software. Under the Export Administration Act, the United States government may consider it a criminal offense to export this product from the United States.

(8)

RF Interference Warning

This is a Class A product. In a domestic environment this product may cause radio interference, in which case the user may be required to take adequate measures.

FCC Compliance

This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of FCC rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This unit generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference, in which case the user, at his own expense, will be required to take whatever measures may be required to correct the interference.

Any modifications to this device, unless expressly approved by the manufacturer, can void the user's authority to operate this equipment under part 15 of the FCC rules.

Canadian Regulatory Compliance

This Class A digital apparatus complies with Canadian ICES-003.

Standards Compliance

This product conforms to the IEC, European Union, ANSI/UL and Canadian CSA standards applicable to Information Technology products at the time of manufacture.

8

(9)

Acknowledgments

This product includes software developed by Bill Paul. This product includes software developed by Jonathan Stone. This product includes software developed by Manuel Bouyer. This product includes software developed by Paul Richards.

This product includes software developed by the NetBSD Foundation, Inc. and its contributors. This product includes software developed by the Politecnico di Torino, and its contributors.

This product includes software developed by the Swedish Institute of Computer Science and its contributors. This product includes software developed by the University of California, Berkeley and its contributors. This product includes software developed by the Computer Systems Engineering Group at the Lawrence Berkeley Laboratory.

This product includes software developed by Christopher G. Demetriou for the NetBSD Project. This product includes software developed by Adam Glass.

This product includes software developed by Christian E. Hopps. This product includes software developed by Dean Huxley. This product includes software developed by John Kohl. This product includes software developed by Paul Kranenburg. This product includes software developed by Terrence R. Lambert. This product includes software developed by Philip A. Nelson. This product includes software developed by Herb Peyerl.

This product includes software developed by Jochen Pohl for the NetBSD Project. This product includes software developed by Chris Provenzano.

This product includes software developed by Theo de Raadt. This product includes software developed by David Muir Sharnoff. This product includes software developed by SigmaSoft, Th. Lockert.

This product includes software developed for the NetBSD Project by Jason R. Thorpe.

This product includes software developed by Jason R. Thorpe for And Communications, http://www.and.com. This product includes software developed for the NetBSD Project by Frank Van der Linden.

This product includes software developed for the NetBSD Project by John M. Vinopal. This product includes software developed by Christos Zoulas.

This product includes software developed by the University of Vermont and State Agricultural College and Garrett A. Wollman.

This product includes software developed by Balazs Scheidler ([email protected]), which is protected under the GNU Public License.

This product includes software developed by Niels Mueller ([email protected]), which is protected under the GNU Public License.

(10)

In the following statement, "This software" refers to the Mitsumi CD-ROM driver: This software was developed by Holger Veit and Brian Moore for use with 386BSD and similar operating systems. "Similar operating systems" includes mainly non-profit oriented systems for research and education, including but not restricted to NetBSD, FreeBSD, Mach (by CMU).

This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/).

This product includes software licensed from Richard H. Porter under the GNU Library General Public License (©1998, Red Hat Software), www.gnu.org/copyleft/lgpl.html.

This product includes the standard version of Perl software licensed under the Perl Artistic License (©1997,

1998 Tom Christiansen and Nathan Torkington). All rights reserved. You may find the most current standard version of Perl at http://www.perl.com.

This product includes software developed by Jared Minch.

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).

This product includes cryptographic software written by Eric Young ([email protected]).

This product contains software based on oprofile, which is protected under the GNU Public License. This product includes RRDtool software developed by Tobi Oetiker (http://www.rrdtool.com/index.html) and licensed under the GNU General Public License.

This product contains software licensed from Dr. Brian Gladman under the GNU General Public License (GPL).

This product includes software developed by the Apache Software Foundation (http://www.apache.org/). This product includes Hypersonic SQL.

This product contains software developed by the Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, and others.

This product includes software developed by the Internet Software Consortium.

This product includes software developed by Nominum, Inc. (http://www.nominum.com).

This product contains software developed by Broadcom Corporation, which is protected under the GNU Public License.

This product contains software developed by MaxMind LLC, and is protected under the GNU Lesser General Public License, as published by the Free Software Foundation.

This product includes Intel QuickAssist kernel module, library, and headers software licensed under the GNU General Public License (GPL).

This product includes software licensed from Gerald Combs ([email protected]) under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. Copyright©1998 Gerald Combs.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

10

(11)

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This product includes software developed by Thomas Williams and Colin Kelley. Copyright©1986 - 1993,

1998, 2004, 2007

Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version. Permission to distribute binaries produced by compiling modified sources is granted, provided you

1. distribute the corresponding source modifications from the released version in the form of a patch file along with the binaries,

2. add special version identification to distinguish your version in addition to the base release version number,

3. provide your name and address as the primary contact for the support of your modified version, and

4. retain our contact information in regard to use of the base software.

Permission to distribute the released version of the source code along with corresponding source modifications in the form of a patch file is granted with same provisions 2 through 4 for binary distributions. This software is provided "as is" without express or implied warranty to the extent permitted by applicable law.

This product contains software developed by Google, Inc. Copyright©2011 Google, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This product includes software developed by Jeremy Ashkenas and DocumentCloud, and distributed under the MIT license. Copyright©2010-2013 Jeremy Ashkenas, DocumentCloud.

This product includes gson software, distributed under the Apache License version 2.0. Copyright©

2008-2011 Google Inc.

This product includes software developed by Douglas Crockford, [email protected].

This product includes jxrlib software, copyright©2009 Microsoft Corp. All rights reserved. Distributed

under the new BSD license.

This product includes node-uuid software, copyright©2010-2012, Robert Kieffer, and distributed under

the MIT license.

This product includes opencsv software, which is distributed under the Apache 2.0 license.

This product includes owasp-jave-encoder software, copyright©2014, Jeff Ichnowski, and distributed

under the New BSD license.

11 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(12)
(13)

Chapter

1

Detecting and Protecting Against DoS, DDoS, and Protocol

Attacks

About detecting and protecting against DoS, DDoS, and protocol attacks

(14)

About detecting and protecting against DoS, DDoS, and protocol attacks

Attackers can target the BIG-IP®system in a number of ways. The BIG-IP system addresses several possible DoS, DDoS, SIP, and DNS attack routes. These DoS attack prevention methods are available when the Advanced Firewall Manager™is licensed and provisioned.

DoS and DDoS attacks

Denial-of-service (DoS) and distributed denial-of-service (DDoS) attacks attempt to render a machine or network resource unavailable to users. DoS attacks require the efforts of one or more people to disrupt the services of a host connected to the Internet. The Advanced Firewall Manager allows you to configure packet limits, percentage increase thresholds, and absolute rate limits of a wide variety of packets that attackers leverage as attack vectors, to detect and prevent attacks of this type. Configure responses to such attacks in the Device DoS profile.

DNS and SIP flood (or DoS) attacks

Denial-of-service (DoS) or flood attacks attempt to overwhelm a system by sending thousands of requests that are either malformed or simply attempt to overwhelm a system using a particular DNS query type or protocol extension, or a particular SIP request type. The BIG-IP system allows you to track such attacks, using the DoS Protection profile.

DoS Sweep and Flood attacks

A sweep attack is a network scanning technique that sweeps your network by sending packets, and using the packet responses to determine responsive hosts. Sweep and Flood attack prevention allows you to configure system thresholds for packets that conform to typical sweep or flood attack patterns. This configuration is set in the Device DoS profile.

Malformed DNS packets

Malformed DNS packets can be used to consume processing power on the BIG-IP system, ultimately causing slowdowns like a DNS flood. The BIG-IP system drops malformed DNS packets, and allows you to configure how you track such attacks. This configuration is set in the DoS Protection profile.

Malformed SIP packets

Malformed SIP request packets can be used to consume processing power on the BIG-IP system, ultimately causing slowdowns like a SIP flood. The BIG-IP system drops malformed SIP packets, and allows you to configure how you track such attacks. This configuration is set in the DoS Protection profile.

Protocol exploits

Attackers can send DNS requests using unusual DNS query types or opcodes. The BIG-IP system can be configured to allow or deny certain DNS query types, and to deny specific DNS opcodes. When you configure the system to deny such protocol exploits, the system tracks these events as attacks. This configuration is set in the DNS Security profile.

About profiles for DoS and DNS service attacks

On your BIG-IP®system, you can use different profiles to detect and protect against system DoS attacks, and specific protocol attacks for DNS and SIP.

DoS Protection profile

The DoS Protection profile allows you to configure the response thresholds on the BIG-IP system for malformed DNS and SIP packets. Malformed packets are dropped by the system. The DoS Protection profile also allows you to configure the threshold increase of packets of specific DNS query types, and

14

(15)

SIP request types. You can use SNMP alerts generated by these items, and information reported in real-time reports and in system logs, to mitigate a specific DNS query type attack; for example, by blocking it with the DNS security profile. You can also track SIP requests through alerts, though this is informational only.

DNS Security profile

The DNS Security profile allows you to configure the BIG-IP system to exclude (drop) or include (allow) packets of specific DNS query types. You can also configure the profile to drop specific DNS header opcodes.

15 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(16)
(17)

Chapter

2

Detecting and Preventing System DoS and DDoS Attacks

About configuring the BIG-IP system to detect and prevent DoS and DDoS attacks

(18)

About configuring the BIG-IP system to detect and prevent DoS and DDoS

attacks

DoS and DDoS attack detection and prevention is enabled by the BIG-IP®Advanced Firewall Manager™ (AFM™) Device DoS profile. DoS and DDoS detection and prevention serves two functions. DoS detection and prevention features are enabled with an Advanced Firewall Manager license, which also includes DNS protocol detection support.

• To detect, and automatically mitigate, packets that present as DoS or DDoS attacks.

• To determine unusual increases in packets of specific types that are known attack vectors. Possible attack vectors are tracked over the past hour, and current possible attacks are compared to the average of that hour.

You can configure the levels at which a BIG-IP device detects all system-supported DoS attacks.

Detecting and protecting against DoS and DDoS attacks

The BIG-IP®system handles DoS and DDoS attacks with preconfigured responses. With the DoS Protection Device Configuration, you set detection thresholds and internal rate limits for a range of DoS and DDoS attack vectors.

1. On the Main tab, click Security > DoS Protection > Device Configuration. The DoS Protection Device Configuration screen opens.

2. If you are using remote logging, from the Log Publisher list, select a destination to which the BIG-IP system sends DoS and DDoS log entries.

3. In the Category column, expand a category to view and edit the attack types for that category.

4. In the Attack Type column, click the name of any attack type to edit the settings. The configuration page for the particular attack appears.

5. From the Detection Threshold PPS list, select Specify or Infinite.

Use Specify to set a value for the attack detection threshold. The value is determined by an average of the packets per second over the last minute. If packets of this type cross the threshold, an attack is logged and reported. The system continues to check every second, and marks the threshold as an attack as long as the threshold is exceeded.

Use Infinite to set no value for the threshold. This specifies that this type of attack is never logged or reported.

6. From the Detection Threshold Percent list, select Specify or Infinite.

Use Specify to set the percentage increase value, that specifies an attack is occurring. The system compares the current rate to an average rate from the last hour. For example, if the average rate for the last hour is1000 packets per second, and you set the percentage increase threshold to100,

an attack is detected at 100 percent above the average, or2000 packets per second. When the threshold is passed, an attack is logged and reported.

Use Infinite to set no value for the threshold. This specifies that this type of attack is never logged or reported.

7. From the Default Internal Rate Limit list, select Specify or Infinite.

Use Specify to set a value, in packets per second, which cannot be exceeded by packets of this type. All packets of this type over the threshold are dropped. Rate limiting continues until the rate drops below the specified limit again.

18

(19)

Use Infinite to set no value for the threshold. This specifies that this type of attack is not rate-limited.

Important: If a packet is determined to be an error packet, that packet is dropped, regardless of these

settings.

8. Click the Update button.

The selected configuration is updated, and the DoS Protection Device Configuration screen opens again.

9. Repeat the previous steps for any other attack types for which you want to change the configuration.

Now you have configured the system to provide custom responses to possible DoS and DDoS attacks, and to allow such attacks to be identified in system logs and reports.

Configure SNMP traps, logging, and reporting for DoS attacks, to track threats to your system.

Device DoS attack types

You can specify specific threshold, rate increase, rate limit, and other parameters for supported device DoS attack types, to more accurately detect, track, and rate limit attacks.

Attention: All hardware-supported vectors are performed in hardware on vCMP guests, as long as the

vCMP guests have the same software version as the vCMP host.

Hardware accelerated Information Dos Vector Name Attack Name DoS Category Yes Detects oversized DNS headers. To tune this value, in tmsh:modify sys db dos.maxdnssize value, wherevalueis256-8192.

dns-oversize DNS Oversize Bad Header -DNS Yes An ICMP frame checksum is bad. Reuse the TCP or UDP checksum bits in the packet

bad-icmp-chksum Bad ICMP Checksum Bad Header -ICMP Yes The ICMP frame is either the wrong size, or not of one of the valid IPv4 or IPv6 types.

Valid IPv4 types: bad-icmp-frame

Bad ICMP Frame

• 0 Echo Reply • 3 Destination Unreachable • 4 Source Quench • 5 Redirect • 8 Echo • 11 Time Exceeded • 12 Parameter Problem • 13 Timestamp • 14 Timestamp Reply • 15 Information Request • 16 Information Reply • 17 Address Mask Request • 18 Address Mask Reply Valid IPv6 types:

• 1 Destination Unreachable

19 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(20)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category

• 2 Packet Too Big • 3 Time Exceeded • 4 Parameter Problem • 128 Echo Request • 129 Echo Reply • 130 Membership Query • 131 Membership Report • 132 Membership Reduction Yes The ICMP frame exceeds the declared IP data length or the maximum datagram length. To tune this value, icmp-frame-too-large

ICMP Frame Too Large

in tmsh:modify sys db

dos.maxicmpframesize value, wherevalueis <=65515.

Yes IPv4 IGMP packets should have a header >= 8 bytes. Bits 7:0 should be either 0x11, 0x12, 0x16, 0x22 or bad-igmp-frame

Bad IGMP Frame Bad

Header

-IGMP 0x17, or else the header is bad. Bits 15:8 should be non-zero only if bits 7:0 are 0x11, or else the header is bad.

Yes Time-to-live equals zero for an IPv4 address.

bad-ttl-val Bad IP TTL Value Bad Header -IPv4 Yes The IPv4 address version in the IP header is not 4. bad-ver

Bad IP Version

Yes No room in layer 2 packet for IP header (including options) for IPv4 address

hdr-len-gt-l2-len Header Length >

L2 Length

Yes IPv4 header length is less than 20 bytes

hdr-len-too-short Header Length

Too Short

Yes The IPv4 source IP =255.255.255.255or

0xe0000000U

ip-bad-src Bad Source

Yes The header checksum is not correct

ip-err-chksum IP Error

Checksum

Yes Total length in IPv4 address header or payload length in IPv6 address header is greater than the layer 3 length in a layer 2 packet

ip-len-gt-l2-len IP Length > L2

Length

Yes An IP packet with a destination that is not multicast and that has a TTL greater than 0 and less than or ttl-leq-one

TTL <= <tunable>

equal to a tunable value, which is 1 by default. To tune this value, in tmsh:modify sys db dos.iplowttl value, wherevalueis1-4.

Yes IPv4 address packet withoption.db variable tm.acceptipsourceroutemust be enabled to receive IP options

ip-opt-frames IP Option Frames

No Option present with illegal length

bad-ip-opt IP Option Illegal

Length

Yes Layer 2 packet length is much greater than the

payload length in an IPv4 address header and the l2-len-ggt-ip-len

L2 Length >> IP Length

20

(21)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category

layer 2 length is greater than the minimum packet size

Yes No layer 4 payload for IPv4 address

no-l4 No L4

No Unknown IP option type

unk-ipopt-type Unknown Option

Type

Yes Extension headers in the IPv6 header are in the

wrong order bad-ext-hdr-order IPv6 extended headers wrong order Bad Header -IPv6 Yes Both the terminated (cnt=0) and forwarding packet (cnt=1) counts are bad.

bad-ipv6-hop-cnt Bad IPV6 Hop

Count

Yes The IPv6 address version in the IP header is not 6 bad-ipv6-ver

Bad IPV6 Version

Yes An extension header should occur only once in an IPv6 packet, except for the Destination Options extension header.

dup-ext-hdr IPv6 duplicate

extension headers

Yes An extension header is too large. To tune this value, in tmsh:modify sys db dos.maxipv6extsize value, wherevalueis0-1024.

ext-hdr-too-large IPv6 extension

header too large

Yes The IPv6 extended header hop count is less than or equal to <tunable>. To tune this value, in tmsh: hop-cnt-leq-one

IPv6 hop count <= <tunable>

modify sys db dos.ipv6lowhopcnt value,

wherevalueis1-4.

Yes IPv6 source IP =0xff00::

ipv6-bad-src Bad IPv6 source

Yes IPv6 address contains extended header frames

ipv6-ext-hdr-frames IPV6 Extended

Header Frames

Yes IPv6 address length is greater than the layer 2 length ipv6-len-gt-l2-len

IPV6 Length > L2 Length

Yes IPv6 packet source address is the same as the

destination address IPV6 Source Address == Destination Address Yes Extended headers go to the end or past the end of the L4 frame l4-ext-hdrs-go-end No L4 (Extended Headers Go To Or Past End of Frame) Yes Specified IPv6 payload length is less than the L2 packet length

payload-len-ls-l2-len Payload Length <

L2 Length

Yes For an IPv6 address, there are more than <tunable> extended headers (the default is4). To tune this too-many-ext-hdrs

Too Many Extended

Headers value, in tmsh:modify sys db

dos.maxipv6exthdrs value, wherevalueis

0-15.

21 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(22)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category Yes Ethernet MAC source address equals the destination address. ether-mac-sa-eq-da Ethernet MAC Source Address == Destination Address Bad Header -L2 Yes The TCP checksum does not match

bad-tcp-chksum Bad TCP Checksum Bad Header -TCP Yes Bad TCP flags (all cleared and SEQ#=0)

bad-tcp-flags-all-clr Bad TCP Flags

(All Cleared)

Yes Bad TCP flags (all flags set)

bad-tcp-flags-all-set Bad TCP Flags

(All Flags Set)

Yes Bad TCP flags (only FIN is set)

fin-only-set FIN Only Set

Yes Option present with illegal length

opt-present-with-illegal-len Option Present

With Illegal Length

Yes Bad TCP flags (SYN and FIN set)

syn-and-fin-set SYN && FIN

Set

Yes Packet contains a bad URG flag, this is likely

malicious tcp-bad-urg TCP Flags - Bad URG Yes tcp-hdr-len-gt-l2-len TCP Header Length > L2 Length Yes The Data Offset value in the TCP header is less than five 32-bit words

tcp-hdr-len-too-short TCP Header

Length Too Short (Length < 5)

Yes The TCP option bits overrun the TCP header.

tcp-opt-overruns-tcp-hdr TCP Option

Overruns TCP Header

Yes Unknown TCP option type

unk-tcp-opt-type Unknown TCP

Option Type

Yes The UDP checksum is not correct

bad-udp-chksum Bad UDP Checksum Bad Header -UDP Yes UDP length is greater than IP length or layer 2 length bad-udp-hdr

Bad UDP Header (UDP Length > IP Length or L2 Length)

Yes UDP packet, DNS Qtype is AAAA, VLAN is

<tunable>. To tune this value, in tmsh:modify sys

dns-aaaa-query DNS AAAA

Query DNS

db dos.dnsvlan value, wherevalueis

0-4094.. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094.

Yes UDP packet, DNS Qtype is ANY_QRY, VLAN is <tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-any-query

DNS Any Query

22

(23)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category Yes UDP packet, DNS Qtype is AXFR, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-axfr-query

DNS AXFR Query

Yes UDP packet, DNS Qtype is A_QRY, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-a-query

DNS A Query

Yes UDP DNS query, DNS Qtype is CNAME, VLAN is <tunable>. To tune this value, in tmsh:modify

dns-cname-query DNS CNAME

Query

sys db dos.dnsvlan value, wherevalueis

0-4094.

Yes UDP DNS query, DNS Qtype is IXFR, VLAN is <tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-ixfr-query DNS IXFR Query Yes Malformed DNS packet dns-malformed DNS Malformed Yes UDP DNS query, DNS Qtype is MX, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-mx-query

DNS MX Query

Yes UDP DNS query, DNS Qtype is NS, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-ns-query

DNS NS Query

Yes UDP DNS query, DNS Qtype is OTHER, VLAN is <tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-other-query

DNS OTHER Query

Yes UDP DNS query, DNS Qtype is PTR, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094.

dns-ptr-query DNS PTR Query

Yes UDP packet, DNS qdcount neq 1, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-qdcount-limit

DNS QDCount Limit

Yes UDP DNS Port=53, packet and DNS header flags bit 15 is 1 (response), VLAN is <tunable>. To tune dns-response-flood

DNS Response Flood

this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094.;

Yes UDP packet, DNS Qtype is SOA_QRY, VLAN is <tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-soa-query

DNS SOA Query

Yes UDP packet, DNS Qtype is SRV, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-srv-query

DNS SRV Query

Yes UDP packet, DNS Qtype is TXT, VLAN is

<tunable>. To tune this value, in tmsh:modify sys db dos.dnsvlan value, wherevalueis0-4094. dns-txt-query

DNS TXT Query

Yes ARP packet flood

arp-flood ARP Flood

Flood

23 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(24)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category Yes Ethernet broadcast packet flood

ether-brdcst-pkt Ethernet

Broadcast Packet

Yes Ethernet destination is not broadcast, but is multicast ether-multicst-pkt

Ethernet Multicast Packet

Yes Flood with ICMP v4 packets

icmpv4-flood ICMPv4 Flood

Yes Flood with ICMP v6 packets

icmpv6-flood ICMPv6 Flood

Yes Flood with IGMP packets (IPv4 packets with IP protocol number 2)

igmp-flood IGMP Flood

Yes Fragmented packet flood with IGMP protocol

igmp-frag-flood IGMP Fragment

Flood

Yes Fragmented packet flood with IPv4

ip-frag-flood IPv4 Fragment

Flood

Yes Fragmented packet flood with IPv6

ipv6-frag-flood IPv6 Fragment

Flood

Yes Routing header type zero is present in flood packets routing-header-type-0

Routing Header Type 0

No TCP ACK packet flood

tcp-ack-flood TCP BADACK Flood Yes TCP RST flood tcp-rst-flood TCP RST Flood Yes TCP SYN/ACK flood tcp-synack-flood TCP SYN ACK Flood Yes TCP SYN flood tcp-syn-flood TCP SYN Flood Yes The TCP window size in packets is above the

maximum. To tune this value, in tmsh:modify sys

tcp-window-size TCP Window

Size

db dos.tcplowwindowsize value, wherevalue

is <=128.

Yes UDP flood attack

udp-flood UDP Flood

Yes ICMP fragment flood

icmp-frag ICMP Fragment

Fragmentation

Yes IPv6 Frag header present with M=0 and FragOffset =0

ipv6-atomic-frag IPV6 Atomic

Fragment

No Other IPv6 fragment error

ipv6-other-frag IPV6 Fragment

Error

No IPv6 overlapping fragment error

ipv6-overlap-frag IPv6 Fragment

Overlap

Yes IPv6 short fragment error

ipv6-short-frag IPv6 Fragmentat

Too Small

No Other IPv4 fragment error

ip-other-frag IP Fragment

Error

No IPv4 overlapping fragment error

ip-overlap-frag IP Fragment

Overlap

24

(25)

Hardware accelerated Information Dos Vector Name Attack Name DoS Category Yes IPv4 short fragment error

ip-short-frag IP Fragment Too

Small

No Flood to a single endpoint. You can configure packet types to check for, and packets per second for both detection and rate limiting

flood Single Endpoint Flood Single Endpoint No Sweep on a single endpoint. You can configure

packet types to check for, and packets per second for both detection and rate limiting

sweep Single Endpoint

Sweep

No SIP ACK packets

sip-ack-method SIP ACK Method

SIP

No SIP BYE packets

sip-bye-method SIP BYE Method

No SIP CANCEL packets

sip-cancel-method SIP CANCEL

Method

No SIP INVITE packets

sip-invite-method SIP INVITE

Method

No Malformed SIP packets

sip-malformed SIP Malformed

No SIP MESSAGE packets

sip-message-method SIP MESSAGE

Method

No SIP NOTIFY packets

sip-notify-method SIP NOTIFY

Method

No SIP OPTIONS packets

sip-options-method SIP OPTIONS

Method

No SIP OTHER packets

sip-other-method SIP OTHER

Method

No SIP PRACK packets

sip-prack-method SIP PRACK

Method

No SIP PUBLISH packets

sip-publish-method SIP PUBLISH

Method

No SIP REGISTER packets

sip-register-method SIP REGISTER

Method

No SIP SUBSCRIBE packets

sip-subscribe-method SIP SUBSCRIBE

Method

Yes Host unreachable error

host-unreachable Host Unreachable

Other

Yes Spoofed TCP SYN packet attack

land-attack LAND Attack

Yes ICMP source quench attack

tidcmp TIDCMP

25 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(26)
(27)

Chapter

3

Preventing DoS Sweep and Flood Attacks

About DoS sweep and flood attack prevention

Detecting and protecting against single endpoint DoS flood attacks

Detecting and protecting against DoS sweep attacks

Detecting and protecting against UDP flood attacks

Allowing addresses to bypass DoS checks with a whitelist

(28)

About DoS sweep and flood attack prevention

A sweep attack is a network scanning technique that typically sweeps your network by sending packets, and using the packet responses to determine live hosts. Typical attacks use ICMP to accomplish this. The Sweep vector tracks packets by source address. Packets from a specific source that meet the defined single endpoint Sweep criteria, and are above the rate limit, are dropped.

Important: The sweep mechanism protects against a flood attack from a single source, whether that attack

is to a single destination host, or multiple hosts.

A flood attack is a an attack technique that floods your network with packets of a certain type, in an attempt to overwhelm the system. A typical attack might flood the system with SYN packets without then sending corresponding ACK responses. UDP flood attacks flood your network with a large amount of UDP packets, requiring the system to check for applications and send responses.

The Flood vector tracks packets per destination address. Packets to a specific destination that meet the defined Single Endpoint Flood criteria, and are above the rate limit, are dropped.

The BIG-IP®system can detect such attacks with a configurable detection threshold, and can rate limit packets from a source when the detection threshold is reached.

You can configure DoS sweep and flood prevention to detect and prevent floods and sweeps of ICMP, UDP, TCP SYN without ACK, or any IP packets that originate from a single source address, according to the threshold setting. Both IPv4 and IPv6 are supported. The sweep vector acts first, so a packet flood from

a single source address to a single destination address is handled by the sweep vector.

You can configure DoS sweep and flood prevention through the Device DoS profile.

Detecting and protecting against single endpoint DoS flood attacks

With the DoS Protection Device Configuration screen settings, you can set detection thresholds and rate limits for DoS flood attacks.

1. On the Main tab, click Security > DoS Protection > Device Configuration. The DoS Protection Device Configuration screen opens.

2. To log DoS events to a log publisher, from the Log Publisher list, select a destination to which the BIG-IP®system sends DoS and DDoS log entries, and click Update.

3. In the Category column, expand the Single Endpoint category.

4. Click Single Endpoint Flood.

The Single Endpoint Flood screen opens.

5. From the Detection Threshold PPS list, select Specify or Infinite.

Use Specify to set a value (in packets per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and marks the threshold as an attack as long as the threshold is exceeded. • Use Infinite to set no value for the threshold. This specifies that this type of attack is not logged or

reported based on this threshold.

6. From the Default Internal Rate Limit list, select Specify or Infinite.

28

(29)

Use Specify to set a value (in packets per second), which cannot be exceeded by packets of this type. All packets of this type over the threshold are dropped. Rate limiting continues until the rate drops below the specified limit again.

Use Infinite to set no value for the threshold. This specifies that this type of attack is not rate-limited.

7. In the Packet Type area, select the packet types you want to detect for this attack type in the Available list, and click << to move them to the Selected list.

8. Click the Update button.

The flood attack configuration is updated, and the DoS Protection Device Configuration screen opens again.

Now you have configured the system to provide protection against DoS flood attacks, and to allow such attacks to be identified in system logs and reports.

Configure sweep attack prevention, and configure any other DoS responses, in the DoS device configuration. Configure whitelist entries for addresses that you specifically want to bypass all DoS checks. Configure SNMP traps, logging, and reporting for DoS attacks, to track threats to your system.

Detecting and protecting against DoS sweep attacks

With the DoS Protection Device Configuration screen settings, you can set detection thresholds and rate limits for DoS sweep attacks.

1. On the Main tab, click Security > DoS Protection > Device Configuration. The DoS Protection Device Configuration screen opens.

2. To log DoS events to a log publisher, from the Log Publisher list, select a destination to which the BIG-IP®system sends DoS and DDoS log entries, and click Update.

3. In the Category column, expand the Single Endpoint category.

4. Click Single Endpoint Sweep.

The Single Endpoint Sweep screen opens.

5. From the Detection Threshold PPS list, select Specify or Infinite.

Use Specify to set a value (in packets per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and marks the threshold as an attack as long as the threshold is exceeded. • Use Infinite to set no value for the threshold. This specifies that this type of attack is not logged or

reported based on this threshold.

6. From the Default Internal Rate Limit list, select Specify or Infinite.

Use Specify to set a value (in packets per second), which cannot be exceeded by packets of this type. All packets of this type over the threshold are dropped. Rate limiting continues until the rate drops below the specified limit again.

Use Infinite to set no value for the threshold. This specifies that this type of attack is not rate-limited.

7. In the Packet Type area, select the packet types you want to detect for this attack type in the Available list, and click << to move them to the Selected list.

8. Click the Update button.

The sweep attack configuration is updated, and the DoS Protection Device Configuration screen opens again.

Now you have configured the system to provide protection against DoS sweep attacks, and to allow such attacks to be identified in system logs and reports.

29 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(30)

Configure flood attack prevention, and configure any other DoS responses, in the DoS device configuration. Configure whitelist entries for addresses that you specifically choose to bypass all DoS checks. Configure SNMP traps, logging, and reporting for DoS attacks, to track threats to your system.

Detecting and protecting against UDP flood attacks

With the DoS Protection Device Configuration screen settings, you can set detection thresholds and rate limits for UDP flood attacks.

1. On the Main tab, click Security > DoS Protection > Device Configuration. The DoS Protection Device Configuration screen opens.

2. To log DoS events to a log publisher, from the Log Publisher list, select a destination to which the BIG-IP®system sends DoS and DDoS log entries, and click Update.

3. In the Category column, expand the Flood category.

4. Click UDP Flood.

The UDP Flood screen opens.

5. From the Detection Threshold PPS list, select Specify or Infinite.

Use Specify to set a value (in packets per second) for the attack detection threshold. If packets of the specified types cross the threshold, an attack is logged and reported. The system continues to check every second, and marks the threshold as an attack as long as the threshold is exceeded. • Use Infinite to set no value for the threshold. This specifies that this type of attack is not logged or

reported based on this threshold.

6. From the Detection Threshold Percent list, select Specify or Infinite.

Use Specify to set a value (in percentage of traffic) for the attack detection threshold. If packets of the specified types cross the percentage threshold, an attack is logged and reported. The system continues to check every second, and marks the threshold as an attack as long as the threshold is exceeded.

Use Infinite to set no value for the threshold. This specifies that this type of attack is not logged or reported based on this threshold.

7. From the Default Internal Rate Limit list, select Specify or Infinite.

Use Specify to set a value (in packets per second), which cannot be exceeded by packets of this type. All packets of this type over the threshold are dropped. Rate limiting continues until the rate drops below the specified limit again.

Use Infinite to set no value for the threshold. This specifies that this type of attack is not rate-limited.

8. From the UDP Port List Type list, select Include All Ports or Exclude All Ports.

An Include list checks all the ports you specify in the UDP Port List, using the specified threshold criteria, and ignores all others.

An Exclude list excludes all the ports you specify in the UDP Port List from checking, using the specified threshold criteria, and checks all others. To check all UDP ports, specify an empty exclude list.

9. In the UDP Port List area, type a port number to add to an exclude or include UDP port list.

10.In the UDP Port List area, select the mode for each port number you want to add to an exclude or include UDP port list.

None does not include or exclude the port.

Source only includes or excluded the port from source packets only.

Destination only includes or excludes the port for destination packets only.

Both Source and Destination includes or excludes the port in both source and destination packets.

30

(31)

11.Click the Update button.

The UDP Flood attack configuration is updated, and the DoS Protection Device Configuration screen opens again.

Now you have configured the system to provide customized protection against UDP flood attacks, and to allow such attacks to be identified in system logs and reports.

Configure sweep and flood attack prevention, and configure any other DoS responses, in the DoS device configuration screens. Configure whitelist entries for addresses that you specifically choose to bypass all DoS checks. Configure SNMP traps, logging, and reporting for DoS attacks, to track threats to your system.

Allowing addresses to bypass DoS checks with a whitelist

You can specify whitelist addresses that the DoS profile and DoS Device Configuration do not subject to DoS checks. Whitelist entries are shared between the Dos Protection profile and the DoS Device Configuration.

1. On the Main tab, click Security > DoS Protection > White List. The DoS Protection White List screen opens.

2. Click Create.

The New White List Configuration screen opens.

3. In the Name field, type a name for the whitelist entry.

4. In the Description field, type a description for the whitelist entry.

5. From the Protocol list, select the protocol for the whitelist entry. The options are Any, TCP, UDP, ICMP, or IGMP.

6. In the Source area, specify the IP address and VLAN combination that serves as the source of traffic that the system recognizes as acceptable to pass the DoS checks.

You can also use Any to specify any address or VLAN.

7. For the Destination setting, specify the IP address and port combination that serves as the intended destination for traffic that the system recognizes as acceptable to pass DoS checks.

You can also use Any to specify any address or port.

8. Click Finished to add the whitelist entry to the configuration. Click Repeat to add the whitelist entry, and star a new entry.

You can add up to eight DoS whitelist entries to the configuration.

You have now configured whitelist addresses that are allowed to bypass DoS checks.

31 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(32)
(33)

Chapter

4

Detecting and Preventing DNS DoS Attacks

About configuring the BIG-IP system to detect DNS DoS attacks

(34)

About configuring the BIG-IP system to detect DNS DoS attacks

DNS DoS protection is a type of protocol security. DNS attack detection and prevention serves two functions: • To detect and automatically drop DNS packets that are malformed or contain errors.

• To log unusual increases in DNS packets of any type, including packets that are malformed, packets that contain errors, or packets of any other type that appear to rapidly increase.

You can use the DNS DoS Protection profile to configure the percentage increase over the system baseline, which indicates that a possible attack is in process on a particular DNS query type, or an increase in anomalous packets. Later, you can use reporting or logging functions to detect such packets, and you can use the DNS Security profile to drop packets with specific query types or header opcodes.

You can define whitelist addresses that the DoS check allows. A whitelist DoS address is passed by the DoS profile, without being subject to the checks in the DoS profile.

DNS DoS protection requires that your virtual server includes a DNS profile, and a DoS profile that includes DNS protocol security.

Task summary

Detecting and protecting against DNS denial-of-service attacks with a DoS profile

You can configure DNS attack settings in a DoS profile that already exists.

The BIG-IP®system handles DNS attacks that use malformed packets, protocol errors, and malicious attack vectors. Protocol error attack detection settings detect malformed and malicious packets, or packets that are employed to flood the system with several different types of responses, by detecting packets per second and increasing packet percentages over time . You can configure settings to identify and rate limit possible DNS attacks with a DoS profile.

1. On the Main tab, click Security > DoS Protection > DoS Profiles. The DoS Profiles list screen opens.

2. Click Create.

The Create New DoS Profile screen opens.

3. In the Profile Name field, type the name for the profile.

4. To configure DNS security settings, next to Protocol Security (DNS), select Enabled.

5. To enable attack detection based on the rate of protocol errors, next to Protocol Errors Attack Detection, select Enabled.

6. In the Rate Increased by % field, type the rate of change in protocol errors to detect as anomalous. The rate of detection compares the average rate over the last minute to the average rate over the last hour. For example, the500%base rate would indicate an attack if the average rate for the previous hour was100000packets/second, and over the last minute the rate increased to500000packets/second.

7. To change the threshold or rate increase for a particular DNS query type, in the DNS Query Attack Detection area, select the Enabled check box for each query type that you want to change, then change the values for Threshold, Rate Increase, and Rate Limit in the associated fields.

For example, to change the thresholds for IPv6 address requests, select the Enabled check box next to

aaaa, then set the threshold for packets per second, the rate increase percentage to be considered an

attack, and rate limit in packets per second for such packets.

34

(35)

The Rate Increase compares the average rate over the last minute to the average rate over the last hour. For example, the500%base rate would indicate an attack if the average rate for the previous hour was

100000packets/second, and over the last minute the rate increased to500000packets/second.

Note: DNS Query Attack Detection allows you to configure the thresholds at which the firewall registers

an attack. Packets are dropped that exceed the Rate Limit.

8. Click Update to save your changes.

You have now configured a DoS Protection profile to provide custom responses to malformed DNS attacks, and DNS flood attacks, and to allow such attacks to be identified in system logs and reports, and rate limited. Associate a DNS profile with a virtual server to enable the virtual server to handle DNS traffic. Associate the DoS Protection profile with a virtual server to apply the settings in the profile to traffic on that virtual server. When a DNS attack on a specific query type is detected, you can configure the DNS security profile to drop packets of a query type that appears to be an attack vector.

Creating a custom DNS profile to firewall DNS traffic

Ensure that you have a DNS security profile created before you configure this system DNS profile. You can create a custom DNS profile to configure the BIG-IP®system firewall traffic through the system.

1. On the Main tab, click Local Traffic > Profiles > Services > DNS. The DNS profile list screen opens.

2. Click Create.

The New DNS Profile screen opens.

3. In the Name field, type a unique name for the profile.

4. In the General Properties area, from the Parent Profile list, accept the default dns profile.

5. Select the Custom check box.

6. In the DNS Traffic area, from the DNS Security list, select Enabled.

7. In the DNS Traffic area, from the DNS Security Profile Name list, select the name of the DNS firewall profile.

8. Click Finished.

Assign the custom DNS profile to the virtual server that handles the DNS traffic that you want to firewall.

Assigning a DNS profile to a virtual server

1. On the Main tab, click Local Traffic > Virtual Servers. The Virtual Server List screen opens.

2. Click the name of the virtual server you want to modify.

3. From the Configuration list, select Advanced.

4. From the DNS Profile list, select the profile you want to assign to the virtual server.

5. Click Update.

The virtual server now handles DNS traffic.

35 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(36)

Associating a DoS profile with a virtual server

You must first create a DoS profile separately, to configure denial-of-service protection for applications, the DNS protocol, or the SIP protocol.

You add denial-of-service protection to a virtual server to provide enhanced protection from DoS attacks, and track anomalous activity on the BIG-IP®system.

1. On the Main tab, click Local Traffic > Virtual Servers. The Virtual Server List screen opens.

2. Click the name of the virtual server you want to modify.

3. In the Destination Address field, type the IP address in CIDR format.

The supported format is address/prefix, where the prefix length is in bits. For example, an IPv4 address/prefix is10.0.0.1or10.0.0.0/24, and an IPv6 address/prefix isffe1::0020/64or

2001:ed8:77b5:2:10:10:100:42/64. When you use an IPv4 address without specifying a prefix, the BIG-IP®system automatically uses a/32prefix.

4. From the Security menu, choose Policies.

5. To enable denial-of-service protection, from the DoS Protection Profile list, select Enabled, and then, from the Profile list, select the DoS profile to associate with the virtual server.

6. Click Update to save the changes.

DoS protection is now enabled, and the DoS Protection profile is associated with the virtual server.

Allowing addresses to bypass DoS checks with a whitelist

You can specify whitelist addresses that the DoS profile and DoS Device Configuration do not subject to DoS checks. Whitelist entries are shared between the Dos Protection profile and the DoS Device Configuration.

1. On the Main tab, click Security > DoS Protection > White List. The DoS Protection White List screen opens.

2. Click Create.

The New White List Configuration screen opens.

3. In the Name field, type a name for the whitelist entry.

4. In the Description field, type a description for the whitelist entry.

5. From the Protocol list, select the protocol for the whitelist entry. The options are Any, TCP, UDP, ICMP, or IGMP.

6. In the Source area, specify the IP address and VLAN combination that serves as the source of traffic that the system recognizes as acceptable to pass the DoS checks.

You can also use Any to specify any address or VLAN.

7. For the Destination setting, specify the IP address and port combination that serves as the intended destination for traffic that the system recognizes as acceptable to pass DoS checks.

You can also use Any to specify any address or port.

8. Click Finished to add the whitelist entry to the configuration. Click Repeat to add the whitelist entry, and star a new entry.

You can add up to eight DoS whitelist entries to the configuration.

You have now configured whitelist addresses that are allowed to bypass DoS checks.

36

(37)

Creating a custom DoS Protection Logging profile

Create a custom Logging profile to log DoS Protection events and send the log messages to a specific location.

1. On the Main tab, click Security > Event Logs > Logging Profiles. The Logging Profiles list screen opens.

2. Click Create.

The New Logging Profile screen opens.

3. Select the DoS Protection check box.

4. In the DNS DoS Protection area, from the Publisher list, select the publisher that the BIG-IP system uses to log DNS DoS events.

You can specify publishers for other DoS types in the same profile, for example, for SIP or Application DoS Protection.

5. Click Finished.

Assign this custom DoS Protection Logging profile to a virtual server.

Configuring an LTM virtual server for DoS Protection event logging

Ensure that at least one Log Publisher exists on the BIG-IP®system.

Assign a custom DoS Protection Logging profile to a virtual server when you want the BIG-IP system to log DoS Protection events on the traffic the virtual server processes.

Note: This task applies only to LTM®-provisioned systems.

1. On the Main tab, click Local Traffic > Virtual Servers. The Virtual Server List screen opens.

2. Click the name of the virtual server you want to modify.

3. On the menu bar, click Security > Policies. The screen displays firewall rule settings.

4. From the Log Profile list, select Enabled. Then, for the Profile setting, move the profiles that log specific events to specific locations from the Available list to the Selected list.

5. Click Update to save the changes.

37 BIG-IP® Systems: DOS Protection and Protocol Firewall Implementations

(38)
(39)

Chapter

5

Detecting SIP DoS Attacks

About configuring the BIG-IP system to detect SIP DoS attacks

References

Related documents

It is the INFN special project, started in 2000 and still on going with several goals: to promote computational grid technologies research and development middleware through

As for whether we’ve received national security requests targeting our users, such as National Security Letters (FBI-issued requests for subscriber information), or Foreign

The study showed the significant impact that optimism, depression, and anxiety have on students perceived level of stress and the significant impact that self-efficacy and

If the argument of an application is not a value, we can postpone its evaluation by wrapping it into a closure that treats the argument expression as a lambda.. abstraction

study was designed to document the commonly isolated gram-negative bacilli from different clinical specimens and their susceptibility patterns in tertiary health care hospital

From the CMVSA passage in 1986 to today, AAMVA has worked hand in hand with the Federal Highway Administration, the newly created Federal Motor Carrier Safety Administration

Matching outcomes and intervention strategies to the families’ priorities, needs and interests, building on routines and activities they want and need to do;

Auburn Prisoner 22,117 wrote an article in 1904 entitled “Women’s Have a Right to Preach,” in which he argues that women should be recognized for the work that they do in