* [Sysadmins] ipcad и индексы интерфейсов
@ 2009-09-24 9:26 Денис Ягофаров
0 siblings, 0 replies; only message in thread
From: Денис Ягофаров @ 2009-09-24 9:26 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 3611 bytes --]
Доброго времени суток.
Использую ipcad (ipcad-3.7.3-alt0.M40.1, x64) как netflow сенсор. В
маршрутизаторе есть несколько интерфейсов, конфиг ipcad:
capture-ports disable;
interface veth1;
interface tun0;
aggregate 10.8.0.0/24 strip 32;
aggregate 30000-65535 into 65535; /* Aggregate wildly */
netflow export destination 10.3.0.17 5556;
netflow export version 5;
netflow timeout active 30;
netflow timeout inactive 15;
netflow engine-type 73;
netflow engine-id 1;
netflow ifclass veth mapto 0-99; # i.e., "eth1"->1, "eth3"->3
netflow ifclass fxp mapto 0-99; # i.e., "fxp4"->4, "fxp0"->0
netflow ifclass ppp mapto 100-199; # i.e., "ppp32"->532, "ppp7"->507
netflow ifclass gre mapto 200-299;
netflow ifclass tun mapto 300-399; # i.e., "tun0"->300
rsh off;
dumpfile = ipcad.dump; # The file is inside chroot(), see below...
chroot = /var/lib/ipcad;
pidfile = ipcad.pid;
memory_limit = 1m;
В логах, всё _почти_ правильно:
Sep 23 19:20:19 calcium ipcad: Opening veth1... [LCap]
Sep 23 19:20:19 calcium ipcad: Initialized as 1
^^^^^^^^^^^ -> не
понятно, это он о SNMP?
Sep 23 19:20:19 calcium ipcad: Opening tun0... [LCap]
Sep 23 19:20:19 calcium ipcad: Initialized as 2
^^^^^^^^^^^ -> не
понятно, это он о SNMP?
Sep 23 19:20:19 calcium ipcad: Configured NetFlow destination at
10.3.0.17:5556
Sep 23 19:20:19 calcium ipcad: Warning: Option at line 189 has no effect
Sep 23 19:20:19 calcium ipcad: Aggregate network 10.8.0.0/255.255.255.0
-> 255.255.255.255
Sep 23 19:20:19 calcium ipcad: Aggregate ports 30000..65535 into 65535
Sep 23 19:20:19 calcium ipcad: Daemonized.
Sep 23 19:20:19 calcium ipcad: ipcad startup succeeded
Захватывают трафик так:
flow-capture -b big -p /var/run/flowtool_vr.pid -w
/var/www/apache2/cgi-bin/FlowViewer_3.3.1/flows/vpn_router -n 287 -N 3
-S 5 0/0/5556
Пробую посмортеть отчёт:
flow-cat ./flows/vpn_router/2009/2009-09/2009-09-24/ft-v05.2009-09-24.*
| flow-print -f 5 | head
Start End Sif
SrcIPaddress SrcP DIf DstIPaddress DstP P Fl Pkts Octets
0923.23:59:56.578 0923.23:59:56.578 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:00:11.948 0924.00:00:11.948 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:00:27.315 0924.00:00:27.315 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:00:42.685 0924.00:00:42.685 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:00:58.052 0924.00:00:58.052 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:01:13.422 0924.00:01:13.422 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:01:28.789 0924.00:01:28.789 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
0924.00:01:44.159 0924.00:01:44.159 65535 10.3.0.6 65535 65535
10.3.0.17 5556 17 0 1 100
Проблема в том, что для потоков через любой интерфейс Sif = 65535, DIf =
65535. Для маршрутизатора с бОльшим количеством интерфейсов -
аналогично. Где же я ошибся? ... или это баг/фича?
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 385 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-24 9:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-24 9:26 [Sysadmins] ipcad и индексы интерфейсов Денис Ягофаров
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git