Native/Emulated Mode Netmap

Started by yeraycito, September 06, 2023, 02:08:34 PM

Previous topic - Next topic
Mini-Pc Opnsense 23.7.3

-Wireguard
-Suricata ( Wan )
-Zenarmor ( Routed mode L3 native Netmap ) Lan + LAGG

Interfaces ( Igb ):

-Wan
-Lan
-Wg
-LAGG

Access to Opnsense via SSH: sysctl -a |grep netmap

Native Netmap does not work.

I add a new Tunable dev.netmap.admode=1 and restart Opnsense. Zenarmor does not work at startup

In Zenarmor I change the mode to Routed L3 emulated Netmap and then it works.

The Tunable created above has modified itself.

September 06, 2023, 03:31:52 PM #4 Last Edit: September 06, 2023, 03:43:30 PM by lilsense
LOL!!!!

Are you working up your posts number????

Use the 1st post and edit/modify by adding your additional comments...

edit: from netmap man page.

dev.netmap.admode: 0
             Controls the use of native or emulated adapter mode.

             0 uses the best available option;

             1 forces native mode and fails if not available;

             2 forces emulated hence never fails.

September 06, 2023, 03:52:09 PM #5 Last Edit: September 06, 2023, 03:53:47 PM by yeraycito
Quote from: lilsense on September 06, 2023, 03:31:52 PM
LOL!!!!

Are you working up your posts number????

Use the 1st post and edit/modify by adding your additional comments...

edit: from netmap man page.

dev.netmap.admode: 0
             Controls the use of native or emulated adapter mode.

             0 uses the best available option;

             1 forces native mode and fails if not available;

             2 forces emulated hence never fails.

The size of the images to upload is limited in each comment so in order to put them all I need to create several comments.

dev.netmap.admode: 0      Native Netmap not working - Zenarmor working ( Native Netmap driver )

dev.netmap.admode: 1      Native Netmap not working - Zenarmor not working ( Native Netmap driver )

dev.netmap.admode: 2      Native Netmap not working - Zenarmor working ( Emulated Netmap driver )

September 06, 2023, 05:56:31 PM #6 Last Edit: September 06, 2023, 06:06:21 PM by newsense
Did you try native with the -tun kernel ? It looks like the emulation might be going away - or at the very least not be the only option available - thanks to a patch from the Zenarmor team


https://github.com/opnsense/src/commit/41c4d844a23b3c4cea0aae262413d148cddeb234


opnsense-update -zkbr 23.7.2-tun && opnsense-shell reboot