Panier 0 Panier
🌐
Langue & Devise
Language & Currency
Langue & Devise
← Retour à la base de connaissance
Article

Fail2ban : bloquer les attaques SSH automatiquement

Des bots scannent et attaquent votre SSH 24/7 — Fail2ban bannit automatiquement les IP qui échouent trop de connexions. Installation apt install -y fail2ban systemctl enable --now fail2ban Configuration SSH nano /etc/fail2ban/jail.local…

🛡️ Anti-DDoS gaming ⚡ NVMe 🇨🇦 100 % canadien ↩️ Garantie 7 jours 🖥️ Pterodactyl ⚙️ AMD Ryzen 7 9800X3D
📚 Base de connaissance

Des bots scannent et attaquent votre SSH 24/7 — Fail2ban bannit automatiquement les IP qui échouent trop de connexions.

Installation

apt install -y fail2ban
systemctl enable --now fail2ban

Configuration SSH

nano /etc/fail2ban/jail.local
[sshd]
enabled = true
port = ssh
maxretry = 5
bantime = 1h
findtime = 10m
systemctl restart fail2ban

5 échecs en 10 min → banni 1 heure.

Vérifier les bannis

fail2ban-client status sshd

Débannir une IP : fail2ban-client set sshd unbanip 1.2.3.4

Combiné aux clés SSH et à un utilisateur sudo, Fail2ban rend votre SSH quasi imperméable aux bots.

Tu n'as pas trouvé ta réponse ?

Notre équipe canadienne répond en moins d'une heure, 7j/7.

Cet article t'a été utile ?

Powered by WHMCompleteSolution

Serveurs en ligne

Lancez votre serveur
en 60 secondes.

Forfaits dès 6,99 $CA · Protection Anti-DDoS · 100 % Canadien

NordikServer — Game Panel
$ server start
✔ Online in 2.4s — ready
[INFO] Panel ready · Resources allocated
[DDoS] Anti-DDoS shield: ACTIVE
Anti-DDoS Gaming
Garantie 7 jours
En ligne en 60s
🇨🇦 Hébergeur Canadien
99.99% Uptime
Chargement