complete course

This commit is contained in:
2022-11-06 02:28:14 +02:00
parent e05560f5d3
commit 4bbd21a665
6 changed files with 114 additions and 0 deletions

24
fail2banTest.md Normal file
View File

@@ -0,0 +1,24 @@
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