Johannes Lavre | 3 May 2012 09:18
Picon

Re: sfcapd problem with 3com 4800g router

It seems to only happen when nfsen startup. The box is running Centos 6.2 all dependencies is installed via
package manager the perl version on the box is 5.10.1 but it doesn't seem to affect the collector or the
nfsen interface. The box has been running for almost a week now. 

nfsend[6032]: segfault at 65c ip 0018b26a sp bfdea6e0 error 4 in libperl.so[101000+161000] 
-//-
nfsend[12666]: segfault at 65c ip 0018b26a sp bfdea6b0 error 4 in libperl.so[101000+161000]

-----Opprinnelig melding-----
Fra: Peter Haag [mailto:phaag@...] 
Sendt: 30. april 2012 09:54
Til: Adrian Popa
Kopi: nfsen-discuss@...
Emne: Re: [Nfsen-discuss] sfcapd problem with 3com 4800g router

On 4/30/12 7:30, Adrian Popa wrote:
> 
> 
> On Fri, Apr 27, 2012 at 2:59 PM, Peter Haag
<phaag@...
<mailto:phaag@...>> wrote:
> 
>     .. as for the segfaults: This seems to be a Perl bug, which also applies to other Linux distros.
> 
> 
> I've noticed it too on perl 5.10 on some older Fedora Core 
> installations (with other perl scripts). Is it related to threads by any chance?
> http://stackoverflow.com/questions/5038337/why-does-my-threaded-perl-s
> cript-segfault

(Continue reading)

Nikolaos Milas | 8 May 2012 13:35
Picon
Favicon

Re: NfSen & RedHat

On 25/4/2012 10:20 πμ, Nikolaos Milas wrote:

> I decided to:
>
> 1. Update CentOS so that it can compile with most recent software
> 2. Upgrade to nfsen 1.3.6p1 and nfdump 1.6.6
>
> So I compiled latest versions and upgraded. I now run the latest
> versions for about 12 hours and it works OK.
>
> I will let you know how it goes.

I am afraid the problem still occurs (but less frequently). I installed 
debugging symbols, and below follows a backtrace from a hang.

Can you please help in resolving the issue? Does this backtrace help?

Thanks,
Nick

=============================================

# gdb /data/nfsen/bin/nfsend 13540
GNU gdb (GDB) CentOS (7.0.1-42.el5.centos)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
(Continue reading)

Peter Haag | 8 May 2012 16:46
Picon

Re: NfSen & RedHat

Thanks for the info.

May I ask you a few questions:
o how long is nfsend running before it segfaults?
o does the crash occur, while working with NfSen (using a web browser)?
o does the crash occur over night. ( nobody is working )

It seems as a signal is not handled properly. I will check, if I can change
some Perl code.

	- Peter

On 5/8/12 13:35, Nikolaos Milas wrote:
> On 25/4/2012 10:20 πμ, Nikolaos Milas wrote:
> 
>> I decided to:
>>
>> 1. Update CentOS so that it can compile with most recent software
>> 2. Upgrade to nfsen 1.3.6p1 and nfdump 1.6.6
>>
>> So I compiled latest versions and upgraded. I now run the latest
>> versions for about 12 hours and it works OK.
>>
>> I will let you know how it goes.
> 
> I am afraid the problem still occurs (but less frequently). I installed 
> debugging symbols, and below follows a backtrace from a hang.
> 
> Can you please help in resolving the issue? Does this backtrace help?
> 
(Continue reading)

Nikolaos Milas | 8 May 2012 17:22
Picon
Favicon

Re: NfSen & RedHat

On 8/5/2012 5:46 μμ, Peter Haag wrote:

> May I ask you a few questions:
> o how long is nfsend running before it segfaults?
> o does the crash occur, while working with NfSen (using a web browser)?
> o does the crash occur over night. ( nobody is working )
>
> It seems as a signal is not handled properly. I will check, if I can change
> some Perl code.

Thank you Peter,

It can happen any time; nfsen will run from 12 hours to 6 days (max) and 
then it will hang unexpectedly. (nfdump works flawlessly all the time.)

