To set TCP/UDP port checking, use the following parameters:
-
.src_port: to check source ports
-
.dst_port: to check destination ports
The following expressions are supported:
Name |
Description |
---|---|
.src_port=<port_number>; .dst_port=<port_number>; |
Specifying a certain source and/or destination port. |
.src_port!=<port_number>; .dst_port!=<port_number>; |
Checking all ports except for the specified one. |
.src_port=:<port_number>; .dst_port=:<port_number>; |
Checking all ports whose number is less than or equal to the specified port number. |
.src_port!=:<port_number>; .dst_port!=:<port_number>; |
Checking all ports whose number is greater than the specified port number. |
.src_port=<port_number>:; .dst_port=<port_number>:; |
Checking all ports whose number is greater than or equal to the specified port number. |
.src_port!=<port_number>:; .dst_port!=<port_number>:; |
Checking all ports whose number is less than the specified port number. |
.src_port=<port_number1>:<port_number2>; .dst_port=<port_number1>:<port_number2>; |
Checking all ports in the specified range (including port_number1 and port_number2). |
.src_port!=<port_number1>:<port_number2>; .dst_port!=<port_number1>:<port_number2>; |
Checking all ports which are not in the specified range (i. e. ports with numbers less than port_number1 and greater than port_number2). |