<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>6301</bug_id>
          
          <creation_ts>2005-03-22 19:52:00 +0300</creation_ts>
          <short_desc>snort can not bind to interface other than eth0</short_desc>
          <delta_ts>2008-02-18 10:46:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>snort</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmytro O. Redchuk">dor</reporter>
          <assigned_to name="Serge A. Volkov">vserge</assigned_to>
          <cc>oddity</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22705</commentid>
    <comment_count>0</comment_count>
    <who name="Dmytro O. Redchuk">dor</who>
    <bug_when>2005-03-22 19:52:00 +0300</bug_when>
    <thetext>snort can not bind to interface other than eth0 -- even if &quot;any&quot; requested.

This patch should be applied to /etc/rc.d/init.d/snortd:

--- snortd      2003-08-27 23:29:58 +0300
+++ snortd.dor  2005-03-22 17:36:50 +0200
@@ -36,7 +36,8 @@
            --expect-user snort -- \
            snort -u snort -g snort \
            -t /var/log/snort \
-           $(eval echo $(echo \$`echo ADDPARAMS_$i`))
+           $(eval echo $(echo \$`echo ADDPARAMS_$i`)) \
+           -i $i
        RETVAL=$?
        if [ $RETVAL != 0 ]; then
            return $RETVAL

Steps to Reproduce:
1. Install snort
2. Edit /etc/sysconfig/snort and change INTERFACES=any to INTERFACES=eth1,
   ADDPARAMS_any to ADDPARAMS_eth1
3. issue `service snortd start&apos;
Actual Results:  
snort will bind to eth0 and write its PID to &quot;/var/run//snort_eth0.pid&quot;

Expected Results:  
:-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63433</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-02-15 18:51:53 +0300</bug_when>
    <thetext>Починилось ли за почти три года?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63966</commentid>
    <comment_count>2</comment_count>
    <who name="Dmytro O. Redchuk">dor</who>
    <bug_when>2008-02-18 10:37:08 +0300</bug_when>
    <thetext>Думаю, давно :-)

Не проверял; у меня именно там -- именно тот snort до сих пор.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63967</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-02-18 10:46:31 +0300</bug_when>
    <thetext>Посмотрел в init.d/snortd - и вправду починено.

Закрываю.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>