I think there were cases where it happened when there was a user 
connected to the web interface (but not actively using it); yet it has 
*never* happened when the interface was being actively used for queries. 
It mostly (if not always) happens when no user is connected to the web 
interface. My experiments (for several weeks) do not show any 
association between browser use/connection/exit and appearance of the 
hang in nfsen. In short, it happens when nfsen is unattended.

But I am wondering why there are no other reports of this issue by other 
administrators.

If you want me to follow any specialized debugging process, I could 
follow your instructions.

Thank you again for examining the hang.
(Continue reading)

Peter Haag | 8 May 2012 19:26
Picon

Re: NfSen & RedHat

On 8/5/12 5:22 PM, Nikolaos Milas wrote:
> On 8/5/2012 5:46 μμ, Peter Haag wrote:
> 
>> May I ask you a few questions:
>> o how long is nfsend running before it segfaults?
>> o does the crash occur, while working with NfSen (using a web browser)?
>> o does the crash occur over night. ( nobody is working )
>>
>> It seems as a signal is not handled properly. I will check, if I can change
>> some Perl code.
> 
> Thank you Peter,
> 
> It can happen any time; nfsen will run from 12 hours to 6 days (max) and 
> then it will hang unexpectedly. (nfdump works flawlessly all the time.)

So it hangs and does not die? or did I misunderstood something?
If it dies does it produce a core, you could backtrace?

Your backtrace seem to occur on a send socket command, which is deep in Perl
anyway. This connection is never supposed to hang as an alarm fires after
some time.
if it hangs, do you have any syslog messages from nfsen?
Can you connect to the socket:

socat UNIX-CONNECT:/path/to/nfsen.comm -

You should see something like:
220 1336497630 nfsend v0.1 ready

(Continue reading)

Nikolaos Milas | 8 May 2012 20:27
Picon
Favicon

Re: NfSen & RedHat

On 8/5/2012 8:26 μμ, Peter Haag wrote:

> So it hangs and does not die? or did I misunderstood something?
>

Sorry, my wording is wrong; it dies: Here is a new "death", I just 
received:

=========================================================
Program received signal SIGPIPE, Broken pipe.
0x00000036e040df15 in __libc_send (fd=4, buf=0x12e47250, n=12, flags=0) 
at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
28          return INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, 
NULL);
(gdb) backtrace full
#0  0x00000036e040df15 in __libc_send (fd=4, buf=0x12e47250, n=12, 
flags=0) at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
         oldtype = <value optimized out>
         result = <value optimized out>
#1  0x00000036e18cf063 in Perl_pp_send (my_perl=0x122cc010) at pp_sys.c:1934
         sp = <value optimized out>
         mark = 0x123b2498
         origmark = 0
         targ = 0x12d94000
         gv = 0x12e2ffa0
         io = 0x12e1f980
         bufsv = 0x12d93fd0
         buffer = 0x12e47250 ".timeout=10\n"
         length = <value optimized out>
         retval = <value optimized out>
(Continue reading)

Mallow, Christopher R. | 14 May 2012 22:45
Picon
Favicon

Busted PMs with Ubuntu dist upgrade

Greetings,

 

Just an FYI regarding something I found today. I had initially installed on Ubuntu 11.10 and thus my install was running perl 5.12 with rrdtool 1.4.7. Ran the upgrade to 12.04 LTS today only to discover that the RRDs.pm module ended up broken. The issue, apparently, is that just enough has changed in perl 5.14.2 (which is what comes on 12.04) that the previously compiled stuff wasn’t happy. (Also note that I had to custom-compile RRDtool originally because I couldn’t get the version that came via apt-get to function with nfcap/nfsen, for some reason.)

 

Long story short, I flushed all of the old RRDtool install and recompiled 1.4.7 from source and this repaired it. I don’t know if anyone else had run into this, but just in case…

 

-------------------------------------------------------------------

Chris R. Mallow, CISSP, GCFA, ACE

IT Forensic Analyst - CSIRT

The University of Oklahoma

O: 405.325.4991

 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@...
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
djwil mer | 14 May 2012 23:33
Picon

Time Window issue

