Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Snort-Users
[Top] [All Lists]

[Snort-users] the max limit in BPF filter

Subject: [Snort-users] the max limit in BPF filter
Date: Sat, 16 Jun 2007 11:49:28 +0800
Hi,list;
My test environment is snort-2.6.1.4, oracle 9.0, RH9.0 and RHEL AS4;
when I try to setup a bpf filter file which has 243 bytes, I got an error:

Jun 16 11:29:50 admin snort[2485]: database: oracle_error: ORA-01401:
inserted value too large for column
Jun 16 11:29:50 admin snort[2485]:         : query: INSERT INTO sensor
(hostname, interface, filter, detail, encoding, last_cid) VALUES ('
124.124.1.24','eth0','not (dst net 122.122.122) and not (dst net 121.121.121)
and not (dst net 20.20.20) and not (dst net 22.22.22) and not (dst net
222.222.222) and not (dst host 111.11.1.1) and  not (dst host
111.111.111.111) ',1,0, 0)
Jun 16 11:29:50 admin snort[2485]: database: Problem obtaining SENSOR ID
(sid) from depsight->sensor

after cheching the source code of snort-2.6.1.4, I found that the limitation
is from the SQL script, which is different from database type:

CREATE TABLE sensor ( sid     SERIAL,
                     hostname    TEXT,
                     interface   TEXT,
                     filter      TEXT,

NOTE THAT: the column of filter is TEXT here, while in MsSQL and Oracle it's
varchar(100), this caused the listed error.

my question is can I modify this setting to avoid the previous errors? does
it have any disadvantage to snort?

thanks,
joseph
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Snort-users] the max limit in BPF filter, Joseph Chen <=