complete course
This commit is contained in:
24
fail2banTest.md
Normal file
24
fail2banTest.md
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user