Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 2021 10:05:15 -0500
From:      petru garstea <peter.garshtja@ambient-md.com>
To:        freebsd-net@freebsd.org
Subject:   netgraph with ng_netflow and ng_gridge nodes
Message-ID:  <43cf5dc9-521c-dcc4-f025-398173608062@ambient-md.com>

next in thread | raw e-mail | index | archive | help
Hi,

I need help to unify 2 netgraphs

1st ng_bridge netgraph

ngctl mkpeer fxp0: bridge lower link0
ngctl connect fxp0: em0:lower upper link1
ngctl name fxp0:lower em0Bridge
ngctl mkpeer fxp0:lower eiface link3 ether

2nd ng_netflow netgraph

mkpeer fxp0: netflow	lower iface0
name fxp0:lower netflow
connect fxp0: netflow: upper	out0
mkpeer netflow: ksocket export inet/dgram/udp
msg netflow:export connect inet/10.0.0.1:4444


I cannot run both graphs at the same time because both of them are trying to use fxp0 interface lower and upper hooks.
I believe it is necessary to introduce an extra node but I am not sure.

Please advise

Cheers,
Petru




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43cf5dc9-521c-dcc4-f025-398173608062>