[pmacct-discussion] sfacctd and nfacctd using the same db tables

2020-01-22 Thread Jordan Grigorov (Neterra NMT)

Hello,

We're using a mixed network environment with equipment that supports 
either sflow or netflow.


Currently we're using sfacctd only and mysql plugin which stores data 
into MariaDB CS database.


Is there any option to use both sfacctd and nfacctd that are using the 
same DB and tables?



Thank you in advance.

Kind Regards,


--
---


   Jordan Grigorov


   Network Engineer IP Services



___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] sfacct feature suggestion - traffic in/out direction

2016-07-27 Thread Jordan

Hello,

I mean that when you enable sflow on an interface you cannot configure 
ingress/egress option.

It captures both directions while we need only data for ingress traffic.

There are two major problems with your solution. I think /direction /is 
not a valid sfacct key and we already use pretagging(both tag,tag2) for 
other purposes.


Regards,


On 07/27/2016 06:27 PM, Jentsch, Mario wrote:


Hi Jordan,

not sure what you mean with “equipment that cannot separate 
inbound/outbound traffic” but as long as you have /direction/ in your 
flow data you can add a pre-tag map like


/!/

/! tag=1  - inbound IPv4 traffic/

/! tag=2  - outbound IPv4 traffic/

/! tag=3  - inbound IPv6 traffic/

/! tag=4  - outbound IPv6 traffic/

/!/

/set_tag=1 ip=0.0.0.0/0 direction=0 filter='ip'/

/set_tag=2 ip=0.0.0.0/0 direction=1 filter='ip'/

/set_tag=3 ip=0.0.0.0/0 direction=0 filter='ip6'/

/set_tag=4 ip=0.0.0.0/0 direction=1 filter='ip6'/

/set_tag=0 ip=0.0.0.0/0/

/!/

and filter e.g. the ingress flows with

/!/

/pre_tag_filter[ingress]: 1,3/

/aggregate[ingress]: …/

/!/

Regards,

Mario

*From:*pmacct-discussion [mailto:pmacct-discussion-boun...@pmacct.net] 
*On Behalf Of *Jordan

*Sent:* Wednesday, July 27, 2016 5:06 PM
*To:* pmacct-discussion@pmacct.net
*Subject:* [pmacct-discussion] sfacct feature suggestion - traffic 
in/out direction


Hello,

We're having issues with equipment that cannot separate 
inbound/outbound traffic using sflow V5.


Looking at the sflow V5 protocol it's having the following fields. 
Usually they match the snmp interface indexes.

/source_id/
/interface input/
/interface output/


What I suggest as a new feature are the following cases:

*Match_all_traffic*(by default) - matches all packets (as it currently 
works)
*Match_input_only *- (if /source_id==interface input /permit, else 
drop the rest of the samples)
*Match_output_only* - (if/source_id==interface output/permit, 
else drop the rest of the samples)



Please let me know if such feature would be possible?
If there is any other already implemented solution I would be glad to 
know.


Thank you in advance.

Best Regards,


--
---


Jordan



___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

[pmacct-discussion] sfacct feature suggestion - traffic in/out direction

2016-07-27 Thread Jordan

Hello,

We're having issues with equipment that cannot separate inbound/outbound 
traffic using sflow V5.


Looking at the sflow V5 protocol it's having the following fields. 
Usually they match the snmp interface indexes.

/source_id/
/interface input/
/interface output/


What I suggest as a new feature are the following cases:

*Match_all_traffic*(by default) - matches all packets (as it currently 
works)
*Match_input_onl**y *- (if /source_id==//interface input /permit, else 
drop the rest of the samples)
*Match_output_only* - (if///source_id==//interface//output/permit, 
else drop the rest of the samples)



Please let me know if such feature would be possible?
If there is any other already implemented solution I would be glad to know.

Thank you in advance.

Best Regards,



--
---


   Jordan


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Question about teeing and sampling

2016-02-10 Thread Jordan Grigorov (Neterra NMT)

Hello Pau,

