Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176036 - net-analizyer/snort-2.6.1.3-r1 default config file causes runtime error when USE=dynamicplugin is not set
Summary: net-analizyer/snort-2.6.1.3-r1 default config file causes runtime error when ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 176045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-25 23:37 UTC by Jurek Bartuszek (RETIRED)
Modified: 2007-05-20 08:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jurek Bartuszek (RETIRED) gentoo-dev 2007-04-25 23:37:18 UTC
This bug refers to bug #166874 and points out additional sections of default config file (shipped with this version of snort) that cause a runtime error when USE=dynamicplugin is not set:

preprocessor ftp_telnet: global \
   encrypted_traffic yes \
   inspection_type stateful

preprocessor ftp_telnet_protocol: telnet \
   normalize \
   ayt_attack_thresh 200

preprocessor ftp_telnet_protocol: ftp server default \
   def_max_param_len 100 \
   alt_max_param_len 200 { CWD } \
   cmd_validity MODE < char ASBCZ > \
   cmd_validity MDTM < [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string > \
   chk_str_fmt { USER PASS RNFR RNTO SITE MKD } \
   telnet_cmds yes \
   data_chan

preprocessor ftp_telnet_protocol: ftp client default \
   max_resp_len 256 \
   bounce yes \
   telnet_cmds yes

preprocessor smtp: \
  ports { 25 } \
  inspection_type stateful \
  normalize cmds \
  normalize_cmds { EXPN VRFY RCPT } \
  alt_max_command_line_len 260 { MAIL } \
  alt_max_command_line_len 300 { RCPT } \
  alt_max_command_line_len 500 { HELP HELO ETRN } \
  alt_max_command_line_len 255 { EXPN VRFY }

preprocessor dcerpc: \
    autodetect \
    max_frag_size 3000 \
    memcap 100000

preprocessor dns: \
    ports { 53 } \
    enable_rdata_overflow

I think they should be cut out (e.g. using sed like in http://bugs.gentoo.org/show_bug.cgi?id=166874#c1) when the use flag is not set. It takes some time to figure out what makes snort not to start properly in this case.

I did not check any other version of snort but the odds are high that the above description refers to them as well.
Comment 1 Jurek Bartuszek (RETIRED) gentoo-dev 2007-04-26 17:27:42 UTC
*** Bug 176045 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Black (RETIRED) gentoo-dev 2007-05-20 08:26:45 UTC
fixed in bug 178606 - still work in progress.