OPNsense Forum

English Forums => General Discussion => Topic started by: Ercan on May 20, 2022, 02:51:45 PM

Title: using Netmap
Post by: Ercan on May 20, 2022, 02:51:45 PM
Hello to all,
I see that not enough information how to use netmap.
I just need get the packets and allow it or drop it in userspace. It seems it is easy but I could not find the way of it.
Anyone help me for this. (FreeBSD)
Title: Re: using Netmap
Post by: Patrick M. Hausen on May 20, 2022, 02:57:26 PM
There are some example programs in Luigi Rizzo's original project:
https://github.com/luigirizzo/netmap

HTH,
Patrick
Title: Re: using Netmap
Post by: Ercan on May 20, 2022, 03:18:23 PM
Hello, thank you for your reply.
Yes I checked that already but it doesnot work for my problem or I realy did not understand what is going on that examples. For example, I need to see inside of packet and decide it drop or allow. Actually it is needed for my thesis. I need compare how fast it is, If I run it for all packets allowed or dropped
Title: Re: using Netmap
Post by: Ercan on May 20, 2022, 03:19:25 PM
So the simplest way is enough for me :)
Title: Re: using Netmap
Post by: Patrick M. Hausen on May 20, 2022, 03:22:58 PM
Sorry, I am not much of a coder but more of a network engineer plugging existing solutions together.

There was a netmap tutorial at AsiaBSDCon 2018:
https://github.com/netmap-unipi/netmap-tutorial
Title: Re: using Netmap
Post by: Ercan on May 20, 2022, 04:42:51 PM
I guess I already checked for it but should check again :) so many webpage I checked I am really confused :) Thank you again