It all looks very interesting and promising. The crowdsec console looks like it is running online and not locally on our opnsense box? Or is it possible to have this running only locally?
And when running a wordpress site on a machine behind open sense /reverse proxy, does crowdsec protects this wordpress site or must crowdsec also been installed on this separate wordpress website server behind opnense?
Are there any ports that need to be opened for the local parser/bouncer to talk to SaaS/Crowdsec?
klausagnoletti: I have it up and running. Now lets see how this functions.Would be great to have this implemented in the opnsense plugins and not having to go to the terminal.
p.s. just added the crowdsec WordPress plugin (wordpress running on synology nas) and used LAPI URL: http://192.168.1.1:8080(opnsense with crowdsec running on 192.168.1.1)I don't think this is working. Do I have to make a fw rule for it to run or something else, e.g. how to check if it works?In opnsense crowdsec - wordpress-bouncer showing Last Api Pull 4 hours ago (the time after the Bouncer API key creation)
Found the logfile in wordpress crowdsec and things like this show up:2022-03-13T07:15:18.904168+00:00|300|{"type":"NON_AUTHORIZED_X_FORWARDED_FOR_USAGE","original_ip":"192.168.1.1","x_forwarded_for_ip":"2001:xx:xxxx:xxxx::xxxx"}2022-03-13T07:15:19.906514+00:00|300|{"type":"UNKNOWN_EXCEPTION_WHILE_BOUNCING","ip":"192.168.1.1","message":"file_get_contents(http://192.168.1.1:8080/v1/decisions?ip=192.168.1.1): failed to open stream: Connection timed out","code":2,"file":"/volume1/web/Annemarie/wordpress/wp-content/plugins/crowdsec/vendor/crowdsec/bouncer/src/RestClient.php","line":105}
pkg remove crowdsec crowdsec-firewall-bouncerrm -rf /var/log/crowdsec /usr/local/etc/crowdsec
# pkg add ./crowdsec-1.3.1.r1.txz...# pkg add ./crowdsec-firewall-bouncer-0.0.23.r2.txz...# pkg add ./os-crowdsec-0.0.7.txz...
1 Ip:2a02:4780:3:3:d4c9:b6fc:4a99:44a crowdsecurity/http-probing LT Hostinger International Limited ban:1 15 hours ago10 Ip:2a02:4780:3:3:d4c9:b6fc:4a99:44a crowdsecurity/http-sensitive-files LT Hostinger International Limited ban:1 15 hours ago