OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • Sensei on OPNsense - Application based filtering
« previous next »
  • Print
Pages: 1 ... 50 51 [52] 53 54 ... 79

Author Topic: Sensei on OPNsense - Application based filtering  (Read 509716 times)

mb

  • Hero Member
  • *****
  • Posts: 941
  • Karma: 99
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #765 on: February 01, 2020, 04:16:33 pm »
Hi @xsfpo,

This is because of package dependencies. OPNsense upgraded OpenSSL with 20.1. OpenSSL is a dependency for mongodb package.

If you're on the latest sensei version (1.3.1), you need to upgrade to OPNsense 20.1.
Logged

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #766 on: February 01, 2020, 08:47:11 pm »
Quote from: mb on February 01, 2020, 04:16:33 pm
Hi @xsfpo,

This is because of package dependencies. OPNsense upgraded OpenSSL with 20.1. OpenSSL is a dependency for mongodb package.

If you're on the latest sensei version (1.3.1), you need to upgrade to OPNsense 20.1.

After installing sensei i get this error

 PHP Errors:

Code: [Select]
[01-Feb-2020 20:45:17 Europe/Vienna] PHP Warning:  filesize(): stat failed for /tmp/mongodb_dahsboard5e35d54da4d3d_result.json in /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/WidgetController.php on line 78
[01-Feb-2020 20:45:17 Europe/Vienna] PHP Warning:  explode() expects parameter 2 to be string, array given in /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/WidgetController.php on line 187
[01-Feb-2020 20:45:17 Europe/Vienna] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/WidgetController.php on line 188
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #767 on: February 01, 2020, 08:49:25 pm »
@mb did you get my bug report?
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

mb

  • Hero Member
  • *****
  • Posts: 941
  • Karma: 99
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #768 on: February 01, 2020, 09:06:13 pm »
@rene, yes, a colleague should have replied back. this is fixed, needs a package re-install:

Code: [Select]
pkg install -f os-sensei
Logged

Antaris

  • Full Member
  • ***
  • Posts: 146
  • Karma: 13
    • View Profile
    • EVOTEK ltd.
Re: Sensei on OPNsense - Application based filtering
« Reply #769 on: February 02, 2020, 12:05:45 pm »
@mb, may be is a good idea to implement report form in the web filtration page, where we can report sites that pass through blocked specific category.
Logged
Proxmox enthusiast @home, bare metal @work.

petrus

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #770 on: February 02, 2020, 12:49:22 pm »
Hi,
Thanks for providing Sensei! I thought now with the 20.1 OPNsense release it's just the right time to try.
Unfortunately I ran into an issue before I was able to test Sensei: some network cards are not shown. 
My HW: Core i5-8400+16G RAM, some RTL onboard card (available from OPNSense, also not shown in Sensei, but I dont use that anyway) 
NIC I use: Intel i350 quad port, igb0+igb3=lagg0, igb1=wan 
Strangely igb0 and igb3 are available in Sensei as unassigned,  but not igb1 and igb2.Also all VLANS on lagg0 are available separatley. 
I was looking into the tunables and reset them according to this post, reset Sensei to factory defult, but that did not help: https://forum.opnsense.org/index.php?topic=13436.msg61860

Code: [Select]
hw.igb.rxd 1024
hw.igb.txd 1024
net.link.ifqmaxlen 2048

I don't see anything special in dmesg/syslog.
Sensei works for some of the VLANs, but it should actually work for WAN, which is igb1, and that's not available.
Suricata is not running on WAN.

Any ideas?
Thanks
Petrus

Code: [Select]
Sensei version info
Engine Version: 1.3.1 View Changelog Version History
UI Version: 20.1.31
Database Version: 1.3.1
Opnsense:
OPNsense 20.1-amd64
FreeBSD 11.2-RELEASE-p16-HBSD
OpenSSL 1.1.1d 10 Sep 2019
Logged

Antaris

  • Full Member
  • ***
  • Posts: 146
  • Karma: 13
    • View Profile
    • EVOTEK ltd.
Re: Sensei on OPNsense - Application based filtering
« Reply #771 on: February 02, 2020, 05:36:10 pm »
Hi Petrus,

Sensei protect internal interface(s). If you want to protect tagged and untagged networks, try to put them on different physical ports.
Logged
Proxmox enthusiast @home, bare metal @work.

