OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Sensei on OPNsense - Application based filtering
« previous next »
  • Print
Pages: 1 ... 18 19 [20] 21 22 ... 45

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

Archanfel80

  • Newbie
  • *
  • Posts: 22
  • Karma: 5
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #285 on: May 14, 2019, 04:36:01 pm »
I referred for this: "In an effort to be able to provide Sensei for people who have less than 8GB memory, and as per Archanfel80's suggestion, we've enabled Sensei to run for deployments with 4B of RAM."

Quote from: hbc on May 14, 2019, 04:24:26 pm
Quote from: Archanfel80 on May 14, 2019, 02:53:39 pm
Im glad i can help :)

How does it help to just quote the complete previous text without any sensful addition?  ::)
Logged

ruffy91

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 9
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #286 on: May 15, 2019, 09:38:45 am »
I installed Sensei 0.8p9 on 19.1.6 (which I now updated to 19.1.7).
I get the following error when accessing the Dashboard or any sensei page:
Warning: fopen(/usr/local/sensei/log/active/Senseigui.log): failed to open stream: No such file or directory in /usr/local/opnsense/mvc/app/models/OPNsense/Sensei/Sensei.php on line 73 Can't open log file at '/usr/local/sensei/log/active/Senseigui.log'

The folder /usr/local/sensei/log does not exist.

After manually creating /usr/local/sensei/log/active the plugin does seem to work.

The interface selection unfortunately does not show any tagged VLAN interfaces. Is this correct? I tought tagged VLANs are supported now?
« Last Edit: May 15, 2019, 09:42:37 am by ruffy91 »
Logged

Archanfel80

  • Newbie
  • *
  • Posts: 22
  • Karma: 5
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #287 on: May 15, 2019, 09:52:15 am »
Login to the firewall through SSH:
mkdir -p /usr/local/sensei/log/active
mkdir -p /usr/local/sensei/log/archive

reboot

Quote from: ruffy91 on May 15, 2019, 09:38:45 am
I installed Sensei 0.8p9 on 19.1.6 (which I now updated to 19.1.7).
I get the following error when accessing the Dashboard or any sensei page:
Warning: fopen(/usr/local/sensei/log/active/Senseigui.log): failed to open stream: No such file or directory in /usr/local/opnsense/mvc/app/models/OPNsense/Sensei/Sensei.php on line 73 Can't open log file at '/usr/local/sensei/log/active/Senseigui.log'

The folder /usr/local/sensei/log does not exist.

After manually creating /usr/local/sensei/log/active the plugin does seem to work.

The interface selection unfortunately does not show any tagged VLAN interfaces. Is this correct? I tought tagged VLANs are supported now?
Logged

mb

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: 38
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #288 on: May 15, 2019, 02:04:01 pm »
Quote from: ruffy91 on May 15, 2019, 09:38:45 am
The folder /usr/local/sensei/log does not exist.

After manually creating /usr/local/sensei/log/active the plugin does seem to work.

The interface selection unfortunately does not show any tagged VLAN interfaces. Is this correct? I tought tagged VLANs are supported now?

Hi ruffy,

Having a look at log folder creation. Thanks for reporting this.

As for the VLAN tagged interface, any chances that you did not enable the trunk interface from OPNsense Interfaces menu?
Logged

Archanfel80

  • Newbie
  • *
  • Posts: 22
  • Karma: 5
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #289 on: May 15, 2019, 02:40:48 pm »
Im using tagged vlan interfaces and all shown correctly. See attached image.

Quote from: mb on May 15, 2019, 02:04:01 pm
Quote from: ruffy91 on May 15, 2019, 09:38:45 am
The folder /usr/local/sensei/log does not exist.

After manually creating /usr/local/sensei/log/active the plugin does seem to work.

The interface selection unfortunately does not show any tagged VLAN interfaces. Is this correct? I tought tagged VLANs are supported now?

Hi ruffy,

Having a look at log folder creation. Thanks for reporting this.

As for the VLAN tagged interface, any chances that you did not enable the trunk interface from OPNsense Interfaces menu?
« Last Edit: May 15, 2019, 02:43:54 pm by Archanfel80 »
Logged

hbc

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 23
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #290 on: May 15, 2019, 04:34:03 pm »
Quote from: Archanfel80 on May 15, 2019, 02:40:48 pm
Im using tagged vlan interfaces and all shown correctly. See attached image.

Yes, but you had these interfaces already active before you upgraded sensei. If you remove them, you will not be able to readd them again unless you edit the right file to disable the display filter.

mb:
Quote
[...] since we started supporting vlan trunk interfaces, we are filtering child interfaces now. Because netmap was causing problems when there are more than 2-3 vlan child interfaces monitored at the same time. [...]

You will have to edit /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/ToolsController.php
and change $filterflag = true; to $filterflag = false; in line #51 where is the comparision with 'vlan'.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

Archanfel80

  • Newbie
  • *
  • Posts: 22
  • Karma: 5
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #291 on: May 15, 2019, 06:01:53 pm »
True!
I can confirm that, i dont see the vlan interfaces unless i add manually to the config.xml (Sensei section) or do the same what you mentioned.

Quote from: hbc on May 15, 2019, 04:34:03 pm
Quote from: Archanfel80 on May 15, 2019, 02:40:48 pm
Im using tagged vlan interfaces and all shown correctly. See attached image.

Yes, but you had these interfaces already active before you upgraded sensei. If you remove them, you will not be able to readd them again unless you edit the right file to disable the display filter.

mb:
Quote
[...] since we started supporting vlan trunk interfaces, we are filtering child interfaces now. Because netmap was causing problems when there are more than 2-3 vlan child interfaces monitored at the same time. [...]

You will have to edit /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/ToolsController.php
and change $filterflag = true; to $filterflag = false; in line #51 where is the comparision with 'vlan'.
Logged

opnip

  • Newbie
  • *
  • Posts: 7
  • Karma: 2
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #292 on: May 15, 2019, 10:57:37 pm »
Cloud Node Status is always DOWN (see attachment). I can klick "Check Now" and after that, the status changes to "UP". But after a few seconds it goes back to "DOWN" and stays at is. Is this normal?
Logged

mb

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: 38
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #293 on: May 16, 2019, 03:03:29 am »
@opnip,

As a private message, can you share your firewall's IP address with me? Let's do a trace.

Quote from: holger.o@web.de on May 14, 2019, 02:56:37 pm
Hi updated from beta8 to 9, everythings looks fine so far.
Also local DNS an Cloud Threat Intel is working, GREAT!

Only: I cannot set deployment size, drop down is empty....but thats it

@holger, fixed for beta10.

Quote from: ruffy91 on May 15, 2019, 09:38:45 am
I get the following error when accessing the Dashboard or any sensei page:
73 Can't open log file at '/usr/local/sensei/log/active/Senseigui.log'

@ruffy, fixed for beta10.


@Archanfel80, @hbc, @ruffy,

Please watch for beta10. We removed the filter for VLAN child interfaces.

So the latest situation:

You can either

- Add the parent/tagged ethernet interface and protect the whole tagged/untagged
   traffic passing through the interface

or

- Add each vlan child interface seperately to the protected interfaces. The thing
  to note here is do NOT add both the parent and the child interfaces at the same
  time, or you'll hit a netmap bug.

Any Sensei users who are using more than two VLAN child interfaces at the same
time? Any issues so far?
Logged

donatom3

  • Newbie
  • *
  • Posts: 38
  • Karma: 8
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #294 on: May 16, 2019, 03:49:12 am »


Quote from: mb on May 16, 2019, 03:03:29 am

Any Sensei users who are using more than two VLAN child interfaces at the same
time? Any issues so far?

Ive got one parent and two vlans interfaces on the same trunk all working fine. Same issue as others where the vlan interfaces don't show up as selectable but just adding the parent gets all 3

Sent from my Pixel 3 XL using Tapatalk

Logged

donatom3

  • Newbie
  • *
  • Posts: 38
  • Karma: 8
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #295 on: May 16, 2019, 03:50:13 am »
Quote from: donatom3 on May 16, 2019, 03:49:12 am


Quote from: mb on May 16, 2019, 03:03:29 am

Any Sensei users who are using more than two VLAN child interfaces at the same
time? Any issues so far?

Ive got one parent and two vlans interfaces on the same trunk all working fine. Same issue as others where the vlan interfaces don't show up as selectable but just adding the parent gets all 3

Sent from my Pixel 3 XL using Tapatalk
Just saw you said more than 2 I can add a third one just for fun.

Sent from my Pixel 3 XL using Tapatalk

Logged

manjeet

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 4
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #296 on: May 16, 2019, 06:11:22 am »
Hi MB, In App Control, we can block an entire protocol / type of service. Is there any way to block one user and allow everyone else OR allow one user and block rest in network either by IP or MAC address. Thanks
Logged

malac

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: Sensei on OPNsense - Application based filtering
« Reply #297 on: May 16, 2019, 06:26:46 am »
Quote from: opnip on May 15, 2019, 10:57:37 pm
Cloud Node Status is always DOWN (see attachment). I can klick "Check Now" and after that, the status changes to "UP". But after a few seconds it goes back to "DOWN" and stays at is. Is this normal?

i have exact same behavior!
Logged

mb

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: 38
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #298 on: May 16, 2019, 02:16:38 pm »
Quote from: donatom3 on May 16, 2019, 03:50:13 am

Ive got one parent and two vlans interfaces on the same trunk all working fine. Same issue as others where the vlan interfaces don't show up as selectable but just adding the parent gets all 3

Just saw you said more than 2 I can add a third one just for fun.

Hi @donato,

Thanks, much appreciated. Please note that problem seem to arise when you add more than two "child" vlan interfaces. Haven't beed reported of a problem with tagged/trunk interfaces, although curious to know if there are any.
Logged

mb

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: 38
    • View Profile
    • Sunny Valley Networks
Re: Sensei on OPNsense - Application based filtering
« Reply #299 on: May 16, 2019, 02:22:48 pm »
@manjeet,

This is addressed via policy based filtering coming up with Premium subscription. Details almost complete. Hope to announce it very soon.

@malac,

Please send your public IP address to sensei - at - sunnyvalley.io. We'll run a trace.

Logged

  • Print
Pages: 1 ... 18 19 [20] 21 22 ... 45
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Sensei on OPNsense - Application based filtering
 

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