Skip to content

Instantly share code, notes, and snippets.

View QuentinMoss's full-sized avatar
🗿

Quentin QuentinMoss

🗿
View GitHub Profile
### Keybase proof
I hereby claim:
* I am QuentinMoss on github.
* I am quentinmoss (https://keybase.io/quentinmoss) on keybase.
* I have a public key whose fingerprint is F98B 0A72 CF06 54F9 8467 DA88 71F5 3EA6 2BCF 1D85
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am quentinmoss on github.
* I am quentinmoss (https://keybase.io/quentinmoss) on keybase.
* I have a public key ASDybjJDcy4FFADJgA1tKRq8-i20d4mxI2MMrU84NUomlAo
To claim this, I am signing this object:
@QuentinMoss
QuentinMoss / SSL Termination on Load Balancer with WordPress
Created December 4, 2015 02:59
SSL Termination on Load Balancer with WordPress
#Add to .htaccess to fix content loading issues when using LB SSL Term
SetEnvIf X-Forwarded-Proto https HTTPS=on
@QuentinMoss
QuentinMoss / Locate and sort all WordPress installations by version
Created December 4, 2015 02:56
Locate and sort all WordPress installations by version
# Obviously requires locate. Swap locate with find on RHEL, or..
# yum install -y -q bash-completion finger mlocate && . /etc/bash_completion && updatedb &
locate wp-includes/version.php | xargs grep -H "wp_version.*=" | sort -k 3 | awk '{print $3 " " $1}' | sed -e "s/:.*//" -e "s#/wp-includes.*##"
@QuentinMoss
QuentinMoss / Disable & Replace Firewalld
Created December 4, 2015 02:48
Disable & Replace Firewalld
systemctl mask firewalld
systemctl stop firewalld
yum -y install iptables-services
systemctl enable iptables
systemctl enable ip6tables
systemctl start iptables
systemctl start ip6tables
@QuentinMoss
QuentinMoss / iptables default drop policy
Last active December 4, 2015 02:46
iptables default drop policy
# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services to this default configuration
*filter
:INPUT DROP [17:1530]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [133:17662]
-A INPUT -p tcp -m comment –comment SSH -m tcp –dport 1122 -j ACCEPT
-A INPUT -i lo -j ACCEPT
# Rule 1 allows incoming ping. Rule 2 allows all related, or established traffic back to the server. ping, dns resolv, etc