Sensei on OPNsense - Application based filtering

Started by mb, August 25, 2018, 03:38:14 AM

Previous topic - Next topic
January 04, 2020, 09:18:22 AM #705 Last Edit: January 04, 2020, 09:25:10 AM by Antaris
I'm making a very heavy mess with one HP Z230 now.... Sensei installer Detected low-end hardware Xeon E3-1240 v3 / 8GB DDR3 or can't start the test at all - "Hardware configuration could not be detected!" Will make a clean install of the OPNsense first because i messed the interfaces pretty much: 2 WANs, LAN, TRUNK and 3 VLANs on discrete i340-T4. Between the experiments i updated BIOS with removed NIC and once OPNsense booted with only onboard NIC, the interface assignments and firewall rules got tottaly messed up :) Sensei even consider second WAN as protectable...
Proxmox enthusiast @home, bare metal @work.

Dear Sensei users,

Sensei 1.2.5 is out with some bug-fixes:

Filtering
Fix: firewall reboots causing default policy rules being deleted

Reporting
Scheduled Reports: errors are now communicated through the user interface

Configuration
Fix: deployment size setting
Fix: re-assigning network interfaces

Enjoy.
You Sensei Team.

every time it updates,
Security-> Essential security

all setting gets disabled
i am using the free version

January 08, 2020, 03:37:44 PM #708 Last Edit: January 08, 2020, 03:39:22 PM by tusc
I just updated to 1.2.5 and can't startup mongodb. I get the error on the attached image.

I'm also still seeing loss of traffic after starting up the engine after a few minutes. Pings to the firewall drop and Internet access is dropped. What logs can I provide?


@tong2x, @tusc,

Can you use "Contact Sensei Team" menu (located on the upper right hand side of the screen) to send a problem report.

We'll follow-up there.

Hello,

I also use sensei free version, for six months.

At each update the parameters are reset in two places.

sensei / security / essential security

sensei / web controls

We have to reselect our choices.

Although it has been reported many times.

Regards, my mother tongue is French
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

anyone having issues with the dashboard or reports of Sensei after upgrading to OPNsense 19.7.9?
since that update all the tiles or however to name them are having that spinning circle.
when I have a look at the dashboard of OPNsense (not the Sensei one!) I get the following message: "A problem was detected. Click here for more information." in the "here" for more information I see a lot of lines with "PHP Fatal error:  Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /usr/local/opnsense/mvc/app/models/OPNsense/Sensei/SenseiMongoDB.php:152"

Quote from: the-mk on January 10, 2020, 06:16:57 AM
anyone having issues with the dashboard or reports of Sensei after upgrading to OPNsense 19.7.9?
since that update all the tiles or however to name them are having that spinning circle.
when I have a look at the dashboard of OPNsense (not the Sensei one!) I get the following message: "A problem was detected. Click here for more information." in the "here" for more information I see a lot of lines with "PHP Fatal error:  Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /usr/local/opnsense/mvc/app/models/OPNsense/Sensei/SenseiMongoDB.php:152"

i have the same Problem. had to uninstall sensei to get my firewall working again!
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

Bonjour,

mb, je confirme ce disfonctionnement dans sensei/rapports depuis la mise à jour opnsense 19.7.9

{
  "error": {
    "root_cause": [
      {
        "type": "index_not_found_exception",
        "reason": "no such index",
        "resource.type": "index_or_alias",
        "resource.id": "conn_all",
        "index_uuid": "_na_",
        "index": "conn_all"
      }
    ],
    "type": "index_not_found_exception",
    "reason": "no such index",
    "resource.type": "index_or_alias",
    "resource.id": "conn_all",
    "index_uuid": "_na_",
    "index": "conn_all"
  },
  "status": 404
}

Cordialement.
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Quote from: the-mk on January 10, 2020, 06:16:57 AM
anyone having issues with the dashboard or reports of Sensei after upgrading to OPNsense 19.7.9?
since that update all the tiles or however to name them are having that spinning circle.
when I have a look at the dashboard of OPNsense (not the Sensei one!) I get the following message: "A problem was detected. Click here for more information." in the "here" for more information I see a lot of lines with "PHP Fatal error:  Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /usr/local/opnsense/mvc/app/models/OPNsense/Sensei/SenseiMongoDB.php:152"

After updating to opnsense to 19.7.9_1 everything works again!
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

19.7.9_1 did not work for me...
but there was no official announcement forum for that tiny patch? usually Franco adds some info to his release post?
if I read the logs right PHP might be missing the libraries for MongoDB?!?

Re bonjour,

La version 19.7.9_1 ne résout RIEN.

Cordialement.
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

finally Franco added some notes to the 19.7.9 release - but nothing Sensei or PHP related - only a small GeoIP thingy...
after uninstalling and reinstalling sensei the issue was fixed. I can see the graphs again...

January 10, 2020, 06:24:01 PM #718 Last Edit: January 10, 2020, 07:57:11 PM by Darkopnsense
Good evening,

For the malfunction between sensei and the opnsense update 19.7.9_1, I tested two methods:

1) on OPNsense 19.7.8-amd64 update to OPNsense 19.7.9_1-amd64 & SENSEI / dashboard and report is in php error

2) on OPNsense 19.7.8-amd64 before migrating,
(sensei / statute) I stopped sensei packet engine & db services and start on boot
(system / firmware / plugins) updated to 19.7.9_1
(sensei / status) I activated the sensei packet engine & db and start on boot services
FAILURE sensei / dashboard and report do not work any graphics.

My solution:
To restore the functioning of SENSEI
Sensei / configuaration / uninstall

-stop sensei packet engine
- reset to sensei factory defaults & yes
-follow the wizard: / install database & proceed / next / interface selection / next / cloud reputation / next / sensei cli / next / updates & health check / next / deployment size / next / finish / finish
-power / restart & yes

SENSEI WORKING AGAIN

cordially
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

I think it'll be best if we can include mongodb in the opnsense repo. Let me talk with the OPNsense team to see if there is a chance.

Will keep the thread updated.