bordel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bordel [2024/12/24 07:00] – alban | bordel [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 === | ||
| + | |||
| + | * '' | ||
| + | * ex : '' | ||
| + | * service fail2ban restart | ||
| + | |||
| + | === check les ip bannies et debannir si besoin: === | ||
| + | |||
| + | On check les jail name : | ||
| + | |||
| + | '' | ||
| + | |||
| + | On regarde les ip bannies pour un jail name | ||
| + | |||
| + | '' | ||
| + | |||
| + | Pour debannir : | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== 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
