-------- Original Message --------
*Subject: *  Re: [Fail2ban-users] newbie - how to montitor but not block
*From: *     Nick Howitt <n...@howitts.co.uk>
*To: *         Fail2ban-users <fail2ban-users@lists.sourceforge.net>
*CC: *
*Date: *      2021-5-9  03:47 AM


On 08/05/2021 22:52, asdffdsa6132 via Fail2ban-users wrote:
hello and thanks, i could not find my answer at the website.

i want to test fail2ban to protect my openvpn server on opnsense.
and i am concerned that i will make some major mistake and lock myself out.

so how can i configre fail2ban to log and not ban?

thanks so much,
david

Not quite the right answer but set findtime to 1s and maxretry to something 
big. Then it should never ban.


I got mine from 
https://www.fail2ban.org/wiki/index.php/HOWTO_fail2ban_with_OpenVPN but ahad to 
adjust it slightly.


_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users



Here is a script that will make it easy to unban yourself when you do get 
yourself banned:

echo "Enter IP # to unban"; read input; for jail in $(fail2ban-client status | grep 'Jail list:' | sed 's/.*Jail list://' | sed 's/,//g'); do echo; echo "Jail:  $jail"; fail2ban-client set $jail unbanip $input; done

Another thing that you can do, is to keep your ban time set to a few seconds, when testing, then if you get banned, it's only for a few seconds.

You can also put a no ban restriction on your ip address.

Wayne Sallee
wa...@waynesallee.com
http://www.WayneSallee.com


_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to