From: "Денис Ягофаров" <denyago@rambler.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: [Sysadmins] ipcad и индексы интерфейсов Date: Thu, 24 Sep 2009 12:26:27 +0300 Message-ID: <4ABB3B43.1060706@rambler.ru> (raw) [-- 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
reply other threads:[~2009-09-24 9:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4ABB3B43.1060706@rambler.ru \ --to=denyago@rambler.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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