LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-02-2005, 10:08 PM   #1
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Rep: Reputation: 15
Unhappy Snort not logging


Hello,To all

Well so far i have all the other tools i have downloaded
installed & running. but i can't get this snort to log anything
i am using the Snort.conf,

that came with it i was not sure if i should play
with it so if anyone can help me please
how do i get this to log something

oh i did try & run it but i got this here

ERROR: Failed to lookup for interface: no suitable device found.
please specify one with -i switch ???????????

Thank you
 
Old 03-02-2005, 10:23 PM   #2
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
-vi command will tell snort listen to specif interface. Say, you want to sniff on eth1, type:

snort –vi eth1

This article may be helpful for you.

Last edited by DDoSire; 03-02-2005 at 10:25 PM.
 
Old 03-02-2005, 10:29 PM   #3
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Original Poster
Rep: Reputation: 15
Talking

Hello,DDoSire

Oh thanks i love this linux but some hard work
& yes i will have a look at that link

Thank you
 
Old 03-02-2005, 10:35 PM   #4
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
Quote:
Originally posted by Dogit
Hello,DDoSire

Oh thanks i love this linux but some hard work
& yes i will have a look at that link

Thank you
Snort will dump error messages to /var/log/messages , you may want to look at that too.

Hope it helps.
 
Old 03-02-2005, 10:40 PM   #5
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Original Poster
Rep: Reputation: 15
Unhappy

Hi,DDoSire

Hmmm not sure if i did something wrong here
but here is what i just got

snort -vi eth1
Running in packet dump mode
Log directory = /var/log/snort

Inetealezing Network Interface eth1
Error: OpenPcap () device eth1 open:

socket: Operation not permitted

no idea what i did

Thank you
 
Old 03-02-2005, 10:53 PM   #6
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
I suppose you are executing snort as root.

What error message do you get if you type this?

snort -i eth1 -c /etc/snort/snort.conf

Last edited by DDoSire; 03-02-2005 at 11:11 PM.
 
Old 03-02-2005, 11:48 PM   #7
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Original Poster
Rep: Reputation: 15
Unhappy

Hi,DDoSire

Well here is what happen in place of this eth1 i used a 0
& all was good tell the end when i get this here

Error: /etc/snort/snort.conf (606) : Bad rule in rules file

Fatal Error, Quitting..

it don't sound good

by the way should i be executing snort as root?????

Thank you

Last edited by Dogit; 03-02-2005 at 11:50 PM.
 
Old 03-03-2005, 04:29 PM   #8
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
Smile

Quote:
Originally posted by Dogit


by the way should i be executing snort as root?????

Yes you should.
 
Old 03-03-2005, 05:41 PM   #9
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Original Poster
Rep: Reputation: 15
Smile

Hi,DDoSire

Great thanks

would you happen to know what that
error is all about

Thank you
 
Old 03-03-2005, 05:54 PM   #10
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
It's line 606 in snort.conf file that caused error. Check the line and see what you have done wrong. In my snort.conf it is:

Code:
#
# Include reference systems
# Note for Windows users:  You are advised to make this an absolute path,
# such as:  c:\snort\etc\reference.config
#

include reference.config
Note that you should not change the path to absolute path if you are running linux otherwise if will append the given path to your root path, which will cause problem.
 
Old 03-04-2005, 05:40 PM   #11
Dogit
Member
 
Registered: Feb 2005
Distribution: Suse 9.0,9.2 Pro
Posts: 67

Original Poster
Rep: Reputation: 15
Hi,DDoSire

Well it looks like it may be working you tell me


Running in IDS mode
Log directory = /var/log/snort

Initializing Network Interface eth0
OpenPcap() device eth0 network lookup:
eth0: no IPv4 address assigned

--== Initializing Snort ==--
Initializing Output Plugins!
Decoding Ethernet on interface eth0
Initializing Preprocessors!
Initializing Plug-ins!
Parsing Rules file /etc/snort/snort.conf

+++++++++++++++++++++++++++++++++++++++++++++++++++
Initializing rule chains...
No arguments to frag2 directive, setting defaults to:
Fragment timeout: 60 seconds
Fragment memory cap: 4194304 bytes
Fragment min_ttl: 0
Fragment ttl_limit: 5
Fragment Problems: 0
Self preservation threshold: 500
Self preservation period: 90
Suspend threshold: 1000
Suspend period: 30
Stream4 config:
Stateful inspection: ACTIVE
Session statistics: INACTIVE
Session timeout: 30 seconds
Session memory cap: 8388608 bytes
State alerts: INACTIVE
Evasion alerts: INACTIVE
Scan alerts: ACTIVE
Log Flushed Streams: INACTIVE
MinTTL: 1
TTL Limit: 5
Async Link: 0
State Protection: 0
Self preservation threshold: 50
Self preservation period: 90
Suspend threshold: 200
Suspend period: 30
Stream4_reassemble config:
Server reassembly: INACTIVE
Client reassembly: ACTIVE
Reassembler alerts: ACTIVE
Ports: 21 23 25 53 80 110 111 143 513 1433
Emergency Ports: 21 23 25 53 80 110 111 143 513 1433
http_decode arguments:
Unicode decoding
IIS alternate Unicode decoding
IIS double encoding vuln
Flip backslash to slash
Include additional whitespace separators
Ports to decode http on: 80
rpc_decode arguments:
Ports to decode RPC on: 111 32771
alert_fragments: INACTIVE
alert_large_fragments: ACTIVE
alert_incomplete: ACTIVE
alert_multiple_requests: ACTIVE
telnet_decode arguments:
Ports to decode telnet on: 21 23 25 119
1454 Snort rules read...
1454 Option Chains linked into 146 Chain Headers
0 Dynamic rules
+++++++++++++++++++++++++++++++++++++++++++++++++++

Rule application order: ->activation->dynamic->alert->pass->log

--== Initialization Complete ==--


oh by the way i don't get what you said here

Note that you should not change the path to absolute path if you are running linux otherwise if will append the given path to your root path, which will cause problem.


Thank you

Last edited by Dogit; 03-04-2005 at 05:41 PM.
 
Old 03-06-2005, 03:22 PM   #12
DDoSire
LQ Newbie
 
Registered: Mar 2005
Location: Auckland
Distribution: Fedora Core 1, 3, RH9, SUSE
Posts: 8

Rep: Reputation: 0
Sorry for my bad English, since it is not my native language.

I meant

Code:
include reference.config
should not be

Code:
include /etc/snort/reference.config
Nice to know Snort is working well for you now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
snort logging to database ilnli Linux - General 14 04-08-2005 12:55 PM
Snort and Logging to Mysql. FragInHell Linux - Security 3 09-18-2004 05:16 PM
snort alert and logging wilcsnyder Linux - Security 1 08-16-2004 07:08 PM
Snort: ACID, not logging. securityguru Linux - Security 1 07-25-2003 08:36 AM
snort not logging? zuessh Linux - Security 9 05-30-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration