aquaballoon

SnortIDS & ACID

Mar 24th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.62 KB | None | 0 0
  1. # http://www.the-tech-tutorial.com/?p=1578
  2. # https://help.ubuntu.com/community/SnortIDS
  3.  
  4. ### LAMP Server ###
  5. sudo tasksel install lamp-server
  6.  
  7. ### SNORT ###
  8. # Whole Network: 192.168.15.0/24
  9. # NIC to listen: eth0
  10.  
  11. sudo apt-get install snort-mysql
  12.  
  13. mysql -u root -p
  14. create database snort;
  15. GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON snort.* TO 'snort'@'localhost' IDENTIFIED BY 'password';
  16. FLUSH PRIVILEGES;
  17. quit
  18.  
  19. cd /usr/share/doc/snort-mysql
  20. zcat create_mysql.gz | mysql -u snort -p snort
  21. #zcat create_mysql.gz | mysql -u snort -D snort -papplicationpassword
  22. #/etc/snort/snort.conf
  23. output database: log, mysql, user=snort password=applicationpassword dbname=snort host=localhost
  24.  
  25. sudo dpkg-reconfigure snort-mysql
  26. #/etc/snort/snort.debian.conf
  27. DEBIAN_SNORT_STARTUP="boot"
  28. DEBIAN_SNORT_HOME_NET="192.168.15.0/24 192.168.16.0/24"
  29. DEBIAN_SNORT_OPTIONS=""
  30. DEBIAN_SNORT_INTERFACE="eth0 eth1"
  31. DEBIAN_SNORT_SEND_STATS="false"
  32. DEBIAN_SNORT_STATS_RCPT="root"
  33. DEBIAN_SNORT_STATS_THRESHOLD="1"
  34.  
  35. sudo rm /etc/snort/db-pending-config
  36.  
  37. sudo /etc/init.d/snort start
  38.  
  39. snort -i eth0 -v
  40.  
  41. ### ACID ###
  42. apt-get install acidbase
  43.  
  44. /etc/acidbase/apache.conf
  45. allow from 127.0.0.0/255.0.0.0 192.168.15.0/255.255.255.0
  46.  
  47. sudo /etc/init.d/apache2 restart
  48.  
  49. http://192.168.15.1/acidbase/base_db_setup.php
  50. Create BASE AG
  51.  
  52. http://192.168.15.1/acidbase/base_main.php
  53.  
  54. http://192.168.15.1/acidbase/
  55.  
  56. sudo nmap -p1-65535 -sV -sS -O 192.168.15.1
  57.  
  58.  
  59. ### Managing Rules ###
  60. #http://www.aboutdebian.com/snort.htm
  61.  
  62. /etc/snort/snort.conf
  63. include statements  -> /etc/snort/rules
Advertisement
Add Comment
Please, Sign In to add comment