Snort mailing list archives

Re: OpenPcap() error


From: Erek Adams <erek () snort org>
Date: Tue, 18 Mar 2003 13:13:08 -0500 (EST)

On Tue, 18 Mar 2003, Robert Cole wrote:

[...snip...]

and the /etc/init.d/snort startup script. I'm working on clairifying that
SNORT_OPS is just pointing to /etc/snort/snort.conf

[...snip...]

start() {
      checkconfig || return 1
      ebegin "Starting snort"
      start-stop-daemon --start --quiet --exec /usr/bin/snort \
              -- ${SNORT_OPTS} >/dev/null 2>&1
      eend $?
}

[...snip...]

Make sure that SNORT_OPTS == "-c /etc/snort/snort.conf".  If you don't
have the -c snort thinks that /etc/snort/snort.conf is a BPF filter and
tries to apply it to libpcap.

Make your life simpler:

        ln -s /etc/snort/snort.conf /etc/snort.conf

/etc/snort.conf is one of the files that Snort checks for upon startup.

I'll bet that you can from the command line:

        snort -c /etc/snort/snort.conf

And it'll work just dandy.

Cheers!

-----
Erek Adams

   "When things get weird, the weird turn pro."   H.S. Thompson


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: