OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Intrusion Detection and Prevention »
  • IPS allowing traffic despite policy is set to drop
« previous next »
  • Print
Pages: [1]

Author Topic: IPS allowing traffic despite policy is set to drop  (Read 3218 times)

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
IPS allowing traffic despite policy is set to drop
« on: April 22, 2023, 05:32:26 am »
I have configured Suricate on WAN interface, enabled IPS mode, downloaded and installed ET Telemetry rules and added token, created policy with all rulesets selected, action set to Alert and new action set to Drop, the other parameters have all been left to default values.
I started getting alerts in Services>Intrusion Detection>Administration>Alerts however it shows 'allowed' in action column instead of blocked.
Kindly could anyone please shed some light on how to properly configure Suricata in IPS mode to actually block traffic?
Logged

gctwnl

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #1 on: April 22, 2023, 12:52:32 pm »
One thing I ran into that confused me is that the policy has a 'from' action (at the top) and a 'to' action (at the end). The top action is by default set to 'Drop'. So, if you change the bottom one to 'Drop' you are in effect saying: if the action is 'Drop' change it to 'Drop'.

Make sure that you create a policy to change (Action, top) 'Alert' to (New Action, bottom)'Drop'.
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #2 on: April 22, 2023, 02:40:11 pm »
Quote from: gctwnl on April 22, 2023, 12:52:32 pm
One thing I ran into that confused me is that the policy has a 'from' action (at the top) and a 'to' action (at the end). The top action is by default set to 'Drop'. So, if you change the bottom one to 'Drop' you are in effect saying: if the action is 'Drop' change it to 'Drop'.

Make sure that you create a policy to change (Action, top) 'Alert' to (New Action, bottom)'Drop'.

I created a Policy and did exactly that however I am still getting alerts instead of drops
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #3 on: April 23, 2023, 04:33:08 am »
I forgot to mention I am running latest OPNsense business  22.10.2.
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #4 on: April 26, 2023, 09:22:14 am »
I made no progresses so far, was anybody else using latest OPNsense 22.10.2 commercial edition able to configure IPS and get it working to drop incoming WAN traffic instead of just getting alerts ?
I carefully read the official documentation multiple times however the traffic is not dropped
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 1830
  • Karma: 95
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #5 on: April 26, 2023, 10:22:08 am »
Not the same OPN version but you need to tick in Administration tab IPS mode.
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #6 on: April 26, 2023, 02:21:45 pm »
I enabled IPS mode and followed exactly the steps described in official OPNsense documentation however it's not working, any help in sorting out this issue would be greatly appreciated.
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 1830
  • Karma: 95
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #7 on: April 26, 2023, 02:41:15 pm »
Ok I missed that .  If you go to Administration | Rules . There Filters drop down and chose Action: Action/Drop, do you get your rules there appearing?
This is to verify, not to set.
My policies are slightly different, maybe you can try that:
Action (at top) is Alert, Drop.
New action (at bottom) is Drop.
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #8 on: April 26, 2023, 06:14:58 pm »
Quote from: cookiemonster on April 26, 2023, 02:41:15 pm
Ok I missed that .  If you go to Administration | Rules . There Filters drop down and chose Action: Action/Drop, do you get your rules there appearing?
This is to verify, not to set.
My policies are slightly different, maybe you can try that:
Action (at top) is Alert, Drop.
New action (at bottom) is Drop.

My policy is exactly configured like that, also rules are appearing in the drop down selector, I selected them all.
It's just that the policy doesn't get applied and can't understand why.
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 1830
  • Karma: 95
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #9 on: April 26, 2023, 10:14:55 pm »
Any clues in /var/log/suricata/latest.log ?
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #10 on: April 27, 2023, 05:12:41 am »
Quote from: cookiemonster on April 26, 2023, 10:14:55 pm
Any clues in /var/log/suricata/latest.log ?

No, just IPS alerts logged, the same alerts shown in GUI Services>Intrusion Detection>Administration>Alerts

My policy is configured as follows:

Enabled checked
Priority 0
Rulesets all selected
Action Alert,Drop
Rules
affected products Any
all the remaining items Nothing selected
New action Drop

I have enabled IPS for WAN interface only and added my WAN IP subnet to Home Networks, IPS mode enabled, Promiscuous mode enabled, Pattern matcher set to Hyperscan, Detect profile set to High, Hardware offloading disabled in Interface>Settings as indicated official documentation
The only rules enabled and downloaded are ET Pro Telemetry Edition from OPNsense with valid subscription
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 1830
  • Karma: 95
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #11 on: April 27, 2023, 10:09:01 am »
I'm so sorry, I have no more ideas for this one.
Logged

Mistery

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
    • View Profile
Re: IPS allowing traffic despite policy is set to drop
« Reply #12 on: May 08, 2023, 08:08:49 am »
I have upgraded to latest OPNsense business 23.4 and the issue persists so this definitely seems to be a bug, hope the development team could have a look and fix
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Intrusion Detection and Prevention »
  • IPS allowing traffic despite policy is set to drop
 

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