Today I created a time window request from 7:00 to 7:10 but for some reason there are entries from 3/25/2012 as the start date. Why is this happening? Is this some type of bug?
 
Thanks.
 
 
** nfdump -M /var/nfsen/profiles-data/test/test1:test2:test2:test1  -T  -R 2012/05/14/nfcapd.201205140700:2012/05/14/nfcapd.201205140710 -n 10 -s record/flows
nfdump filter:
ip 10.10.30.3
Aggregated flows 368
Top 10 flows ordered by flows:
Date flow start          Duration Proto      Src IP Addr:Port          Dst IP Addr:Port   Packets    Bytes Flows
2012-05-14 06:59:33.262   865.084 TCP      10.10.25.163:3322  ->      10.10.30.3:44574       57     4707    11
2012-05-14 06:59:33.325   865.149 TCP        10.10.30.3:44574 ->    10.10.25.163:3322        57     4872    11
2012-05-14 07:00:00.010   781.825 TCP        10.10.30.3:58997 ->   10.10.78.151:3750      4473    1.2 M    11
2012-03-25 13:58:27.496 4295747.373 TCP      10.10.78.59:3714  ->      10.10.30.3:49502       45     4140    10
2012-03-25 13:57:12.743 4295749.100 TCP     10.10.78.151:3750  ->      10.10.30.3:58997     2632   852472    10
2012-05-14 06:59:44.719   870.268 TCP        10.10.30.3:49502 ->    10.10.78.59:3714        59     5054    10
2012-03-25 13:57:12.935 4295749.102 TCP        10.10.71.54:3778  ->      10.10.30.3:64588       30     2375     7
2012-05-14 07:00:00.203   781.889 TCP        10.10.30.3:64588 ->      10.10.71.54:3778        30     2425     7
2012-05-14 07:09:01.641     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:47887        1       46     1
2012-05-14 07:13:53.545     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:55910        1       46     1
Summary: total flows: 437, total bytes: 2.1 M, total packets: 7745, avg bps: 3, avg pps: 0, avg bpp: 272
Time window: 2012-03-25 13:57:12 - 2012-05-14 07:14:14
Total flows processed: 437, Blocks skipped: 0, Bytes read: 23252
Sys: 0.004s flows/second: 109250.0   Wall: 0.002s flows/second: 211724.8
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@...
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
Adrian Popa | 15 May 2012 07:31
Picon

Re: Time Window issue

Flows that started on 2012-03-25 had just finished and were exported to nfsen inside the time window you selected. To have a better view of your data, and in near real time, you should set flow expire timers on your routers to 300s. This will force a flow to be expired even if the data transfer hasn't finished, and you will get the records sooner in nfsen.

On Tue, May 15, 2012 at 12:33 AM, djwil mer <djwilmer107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Today I created a time window request from 7:00 to 7:10 but for some reason there are entries from 3/25/2012 as the start date. Why is this happening? Is this some type of bug?
 
Thanks.
 
 
** nfdump -M /var/nfsen/profiles-data/test/test1:test2:test2:test1  -T  -R 2012/05/14/nfcapd.201205140700:2012/05/14/nfcapd.201205140710 -n 10 -s record/flows
nfdump filter:
ip 10.10.30.3
Aggregated flows 368
Top 10 flows ordered by flows:
Date flow start          Duration Proto      Src IP Addr:Port          Dst IP Addr:Port   Packets    Bytes Flows
2012-05-14 06:59:33.262   865.084 TCP      10.10.25.163:3322  ->      10.10.30.3:44574       57     4707    11
2012-05-14 06:59:33.325   865.149 TCP        10.10.30.3:44574 ->    10.10.25.163:3322        57     4872    11
2012-05-14 07:00:00.010   781.825 TCP        10.10.30.3:58997 ->   10.10.78.151:3750      4473    1.2 M    11
2012-03-25 13:58:27.496 4295747.373 TCP      10.10.78.59:3714  ->      10.10.30.3:49502       45     4140    10
2012-03-25 13:57:12.743 4295749.100 TCP     10.10.78.151:3750  ->      10.10.30.3:58997     2632   852472    10
2012-05-14 06:59:44.719   870.268 TCP        10.10.30.3:49502 ->    10.10.78.59:3714        59     5054    10
2012-03-25 13:57:12.935 4295749.102 TCP        10.10.71.54:3778  ->      10.10.30.3:64588       30     2375     7
2012-05-14 07:00:00.203   781.889 TCP        10.10.30.3:64588 ->      10.10.71.54:3778        30     2425     7
2012-05-14 07:09:01.641     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:47887        1       46     1
2012-05-14 07:13:53.545     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:55910        1       46     1
Summary: total flows: 437, total bytes: 2.1 M, total packets: 7745, avg bps: 3, avg pps: 0, avg bpp: 272
Time window: 2012-03-25 13:57:12 - 2012-05-14 07:14:14
Total flows processed: 437, Blocks skipped: 0, Bytes read: 23252
Sys: 0.004s flows/second: 109250.0   Wall: 0.002s flows/second: 211724.8

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@...
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
djwil mer | 15 May 2012 17:18
Picon

