Hi Mario,

Thanks for your help. It works :)

Regards,
Alex

> On 17 Aug 2016, at 19:01, Jentsch, Mario <mjent...@cogentco.com> wrote:
> 
> Hi Alex,
> 
> as soon as a matching line in the map is found the search ends unless you 
> specify a jump to a label.
> Try
> 
> set_tag=100   ip=A    jeq=settag2
> set_tag=200   ip=B    jeq=settag2
> set_tag2=0    ip=0.0.0.0 label=settag2
> set_tag2=1  ip=0.0.0.0/0 direction=0 filter=‘ip’
> set_tag2=2  ip=0.0.0.0/0 direction=1 filter=‘ip’
> 
> Regards,
> Mario
> 
>> -----Original Message-----
>> From: pmacct-discussion [mailto:pmacct-discussion-boun...@pmacct.net]
>> On Behalf Of Alex William
>> Sent: Wednesday, August 17, 2016 2:58 PM
>> To: pmacct-discussion@pmacct.net
>> Subject: [pmacct-discussion] pre_tag problem
>> 
>> Hello,
>> 
>> Am actually having some problem with the pre_tag_map. My needs:
>> 1. set a tag of 100 for router A
>> 2. set a tag of 200 for router B
>> 3. use tag2 for direction
>> 
>> Is it something possible?
>> 
>> When using the pre_tag_map am having values 100,200 only in tag field and
>> tag2 field is always 0.
>> 
>> My configuration:
>> 
>> nfprobe_direction[test]: tag2
>> pre_tag_map: /etc/nfacct/pretag.map
>> 
>> root@localhost:~# cat /etc/nfacct/pretag.map
>> set_tag=100  ip=A
>> set_tag=200  ip=B
>> set_tag2=1      ip=0.0.0.0/0                direction=0             
>> filter=‘ip’
>> set_tag2=2      ip=0.0.0.0/0            direction=1             filter=‘ip’
>> 
>> Can you help please?
>> 
>> Thanks.
>> 
>> Regards,
>> Alex
>> _______________________________________________
>> 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

Reply via email to