mb

  • Hero Member
  • *****
  • Posts: 941
  • Karma: 99
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #772 on: February 03, 2020, 02:56:43 am »
Quote from: Antaris on February 02, 2020, 12:05:45 pm
@mb, may be is a good idea to implement report form in the web filtration page, where we can report sites that pass through blocked specific category.

Hi @Antaris, is this the landing page which gets displayed when a block happens or the Web Controls menu?
Logged

Antaris

  • Full Member
  • ***
  • Posts: 146
  • Karma: 13
    • View Profile
    • EVOTEK ltd.
Re: Sensei on OPNsense - Application based filtering
« Reply #773 on: February 03, 2020, 08:10:07 pm »
Quote from: mb on February 03, 2020, 02:56:43 am
Quote from: Antaris on February 02, 2020, 12:05:45 pm
@mb, may be is a good idea to implement report form in the web filtration page, where we can report sites that pass through blocked specific category.

Hi @Antaris, is this the landing page which gets displayed when a block happens or the Web Controls menu?
Nope. I mean a form where we can report porn sites URLs to your company that loads when pornography category is restricted.
Logged
Proxmox enthusiast @home, bare metal @work.

mb

  • Hero Member
  • *****
  • Posts: 941
  • Karma: 99
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #774 on: February 03, 2020, 08:28:26 pm »
Quote from: Antaris on February 03, 2020, 08:10:07 pm
Nope. I mean a form where we can report porn sites URLs to your company that loads when pornography category is restricted.

Got it. It should appear shortly this month/early next month.
Logged

petrus

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #775 on: February 06, 2020, 04:41:41 pm »
Quote from: Antaris on February 02, 2020, 05:36:10 pm
Hi Petrus,

Sensei protect internal interface(s). If you want to protect tagged and untagged networks, try to put them on different physical ports.

Hi Antaris,
thanks & sry, should have been obvious about the WAN port.
What I still miss is the list of supported NICs, because I can't see the two onboard ports, just the i350 Interfaces.

Peter
Logged

mb

  • Hero Member
  • *****
  • Posts: 941
  • Karma: 99
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #776 on: February 07, 2020, 01:52:23 am »
Hi @petrus,

To be able to access packet off the wire, Sensei makes use of a FreeBSD subsystem called netmap(4).

Netmap can be a pretty picky when it comes to ethernet device compatibility. So we try to filter out any devices that are known to be having problems with netmap.

Netmap team seems to be maintaining Intel based drivers, igb(4), em(4) being two of the most widely used ones.
Logged

Antaris

  • Full Member
  • ***
  • Posts: 146
  • Karma: 13
    • View Profile
    • EVOTEK ltd.
Re: Sensei on OPNsense - Application based filtering
« Reply #777 on: February 07, 2020, 07:47:10 pm »
In short you can use integrated Realteks on your mobo as WANs if they needed at all...
If you will not use them better disable them in BIOS.
Logged
Proxmox enthusiast @home, bare metal @work.

opnsenseuser

  • Sr. Member
  • ****
  • Posts: 437
  • Karma: 70
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #778 on: February 08, 2020, 11:01:08 am »
@mb just one question. it would be interesting to be able to export or import report data. because if you have to uninstall sensei and erase the data (for whatever reason - hardware change or other problems), it would be great to be able to import the previously recorded data again afterwards. is just an idea. greetings rene
« Last Edit: February 08, 2020, 11:05:52 am by opnsenseuser »
Logged
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

marcri

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 5
    • View Profile
    • https://www.risse-it.services/
Re: Sensei on OPNsense - Application based filtering
« Reply #779 on: February 08, 2020, 11:21:50 am »
Quote from: opnsenseuser on February 08, 2020, 11:01:08 am
@mb just one question. it would be interesting to be able to export or import report data. because if you have to uninstall sensei and erase the data (for whatever reason - hardware change or other problems), it would be great to be able to import the previously recorded data again afterwards. is just an idea. greetings rene

maybe you could try the snapshot function of elastic-dump (Github) or just curl:
CURL -XPUT 'localhost:9200/_snapshot/<backup_folder name>/<backupname>' -d '{
    "indices": "<index_name>",
    "ignore_unavailable": true,
    "include_global_state": false
}'
Logged

  • Print
Pages: 1 ... 50 51 [52] 53 54 ... 79
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • Sensei on OPNsense - Application based filtering
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2