Προσωπικές σημειώσεις

Ξεκίνησε από alkisg, 07 Οκτ 2019, 10:02:50 ΜΜ

« προηγούμενο - επόμενο »

alkisg

Εγκατάσταση fail2ban για μπλοκάρισμα spambots:

Κώδικας: Bash
apt install -y fail2ban

cat >/etc/fail2ban/jail.d/local.conf <<EOF
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1 10.0.0.0/8 192.168.0.0/16
bantime = 1h

[sshd]
port = 7100
EOF

systemctl restart fail2ban
fail2ban-client reload
fail2ban-client status sshd
nft list ruleset