This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BACKUP=/var/www/html/mysql_backup/backups | |
cd $BACKUP | |
sudo mkdir `date '+%d-%m-%Y'` | |
NOW=$(date +"%d-%m-%Y") | |
MUSER="user" | |
MPASS="pass" | |
MHOST="host" | |
MYSQL="$(which mysql)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for jail in $(fail2ban-client status | grep 'Jail list:' | sed 's/.*Jail list://' | sed 's/,//g'); do fail2ban-client set $jail unbanip IP_ADDRESS_HERE; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Filter: | |
cd /etc/fail2ban/filter.d | |
[Definition] | |
#failregex = <HOST> - - \[(\d{2})/\w{3}/\d{4}:\1:\1:\1 -\d{4}\] "POST /admin/ HTTP/1.1" | |
#failregex = ^<HOST> - .* "POST /admin/ HTTP/1.1" 499 | |
#failregex = ^<HOST> - .* "(GET|POST|HEAD).*HTTP.*" 404 .*$ | |
#failregex = ^<HOST> - .* "(GET|POST|HEAD) /admin/ HTTP.*" .*$ |
OlderNewer