Hi Andrey,

Unfortunately this is not possible. You have a networks_file_no_lpm
switch, which does not really apply to your case since you have all
three networks in a networks_file, but in the end you can account
traffic only to one net - then you would have to summarize yourself
as part of the post-processing.

What alternatively you may do is to tag or label flows so to add
qualities to it via a pre_tag_map. Imagine the /26 is the customer
itself (and that is what you account on), then /24 is the city and
/22 is the region; then you can have a label like: "FROM_REGION_X,
FROM_CITY_Y,TO_REGION_Z,TO_CITY_W". Don't know how feasible it is
and/or if it solves you anything since then you would have to
extract information anyway from the 'label' field.

Cheers,
Paolo

On Wed, Jul 27, 2016 at 06:57:51PM +0300, Андрей Евтеев wrote:
> Hello,
> 
> we use nfacctd to account our customers inbound/outbound traffic
> with dst_net,dst_mask/src_net,src_mask aggregation, but if the
> networks_file list contains networks like:
> 10.0.0.0/26
> 10.0.0.0/24
> 10.0.0.0/22
> 
> and traffic goes to some IP belonging to 10.0.0.0/26, it only
> accounted for 10.0.0.0/26, is it possible to account traffic for all
> networks?
> 
> 
> sorry for my bad english.
> 
> 
> Best regards,
> 
> --
> Andrey Evteev
> 
> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists

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

Reply via email to