Difference between revisions of "Downloading and using latest snort rules"

From Notes_Wiki
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Snort configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Security tools]] > [[Snort configuration]] > [[Downloading and using latest snort rules]]
=Downloading and using latest snort rules=


#Download latest snort rules from https://www.snort.org/snort-rules/#registered  Note that we cannot download subscriber release without becoming subscriber, but we can use registered user release by free registration. The subscriber rules are available for registered users with a months delay.
#Download latest snort rules from https://www.snort.org/snort-rules/#registered  Note that we cannot download subscriber release without becoming subscriber, but we can use registered user release by free registration. The subscriber rules are available for registered users with a months delay.
Line 29: Line 28:




<yambe:breadcrumb>Snort configuration</yambe:breadcrumb>
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Security tools]] > [[Snort configuration]] > [[Downloading and using latest snort rules]]

Latest revision as of 15:53, 24 March 2022

Home > CentOS > CentOS 6.x > Security tools > Snort configuration > Downloading and using latest snort rules

  1. Download latest snort rules from https://www.snort.org/snort-rules/#registered Note that we cannot download subscriber release without becoming subscriber, but we can use registered user release by free registration. The subscriber rules are available for registered users with a months delay.
  2. Copy snortrules-snapshot-2905.tar.gz to folder named snortrules. Here 2905 means snort version 2.9 and ruleset version 05.
  3. Extract snortrules-snapshot-2905.tar.gz using 'tar xzf snortrules-snapshot-2905.tar.gz'
  4. rm -rf /etc/snort
  5. mkdir /etc/snort /etc/snort/rules /etc/snort/so_rules /etc/snort/preproc_rules
  6. Copy all files and directories from 'etc' folder to '/etc/snort'
  7. Copy all files and directories from 'rules' folder to '/etc/snort/rules'
  8. Copy all files and directories from 'so_rules' folder to '/etc/snort/so_rules'
  9. Copy all files and directories from 'preproc_rules' folder to '/etc/snort/preproc_rules'
  10. chown -R snort:snort /etc/snort
  11. Edit file '/etc/snort/snort.conf' and make changes to following lines
    ipvar HOME_NET [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
    ipvar EXTERNAL_NET any
    ipvar DNS_SERVERS [192.168.36.222,192.168.36.204,10.4.2.210,10.4.3.203]
    ipvar SMTP_SERVERS [10.4.2.200,10.4.2.202,10.4.2.250]
    ipvar HTTP_SERVERS [10.4.2.208]
    portvar HTTP_PORTS [80,3128,8080]
    var RULE_PATH /etc/snort/rules
    var SO_RULE_PATH /etc/snort/so_rules
    var PREPROC_RULE_PATH /etc/snort/preproc_rules
  12. Use 'service snort start'. It may take some time for snort to start.
  13. One can use 'tail -100 /var/log/messages | less' to see the detailed information on rules that got loaded.



Home > CentOS > CentOS 6.x > Security tools > Snort configuration > Downloading and using latest snort rules