This plugin installs a CrowdSec agent/LAPI node, and a Firewall Bouncer.
@@ -63,9 +65,16 @@ any other agent connected to the same LAPI node. Other types of remediation are possible (ex. captcha test for scraping attempts). + We recommend you to register to the Console. This helps you manage your instances, + and us to have better overall metrics. +Please refer to the tutorials to explore the possibilities.
+For the latest plugin documentation, including how to use it with an external LAPI, see Install + CrowdSec (OPNsense)
+A few remarks:
+ On the Settings tab, you can expose CrowdSec to the LAN for other servers by changing `LAPI listen address`. + Otherwise, leave the defualt value. +
+ ++ Select the first three checkboxes: IDS, LAPI and IPS. Click Apply. If you need to restart, you can do so + from the System > Diagnostics > Services page. +
+ ++ A quick way to test that everything is working correctly is to + execute the following command. +
+ ++ Your ssh session should freeze and you should be kicked out from + the firewall. You will not be able to connect to it (from the same + IP address) for two minutes. +
+ ++ It might be a good idea to have a secondary IP from which you can + connect, should anything go wrong. +
+ +[root@OPNsense ~]# cscli decisions add -t ban -d 2m -i
+
+ + This is a more secure way to test than attempting to brute-force + yourself: the default ban period is 4 hours, and Crowdsec reads the + logs from the beginning, so it could ban you even if you failed ssh + login 10 times in 30 seconds two hours before installing it. +
+