Configure IPS on an IOS router

configure terminal
logging console debug
crypto key pubkey-chain rsa
named-key realm-cisco.pub signature
key-string
30820122 300D0609 2A864886 F70D0101 01050003 82010F00 3082010A 02820101
00C19E93 A8AF124A D6CC7A24 5097A975 206BE3A2 06FBA13F 6F12CB5B 4E441F16
17E630D5 C02AC252 912BE27F 37FDD9C8 11FC7AF7 DCDD81D9 43CDABC3 6007D128
B199ABCB D34ED0F9 085FADC1 359C189E F30AF10A C0EFB624 7E0764BF 3E53053E
5B2146A9 D7A5EDE3 0298AF03 DED7A5B8 9479039D 20F30663 9AC64B93 C0112A35
FE3F0C87 89BCB7BB 994AE74C FA9E481D F65875D6 85EAF974 6D9CC8E3 F0B08B85
50437722 FFBE85B9 5E4189FF CC189CB9 69C46F9C A84DFBA5 7A0AF99E AD768C36
006CF498 079F88F8 A3B3FB1F 9FB7B3CB 5539E1D1 9693CCBB 551F78D2 892356AE
2F56D826 8918EF3C 80CA4F4D 87BFCA3B BFF668E9 689782A5 CF31CB6E B4B094D3
F3020301 0001
quit
exit
exit
end
mkdir flash:/ips5

configure terminal
ip ips config location flash:/ips5
ip ips name my-ios-ips
ip ips notify log
ip ips signature-category
category all
retired true
exit
category ios_ips advanced
retired false
exit
exit
end
copy flash:/IOS-S302-CLI.pkg idconf
configure t
interface fa4
ip ips my-ios-ips in
interface vlan 1
ip ips my-ios-ips in
ip ips my-ios-ips out
end

To Update the signature on the router
copy tftp:///IOS-S###-CLI.pkg flash:
copy flash:/IOS-S###-CLI.pkg idconf

Helpful Commands
show ip ips configuration
show ip ips signature
show ip ips signature counts

To load new signature packages, reload the router or remove and re-configure the IPS policy on the interfaces
int fa4
 no ip ips my-ios-ips in
int vlan 1
 no ip ips my-ios-ips in
 no ip ips my-ios-ips out
int fa4
 ip ips my-ios-ips in
int vlan 1
 ip ips my-ios-ips in
 ip ips my-ios-ips out

Leave a Reply

Your email address will not be published. Required fields are marked *