Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
17.1.b & Suricata fails on ESXi
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: 17.1.b & Suricata fails on ESXi (Read 19184 times)
phoenix
Hero Member
Posts: 545
Karma: 58
17.1.b & Suricata fails on ESXi
«
on:
December 29, 2016, 01:47:36 pm »
I've been trying for a few days to get the 17.1 beta working with Suricata, as soon as I enable the service OPNsense collapses and the console goes to a "db>" prompt. Unfortunately at this point I don't really know what to do other than reboot, when I do that the console shows errors with the HD and repairs those. I've tried downloading the rules a couple of times, first without enabling any of them and also enabling some of them - then I activate the service and it fails in both of those tests.
This is a VM running on ESXi v6.0, I should point out that doing the same configuration on VMworkstation 12.5.2 it all works as it should - Suricata can be enabled and rules downloaded without problems. If you want/need any further information or logs point me in the right direction and I'll provide what I can.
P.S. I did try this on ESXi with the EFI bios setting and it still failed.
Logged
Regards
Bill
weust
Hero Member
Posts: 650
Karma: 57
Re: 17.1.b & Suricata fails on ESXi
«
Reply #1 on:
December 29, 2016, 02:47:02 pm »
What type of NIC are you using for that VM?
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
phoenix
Hero Member
Posts: 545
Karma: 58
Re: 17.1.b & Suricata fails on ESXi
«
Reply #2 on:
December 29, 2016, 02:51:30 pm »
I use Intel NICs in all my machines, I'm not sure which model in this particular server but it's a server NIC and I'm using the VMXNET3 VMware NIC. As I mentioned, this worked fine in VMware Workstation so I was assuming it would be OK on ESXi. I also forgot to mention that all the NIC offload setting are disabled as well.
Logged
Regards
Bill
lattera
Full Member
Posts: 207
Karma: 82
Re: 17.1.b & Suricata fails on ESXi
«
Reply #3 on:
December 29, 2016, 02:59:35 pm »
Can you give us a screenshot? Also, type in "bt" (without the quotes), then hit enter. And then take another screenshot.
Logged
phoenix
Hero Member
Posts: 545
Karma: 58
Re: 17.1.b & Suricata fails on ESXi
«
Reply #4 on:
December 29, 2016, 03:01:26 pm »
I'll give that go a bit later today if that's OK?
Logged
Regards
Bill
lattera
Full Member
Posts: 207
Karma: 82
Re: 17.1.b & Suricata fails on ESXi
«
Reply #5 on:
December 29, 2016, 03:03:09 pm »
Sure. Whenever's most convenient for you. Thanks!
Logged
phoenix
Hero Member
Posts: 545
Karma: 58
Re: 17.1.b & Suricata fails on ESXi
«
Reply #6 on:
December 29, 2016, 03:25:06 pm »
Actually I just tried something else and it's activating the IPS mode that causes the problem, the original setting already had that activated but not the service Enabled. Here they are, sooner than I thought:
Logged
Regards
Bill
lattera
Full Member
Posts: 207
Karma: 82
Re: 17.1.b & Suricata fails on ESXi
«
Reply #7 on:
December 29, 2016, 03:42:41 pm »
This seems to be related to a problem I had a while ago with netmap. While at EuroBSDcon, I talked with the original developer behind netmap and the problem is now fixed in his out-of-tree project. It has been merged into 12-CURRENT. It hasn't been backported to 11-STABLE (and thus is not in 11.0-RELEASE).
I'll email the original developer just to make sure this is the same issue that I saw. If you want me to include you on the email, could you shoot me an email at shawn.webb@hardenedbsd.org?
Logged
phoenix
Hero Member
Posts: 545
Karma: 58
Re: 17.1.b & Suricata fails on ESXi
«
Reply #8 on:
December 29, 2016, 03:44:58 pm »
The technical details of this problem will be way above my head so no need to include me in the email, could you just give me a follow-up when you get an answer? Many thanks for your time and help.
Logged
Regards
Bill
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: 17.1.b & Suricata fails on ESXi
«
Reply #9 on:
December 29, 2016, 10:25:25 pm »
Looks like a problem with the netmap "generic" emulation layer because vmx does not have native netmap support. Does this also happen with e1000 emulated drivers?
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: 17.1.b & Suricata fails on ESXi
«
Reply #10 on:
December 29, 2016, 10:30:56 pm »
This should be the commit Shawn talked about, but it's not on stable/11 yet.
https://github.com/freebsd/freebsd/commit/cdb805690
This won't make it into 17.1 images for sure.
Cheers,
Franco
Logged
lattera
Full Member
Posts: 207
Karma: 82
Re: 17.1.b & Suricata fails on ESXi
«
Reply #11 on:
December 30, 2016, 06:28:20 am »
That's exactly it. Netmap had a major overhaul in 11.0, but that overhaul caused issues due to lack of testing with various "non-standard" hardware. The commit you linked to contains a whole lot of work, including more stable and robust code.
Logged
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: 17.1.b & Suricata fails on ESXi
«
Reply #12 on:
December 30, 2016, 07:50:46 am »
If it applies cleanly we can talk about adding it in an 17.1.x
Logged
phoenix
Hero Member
Posts: 545
Karma: 58
Re: 17.1.b & Suricata fails on ESXi
«
Reply #13 on:
December 30, 2016, 08:14:52 am »
So no IDS until this is incorporated, I guess? It's not a great problem for me so I'm going to leave the 17.1 version up on my VM, if there's any testing you need for this fix I can give it a go.
Logged
Regards
Bill
franco
Administrator
Hero Member
Posts: 17605
Karma: 1603
Re: 17.1.b & Suricata fails on ESXi
«
Reply #14 on:
December 30, 2016, 04:51:59 pm »
Hi Bill,
The e1000 emulation should work.
I don't feel good about taking the commit (and the fixes for the commit that went in afterwards) without an official MFC to the FreeBSD 11 stable branch, so I cannot even provide a test kernel at the moment.
Cheers,
Franco
Logged
Print
Pages: [
1
]
2
3
« previous
next »
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
17.1.b & Suricata fails on ESXi