Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Call for testing: New netmap enabled kernel
« previous
next »
Print
Pages:
1
[
2
]
3
4
...
6
Author
Topic: Call for testing: New netmap enabled kernel (Read 141265 times)
franco
Administrator
Hero Member
Posts: 17674
Karma: 1613
Re: Call for testing: New netmap enabled kernel
«
Reply #15 on:
February 11, 2019, 08:58:59 am »
Thanks to Murat and all of Sunny Valley for providing this rework and helping with a related Suricata incompatibility!
So far this is exciting *and* promising with good overall stability.
Ideally, this would be merged into 19.1.x in March or April, although the core team has not yet decided on a timeline.
Cheers,
Franco
Logged
lattera
Full Member
Posts: 207
Karma: 82
Re: Call for testing: New netmap enabled kernel
«
Reply #16 on:
February 11, 2019, 07:14:36 pm »
Installation of the test world+kernel sets on the APU4c4 securing HardenedBSD's build network and infrastructure succeeded without issue. I've got Suricata running in IPS mode and only inspecting traffic on the LAN interface. Seems to be working fine for me for now. I'll be placing the firewall under load over the next few days and will report back.
Logged
lattera
Full Member
Posts: 207
Karma: 82
Re: Call for testing: New netmap enabled kernel
«
Reply #17 on:
February 12, 2019, 02:52:56 pm »
Deployed successfully on another APU4c4 in a lab environment with tunneled IPv6. Working great!
Logged
newsense
Hero Member
Posts: 1037
Karma: 77
Re: Call for testing: New netmap enabled kernel
«
Reply #18 on:
February 12, 2019, 04:03:11 pm »
Does 19.1-netmap kernel revert anything from 19.1.1 and how will it be kept on par with the upcoming 19.1.2+ versions until it is merged into mainline ?
Just trying to assess the security risks.
Logged
newsense
Hero Member
Posts: 1037
Karma: 77
Re: Call for testing: New netmap enabled kernel
«
Reply #19 on:
February 12, 2019, 04:15:11 pm »
Also noticed this swap message after reboot:
Logged
mb
Hero Member
Posts: 941
Karma: 99
Re: Call for testing: New netmap enabled kernel
«
Reply #20 on:
February 12, 2019, 07:46:57 pm »
@redfish, this looks like something that needs to be investigated on the Suricata side. Will let you know once I have some more time for this.
@newsense, the only difference between 19.1 default kernel and 19.1-netmap kernel should be the netmap subsystem.
Any chances that you boot with the default kernel and try to see if it produces the same message?
@franco, that's great to hear it'll land on the production branch soon.
@lattera, thanks for the tests. Glad to hear that you had no issues.
Logged
lattera
Full Member
Posts: 207
Karma: 82
Re: Call for testing: New netmap enabled kernel
«
Reply #21 on:
February 12, 2019, 07:51:30 pm »
One thing I did notice was that suricata seems to go crazy when in IPS mode and configured to monitor gif interfaces. Brings the entire network stack down. I'm gonna guess that netmap doesn't work with tunneling interfaces (at least, not yet?) Thank goodness for the serial console port on the APU devices.
Logged
Redfish
Newbie
Posts: 11
Karma: 1
Re: Call for testing: New netmap enabled kernel
«
Reply #22 on:
February 12, 2019, 10:22:37 pm »
Thanks mb, here are the outputs for both kernels:
Edit: also need to note that I’ve followed this guide
https://forum.opnsense.org/index.php?topic=6590.0
and disabled VLAN_HWTAGGING in order for suricata to function with my vlans.
Stock Kernel
dev.netmap.ixl_rx_miss_bufs: 0
dev.netmap.ixl_rx_miss: 0
dev.netmap.iflib_rx_miss_bufs: 0
dev.netmap.iflib_rx_miss: 0
dev.netmap.iflib_crcstrip: 1
dev.netmap.bridge_batch: 1024
dev.netmap.default_pipes: 0
dev.netmap.priv_buf_num: 4098
dev.netmap.priv_buf_size: 2048
dev.netmap.buf_curr_num: 163840
dev.netmap.buf_num: 163840
dev.netmap.buf_curr_size: 2048
dev.netmap.buf_size: 2048
dev.netmap.priv_ring_num: 4
dev.netmap.priv_ring_size: 20480
dev.netmap.ring_curr_num: 200
dev.netmap.ring_num: 200
dev.netmap.ring_curr_size: 73728
dev.netmap.ring_size: 73728
dev.netmap.priv_if_num: 1
dev.netmap.priv_if_size: 1024
dev.netmap.if_curr_num: 100
dev.netmap.if_num: 100
dev.netmap.if_curr_size: 1024
dev.netmap.if_size: 1024
dev.netmap.generic_rings: 1
dev.netmap.generic_ringsize: 1024
dev.netmap.generic_mit: 100000
dev.netmap.admode: 0
dev.netmap.fwd: 0
dev.netmap.flags: 0
dev.netmap.adaptive_io: 0
dev.netmap.txsync_retry: 2
dev.netmap.no_pendintr: 1
dev.netmap.mitigate: 1
dev.netmap.no_timestamp: 0
dev.netmap.verbose: 0
dev.netmap.ix_rx_miss_bufs: 0
dev.netmap.ix_rx_miss: 0
dev.netmap.ix_crcstrip: 0
New netmap kernel
dev.netmap.ixl_rx_miss_bufs: 0
dev.netmap.ixl_rx_miss: 0
dev.netmap.iflib_rx_miss_bufs: 0
dev.netmap.iflib_rx_miss: 0
dev.netmap.iflib_crcstrip: 1
dev.netmap.bridge_batch: 1024
dev.netmap.default_pipes: 0
dev.netmap.priv_buf_num: 4098
dev.netmap.priv_buf_size: 2048
dev.netmap.buf_curr_num: 0
dev.netmap.buf_num: 163840
dev.netmap.buf_curr_size: 0
dev.netmap.buf_size: 2048
dev.netmap.priv_ring_num: 4
dev.netmap.priv_ring_size: 20480
dev.netmap.ring_curr_num: 0
dev.netmap.ring_num: 200
dev.netmap.ring_curr_size: 0
dev.netmap.ring_size: 36864
dev.netmap.priv_if_num: 2
dev.netmap.priv_if_size: 1024
dev.netmap.if_curr_num: 0
dev.netmap.if_num: 100
dev.netmap.if_curr_size: 0
dev.netmap.if_size: 1024
dev.netmap.ptnet_vnet_hdr: 1
dev.netmap.generic_rings: 1
dev.netmap.generic_ringsize: 1024
dev.netmap.generic_mit: 100000
dev.netmap.generic_hwcsum: 0
dev.netmap.admode: 0
dev.netmap.fwd: 0
dev.netmap.txsync_retry: 2
dev.netmap.mitigate: 1
dev.netmap.no_pendintr: 1
dev.netmap.no_timestamp: 0
dev.netmap.verbose: 0
dev.netmap.ix_rx_miss_bufs: 0
dev.netmap.ix_rx_miss: 0
dev.netmap.ix_crcstrip: 0
«
Last Edit: February 13, 2019, 12:44:02 am by Redfish
»
Logged
mb
Hero Member
Posts: 941
Karma: 99
Re: Call for testing: New netmap enabled kernel
«
Reply #23 on:
February 13, 2019, 02:31:55 am »
@redfish, thanks. Looks like it's on the Suricata side. I'll have a closer look.
Logged
TheGrandWazoo
Newbie
Posts: 28
Karma: 6
Re: Call for testing: New netmap enabled kernel
«
Reply #24 on:
February 13, 2019, 07:05:47 pm »
This is "Excellent" news!
. I run a lot of VM with VirtIO on Proxmox VE and have not been able to take advantage of Suricata. Will start converting and testing my OPNSense kernels.
Was very happy with my transition from pfSense to OPNSense, this makes it even better.
Thank you.
Logged
mb
Hero Member
Posts: 941
Karma: 99
Re: Call for testing: New netmap enabled kernel
«
Reply #25 on:
February 14, 2019, 03:23:42 am »
TheGrandWazoo, great that you found this useful
Please share your experience with Suricata + new kernel.
Logged
Antaris
Full Member
Posts: 146
Karma: 13
Re: Call for testing: New netmap enabled kernel
«
Reply #26 on:
February 14, 2019, 10:37:29 pm »
Now when there is 19.1.1 can we use it with netmap enabled kernel and what is the command?
May be "# opnsense-update -bkr 19.1.1-netmap" ?
Logged
Proxmox enthusiast @home, bare metal @work.
mb
Hero Member
Posts: 941
Karma: 99
Re: Call for testing: New netmap enabled kernel
«
Reply #27 on:
February 14, 2019, 10:50:46 pm »
Antaris, yes, correct. From the first post in the thread:
To switch to the new-netmap-enabled kernel:
# opnsense-update -bkr 19.1-netmap
After the update & reboot, your 'uname -a' output should be similar: (pay attention to the commit hash and branch, it should be: c4ec367c3d9(master) )
root@fw:~ # uname -a
FreeBSD fw.local 11.2-RELEASE-p8-HBSD FreeBSD 11.2-RELEASE-p8-HBSD c4ec367c3d9(master) amd64
To revert back to the 19.1-default kernel:
# opnsense-update -bkf
Franco plans the merge in the upcoming OPNsense 19.1.x minor releases.
Logged
Antaris
Full Member
Posts: 146
Karma: 13
Re: Call for testing: New netmap enabled kernel
«
Reply #28 on:
February 15, 2019, 05:59:21 am »
So is there 19.1.1 netmap enabled or just 19.1 ?
Logged
Proxmox enthusiast @home, bare metal @work.
franco
Administrator
Hero Member
Posts: 17674
Karma: 1613
Re: Call for testing: New netmap enabled kernel
«
Reply #29 on:
February 15, 2019, 03:58:11 pm »
There is no base/kernel for 19.1.1 so there is no / won't be a 19.1.1-netmap.
And when 19.1.2 is out with a new base/kernel, then the netmap kernel will be automatically removed as it is a test kernel, but you can lock it from the GUI if you do not want that.
Cheers,
Franco
Logged
Print
Pages:
1
[
2
]
3
4
...
6
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Call for testing: New netmap enabled kernel