![](/images/new-backgrounds/1191828/191828557x1.webp)
This also blocks all TCP packets from class C addresses 192.168.1.0 with SYN set.
Console(config)#ip filter deny tcp 192.168.1.0 255.255.255.0
0.0.0.00.0.0.0 code 2 2 Console(config)#
Example – Checking for port numbers
This example allows TCP packets from class C addresses 192.168.1.0 to anywhere when set for destination port 80.
Console(config)#ip filter permit tcp 192.168.1.0 255.255.255.0
0.0.0.00.0.0.0 80
Console(config)#
This example drops any TCP packets from source 10.7.1.1 to destination 10.8.1.1, with the source port between 30 - 46 and the destination port between 100 - 2000.
Console(config)#ip filter deny tcp 10.7.1.1 255.255.255.255 30- 46 10.8.1.1 255.255.255.255
Console(config)#
4.3.7.9show ip filter
Use this command to display all rules in the IP filter table.
Syntax
show ip filter
■
■log – Display all packets stored in the log buffer. Note that packets stored in this buffer must match the rules in the filter table. The maximum number of entries stored in the log buffer is 64.
If no options are selected, all packets in the log buffer are displayed.
Default Setting
None
Chapter 4