OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: yeraycito on September 06, 2023, 02:08:34 PM

Title: Native/Emulated Mode Netmap
Post by: yeraycito on September 06, 2023, 02:08:34 PM
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.
Title: Re: Native/Emulated Mode Netmap
Post by: yeraycito on September 06, 2023, 02:12:13 PM
I add a new Tunable dev.netmap.admode=1 and restart Opnsense. Zenarmor does not work at startup
Title: Re: Native/Emulated Mode Netmap
Post by: yeraycito on September 06, 2023, 02:14:59 PM
In Zenarmor I change the mode to Routed L3 emulated Netmap and then it works.
Title: Re: Native/Emulated Mode Netmap
Post by: yeraycito on September 06, 2023, 02:16:25 PM
The Tunable created above has modified itself.
Title: Re: Native/Emulated Mode Netmap
Post by: 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.
Title: Re: Native/Emulated Mode Netmap
Post by: yeraycito on September 06, 2023, 03:52:09 PM
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 )
Title: Re: Native/Emulated Mode Netmap
Post by: newsense on September 06, 2023, 05:56:31 PM
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 (https://github.com/opnsense/src/commit/41c4d844a23b3c4cea0aae262413d148cddeb234)


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