Skip to content

Instantly share code, notes, and snippets.

@jonnyreeves
Created October 2, 2016 21:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnyreeves/c2913b1f17739a52883e14bd93b3a23d to your computer and use it in GitHub Desktop.
Save jonnyreeves/c2913b1f17739a52883e14bd93b3a23d to your computer and use it in GitHub Desktop.
- 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