December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to filter on the flag bits in the TCP header.
The following ACL blocks several illegal combinations of TCP header flags:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#access-list161deny tcp any any ack fin psh rst syn urgRouter1(config)#access-list161deny tcp any any rst synRouter1(config)#access-list161deny tcp any any rst syn finRouter1(config)#access-list161deny tcp any any rst syn fin ackRouter1(config)#access-list161deny tcp any any syn finRouter1(config)#access-list161deny tcp any any syn fin ackRouter1(config)#endRouter1#
Beginning with IOS Version 12.3(4)T, Cisco changed the format of TCP flag filtering, while still maintaining support for the legacy method. The following is the same example as above using the new TCP flag filtering method:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#ip access-list extended TCPFLAGFILTERRouter2(config-ext-nacl)#deny tcp any any match-all +ack +fin +psh +rst +syn +urgRouter2(config-ext-nacl)#deny tcp any any match-all +rst +synRouter2(config-ext-nacl)#deny tcp any any match-all +rst +syn +finRouter2(config-ext-nacl)#deny tcp any any match-all +rst +syn +fin +ackRouter2(config-ext-nacl)#deny tcp any any match-all +syn +finRouter2(config-ext-nacl)#deny tcp any any match-all +syn +fin +ackRouter2(config-ext-nacl)#endRouter2#
There ...
Read now
Unlock full access