Configure IDS Actions
To configure IDS actions, include the
thenstatement at the [edit services ids rulerule-nametermterm-name] hierarchy level:[edit services ids rulerule-nametermterm-name]then {aggregation{destination-prefixprefix-value;source-prefixprefix-value;}(force-entry|ignore-entry);logging {syslog;thresholdrate;}syn-cookie {mssvalue;thresholdrate;}}You can configure the following possible actions:
aggregation—The router aggregates traffic labeled with the specified source or destination prefixes before passing the events to IDS processing. This is helpful if you want to examine all the traffic connected with a particular source or destination host. To collect traffic with some other marker, such as a particular application or port, configure that value in the match conditions.To configure, include the
aggregationstatement at the [edit services ids rulerule-nametermterm-namethen] hierarchy level and specify values forsource-prefixordestination-prefix:[edit services ids rulerule-nametermterm-namethen]aggregation{destination-prefixprefix-value;source-prefixprefix-value;}The range for the
source-prefixanddestination-prefixstatements is restricted to integers from 1 through 32.
force-entry—The entry is assured a permanent spot in IDS caches after one event is registered. By default, the IDS software does not record information about "good" packets that do not exhibit suspicious behavior. You can use theforce-entrystatement to record all traffic from a suspect host, even traffic that would not otherwise be counted.
ignore-entryensures that all IDS events are ignored. You can use this statement to disregard all traffic from a host you trust, including any temporary anomalies that IDS would otherwise count as events.To configure, include the
force-entryorignore-entrystatement at the [edit services ids rulerule-nametermterm-namethen] hierarchy level:[edit services ids rulerule-nametermterm-namethen](force-entry|ignore-entry);To configure, include the
loggingstatement at the [edit services ids rulerule-nametermterm-namethen] hierarchy level:[edit services ids rulerule-nametermterm-namethen]logging {syslog;thresholdrate;}You can optionally include a threshold rate to trigger logging activity or activate the generation of system log messages. The threshold rate is specified in events per second.
To configure, include the
syn-cookiestatement at the [edit services ids rulerule-nametermterm-namethen] hierarchy level:[edit services ids rulerule-nametermterm-namethen]syn-cookie {mssvalue;thresholdrate;}If you enable syn-cookie defenses, you must include both a threshold rate to trigger syn-cookie activity and a TCP maximum sequence selection (MSS) value for TCP delayed binding. The threshold rate is specified in SYN attacks per second. By default, the TCP MSS value is 1500; the range is 128 through 8192.