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
# 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 |
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
systemctl mask firewalld | |
systemctl stop firewalld | |
yum -y install iptables-services | |
systemctl enable iptables | |
systemctl enable ip6tables | |
systemctl start iptables | |
systemctl start ip6tables |
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
# 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.*##" |
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
#Add to .htaccess to fix content loading issues when using LB SSL Term | |
SetEnvIf X-Forwarded-Proto https HTTPS=on |
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
### 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: |
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
### 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: |