Document ID: 44905
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Configure
Network Diagram
Configurations
Start the Sensor Configuration
Add the Sensor into the IEV
Configure Blocking for the Cisco IOS Router
Verify
Launch the Attack and Blocking
Troubleshoot
IEV Problem
Tips
NetPro Discussion Forums - Featured Conversations
Related Information
Introduction
This document discusses the configuration of the Intrusion Detection System (IDS) blocking using the IDS Device Manager (IDM) and IDS Event Viewer (IEV). IDM and IDS Sensors are used to manage a Cisco router for blocking. Remember these items when you consider this configuration:
-
Install the Sensor and make sure the Sensor works properly.
-
Make the sniffing interface span to the router outside the interface.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
The information in this document is based on these software and hardware versions:
-
Cisco IDS Event Viewer 4.1.1S(50)
-
Cisco IDS Sensor 4.1.1S(50)
-
Cisco IOSĀ® router with Cisco IOS Software Release 12.2(15)T5
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
Refer to the Cisco Technical Tips Conventions for more information on document conventions.
Configure
Network Diagram
This document uses this network setup.
Configurations
This document uses these configurations.
|
Router Light |
|---|
Current configuration : 906 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname light ! enable password cisco ! username cisco password 0 cisco ip subnet-zero ! ! ! ip ssh time-out 120 ip ssh authentication-retries 3 ! call rsvp-sync ! ! ! fax interface-type modem mta receive maximum-recipients 0 ! controller E1 2/0 ! ! ! interface FastEthernet0/0 ip address 100.100.100.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 1.1.1.1 255.255.255.0 duplex auto speed auto ! interface BRI4/0 no ip address shutdown interface BRI4/1 no ip address shutdown ! interface BRI4/2 no ip address shutdown ! interface BRI4/3 no ip address shutdown ! ip classless ip route 0.0.0.0 0.0.0.0 100.100.100.1 ip http server ip pim bidir-enable ! ! dial-peer cor custom ! ! line con 0 line 97 108 line aux 0 line vty 0 4 login ! end |
|
Router House |
|---|
Current configuration : 939 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname house ! logging queue-limit 100 enable password cisco ! ip subnet-zero ! ! no ip cef no ip domain lookup ! ip audit notify log ip audit po max-events 100 ! ! no voice hpi capture buffer no voice hpi capture destination ! ! ! ! interface FastEthernet0/0 ip address 10.66.79.210 255.255.255.224 duplex auto speed auto ! interface FastEthernet0/1 ip address 100.100.100.1 255.255.255.0 ip access-group IDS_FastEthernet0/1_in_0 in !--- After you configure blocking, !--- IDS Sensor inserts this line. duplex auto speed auto ! interface ATM1/0 no ip address shutdown no atm ilmi-keepalive ! ip classless ip route 0.0.0.0 0.0.0.0 10.66.79.193 ip route 1.1.1.0 255.255.255.0 100.100.100.2 no ip http server no ip http secure-server ! ! ip access-list extended IDS_FastEthernet0/1_in_0 permit ip host 10.66.79.195 any permit ip any any !--- After you configure blocking, !--- IDS Sensor inserts this line. ! call rsvp-sync ! ! mgcp profile default ! ! line con 0 exec-timeout 0 0 line aux 0 line vty 0 4 exec-timeout 0 0 password cisco login line vty 5 15 login ! ! end |
Start the Sensor Configuration
Complete these steps to start the configuration of the Sensor.
-
If this is your first time logging into the Sensor, you must enter cisco as the user name and cisco as the password.
-
When the system prompts you, change your password.
Note: Cisco123 is a dictionary word and is not allowed in the system.
-
Type setupand follow the system prompt to setup the basic parameters for the Sensors.
-
Enter this information:
sensor5#setup --- System Configuration Dialog --- !--- At any point you may enter a question mark '?' for help. !--- Use ctrl-c to abort the configuration dialog at any prompt. !--- Default settings are in square brackets '[]'. Current Configuration: networkParams ipAddress 10.66.79.195 netmask 255.255.255.224 defaultGateway 10.66.79.193 hostname sensor5 telnetOption enabled accessList ipAddress 10.66.79.0 netmask 255.255.255.0 exit timeParams summerTimeParams active-selection none exit exit service webServer general ports 443 exit exit -
Save the configuration.
It might take a few minutes for the Sensor saving the configuration.
[0] Go to the command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration and exit setup. Enter your selection[2]: 2
Add the Sensor into the IEV
Complete these steps to add the Sensor into the IEV.
-
Go to the Windows 2000 PC which installed the IEV and open the IEV.
-
Select File > New > Device.
-
Type in this information and click OK to finish the configuration.
-
Verify the Sensor status by selecting Devices > sensor5 and then right-click to select Device Status.
Make sure that you can see "Subscription successfully opened."
Configure Blocking for the Cisco IOS Router
Complete these steps to configure the blocking for the Cisco IOS router.
-
From the IEV PC, open your web browser and go to https://10.66.79.195.
-
Click OK to accept the HTTPS certificate downloaded from the Sensor.
-
In the Login window, enter cisco for the user name and 123cisco123 for the password.
This IDM management interface appears:
-
From the Configuration tab, click Sensing Engine.
-
On the left pane, click Signature Wizard.
-
Under Virtual Sensor Configuration, click the Start the Wizard button.
-
Select Signature Type from Wizard Tasks then choose TCP Stream Signature.
-
Click Next to continue.
-
You can leave this information as Default or enter your own Signature ID and User Notes. Click Next to continue.
-
Enter a Regular Expression ("testattack" is used in this example), enter 23 for Service Ports, select To Port for the Direction, and click Next to continue.
-
Set the Severity of the Alert to high and highlight Shun Host in the Action to Take in Response list.
Shun Host blocks attacking IP hosts or IP subnets.
Shun Connection blocks TCP or UDP ports (based on attacking TCP or UDP connections).
-
Click Next to continue.
-
Use the Default settings in the Alert Behavior screen and click Next to continue.
Click Advanced if you want to fine tune the alert behavior.
-
Click Create to create the new signature.
-
Click OK twice to confirm it.
-
From the main menu, click the Save Changes icon to apply the signature to the Sensor.
-
This step is optional, and is used if you want to verify or perform further modification to the signature.
-
Click the Configuration tab and choose Sensing Engine.
-
From the left pane, select Signature Configuration Mode under Virtual Sensor Configuration.
-
Click All Signatures.
-
From the Page drop-down menu, select 20002.
-
For the Signature ID, check 20002 and click Edit.
You can modify everything about this signature from this page.
-
Click OK to confirm your change or click Cancel if you are not applying any changes.
-
-
From the Configuration tab, click Blocking.
-
From the left pane, select Blocking Properties and check Enable Blocking.
-
Set the timer (for example, 15 minutes).
-
Click Apply to Sensor to continue.
-
From the left pane, select Logical Devices and click Add to add this information and then click Apply to Sensor to continue.
-
From the left pane, select Blocking Devices, click Add to add this information, and then click Apply to Sensor to continue.
-
Under Blocking Devices, select Router Blocking Device Interfaces, click Add to add this information, and click Apply to Sensor to continue.
Verify
Launch the Attack and Blocking
Complete these steps to launch the attack and blocking.
-
Before you launch the attack, go to the IEV, select Tools > Realtime Dashboard and click Launch Dashboard.
-
Telnet to Router House and verify the communication from the server using the commands shown here.
house#show user Line User Host(s) Idle Location * 0 con 0 idle 00:00:00 226 vty 0 idle 00:00:17 10.66.79.195 house#show access-list Extended IP access list IDS_FastEthernet0/1_in_0 permit ip host 10.66.79.195 any permit ip any any (12 matches) house#
-
From Router Light, Telnet to Router House and type testattack.
Hit either <space> or <enter> to reset your Telnet session.
light#telnet 100.100.100.1 Trying 100.100.100.1 ... Open User Access Verification Password: house>en Password: house#testattack [Connection to 100.100.100.1 lost] !--- Host 100.100.100.2 has been blocked due to the !--- signature "testattack" triggered. -
Telnet to Router House and use the show access-list command as shown here.
house#show access-list Extended IP access list IDS_FastEthernet0/1_in_0 10 permit ip host 10.66.79.195 any 20 deny ip host 100.100.100.2 any (71 matches) 30 permit ip any any
-
From the Dashboard of the IDS Event Viewer, the Red Alarm appears once the attack is launched.
-
In the Dashboard, highlight one of the alarms, then right-click and choose show context or NSDB link to view more detail information with the alarm.
You can check the online version of NSDB in the Cisco Secure Encyclopedia ( registered customers only) .
Troubleshoot
This section provides information you can use to troubleshoot your configuration.
IEV Problem
The IOException when try to get certificate: Connection times out: connect error message displays if you are not able to connect the IDS Sensor from IEV. The problem might be due to obstacles like the Firewall or any Cisco device with an access list configuration that blocks the traffic between the IEV and IDS Sensor. In general, the path between the IEV and IDS device should be clear communication.
Tips
Use these troubleshooting tips:
-
From the Sensor look at the show statistics networkaccess output and make sure that the "state" is active. From the console or SSH to the Sensor, this information is viewed:
sensor5#show statistics networkaccess Current Configuration AllowSensorShun = false ShunMaxEntries = 100 NetDevice Type = Cisco IP = 10.66.79.210 NATAddr = 0.0.0.0 Communications = telnet ShunInterface InterfaceName = FastEthernet0/1 InterfaceDirection = in State ShunEnable = true NetDevice IP = 10.66.79.210 AclSupport = uses Named ACLs State = Active ShunnedAddr Host IP = 100.100.100.2 ShunMinutes = 15 MinutesRemaining = 12 sensor5# -
Make sure the communication parameter shows that the correct protocol is being used such as Telnet or SSH with 3DES. You can try a manual SSH or Telnet from an SSH/Telnet client on a PC to check the username and password credentials are correct. Then try to Telnet or SSH from the Sensor itself to the router and see if you can login successfully to the router.
NetPro Discussion Forums - Featured Conversations
| NetPro Discussion Forums - Featured Conversations for Security |
| Security: Intrusion Detection [Systems] |
| Security: AAA |
| Security: General |
| Security: Firewalling |
Related Information
- Cisco Secure Intrusion Detection Support Page
- Documentation for Cisco Secure Intrusion Detection System
- Technical Support & Documentation - Cisco Systems
| Updated: Jun 16, 2008 | Document ID: 44905 |
