Troubleshooting for Zenarmor Packet Engine
Most frequently seen Zenarmor Packet Engine issues and their solutions are given below.
netmap_register_if: Cannot allocate memory
If you are getting netmap_register_if: em0: NIOCREGIF ioctl failed for the interface: Cannot allocate memory error and can not start the Zenarmor packet engine, this means netmap buffer size on your platform is less than the required value. You can follow the steps given below to solve this problem on your OPNsense node:
-
Navigate to System > Settings > Tunable on your OPNsense UI.
Figure 1. Tunable System Settings on OPNsense
-
Click
+Add
to add a new system tunable. -
Type
dev.netmap.buf_num
in the Tunable field. -
Type
Netmap Buffer Size
in the Description field. -
Type
1000000
in the Value field.Figure 2. Adding System Tunable to Increase Netmap Buffer Size on OPNsense
-
Click Save to save the settings.
-
Click Apply Changes button to activate the settings.
Figure 3. Applying System Tunable Changes on OPNsense
You can follow the steps given below to solve Cannot allocate memory
problem on your pfSense Software node:
-
Navigate to System > **Advanced ** > System Tunables on your pfSense software UI.
Figure 4. Tunable System Settings on pfSense software
-
Click
+New
to add a new system tunable. -
Type
dev.netmap.buf_num
in the Tunable field. -
Type
1000000
in the Value field. -
Type
Netmap Buffer Size
in the Description field.Figure 5. Adding System Tunable to Increase Netmap Buffer Size on pfSense
-
Click Save to save the settings.
-
Click Apply Changes button to activate the firewall tunables.
Figure 6. Applying System Tunable Changes on pfSense software
netmap_register_if: vtnet1: NIOCREGIF ioctl failed for the interface: Invalid argument
If you are getting netmap_register_if: vtnet1: NIOCREGIF ioctl failed for the interface: Invalid argument error and can not start the Zenarmor packet engine, this means MTU (Maximum Transmission Unit) size on your platform is higher than the netmap supported value (1500). You should check and fix the MTU value of the Zenarmor protected interface on your firewall.
You can follow the steps given below to solve this problem on your OPNsense node:
-
Navigate to Interfaces on OPNsense Web UI.
-
Selected the interface, such as LAN, that you want to be protected by Zenarmor.
-
Scroll-down to the Generic Configuration pane.
-
Set the MTU option to a value maximum
1500
.Figure 7. Setting MTU size of Network Interface on OPNsense
-
Click Save to save the settings.
-
Click Apply Changes button to activate the firewall tunables.
Cannot read any worker configuration from workers.map
If you are getting Cannot read any worker configuration from workers.map error, and the Zenarmor packet engine immediately stops after you start it, you can follow the steps given below to solve this problem on your OPNsense node:
- Log in to the console as
root
- Delete
.configdone
file by runningrm -f /usr/local/zenarmor/etc/.configdone
command. - Open any Zenarmor menu on the GUI.
- Complete Zenarmor configuration wizard.