-
-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Hello, i'm trying to capture NetFlow v9 (NAT translation from proprietary hardware). I need to filter some subnets and send to another NetFlow colletror.
When i run:
nfcapd -T nsel,nel -l /var/log/nat/netflow/ -p 5556 -t 2 -x "nfreplay -r /var/log/nat/netflow/%f -f /srv/scripts/nfdump.filter -v 9"
i got NetFlow without right template and fields:
Flow Record:
Flags = 0x06 NETFLOW v9, Unsampled
label =
export sysid = 1
size = 56
first = 1602186349 [2020-10-08 22:45:49]
last = 1602186349 [2020-10-08 22:45:49]
msec_first = 0
msec_last = 0
src addr = 10.4.218.117
dst addr = 31.13.72.8
src port = 44460
dst port = 443
fwd status = 0
tcp flags = 0x00 ........
proto = 6 TCP
(src)tos = 0
(in)packets = 0
(in)bytes = 0
Original data is like that:
Flow Record:
Flags = 0x46 EVENT, Unsampled
label =
export sysid = 10
size = 100
first = 1602186433 [2020-10-08 22:47:13]
last = 1602186433 [2020-10-08 22:47:13]
msec_first = 0
msec_last = 0
src addr = 10.4.80.208
dst addr = 64.233.161.157
src port = 46963
dst port = 443
fwd status = 0
tcp flags = 0x00 ........
proto = 6 TCP
(src)tos = 0
(in)packets = 0
(in)bytes = 0
connect ID = 0
fw event = 1: CREATE
fw ext event = 0: Ignore
secgroup tag = 0
Event time = 1602186433000 [2020-10-08 22:47:13.000]
src xlt port = 5271
dst xlt port = 443
src xlt ip = 31.185.7.194
dst xlt ip = 64.233.161.157
nat event = 1: CREATE
ingress VRF = 0
egress VRF = 0
How to resend filtered netflow with NEL/NSEL data using nfreplay or may be other open source projects?