Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen Multiple Interfaces #57

Open
dtouzeau opened this issue Jan 23, 2025 · 5 comments
Open

Listen Multiple Interfaces #57

dtouzeau opened this issue Jan 23, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@dtouzeau
Copy link

dtouzeau commented Jan 23, 2025

Hi !

We send mirrored traffic to several network interfaces, but it seems that ndpid can only listen to one interface.
However, using tc or TEE in iptables does not transmit packets that have already been duplicated.
The simplest solution is for ndpid to be able to listen to several interfaces at the same time, like suricata.
Is it possible to consider

netif = eth0,eth1,eth2 ?

This would avoid the need to run several daemons per interface, thus increasing the internal efficiency of the process.

@utoni
Copy link
Owner

utoni commented Jan 24, 2025

That should be possible. But there are some obstacles within nDPId. The initial design was not meant to have multiple interfaces listening at the same time. I need to investigate if that is possible with libpcap and PF_RING.

@utoni utoni added the enhancement New feature or request label Jan 24, 2025
@dtouzeau
Copy link
Author

We using pf-ring with suricata, that should be great!

@ummeegge
Copy link

Hello, this might be indeed a pretty interesting enhancement. I use nDPId currently on a IPFire firewall platform and there are at least four different interfaces, three local and one WAN interface. The whole traffic can be grabbed via the WAN (or red0) interface whereby the src or dst is always the red0 interface but the local IPs are hidden so it would be better to collect the local interfaces.

By the way thanks for your work on this awesome piece of software :-) .

Best,

Erik

@utoni
Copy link
Owner

utoni commented Feb 1, 2025

Supporting capture on multiple network interfaces per nDPId instance will take some time, as the core needs some changes to make this work. But all I can say, it's possible to do.

@ummeegge
Copy link

ummeegge commented Feb 1, 2025

Great news, thank you for looking into this.

Best,

Erik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants