Public Repository

Last pushed: 2 years ago
Short Description
ssh + fail2ban
Full Description

Если вы говорите на русском то переходите по ссылке ниже
http://заправим-настроим.рф/fail2ban-ssh-docker-%D0%BA%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/

Start container with:
docker run -i -t -P -p 8022:22 -privileged --name fail2ban-ssh ruadmjn/fail2ban-ssh:latest /bin/bash

Start services:
service rsyslog restart
service ssh restart
service fail2ban restart

Default login:pass for ssh is
max:1

You can "userdel max" to delete him.


If you see this
[FAIL] Restarting authentication failure monitor: fail2ban[....] Socket file /var/run/fail2ban/fail2ban.sock is present ... failed!
failed!

rm /var/run/fail2ban/fail2ban.sock

Docker Pull Command
Owner
ruadmjn

Comments (2)
ruadmjn
2 years ago

fail2ban-client get ssh actionunban <IP>

ruadmjn
2 years ago

/var/log/fail2ban.log - ban log