Re: Time Window issue

So I will need to change the following value from 15 to 300?
 
from
 
ip flow-cache timeout inactive 15
 
to
 
ip flow-cache timeout inactive 300
 
Thanks.
On Tue, May 15, 2012 at 1:31 AM, Adrian Popa <adrian.popa.gh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Flows that started on 2012-03-25 had just finished and were exported to nfsen inside the time window you selected. To have a better view of your data, and in near real time, you should set flow expire timers on your routers to 300s. This will force a flow to be expired even if the data transfer hasn't finished, and you will get the records sooner in nfsen.

On Tue, May 15, 2012 at 12:33 AM, djwil mer <djwilmer107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Today I created a time window request from 7:00 to 7:10 but for some reason there are entries from 3/25/2012 as the start date. Why is this happening? Is this some type of bug?
 
Thanks.
 
 
** nfdump -M /var/nfsen/profiles-data/test/test1:test2:test2:test1  -T  -R 2012/05/14/nfcapd.201205140700:2012/05/14/nfcapd.201205140710 -n 10 -s record/flows
nfdump filter:
ip 10.10.30.3
Aggregated flows 368
Top 10 flows ordered by flows:
Date flow start          Duration Proto      Src IP Addr:Port          Dst IP Addr:Port   Packets    Bytes Flows
2012-05-14 06:59:33.262   865.084 TCP      10.10.25.163:3322  ->      10.10.30.3:44574       57     4707    11
2012-05-14 06:59:33.325   865.149 TCP        10.10.30.3:44574 ->    10.10.25.163:3322        57     4872    11
2012-05-14 07:00:00.010   781.825 TCP        10.10.30.3:58997 ->   10.10.78.151:3750      4473    1.2 M    11
2012-03-25 13:58:27.496 4295747.373 TCP      10.10.78.59:3714  ->      10.10.30.3:49502       45     4140    10
2012-03-25 13:57:12.743 4295749.100 TCP     10.10.78.151:3750  ->      10.10.30.3:58997     2632   852472    10
2012-05-14 06:59:44.719   870.268 TCP        10.10.30.3:49502 ->    10.10.78.59:3714        59     5054    10
2012-03-25 13:57:12.935 4295749.102 TCP        10.10.71.54:3778  ->      10.10.30.3:64588       30     2375     7
2012-05-14 07:00:00.203   781.889 TCP        10.10.30.3:64588 ->      10.10.71.54:3778        30     2425     7
2012-05-14 07:09:01.641     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:47887        1       46     1
2012-05-14 07:13:53.545     0.000 TCP      10.10.25.170:3322  ->      10.10.30.3:55910        1       46     1
Summary: total flows: 437, total bytes: 2.1 M, total packets: 7745, avg bps: 3, avg pps: 0, avg bpp: 272
Time window: 2012-03-25 13:57:12 - 2012-05-14 07:14:14
Total flows processed: 437, Blocks skipped: 0, Bytes read: 23252
Sys: 0.004s flows/second: 109250.0   Wall: 0.002s flows/second: 211724.8

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@...
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Gmane