Skip to contentSkip to conversation

snort: add recipe

PATCH In review [email protected] 2 participants 3 messages Aug 26, 2013 – Sep 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 snort: add recipe

From: Chunrong Guo <[email protected]>

*snort - a free lightweight network intrusion detection
system for UNIX and Windows

---
 meta-oe/recipes-connectivity/snort/files/default   |   42 ++
 .../snort/files/disable-dap-address-space-id.patch |   52 +++
 .../snort/files/disable-inaddr-none.patch          |   75 ++++
 meta-oe/recipes-connectivity/snort/files/logrotate |   12 +
 .../recipes-connectivity/snort/files/snort.init    |  425 ++++++++++++++++++++
 meta-oe/recipes-connectivity/snort/files/volatiles |    2 +
 .../recipes-connectivity/snort/snort_2.9.4.6.bb    |   88 ++++
 7 files changed, 696 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/snort/files/default
 create mode 100644 meta-oe/recipes-connectivity/snort/files/disable-dap-address-space-id.patch
 create mode 100644 meta-oe/recipes-connectivity/snort/files/disable-inaddr-none.patch
 create mode 100644 meta-oe/recipes-connectivity/snort/files/logrotate
 create mode 100755 meta-oe/recipes-connectivity/snort/files/snort.init
 create mode 100644 meta-oe/recipes-connectivity/snort/files/volatiles
 create mode 100644 meta-oe/recipes-connectivity/snort/snort_2.9.4.6.bb
meta-oe/recipes-connectivity/snort/files/default new file +42 -0
new file mode 100644
index 0000000..afd3840
@@ -0,0 +1,42 @@
+# Parameters for the daemon
+# Add any additional parameteres here.
+PARAMS="-m 027 -D -d "
+#
+# Snort user
+# This user will be used to launch snort. Notice that the 
+# preinst script of the package might do changes to the user 
+# (home directory, User Name) when the package is upgraded or
+# reinstalled.  So, do *not* change this to 'root' or to any other user 
+# unless you are sure there is no problem with those changes being introduced.
+# 
+SNORTUSER="snort"
+#
+# Logging directory
+# Snort logs will be dropped here and this will be the home
+# directory for the SNORTUSER. If you change this value you should
+# change the /etc/logrotate.d/snort definition too, otherwise logs
+# will not be rotated properly.
+#
+LOGDIR="/var/log/snort"
+#
+# Snort group
+# This is the group that the snort user will be added to.
+#
+SNORTGROUP="snort"
+# 
+# Allow Snort's init.d script to work if the configured interfaces
+# are not available. Set this to yes if you configure Snort with
+# multiple interfaces but some might not be available on boot
+# (e.g. wireless interfaces)
+# 
+# Note: In order for this to work the 'iproute' package needs to 
+# be installed.
+ALLOW_UNAVAILABLE="no"
+
+# Local configs
+#
+LOCAL_SNORT_STARTUP=boot
+LOCAL_SNORT_HOME_NET="192.168.0.0/16"
+LOCAL_SNORT_INTERFACE=""
+LOCAL_SNORT_STATS_RCPT="root"
+LOCAL_SNORT_STATS_THRESHOLD="1"
meta-oe/recipes-connectivity/snort/files/disable-dap-address-space-id.patch new file +52 -0

52 lines not on this page · raw message

meta-oe/recipes-connectivity/snort/files/disable-inaddr-none.patch new file +75 -0

75 lines not on this page · raw message

meta-oe/recipes-connectivity/snort/files/logrotate new file +12 -0
new file mode 100644
index 0000000..ef3e4af
@@ -0,0 +1,12 @@
+/var/log/snort/*.log /var/log/snort/alert {
+    size 1M
+    missingok
+    compress
+    delaycompress
+    rotate 10
+    sharedscripts
+    postrotate
+	/etc/init.d/snort restart
+    endscript
+}
+
meta-oe/recipes-connectivity/snort/files/snort.init new file +425 -0

425 lines not on this page · raw message

meta-oe/recipes-connectivity/snort/files/volatiles new file +2 -0
new file mode 100644
index 0000000..e3ab51d
@@ -0,0 +1,2 @@
+# <type> <owner> <group> <mode> <path> <linksource>
+d snort snort 0755 /var/log/snort none
\ No newline at end of file
meta-oe/recipes-connectivity/snort/snort_2.9.4.6.bb new file +88 -0

88 lines not on this page · raw message

Signature · 1 line
1.7.5.4
#1 lore raw

Hi Chunrong,

Quoted 4 lines · On Monday 26 August 2013 11:15:39 [email protected] wrote:

From: Chunrong Guo <[email protected]>

*snort - a free lightweight network intrusion detection
system for UNIX and Windows

I have to admit I thought this was something that mulhern was working on - is that correct mulhern?

In any case I think this would probably be something best put into meta- security [1].

Cheers,
Paul

[1] http://layers.openembedded.org/layerindex/layer/meta-security/

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hello ,
Please give some comments about patch .

Thanks,
chunrong

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Tuesday, August 27, 2013 3:04 AM
To: Guo Chunrong-B40290; mulhern
Cc: [email protected]; Saul Wold
Subject: Re: [oe] [meta-oe][PATCH 1/4] snort: add recipe

Hi Chunrong,

Quoted 4 lines · On Monday 26 August 2013 11:15:39 [email protected] wrote:

From: Chunrong Guo <[email protected]>

*snort - a free lightweight network intrusion detection
system for UNIX and Windows

I have to admit I thought this was something that mulhern was working on - is that correct mulhern?

In any case I think this would probably be something best put into meta- security [1].

Cheers,
Paul

[1] http://layers.openembedded.org/layerindex/layer/meta-security/

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre