The ONL Tutorial

Tutorial >> Filters, Queues and Bandwidth TOC

Filtering With TCP Flags

There are six TCP flag bits in the TCP header which can be used to identify packets that have any of these bits ON:

For example, we count the number of TCP connection attempts by matching all TCP packets with the SYN bit on if we know the sender's IP address. Or, we can simulate a SYN flood attack by dropping all TCP packets from a sender except for its SYN packet.


Fig. 1. TCP Flags Field in a GM Filter.

You can filter on the TCP flag fields (SYN, ACK, FIN, RST, PSH, URG) using a GM (General Match) filter (Fig. 1). Fig. 1 shows an egress GM filter that could be used to count TCP connection attempts; i.e., it will match a TCP SYN packet coming from anywhere and going anywhere and forward it in the usual manner. The main things to remember are:

The Using TCP Flags example demonstrates how to use the TCP-flags feature to:

A new version of the SYN Attack Mitigation Demo will also demonstrate how TCP flag filtering can be used.

 Revised:  Mon, Jan 28, 2008 

  
  

Tutorial >> Filters, Queues and Bandwidth TOC