Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Jail

...

:

No Format
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:

No Format
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):

No Format
ln /opt/bitwarden/bitwarden_data/bitwarden.log /opt/fail2ban/log/bitwarden.log