Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: OSSEC or fail2ban on the opnsense #887

Closed
ruggerio opened this issue Oct 3, 2018 · 15 comments
Closed

Feature Request: OSSEC or fail2ban on the opnsense #887

ruggerio opened this issue Oct 3, 2018 · 15 comments
Labels
help wanted Contributor missing

Comments

@ruggerio
Copy link

ruggerio commented Oct 3, 2018

See discussion here:
https://forum.opnsense.org/index.php?topic=9607.0

First sights:

  • syslog-server on opensense
  • applicationserver sending logs to opnsense
  • opnsense verifying and blocking according traffic
@mimugmail
Copy link
Member

I'm not sure if Bro would fit better .. there's already a ticket from @lattera

@fabianfrz
Copy link
Member

@mimugmail Bro is a network IDS like suricata, but maybe more advanced which has also some downsides like more disk and memory usage as well as performance. OSSEC is a host IDS which will act based on events inside applications and logs which are collected. So they are totally different.

@juliocbc
Copy link
Contributor

juliocbc commented Oct 8, 2018

I already have OSSEC running on a dozen of OPNsenses and works great. Couple of years ago I've submit this script to work with OSSEC's active response on OPNsense to Wazuh's project:

wazuh/wazuh@4d3c445

I'm finishing a plugin that include an OSSEC agent, when I finished it I'll let you know.

@mimugmail
Copy link
Member

This sounds really cool :)

@mimugmail
Copy link
Member

@juliocbc do you need help with the plugin? :)

@juliocbc
Copy link
Contributor

juliocbc commented Nov 5, 2018

Hi @mimugmail sorry... I'm busy these last weeks with a squid + squidguard plugin with SSO that I'm porting from 16.x to 18.x... it's a internal plugin that we use here, but when I finished the port we'll make it a public version.

All help is very welcome! I'm thinking to start to use a wazuh agent version to this plugin, what do you think about it?

@beren12
Copy link

beren12 commented Dec 5, 2018

I would like to see this. fail2ban would be enough for me, but there's no reason to not have options. Yes, I can ssh into my firewall remotely. It's needed as there is often nobody behind the firewall to check on things or kick it when the interface starts flapping.

@mimugmail
Copy link
Member

fail2ban cannot read circular logs .. also there's already sshlockout so after 15 fails the IP get's blocked.

@beren12
Copy link

beren12 commented Dec 5, 2018

Sure most things cannot, that's why the first bullet point is "syslog-server on opnsense" up top. Also, with zfs, circular logs aren't a good idea anyway. The filesystem is CoW so things are never directly written over like with UFS. syslog with log rotate is a far better option. Every time opnsense writes to the circular log, my entire log has to be rewritten.

@juliocbc
Copy link
Contributor

Hi guys!! Anyone here that can help me with a port of wazuh-agent to FreeBSD? I've posted this in their forum, but anybody replied yet... @mimugmail

@mimugmail
Copy link
Member

Can you open an issue in tools to build a pkg for it?

@juliocbc
Copy link
Contributor

Done!
opnsense/tools#112

@AdSchellevis
Copy link
Member

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository,
please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

@AdSchellevis AdSchellevis added the help wanted Contributor missing label Jan 5, 2020
@FathiBenNasr
Copy link

Is this what all of you and I are looking for https://github.com/cloudfence/opnsense-wazuh ?

@fichtner
Copy link
Member

this issue has been closed 4 years ago, wazuh-agent plugin readily available nowadays in OPNsense...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributor missing
Development

No branches or pull requests

8 participants