Created
October 2, 2016 21:41
-
-
Save jonnyreeves/c2913b1f17739a52883e14bd93b3a23d to your computer and use it in GitHub Desktop.
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
- Setup Google Compute Account | |
- Create micro-f1 instance | |
- SSH into instance (Debian/Jessy) | |
- Install apt-get deps from https://github.com/eugeneware/docker-wordpress-nginx | |
- install fail2ban (https://www.digitalocean.com/community/tutorials/how-to-protect-an-nginx-server-with-fail2ban-on-ubuntu-14-04) | |
- create a wordpress rule in jails.local | |
``` | |
[wordpress] | |
enabled = true | |
port = http,https | |
filter = wordpress | |
logpath = /var/log/nginx/access.log | |
maxretry = 3 | |
bantime = 3600 | |
``` | |
- create a new filter: `filter.d/wordpress.conf` | |
``` | |
[Definition] | |
failregex = <HOST>.*POST.*(wp-login\.php|xmlrpc\.php).* (403|499|502)] | |
``` | |
- allocate a static ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment