Hi Adrian ,

> Thank you for your reply, Peter.
>
> It seems that the plugins were the least of my problem...
>
> Today I inserted the new collector in the place of the old one, for
> about an hour, to see how it responds.  Unfortunatelly, it seemed to be
> collecting data only from one source (out of two who are exporting).
> Left without ideas, I uninstalled the snapshot versions of nfsen and
> nfdump and proceeded with installing the older versions which are
> running beautifully on my old collector. These versions are:
> nfdump-1.5.2
> nfsen-snapshot-20060810
>
> Unfortunatelly, the same problem appeared with the older versions too...
> Here is how some debugging information look like:
>
>     * I have packets coming in from source1 (7304bb2) on udp port 9900:
>
> 11:52:20.785322 IP 193.231.103.96.54515 > 80.97.223.7.9900: UDP, length
> 1436
> 11:52:20.789370 IP 193.231.103.96.54515 > 80.97.223.7.9900: UDP, length
> 1436
> 11:52:20.790053 IP 193.231.103.96.54515 > 80.97.223.7.9900: UDP, length
> 1436
> 11:52:20.794553 IP 193.231.103.96.54515 > 80.97.223.7.9900: UDP, length
> 1436
> 11:52:20.799603 IP 193.231.103.96.54515 > 80.97.223.7.9900: UDP, length
> 1436
>
>     * I have packets coming in from source2 (7304bcnt2) on udp port 9901:
>
> 11:52:30.949127 IP 193.231.103.95.52750 > 80.97.223.7.9901: UDP, length
> 1436
> 11:52:30.952642 IP 193.231.103.95.52750 > 80.97.223.7.9901: UDP, length
> 1436
> 11:52:30.955807 IP 193.231.103.95.52750 > 80.97.223.7.9901: UDP, length
> 1436
> 11:52:30.960206 IP 193.231.103.95.52750 > 80.97.223.7.9901: UDP, length
> 1436
> 11:52:30.963720 IP 193.231.103.95.52750 > 80.97.223.7.9901: UDP, length
> 1436
>
>     * My firewall is disabled (allows all packets to enter):
>
> [EMAIL PROTECTED] bin]# iptables -L
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
> Chain RH-Firewall-1-INPUT (0 references)
> target     prot opt source               destination
>
>     * I start nfcapd -p 9900 -E
>       Flow Record:
>         Flags       =       0x00000000
>         size        =               52
>         mark        =                0
>         srcaddr     =     86.20.248.67
>         dstaddr     =     86.35.20.209
>         first       =       1169718601 [2007-01-25 11:50:01]
>         last        =       1169718605 [2007-01-25 11:50:05]
>         msec_first  =              888
>         msec_last   =              372
>         dir         =                0
>         tcp_flags   =             0x18 .AP...
>         prot        =                6
>         tos         =                0
>         input       =                7
>         output      =                0
>         srcas       =             6453
>         dstas       =                0
>         srcport     =            17827
>         dstport     =             3991
>         dPkts       =                2
>         dOctets     =               84
>     * I start nfcapd -p 9901 -E
>           o (I get no output, no matter how long I wait)
>     * Logging looks like this:
>
> Jan 25 11:50:41 hail nfcapd[591]: Startup.
> Jan 25 11:50:41 hail nfcapd[591]: Process_v9: New exporter domain 0
> Jan 25 11:50:42 hail nfcapd[591]: Process_v9: [0] Add template 256
> Jan 25 11:50:43 hail nfcapd[591]: Ident: 'none' Flows: 7792, Packets:
> 163878, Bytes: 120587576, Sequence Errors: 286, Bad Packets: 0
> Jan 25 11:50:43 hail nfcapd[591]: Terminating nfcapd.
> Jan 25 11:51:03 hail nfcapd[602]: Startup.
> Jan 25 11:51:03 hail nfcapd[602]: Process_v9: New exporter domain 0
> Jan 25 11:51:09 hail nfcapd[602]: Ident: 'none' Flows: 0, Packets: 0,
> Bytes: 0, Sequence Errors: 1603, Bad Packets: 0
> Jan 25 11:51:09 hail nfcapd[602]: Terminating nfcapd.
>
> The difference I see is that the collector that works displays this
> line: Process_v9: [0] Add template 256.
>
> I don't know what that means, but I would surely like to make it work...
> I don't know if it's a linux problem (aparently the packets reach the
> application) or if it's a nfcapd problem (worked like a charm on the
> older collector box).
>
> Any ideas for testing are *highly* appreciated!

I assume, that the second exporter feeding at 9901 is a netflow v9
exporter as well. This is an issue of v9:
Each netflow v9 exporter sends different type of records: template records
as well as data records. To correctly decode the netflow v9 data, a
collector needs to receive first the required template records, which
describe, how to interpret the data records. Without the template records
the collector has no clue, how to compile netflow data from the data
record. When you restart the collector at any given time, it has to wait
for the template records to arrive, in order to successfully decode the
data records. According the RFC each exporter has to resend the template
records at regular intervalls ( interval not specified ). Up to that point
the collector discards all data records, and therefore you don not get any
output in nfcpad -E . This is so for all nfcapd version and has nothing to
do with the snapshot.

So the solution: Just wait until the template arrives .. the exporter must
resend them. You'll see the 'add template' message therafter.

 - Peter



>
> If I can collect both sources, I will upgrade to the new version and try
> the plugin patch.
>
> I greatly appreciate your help,
> Thanks,
> Adrian Popa
>
>


-- 
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH,  Limmatquai 138,  CH-8001 Zurich,  Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to