User Tools

Site Tools


bordel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bordel [2024/12/24 07:00] albanbordel [2024/12/24 11:52] (current) alban
Line 35: Line 35:
  
 **Attention** : mettre le code activation-bytes comme tel (sans guillemets). **Attention** : mettre le code activation-bytes comme tel (sans guillemets).
 +
 +==== fail2ban :====
 +
 +=== whitelist ===
 +
 +  * ''sudo nano /etc/fail2ban/jail.conf''
 +  * ex : ''ignoreip = 192.168.1.150 10.10.10.0/24 75.76.77.78''
 +  * service fail2ban restart
 +
 +=== check les ip bannies et debannir si besoin: ===
 +
 +On check les jail name : 
 +
 +''sudo fail2ban-client status''
 +
 +On regarde les ip bannies pour un jail name 
 +
 +''sudo fail2ban-client status <jail-name>''
 +
 +Pour debannir : 
 +
 +'' sudo fail2ban-client set <jail-name> unbanip <IP address> ''
 +
 +==== Commandes utiles VIM ====
 +  * A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition
 +  * Pour commenter :
 +
 +Put your cursor on the first # character, press CtrlV (or CtrlQ for gVim), and go down until the last commented line and press x, that will delete all the # characters vertically.
 +
 +  * Decommenter 
 +
 +    First, go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode.
 +    Then using the arrow key and select until the last line
 +    Now press ShiftI, which will put the editor in INSERT mode and then press #. This will add a hash to the first line.
 +    Then press Esc (give it a second), and it will insert a # character on all other selected lines.
  
  
bordel.1735023626.txt.gz · Last modified: by alban