Files
iot-architeture/fail2banTest.md
2022-11-06 02:28:14 +02:00

430 B

fail2ban-client status sshd

cat /var/log/fail2ban.log

systemctl status fail2ban

systemctl status sshd

python /etc/fail2ban/scripts/mqtt.py 186.237.58.214

fail2ban-client set sshd unbanip 186.237.58.214 fail2ban-client set sshd banip 101.43.32.151

sudo dnf install python3-paho-mqtt

to release SELINUX to acess port and others

audit2allow -w -a audit2allow -a audit2allow -a -M fail2ban_t semodule -i fail2ban_t.pp