OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Intrusion Detection and Prevention »
  • To block or reject connections on a specific port?
« previous next »
  • Print
Pages: [1]

Author Topic: To block or reject connections on a specific port?  (Read 1363 times)

grimelog

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
To block or reject connections on a specific port?
« on: July 08, 2024, 12:39:26 am »
My intrusion detection keeps picking up a security company spamming my ports to check for vulnerable VOIP ports. I do not use VOIP, and monit keeps spamming my email with alerts over it. To silence it do I want to reject or block connections on that port? What's the difference between the two?
Logged

meyergru

  • Hero Member
  • *****
  • Posts: 1757
  • Karma: 171
  • IT Aficionado
    • View Profile
    • congenio
Re: To block or reject connections on a specific port?
« Reply #1 on: July 08, 2024, 01:05:49 am »
You almost never want to reject any packet, because that in itself shows a potential attacker that something (tm) is present at this IP, encouraging him to keep on trying to pry his way in.

This has nothing to with what is being logged and subsequently potentially seen and alerted by monit. Thus, you could use a specific rule for the traffic in question, which blocks it, but never logs anything.
« Last Edit: July 08, 2024, 01:07:52 am by meyergru »
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

tiermutter

  • Hero Member
  • *****
  • Posts: 1103
  • Karma: 61
    • View Profile
Re: To block or reject connections on a specific port?
« Reply #2 on: July 08, 2024, 06:23:19 am »
Reject is useful for "trusted" IPs since they will not be forced into timeout and will get the answer immediately.
I use rejects e.g. for blocking some DNS requests. With a block the clients will run into timeouts, with reject they get the answer "not allowed" immediately and can try another request without waiting too long.
Logged
i am not an expert... just trying to help...

grimelog

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
Re: To block or reject connections on a specific port?
« Reply #3 on: July 11, 2024, 03:27:57 am »
Yeah, I have to work on filtering alerts from Monit. I'm getting spammed by security researchers checking for vulnerabilities.

Currently, I just have
Code: [Select]
content = "blocked" for my Surricata service tests. Is it possible to drop a file path in the Monit Service Tests Settings. I'm probably going to have to filter out a ton of junk.

Would
Code: [Select]
content = "blocked" && ((content = "<test signature>" && content != "<ip address>") || /* more false positives */ ) be the right way to filter?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Intrusion Detection and Prevention »
  • To block or reject connections on a specific port?
 

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