Network and Host Based Intrusion Detection System
rpm -i snort-1.xx.i386.rpmor complie it from soruce source code.
preprocessor portscan-ignorehosts: [192.168.64.230/32,192.168.128.230/32,192.168.64.232/32,192.168.128.232/32]
/usr/sbin/snort -i eth0 -odDc /etc/snort/snort.conf
Repeat the stealth scan and buffer overflow exercises in day 1, 3 and 4 of week #2 again while you "tail -f /var/log/snort/alert". Can your NIDS detect these attack? What is the IP directory in /var/log/snort for? What do they record?
Post all your finding on your web pages
cp /usr/local2/wsh/nids/snort_stat /usr/local/bin cp /usr/local2/wsh/nids/snort_log_rotate /usr/local/bin
mkdir /var/log/snortlog
ps -ef|grep snort
Type "crontab -e" with the following line:
59 23 * * * /usr/local/bin/snort_log_rotateType "crontab -l" to see if the crontab is set
Tripwire allows; you to quickly identify changes occurring in a file system. It has a pretty simple concept. It takes checksums of all your important files; then later, you can check your files against the Tripwire database and determine if any change or tampering has occurred.
After you have generated the baseline database, you are ready to run an integrity check
To show you how Tripwire software detects file tampering, we'll create some violations. You will then be able to see the violations in a report file. Then we'll merge those violations back into the baseline database. This shows you how to accept system changes that are authorized.
The Tripwire database file should always be an accurate snapshot of the authorized, current state of your system. To incorporate valid changes to the system (the addition of new software, for example), you can update the data in the Tripwire database without re-generating the entire database. To update the database file:
You may found that tripwire may report files like /etc/ntp/drift has been changed everytimes you run the integrity check. It is because some files in your system is dynamic in nature so you need to customize the policy file to reflect the nature these files.
For more information of tripwire, you can read the man pages of tripwire in /usr/local/TSS/man and go to the tripwire web page : http://www.tripwire.com