Skip to content
/ net-dup Public

Send copies of network datagrams to multiple receivers via VXLANs

License

Notifications You must be signed in to change notification settings

vmxdev/net-dup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

net-dup

This very simple program receives datagrams on a given network interface using pcap, adds VXLAN header and resends those datagrams to a specified set of receivers.

The receiving side can configure the VXLAN interface and receive datagrams with no source addresses changed.

This can be useful when duplicating Netflow/IPFIX/sFlow datagrams where it is important to know the address of the sending router or switch.

The utility is similar to the well-known samplicator utility, but instead of spoofing source addresses, it delivers the datagram to the receivers via VXLAN "as is".

Note that the receiving side must be able to handle datagrams that are not destined for this host (for example, using pcap). This utility is designed to work with xenoeye, which can capture *flow-datagrams using pcap. But for various reasons we want to distribute the utility separately from xenoeye.

Compile

$ cc -g -Wall -pedantic -Wextra netdup.c -o netdup -lpcap

Use

$ sudo ./netdup -i eth0 -o 1.2.3.4:4789.12345 -f "udp and port 6543"

About

Send copies of network datagrams to multiple receivers via VXLANs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages