This how-to article provides configuration guidance for generating SNMP traps from the SRX firewall for each IDP attack detection event.
By default, IDP attack detections do not raise an SNMP trap.
In certain environments, it may be required to generate an SNMP trap when an IDP attack event is detected on the SRX firewall. The following configuration will help achieve this.
set snmp location Lab set snmp community public authorization read-write
set snmp location Lab
set snmp community public authorization read-write
set snmp trap-options source-address 192.168.1.2 set snmp trap-group Global version all set snmp trap-group Global targets 192.168.1.1
set event-options policy TEST-IDP events idp_attack_log_event set event-options policy TEST-IDP then raise-trap
A screenshot of the trap captured from Wireshark is below:
Caution : Raising an SNMP trap can turn out to be resource intensive, depending on the rate at which attacks are triggered in your network. Please use this configuration option with caution.
2019-09-07: Minor, non-technical edits.