•pass directs Snort to ignore the packet.
•activate directs Snort to generate an alert and activate another specified rule.
•dynamic directs Snort to disregard the rule until it is activated by another rule. Once activated, the action defaults to log.
Note: The default actions for the
Protocol
Snort supports four protocols: tcp, udp, icmp, or ip. The protocol keyword follows the action keyword.
Source Addresses
The source address and port follow the protocol keyword. Addresses are written using
The address field can be negated by placing an exclamation point before the address. This operator specifes all addresses other than the one contained in the rule. The rule in Table 13 indicates specifes all traffic originating from outside the local network and destined for the local network.
Note: The negation operator may not be placed before the keyword any.
Table 13 Rules Containing Address Negation
alert tcp !192.168.1.0/24 any
Lists of IP addresses can be specified by placing the addresses in brackets and separating each address with a comma; do not include spaces. Table 14 shows an example of a rule containing multiple addresses.
Table 14 Rules Containing Multiple IP Addresses
alert tcp ![192.168.1.0/24,10.1.1.0/24] any
64 | Writing Rules |