This file contains 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 | |
# | |
# Shell script to configure fail2ban to ban | |
# brute force attacks on all Wordpress sites server-wide | |
# If fail2ban is not yet installed, it will be installed and configured first. | |
# Apache logfiles are monitored for attacks. If you're on Plesk all vhosts' logs | |
# are monitored as well. Plesk's integration with fail2ban is only available on Plesk 12+. | |
# This configuration should work for any Apache or Plesk setup, as long as access logs are available. | |
# CentOS/EL7+ required. | |
# |
This file contains 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 | |
# | |
# Shell script to install & configure fail2ban with firewalld actions | |
# Just one command to install & configure in a few seconds. | |
# CentOS/EL7+ required. | |
# | |
# Run this command to execute the script in one go | |
# curl -sSL https://gist.github.com/hannesbe/719c03d85134f8e9df5c/raw/fail2ban-firewalld-install.sh | bash -s | |
# | |
set -e |
This file contains 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
# fail2ban action config for csf deny / unblock IP | |
# /etc/fail2ban/action.d/csf.conf | |
[Definition] | |
actionstart = | |
actionstop = | |
actioncheck = | |
# to deny an IP and add to /etc/csf/csf.deny | |
actionban = csf -d <ip> added by fail2ban for <name> |
This file contains 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
# fail2ban Apache jail for WordPress failed logins / brute force attacks | |
# Location in CentOS/EL7 : /etc/fail2ban/jail.d/apache-wp.conf | |
# 86400 = 24h, 21600 = 6h, 3600 = 1h | |
[apache-wp-xmlrpc] | |
enabled = false | |
filter = apache-wp-xmlrpc | |
port = http,https | |
logpath = /var/www/vhosts/*/logs/*access*log | |
/var/log/httpd/*access*_log |
This file contains 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/bash | |
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
for JAIL in $JAILS | |
do | |
fail2ban-client status $JAIL | |
done |
This file contains 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
# fail2ban local jail config | |
# /etc/fail2ban/jail.local | |
# jail.conf should not be modified, put overrides to jail.conf in jail.local | |
# enable sshd jail | |
[sshd] | |
enabled = true | |
# enable recidive jail to permanently ban recidives | |
[recidive] |
This file contains 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/bash | |
sed -i '377s#.*#// $this->curlOption(CURLOPT_SSL_CIPHER_LIST, ''TLSv1'');#' downloader/lib/Mage/HTTP/Client/Curl.php |
This file contains 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
#!/usr/bin/env bash | |
curl -sSL https://raw.githubusercontent.com/Connexeon/dotfiles/master/bootstrap | bash -s |
This file contains 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
/* Update SOA records for zones having a certain IP in the content */ | |
UPDATE records | |
SET `content` = 'ns1.connexeon.com. domains.connexeon.com. 2017040701 1200 400 1209600 300' | |
WHERE `id` IN | |
(SELECT `id` | |
FROM records_copy | |
WHERE `type`='SOA' | |
AND `domain_id` IN | |
(SELECT DISTINCT `domain_id` | |
FROM records_copy |
This file contains 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
[ | |
{ | |
"title": "Remote Control {{ticket.requester.firstname}}", | |
"url": "{{ticket.requester.user_fields.remote_session_link}}" | |
}, | |
{ | |
"title": "{{ ticket.organization.name }} in Omega", | |
"url": "http://xtranet.connexeon.com/CRM/Account.aspx?Id={{ticket.organization.organization_fields.omega_account_id}}" | |
}, | |
{ |
OlderNewer