Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
service [2023/08/02 10:08] – [Introduction] yasser | service [2023/08/03 10:01] (current) – removed nadir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Service le téléchargements ====== | ||
- | |||
- | ==== Introduction ==== | ||
- | |||
- | Le service de téléchargements est un service qui permet de télécharger les modules que le client a acheté. | ||
- | |||
- | Ce service est dévellopé avec Django. | ||
- | |||
- | Le nom de ce service est '' | ||
- | <cli> | ||
- | # git clone git@git.elosys.net: | ||
- | </ | ||
- | Les modules se trouvent dans '' | ||
- | |||
- | Il y a une fonction qui permet de mettre à jour la liste des modules d'un utilisateur '' | ||
- | |||
- | Le téléchargement se fait à partir d'un fichier '' | ||
- | |||
- | |||
- | ==== Installation ==== | ||
- | |||
- | To install Fail2Ban on your system, follow these steps: | ||
- | |||
- | == Step 1: Update Package List == | ||
- | Before installing Fail2Ban, update the package list to ensure you get the latest version available: | ||
- | <cli> | ||
- | $ sudo apt update | ||
- | </ | ||
- | |||
- | == Step 2: Install Fail2Ban == | ||
- | |||
- | Install Fail2Ban using your package manager (for Ubuntu/ | ||
- | <cli> | ||
- | $ sudo apt install fail2ban | ||
- | </ | ||
- | |||
- | ==== Configuration ==== | ||
- | |||
- | Fail2Ban' | ||
- | |||
- | == Step 1: Copy the Configuration File == | ||
- | |||
- | <cli> | ||
- | $ sudo cp / | ||
- | </ | ||
- | |||
- | == Step 2: Edit the Configuration == | ||
- | |||
- | Open / | ||
- | * bantime: The duration in seconds for which an IP address is banned. | ||
- | * maxretry: The number of failed login attempts before banning an IP . | ||
- | // | ||
- | By default the server allows 3 wrong password retries , to fail2ban it only counts as one | ||
- | |||
- | * destemail: The email address where notifications are sent. | ||
- | |||
- | == Step 3: Restart Fail2Ban == | ||
- | |||
- | After making changes to the configuration, | ||
- | <cli> | ||
- | $ sudo systemctl restart fail2ban | ||
- | </ | ||
- | ==== Monitoring and Troubleshooting ==== | ||
- | |||
- | Fail2Ban provides several commands to monitor and troubleshoot its functionality: | ||
- | |||
- | * fail2ban-client status: Check the status of Fail2Ban and the number of bans in effect. | ||
- | * fail2ban-client status < | ||
- | * fail2ban-client set < | ||
- | |||