Boot hangs after snort initialization
Mark Sargent
powderkeg at snow.email.ne.jp
Thu Mar 31 08:36:01 UTC 2005
Mark Sargent wrote:
> Paul Howarth wrote:
>
>> On Thu, 2005-03-31 at 16:16 -0500, Mark Sargent wrote:
>>
>>
>>> my boot hangs after snort is initialized. The last line shown after
>>> the snort initialization message is Enabling swap space OK and then
>>> a continually blinking cursor below it. Nothing is reported in
>>> either /var/log/boot.log or /var/log/messages. Cheers.
>>>
>>
>>
>> So turn off automatic starting of snort for the time being and try to
>> debug the initscript by starting it manually.
>>
>> Paul.
>>
>>
> Hi All,
>
> Paul, I did exactly that, and then tried running ./rc.local from the
> terminal, but got a permission denied. When you say "initscript", do
> you mean the snort.conf file or the /etc/rc.d/rc.local which contains
> the following,
>
> [root at localhost rc.d]# cat rc.local
> #!/bin/sh
> #
> # This script will be executed *after* all the other init scripts.
> # You can put your own initialization stuff in here if you don't
> # want to do the full Sys V style init stuff.
>
> touch /var/lock/subsys/local
> /usr/local/bin/snort -c /etc/snort/snort.conf -i eth0 -g snort
>
> I got the following when starting manually,
>
> [root at localhost ~]# snort -cs -i eth0
> Running in IDS mode
>
> Initializing Network Interface eth0
>
> --== Initializing Snort ==--
> Initializing Output Plugins!
> Decoding Ethernet on interface eth0
> Initializing Preprocessors!
> Initializing Plug-ins!
> Parsing Rules file s
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
> Initializing rule chains...
> ERROR: Unable to open rules file: s or ./s
> Fatal Error, Quitting..
>
> Cheers.
>
> Mark Sargent.
>
Hi All,
Paul, I can start snort with just typing snort, though, and get the
following output,
[root at localhost snort]# snort
Running in IDS mode with inferred config file: ./snort.conf
Initializing Network Interface eth0
--== Initializing Snort ==--
Initializing Output Plugins!
Decoding Ethernet on interface eth0
Initializing Preprocessors!
Initializing Plug-ins!
Parsing Rules file ./snort.conf
+++++++++++++++++++++++++++++++++++++++++++++++++++
Initializing rule chains...
,-----------[Flow Config]----------------------
| Stats Interval: 0
| Hash Method: 2
| Memcap: 10485760
| Rows : 4099
| Overhead Bytes: 16400(%0.16)
`----------------------------------------------
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: INACTIVE
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
Enforce TCP State: INACTIVE
Midstream Drop Alerts: INACTIVE
Stream4_reassemble config:
Server reassembly: INACTIVE
Client reassembly: ACTIVE
Reassembler alerts: ACTIVE
Zero out flushed packets: INACTIVE
flush_data_diff_size: 500
Ports: 21 23 25 53 80 110 111 143 513 1433
Emergency Ports: 21 23 25 53 80 110 111 143 513 1433
HttpInspect Config:
GLOBAL CONFIG
Max Pipeline Requests: 0
Inspection Type: STATELESS
Detect Proxy Usage: NO
IIS Unicode Map Filename: ./unicode.map
IIS Unicode Map Codepage: 1252
DEFAULT SERVER CONFIG:
Ports: 80 8080 8180
Flow Depth: 300
Max Chunk Length: 500000
Inspect Pipeline Requests: YES
URI Discovery Strict Mode: NO
Allow Proxy Usage: NO
Disable Alerting: NO
Oversize Dir Length: 500
Only inspect URI: NO
Ascii: YES alert: NO
Double Decoding: YES alert: YES
%U Encoding: YES alert: YES
Bare Byte: YES alert: YES
Base36: OFF
UTF 8: OFF
IIS Unicode: YES alert: YES
Multiple Slash: YES alert: NO
IIS Backslash: YES alert: NO
Directory Traversal: YES alert: NO
Web Root Traversal: YES alert: YES
Apache WhiteSpace: YES alert: NO
IIS Delimiter: YES alert: NO
IIS Unicode Map: GLOBAL IIS UNICODE MAP CONFIG
Non-RFC Compliant Characters: NONE
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
Portscan Detection Config:
Detect Protocols: TCP UDP ICMP IP
Detect Scan Type: portscan portsweep decoy_portscan
distributed_portscan
Sensitivity Level: Low
Memcap (in bytes): 10000000
Number of Nodes: 36900
database: compiled support for ( mysql )
database: configured to use mysql
database: user = snort
database: password is set
database: database name = snort
database: host = localhost
database: sensor name = 192.168.0.12
database: sensor id = 1
database: schema version = 106
database: using the "log" facility
2490 Snort rules read...
2490 Option Chains linked into 194 Chain Headers
0 Dynamic rules
+++++++++++++++++++++++++++++++++++++++++++++++++++
Warning: flowbits key 'ms_sql_seen_dns' is checked but not ever set.
Warning: flowbits key 'smb.tree.create.llsrpc' is set but not ever checked.
Warning: flowbits key 'realplayer.playlist' is checked but not ever set.
+-----------------------[thresholding-config]----------------------------------
| memory-cap : 1048576 bytes
+-----------------------[thresholding-global]----------------------------------
| none
+-----------------------[thresholding-local]-----------------------------------
| gen-id=1 sig-id=2523 type=Both tracking=dst count=10
seconds= 10
| gen-id=1 sig-id=3152 type=Threshold tracking=src count=5
seconds= 2
| gen-id=1 sig-id=2923 type=Threshold tracking=dst count=10
seconds= 60
| gen-id=1 sig-id=2494 type=Both tracking=dst count=20
seconds= 60
| gen-id=1 sig-id=2495 type=Both tracking=dst count=20
seconds= 60
| gen-id=1 sig-id=2275 type=Threshold tracking=dst count=5
seconds= 60
| gen-id=1 sig-id=2924 type=Threshold tracking=dst count=10
seconds= 60
| gen-id=1 sig-id=3273 type=Threshold tracking=src count=5
seconds= 2
| gen-id=1 sig-id=2496 type=Both tracking=dst count=20
seconds= 60
+-----------------------[suppression]------------------------------------------
| none
+------------------------------------------------------------------------------
Rule application order: ->activation->dynamic->alert->pass->log
Log directory = /var/log/snort
--== Initialization Complete ==--
,,_ -*> Snort! <*-
o" )~ Version 2.3.2 (Build 12)
'''' By Martin Roesch & The Snort Team: http://www.snort.org/team.html
(C) Copyright 1998-2004 Sourcefire Inc., et al.
With a continually blinking cursor here....I'm assuming that that is the
desired result. Still don't un why the boot hangs, though. Cheers.
Mark Sargent.
More information about the users
mailing list