You can try /samplicate/ tool (https://github.com/sleinen/samplicator) 
to forward netflow data to multiple IPs/ports.


Just install it and issue:

/samplicate -s 88.22.33.99 -p 9996 127.0.0.1/9995 ///127.0.0.1// -f/

Best Regards,



---


   Jordan

<https://www.linkedin.com/company/neterra>


On 8.02.2016 16:27, KA PDE wrote:

Hi all,

I've recently discovered pmacct and I'm evaluating it to forward 
netflow data for security purposes to a set of collectors, some of 
them requiring less amount of data sent.


I have a simple configuration using the tee plugin. I've managed to 
send flow information to NFsen but I'm unable to find a way of 
sampling to the other destination.Is this achievable with pmacct?


! nfacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/nfacctd.pid
syslog: daemon

nfacctd_port: 9996
nfacctd_ip: 88.22.33.99
plugin_pipe_size: 1024
plugin_buffer_size: 10240

plugins: tee[nfsen], tee[pmacct]
tee_receiver[nfsen]: 127.0.0.1:9995 <http://127.0.0.1:9995>
tee_receiver[pmacct]: 127.0.0.1: <http://127.0.0.1:>
! sampling_rate[pmacct]: 4096
tee_transparent: true

Thanks in advance and best regards,

Pau


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] sfacctd - Multiple RIB - incorrect BGP data

2016-01-28 Thread Jordan Grigorov (Neterra NMT)

Hello Paolo,

Using this pre_tag_map structure returns the following error. Pmacct 
version is 1.5.1.


/Jan 28 10:06:20 ERROR ( default/core ): required key missing at line 1 
in map '/etc/pmacct/pretag/peer1.map'. Required key is: 'ip'.//
//Jan 28 10:06:20 ERROR ( default/core ): required key missing at line 2 
in map '/etc/pmacct/pretag/peer1.map'. Required key is: 'ip'./

...

I tryed adding  the 'ip' key but all the bgp and 'tag' data is null.
By the way so far the agent_id value is always 0 or NULL(we're having 
about 20 multi vendor agents).

Am I doing something wrong?

Kind Regards,


---


   Jordan

www.neterra.net <http://www.neterra.net/> 
<https://www.linkedin.com/company/neterra>



On 20.01.2016 08:46, Paolo Lucente wrote:

Hi Jordan,

A feature to map MACs to ASNs, ie. equivalent to the networks_file
that does IP (prefixes) to ASNs, is not currently available - just
to confirm. Adding it needs a bit of work but it's not a big deal,
definitely achievable.

The workaround i can propose is to pass through the pre_tag_map
infrastructure; use tag as peer_src_as and tag2 as peer_dst_as;
the map would be composed as follows (please excuse typos):

set_tag=   src_mac= jeq=dst
set_tag= src_mac= jeq=dst
set_tag= src_mac= jeq=dst
...
set_tag2= dst_mas= label=dst
set_tag2= dst_mas=
set_tag2= dst_mas=

With further reference on the syntax of a pre_tag_map file available
here:

https://github.com/pmacct/pmacct/blob/master/examples/pretag.map.example

Then your 'aggregate' configuration directive you would look like
'tag, tag2, < .. >'. Please let me know if the work around can work
for you for a proof of concept and/or a short-term solution.

Cheers,
Paolo

On Tue, Jan 19, 2016 at 11:28:58AM +0200, Jordan Grigorov (Neterra NMT) wrote:

Hello,

We are using sfacctd, mysql and BGP daemon capturing IXP traffic.

We're facing a problem with incorrect BGP data caused by the
multiple RIB of our RS.

In details there is wrong information in the DB for the primitives
/peer_src_as /and/peer_dst_as/ for some flows as there is only a
single iBGP session between the RS and the sflow collector(in a
single RIB).
As we're unable to bring up iBGP sessions for each RIB is there any
solution for this case?


What we intend to do is to create a dynamic file that maps each IXP
member MAC address to his ASN(/peer_dst_as)/ value.
Then for each flow this /peer_dst_as/ value should be obtained from
the file and injected into the DB rather than from the sfacct BGP
daemon.
Is there any option to do this without heavy src code modifications?

Thank you in advance.

Kind Regards,


--
---


Jordan Grigorov

<https://www.linkedin.com/company/neterra>


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

[pmacct-discussion] sfacctd - mysql multiple tables

2015-05-15 Thread Jordan Grigorov (Neterra NMT)

Hello,

We are using sfacctd, mysql and BGP daemon.

Is there an easy way to configure sfacctd to write into multiple mysql 
tables?


What we would like to achieve is to insert different primitives into 
different mysql tables.

Is it possible with a single instance of sfacct?

Thanks in advance.

Kind Regards,


--
---
*Jordan Grigorov*
Network Management Team

Neterra Ltd.
Telephone: +359 2 974 33 11
Fax: +359 2 975 34 36
Mobile: +359 886 280 046
www.neterra.net http://www.neterra.net


___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists