- Create and define a directory for IPS configuration files
mkdir flash:/ips
- Import the Cisco RSA public key (available from the cisco.com download area)
crypto key pubkey-chain rsa
named-key realm-cisco.pub signature
key-string
....
quit
- (optional) create an ACL to define what traffic gets inspected
ip access-list extended IPS-INSPECT
permit ip any host 1.2.3.4
permit ip host 1.2.3.4 any
!
ios ips name IPS1 list IPS-INSPECT
- Retire and un-retire signature sets
ip ips signature-category
category-all
retired true
category ios_ips_basic
retired false
exit
exit
- Apply the IPS configuration to an interface
int gi0/0
ip ips IPS1 in
ip ips IPS1 out
- Upload signature definitions
copy ftp://cisco:cisco@10.1.1.1/IOS-S310-CLI.pkg idconf
- (optional) enable syslog notifications for IPS events
ip ips notify log
- (optional) enable SDEE notifications for IPS events
access-list 80 permit 2.2.2.2
ip http access-class 80
ip http server enable
ip ips notify sdee
- (optional) Tweak individual signatures
ip ips signature-definition
signature 6130 10
engine
event-action produce-alert
event-action deny-packet-inline
exit
exit
exit
- Verification
show ip ips signature count
Based on Keith Barker’s blog post at InternetworkExpert and this Cisco.com technote.