Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Jail:

cat << 'EOF' >>/opt/fail2ban/data/jail.d/bitwarden_rs.local
[bitwarden_rs]
enabled = true
port = 80,443,8527
filter = bitwarden_rs
action = iptables-allports[name=bitwarden_rs]
         %(action_mwl)s
logpath = /var/log/bitwarden.log
maxretry = 3
bantime = 14400
findtime = 14400
EOF

Filter:

cat << 'EOF' >>/opt/fail2ban/data/filter.d/bitwarden_rs.conf
[Definition]
failregex = ^.* Username or password is incorrect. Try again\. IP: <HOST>.*$
ignoreregex =
EOF

Log Setup (Use HARD LINK):

ln /opt/bitwarden/bitwarden_data/bitwarden.log /opt/fail2ban/log/bitwarden.log
  • No labels