<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/ipcad/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/ipcad/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/ipcad/support-requests/</id><updated>2017-02-17T07:43:38.189000Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>#8 Interface ID</title><link href="https://sourceforge.net/p/ipcad/support-requests/8/?limit=25#72a9" rel="alternate"/><published>2017-02-17T07:43:38.189000Z</published><updated>2017-02-17T07:43:38.189000Z</updated><author><name>Emil Cazamir</name><uri>https://sourceforge.net/u/userid-1814654/</uri></author><id>https://sourceforge.net952bc02653a49b670af70a07e2bf84979110d335</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have checked the source, it seems you need to set "capture-ports" to enable. Even though the inline documentation of ipcad.conf states that NetFlow operation is not affected by this setting, the source files say in process.c in function process_packet_data:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;       ** if(conf-&amp;gt;capture_ports)** {
                if(iface_in) {
                        memcpy(flow.ifInName, iface_in, IFNAMSIZ);
                        flow.ifInName[IFNAMSIZ-1] = 0;
                        flow.ifInIndex = iface_to_snmp_id(flow.ifInName);
                } else {
                        flow.ifInName[0] = '\0';
                        flow.ifInIndex = ps-&amp;gt;ifIndex;
                }
                if(iface_out) {
                        memcpy(flow.ifOutName, iface_out, IFNAMSIZ);
                        flow.ifOutName[IFNAMSIZ-1] = 0;
                        flow.ifOutIndex = iface_to_snmp_id(flow.ifOutName);
                } else {
                        flow.ifOutName[0] = '\0';
                        flow.ifOutIndex = -1;
                }
        } else {
                flow.ifInName[0] = '\0';
                flow.ifOutName[0] = '\0';
               ** flow.ifOutIndex = -1;**
                flow.ifInIndex = -1;
        }
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Changing the capture-ports setting to enabled fixed the problem, netflow capture included interfaces indexed the same as on the ipcad configuration file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#8 Interface ID</title><link href="https://sourceforge.net/p/ipcad/support-requests/8/?limit=50#5113" rel="alternate"/><published>2013-10-10T00:37:30.093000Z</published><updated>2013-10-10T00:37:30.093000Z</updated><author><name>Pircs</name><uri>https://sourceforge.net/u/pircs/</uri></author><id>https://sourceforge.net7c3e69ff06b396fcb243039a8d069d966601d5c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This functionality was fixed in my configuration with the following setting in ipcad.conf&lt;/p&gt;
&lt;p&gt;netflow ifclass eth mapto 00-99&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Interface ID</title><link href="https://sourceforge.net/p/ipcad/support-requests/8/" rel="alternate"/><published>2010-12-06T20:34:12Z</published><updated>2010-12-06T20:34:12Z</updated><author><name>Thomas York</name><uri>https://sourceforge.net/u/tyork/</uri></author><id>https://sourceforge.netee499efcbee6014f6f42ed66587a7cd54eef9081</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ipcad doesn't correctly pull the interface ID. Manually setting it in the config file doesn't change the interface IDs that are in the flow information.&lt;br /&gt;
Currently, all interfaces are given the ID 65535. Attached is a Wireshark dump of data as sent by ipcad.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Accounting only bytes</title><link href="https://sourceforge.net/p/ipcad/support-requests/7/" rel="alternate"/><published>2007-09-21T13:36:47Z</published><updated>2007-09-21T13:36:47Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.nete7182c2e04d0151a70fbdc3de61b38a27e5a2ce9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any way to count only bytes from a src/dst host without counting packets, and cumulate traffic from multiple connections between same hosts&lt;/p&gt;
&lt;p&gt;Ex.&lt;/p&gt;
&lt;p&gt;Src           Dst           Bytes&lt;br /&gt;
x.x.x.x      y.y.y.y          z&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problems on linux ppp*</title><link href="https://sourceforge.net/p/ipcad/support-requests/6/" rel="alternate"/><published>2006-07-27T17:30:46Z</published><updated>2006-07-27T17:30:46Z</updated><author><name>abdulla</name><uri>https://sourceforge.net/u/apaizulaev/</uri></author><id>https://sourceforge.netb8a9415ca9c4ebd1db4a589fea018ca129133f65</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;br /&gt;
Got a lot of messages like&lt;br /&gt;
modprobe: modprobe: Can't locate module pppxx&lt;br /&gt;
after disconnecting some of ppp interfaces&lt;/p&gt;
&lt;p&gt;IPCAD v3.7 (tried 3.6 too with the same) is running on &lt;br /&gt;
rh-7.3 linux box as Netflow exporter from ppp &lt;br /&gt;
interfaces. It's seems like some traffic is lost too.&lt;br /&gt;
Ofcource it is may be kernel problem too, but in which &lt;br /&gt;
direction i must debug to solve this issue?&lt;br /&gt;
This problem on russian language&lt;br /&gt;
&lt;a href="http://www.netup.ru/phpbb/viewtopic.php?" rel="nofollow"&gt;http://www.netup.ru/phpbb/viewtopic.php?&lt;/a&gt;&lt;br /&gt;
t=682&amp;amp;highlight=&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ppp*</title><link href="https://sourceforge.net/p/ipcad/support-requests/5/" rel="alternate"/><published>2006-07-21T05:39:33Z</published><updated>2006-07-21T05:39:33Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net267804eb0ea10fb7df3a23ade70383837cb274e7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;br /&gt;
tail /var/log/messages gives&lt;br /&gt;
...&lt;br /&gt;
Jul 21 09:23:33 intra modprobe: modprobe: Can't locate &lt;br /&gt;
module pppp4&lt;br /&gt;
Jul 21 09:23:33 intra modprobe: modprobe: Can't locate &lt;br /&gt;
module ppp41&lt;br /&gt;
Jul 21 09:23:34 intra modprobe: modprobe: Can't locate &lt;br /&gt;
module ppp43&lt;br /&gt;
...&lt;br /&gt;
cat /usr/local/etc/ipcad.conf&lt;br /&gt;
...&lt;br /&gt;
interface ppp*;&lt;br /&gt;
...&lt;br /&gt;
uname -a&lt;br /&gt;
Linux intra 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 &lt;br /&gt;
EST 2003 i686 unknown&lt;/p&gt;
&lt;p&gt;what is wrong with ppp*?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Counting outgoing/incoming packets separetly with Netflow</title><link href="https://sourceforge.net/p/ipcad/support-requests/4/" rel="alternate"/><published>2004-09-12T22:16:22Z</published><updated>2004-09-12T22:16:22Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net82c30340b73e55539b0506fa17b91adcca0ee432</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I installed IPCAD on some linux router (Linksys WRT54G&lt;br /&gt;
embedded linux).&lt;br /&gt;
It is using ULOG logging.&lt;/p&gt;
&lt;p&gt;Both traffic for incoming and outgoing are using the&lt;br /&gt;
same nlgroup 1.&lt;/p&gt;
&lt;p&gt;I send the ip accounting data with Netflow to another&lt;br /&gt;
linux server (#2).&lt;/p&gt;
&lt;p&gt;There is pmacctd running (netflow collector) which&lt;br /&gt;
collects the data and writes it into a mysql db.&lt;/p&gt;
&lt;p&gt;In pmacctd I can make use of agent_id mapping per&lt;br /&gt;
Netflow V5 definition.&lt;/p&gt;
&lt;p&gt;This is the description:&lt;br /&gt;
! File syntax is key-based. Position of keys inside a&lt;br /&gt;
row (rule) is not relevant.&lt;br /&gt;
! An atomic expression (example: 'id=1') does not allow&lt;br /&gt;
spaces. First full match&lt;br /&gt;
! wins: take care to the order you write rules. Each&lt;br /&gt;
rule needs 'id' and 'ip' keys.&lt;br /&gt;
!&lt;br /&gt;
! list of currently supported keys follow:&lt;br /&gt;
!&lt;br /&gt;
! 'id'  ID value to be returned if a full match occurs.&lt;br /&gt;
! 'ip'  IP address of the box (router, probe, etc.)&lt;br /&gt;
exporting NetFlow packets.&lt;br /&gt;
! 'in'  Input interface as it's written into NetFlow&lt;br /&gt;
packet.&lt;br /&gt;
! 'out' Output interface as it's written into NetFlow&lt;br /&gt;
packet.&lt;br /&gt;
!&lt;/p&gt;
&lt;p&gt;id=1    ip=192.168.1.1  in=1    out=0&lt;br /&gt;
id=2    ip=192.168.1.1  out=2   in=0&lt;/p&gt;
&lt;p&gt;There is a field agent_id in the acct_v2 SQL table&lt;br /&gt;
which get's written.&lt;/p&gt;
&lt;p&gt;In that way, I want to separate packet accounting for&lt;br /&gt;
1x incoming&lt;br /&gt;
1x outgoing&lt;/p&gt;
&lt;p&gt;But it seems not working since netflow interface output&lt;br /&gt;
is permanently set to 0.&lt;/p&gt;
&lt;p&gt;netflow interface input seems to be set to 1.&lt;/p&gt;
&lt;p&gt;The problem is, incoming + outgoing packets are all&lt;br /&gt;
logged by agent_id 1 since output is alltimes 0.&lt;/p&gt;
&lt;p&gt;Request:&lt;br /&gt;
Is there any way that I get exported netflow data with&lt;br /&gt;
the correct SNMP interfaces 1 and 2 ?&lt;br /&gt;
If it is a incoming packet, netflow output should be&lt;br /&gt;
set to 0.&lt;br /&gt;
If it is a outgoing packet, netflow output field needs&lt;br /&gt;
to be set to 1 or 2 and netflow input field to 0.&lt;/p&gt;
&lt;p&gt;nflow.c:&lt;br /&gt;
static void&lt;br /&gt;
flow_export(double now, server *srv, flow_el_t *el) {&lt;br /&gt;
if(el-&amp;gt;flow.ifSource) {&lt;br /&gt;
packet_source_t *ps = el-&amp;gt;flow.ifSource;&lt;br /&gt;
nfr-&amp;gt;input   = htons(ps-&amp;gt;ifIndex);&lt;br /&gt;
} else {&lt;br /&gt;
nfr-&amp;gt;input   = 0;&lt;br /&gt;
}&lt;br /&gt;
nfr-&amp;gt;output  = 0;    /* Can't distinguish between I and O&lt;br /&gt;
;( */&lt;/p&gt;
&lt;p&gt;The other solution, which would be also usable for me&lt;br /&gt;
is, if I use ULOG not to log to same nlgroup 1 but&lt;br /&gt;
using different groups 1 and 2.&lt;br /&gt;
1 for incoming, 2 for outgoing.&lt;br /&gt;
ipcad.conf could then introduce a ULOG-nlgroup to&lt;br /&gt;
netflow input and output interface mapping.&lt;/p&gt;
&lt;p&gt;BTW:&lt;br /&gt;
It seems, that src_port + dst_port get's not logged by&lt;br /&gt;
pmacct netflow collector.&lt;br /&gt;
Any way how I can make sure that ipcad is sending the&lt;br /&gt;
ports to pmacct ?&lt;br /&gt;
Is there any debug option ?&lt;br /&gt;
Is there any way for me to set ipcad to debug for what&lt;br /&gt;
data it collects from ULOG ?&lt;/p&gt;
&lt;p&gt;It cost me now at least 2 weeks to find the appropriate&lt;br /&gt;
architecture and tools, to get finally IP accounting on&lt;br /&gt;
WRT54G working.&lt;br /&gt;
I have already choosen your tool, to do it's job on WRT.&lt;/p&gt;
&lt;p&gt;Your help is very much appreciated!&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Thomas Heiss&lt;br /&gt;
E-Mail: contact@agency.franken.de&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>do not count the same packets</title><link href="https://sourceforge.net/p/ipcad/support-requests/3/" rel="alternate"/><published>2004-09-03T08:09:50Z</published><updated>2004-09-03T08:09:50Z</updated><author><name>Alexander</name><uri>https://sourceforge.net/u/avk36/</uri></author><id>https://sourceforge.netedb34e3f7bc3cb1a88992bf25202e39a07df313d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Could you please implement a feature to allow switching&lt;br /&gt;
on a packets tracking?&lt;br /&gt;
I mean, if a packet came from eth0 (srcip=1.1.1.1,&lt;br /&gt;
dstip=2.2.2.2) and to reach dstip the packet shoud&lt;br /&gt;
traverse eth1, ipcad will count  this _one_ packet&lt;br /&gt;
twice (first when it came to eth0 and second when it&lt;br /&gt;
goes out from eth1).&lt;br /&gt;
Thank you in advance!&lt;/p&gt;
&lt;p&gt;Alexander.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>port aggregating</title><link href="https://sourceforge.net/p/ipcad/support-requests/2/" rel="alternate"/><published>2004-08-13T06:22:28Z</published><updated>2004-08-13T06:22:28Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb3f444031639c5ef8b87a1a40f113374983dad80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;-- from ipcad.conf.sample --&lt;br /&gt;
aggregate 3128-3128 into 3128&lt;br /&gt;
aggregate 1024-65535 into 65535&lt;/p&gt;
&lt;p&gt;DO NOT WORK, it aggregates only this range :-(( &lt;br /&gt;
aggregate 1024-65535 into 65535&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;
Dmitry,&lt;br /&gt;
altex@crazy.ru&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>cannot get ipcad to function</title><link href="https://sourceforge.net/p/ipcad/support-requests/1/" rel="alternate"/><published>2003-02-26T22:30:57Z</published><updated>2003-02-26T22:30:57Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net03516fbb0db69f5b9b80787b933eb8b504c0b47d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have compiled and installed ipcad.  The sample config &lt;br /&gt;
file has been edited to suit my needs (I think).&lt;/p&gt;
&lt;p&gt;I am running FreeBSD 4.5.  I am using the promiscuous &lt;br /&gt;
mode only.&lt;/p&gt;
&lt;p&gt;When trying to run the program from the command line &lt;br /&gt;
or as a daemon I get the following error message:&lt;/p&gt;
&lt;p&gt;Opening fxp0... [fxp0/interactive mode: Buffering &lt;br /&gt;
disabled] Initialized&lt;br /&gt;
Opening fxp0... [fxp0/interactive mode: Buffering &lt;br /&gt;
disabled] Initialized&lt;br /&gt;
Aggregate network 0.0.0.0/0.0.0.0 -&amp;amp;gt; 255.255.255.0&lt;br /&gt;
Configured RSH Server listening at 127.0.0.1&lt;br /&gt;
Can't open PID file /var/run/ipcad.pid: No such file or &lt;br /&gt;
directory&lt;br /&gt;
Can't intialize pid file /var/run/ipcad.pid: No such file or &lt;br /&gt;
directory&lt;/p&gt;
&lt;p&gt;I have touched the file and given 777 access to the file - &lt;br /&gt;
to no avail.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions?&lt;/p&gt;
&lt;p&gt;My e-mail address is beersJ@moravian.edu.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>