Description | Syntax | Examples | |
---|---|---|---|
1 | By IPv4 Address only | ip host {[ipv4] address} |
|
2 | By IPv6 Address only | ip6 host {[ipv6] address} |
|
3 | By Source IP only | src host {[ipv4/v6] address} |
|
4 | By Destination IP only | dst host {[ipv4/v6] address} |
|
5 | By source and/or destination IPv4/IPv6 address | src host {[ipv4] address} [and/or] dst host {[ipv4] address} src host {[ipv4] address} [and/or] dst host {[ipv6] address} |
|
6 | By Port Number | src port {[port number] limited to 2^16} [and/or] dst port {[port number] limited to 2^16} |
|
7 | By source and/or destination IPv4/IPv6 address and/or Port number | ip host {[ipv4] address} [and/or] port {[port number] limited to 2^16} ip6 host {[ipv6] address} [and/or] port {[port number] limited to 2^16} |
|
8 | By source and/or destination IPv4/IPv6 address and/or source and/or destination Port number | src/dst host {[ipv6] address} [and/or] src/dst port {[port number] limited to 2^16} |
|
9 | By Protocol | {[tcp/udp/icmp/sctp/igmp/arp/rarp]} ip proto {[tcp/udp/icmp/sctp/igmp/arp/rarp]} ether proto {[ip/ip6/arp/rarp]} | tcp or udp or icmp or icmp6 or igmp or arp ip proto \\tcp or ip proto \\udp ip proto \\igmp NOTE: with ip proto tag tcp, udp, icmp, igmp protocols must be escaped with backslash. ip proto 0x06 (same as ip proto \\tcp or just tcp) ip6 proto 0x11 (same as ip6 proto \\udp) ip6 proto 0x58 (same as ip6 proto \\icmp or just icmp6) ether proto \\ip (same as ether proto 0x0800) ether proto \\ip6 (same as ether proto 0x86dd) ether proto \\arp (same as ether proto 0x0806) |
10 | By Protocol and Port Number | {[tcp/udp/icmp/sctp/igmp/arp/rarp]} [and/or] (src port {[port number] limited to 2^16} [and/or] dst port {[port number] limited to 2^16}) ip proto {[tcp/udp/icmp/sctp/igmp/arp/rarp]} [and/or] (src port {[port number] limited to 2^16} [and/or] dst port {[port number] limited to 2^16}) |
NOTE: with ip proto tag tcp, udp, icmp, igmp protocols must be escaped with backslash. |
11 | By Protocol and Port Number and IP address | {[tcp/udp/icmp/sctp/igmp/arp/rarp]} [and/or] (src port {[port number] limited to 2^16} [and/or] dst port {[port number] limited to 2^16}) [and/or] src/dst host {[ipv4/ipv6] address} By destination Port Number but should not have specific src port number and specific protocol |
NOTE: parentheses are special to the Shell and must be escaped |
12 | By Protocol and IP | {[tcp/udp/sctp/icmp/igmp/arp/rarp]} and src host {[ipv4/v6] address} |
NOTE: To exclude a particular protocol, see below examples
|
13 | By Protocol and Multiple IP | {[tcp/udp/icmp/sctp/igmp/arp/rarp]} and (src host {[ipv4/v6] address1} or src host {[ipv4/v6] address2} or src host {[ipv4/v6] address3}) |
|
14 | By Port and IP | src host [ipv4/v6] and dst host [ipv4/v6] and src port {[port number] limited to 2^16} [and/or] dst port {[port number] limited to 2^16} |
Alternatively you can rewrite the above example as shown below.
|
15 | By Protocol Port and Multiple IP |
| |
16 | By Portrange | portrange {[0-65535] limited to 0 - 2^16}} |
NOTE: |
17 | By Port Portrange and IP | portrange 0-65535 and not port {[port number] limited to 2^16} [and/or] ip host {[ipv4/v6] address} |
NOTE: |
18 | By Subnet | net [IP]/Mask(bits) net [IP] mask [Subnet Mask] |
|
19 | By Multicast Address | multicast [multicast IP addr] multicast [mac addr] |
|
20 | By Broadcast Address | broadcast [broadcast IP addr] broadcast [broadcast mac addr] |
|
21 | By IP broadcast or multicast packets Note: jump to specific byte offset to verify | IP broadcast or multicast packets that were not sent via Ethernet broadcast or multicast: |
Note: ‘&' and '>’ should be escaped with backslash |
22 | By TCP flags | start and end packets (the SYN and FIN packets) of each TCP conversation that involves a non-local host ALL IPv4 HTTP packets to and from port 80, i.e. print only packets that contain data, not, for example, SYN and FIN packets and ACK-only packets. |
NOTE: the expression is quoted to prevent the shell from (mis-)interpreting the parentheses. |
23 | By Gateway | gateway <hostname> Where hostname can be retrieved from /etc/hosts file or run “arp” command. NOTE: However this syntax doesnt work with IPv6 enabled configuration. Hence search binary doesn’t support this for the time being. | gateway snup |
General
Content
Integrations