Showing posts with label rspan. Show all posts
Showing posts with label rspan. Show all posts

24 October, 2013

IDS SNORT

IDS (SNORT)

Configure /etc/snort/snort.conf

var HOME_NET 10.0.0.0/8

var EXTERNAL_NET any

configure /etc/snort/snort.debian.conf
Or  /etc/init.d/snort

DEBIAN_SNORT_HOME_NET="10.0.0.0/8"

Log Directory

cat /var/log/snort/alert

Snort is Running

ps axu | grep snort

Create Rules

Add new Rule into Snort.conf (/etc/snort/snort.conf)
 
include $RULE_PATH/www1.rules  (Where www1.rules is name of File)

TCP alarm Ejample:

alert tcp !10.0.101.0/24 any -> 10.0.220.11 any (msg:"Acceso denegado a servidor web www1"; sid:501501;)

(!10.0.101.0/24 = Only this Network)

To monitor This Alerts in Console run this command
snort -q -A console -i eth0 -c /etc/snort/snort.conf

Configure Cisco device to send Trafic (SPAN and RSPAN)

http://ittsm.blogspot.com.es/2013/04/ccnp-t-shoot-configure-span-and-rspan.html

Now we can recive monitor trafic and can analyze

Ejemplo

10/21-15:43:40.628199  [**] [1:501501:0] Accesso Denegado A Servidor Web www1 [**] [Priority: 0] {TCP} 10.0.10.111:1984 -> 10.0.220.11:80
Done!
 

24 April, 2013

CCNP T-Shoot Configure SPAN and RSPAN

Switched Port Analyzer (SPAN) and Remote SPAN (RSPAN)

#Phase 1: Configure SPAN and RSPAN On Switch

Example: 1 (SPAN)
S1(config)#monitor session 1 source interface fa0/1 
S1(config)#monitor session 1 destination interface fa0/4 (Monitor pc,wireshak)

***Note: This Is Basic Configuration (When source and destination are in Same switch)

Example: 2 (RSPAN)
*Switch-2
S2(config)#vlan 50
S2(config-vlan)#name RSPAN
S2(config-vlan)#remote-span 
S2(config)#monitor session 2 source interface fa0/24 (Port wich you want to monitor, Client or server)
S2(config)#monitor session 2 destination remote vlan 50 
*Switch-1
S1(config)#vlan 50
S1(config-vlan)#name RSPAN
S1(config-vlan)#remote-span
S1(config)#monitor session 2 destination interface fa0/4 (Monitor pc,wireshark)
S1(config)#monitor session 2 source remote vlan 50 

***Note: Be careful with trunk links, SPAN traffic kills bandwidth