Keybase proof
I hereby claim:
- I am parrazam on github.
- I am parrazam (https://keybase.io/parrazam) on keybase.
- I have a public key ASCMDIhPAbHA7LVMKvRlq1weNj1LAJo7lTfi3JhWGUrVpAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[Definition] | |
# Option: actionstart | |
# Notes : command executed once at the start of Fail2Ban | |
# Tags : | |
# Values: CMD | |
actionstart = | |
# Option: actionstop | |
# Notes : command executed once at the end of Fail2Ban |
[sshd] | |
# To use more aggressive ssh modes set filter parameter "mode": | |
# normal (default), ddos, extra or aggressive (combines all). | |
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details. | |
#mode = normal | |
port = ssh | |
enabled = true | |
filter = sshd | |
ignoreip = 192.168.1.0/24 |
#!/bin/bash | |
# This script should be allocated in /etc/pam.scripts/ssh_alert.sh | |
# Then, in /etc/pam.d/sshd add this line: | |
# # SSH Alert script | |
# session required pam_exec.so /etc/pam.scripts/ssh_alert.sh | |
echo $PAM_TYPE |
#!/bin/bash | |
if [[ $# -ne 1 ]] | |
then | |
echo "\nSe requiere un mensaje para enviar. Ejemplo de uso: $0 \"Mensaje de prueba\"" | |
exit 1 | |
fi | |
source /home/$USER/.tg_keys |
#!/usr/bin/perl | |
# Script que permite dar de baja un usuario. | |
# Author: Víctor Parra [parra@usal.es] | |
# AVISO: Requiere permisos de root | |
# Es necesario instalar el File::Path y el Linux::usermod | |
# ># perl -MCPAN -e 'install File::Path' | |
# ># perl -MCPAN -e 'install Linux::usermod' |
#!/usr/bin/perl | |
# Script que permite dar de alta un usuario. | |
# Author: Víctor Parra [parra@usal.es] | |
# AVISO: Requiere permisos de root | |
# Es necesrio instalar el File::Copy y el Linux::usermod | |
# ># perl -MCPAN -e 'install File::Copy::Recursive' | |
# ># perl -MCPAN -e 'install Linux::usermod' |