<div dir="ltr">Hi,<div><br></div><div style>You can try ipfix_collector which is coming with libipfix library. I just added the required CGNAT template to the source code: <a href="https://github.com/shef/libipfix">https://github.com/shef/libipfix</a></div>
<div style><br></div><div class="gmail_extra"><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div class="" id="LC7" style="padding-left:10px">
This is the example of collected flows:</div><div class="" id="LC8" style="padding-left:10px">#hdr: v9, 4840.000, 1378943271, 46</div><div class="" id="LC9" style="padding-left:10px">#template: 256, 24628(NatLogIdxCtxID:4), 24629(NatLogIdxContentName:64)</div>
<div class="" id="LC10" style="padding-left:10px">#template: 257, 24628(NatLogIdxCtxID:4), 24630(NatLogIdxAssignTSSec:4), 24632(NatLogIdxIPV4IntAddr:4), 24633(NatLogIdxIPV4ExtAddr:4), 24634(NatLogIdxExtPortFirst:2), 24635(NatLogIdxExtPortLast:2)</div>
<div class="" id="LC11" style="padding-left:10px">#template: 258, 24628(NatLogIdxCtxID:4), 24630(NatLogIdxAssignTSSec:4), 24631(NatLogIdxUnassignTSSec:4), 24632(NatLogIdxIPV4IntAddr:4), 24633(NatLogIdxIPV4ExtAddr:4), 24634(NatLogIdxExtPortFirst:2), 24635(NatLogIdxExtPortLast:2)</div>
<div class="" id="LC12" style="padding-left:10px">#hdr: v9, 4841.000, 1378943272, 47</div><div class="" id="LC13" style="padding-left:10px">256, 1, local</div><div class="" id="LC14" style="padding-left:10px">#hdr: v9, 4896.000, 1378943327, 48</div>
<div class="" id="LC15" style="padding-left:10px">257, 1, 1378943325, 192.168.1.25, 200.1.1.1, 1984, 2015</div><div class="" id="LC16" style="padding-left:10px">257, 1, 1378943325, 192.168.1.25, 200.1.1.1, 1920, 1951</div>
<div class="" id="LC17" style="padding-left:10px">257, 1, 1378943325, 192.168.1.25, 200.1.1.1, 1856, 1887</div><div class="" id="LC18" style="padding-left:10px">257, 1, 1378943325, 192.168.1.25, 200.1.1.1, 1824, 1855</div>
<div class="" id="LC19" style="padding-left:10px">...</div><div class="" id="LC46" style="padding-left:10px">257, 1, 1378943325, 192.168.1.25, 200.1.1.1, 1312, 1343</div><div class="" id="LC47" style="padding-left:10px">#hdr: v9, 4900.000, 1378943331, 49</div>
<div class="" id="LC48" style="padding-left:10px">#template: 256, 24628(NatLogIdxCtxID:4), 24629(NatLogIdxContentName:64)</div><div class="" id="LC49" style="padding-left:10px">#template: 257, 24628(NatLogIdxCtxID:4), 24630(NatLogIdxAssignTSSec:4), 24632(NatLogIdxIPV4IntAddr:4), 24633(NatLogIdxIPV4ExtAddr:4), 24634(NatLogIdxExtPortFirst:2), 24635(NatLogIdxExtPortLast:2)</div>
<div class="" id="LC50" style="padding-left:10px">#template: 258, 24628(NatLogIdxCtxID:4), 24630(NatLogIdxAssignTSSec:4), 24631(NatLogIdxUnassignTSSec:4), 24632(NatLogIdxIPV4IntAddr:4), 24633(NatLogIdxIPV4ExtAddr:4), 24634(NatLogIdxExtPortFirst:2), 24635(NatLogIdxExtPortLast:2)</div>
<div class="" id="LC51" style="padding-left:10px">#hdr: v9, 4948.000, 1378943379, 50</div><div class="" id="LC52" style="padding-left:10px">258, 1, 1378943325, 1378943378, 192.168.1.25, 200.1.1.1, 2016, 2047</div><div class="" id="LC53" style="padding-left:10px">
258, 1, 1378943325, 1378943378, 192.168.1.25, 200.1.1.1, 1984, 2015</div><div class="" id="LC54" style="padding-left:10px">258, 1, 1378943325, 1378943378, 192.168.1.25, 200.1.1.1, 1952, 1983</div><div class="" id="LC55" style="padding-left:10px">
258, 1, 1378943325, 1378943378, 192.168.1.25, 200.1.1.1, 1920, 1951</div><div class="" id="LC56" style="padding-left:10px">...</div><div class="" id="LC83" style="padding-left:10px">258, 1, 1378943325, 1378943378, 192.168.1.25, 200.1.1.1, 1024, 1055</div>
</pre><br><div class="gmail_quote">On Sun, Nov 3, 2013 at 10:51 AM, Golem <span dir="ltr"><<a href="mailto:golem@mtm-info.pl" target="_blank">golem@mtm-info.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello<br>
<br>
I have solved problem by moving nat logging-profile to context with<br>
interface which is used to export flows and then changed ip nat pool<br>
logging-profile LogowanieNat context mrouter , looks like loop interface can't<br>
be used as source.<br>
<br>
Seems like CGNAT logging using custom fields in netflow, are there any<br>
patches for Nfdump available ?<br>
<div class=""><div class="h5"><br><br></div></div></blockquote></div>-- <br>Best regards,<br>Yuri
</div></div>