GithubHelp home page GithubHelp logo

miteshshah / ee-secured Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattradford/ee-secured

1.0 2.0 0.0 154 KB

Install script and files for a secure WordPress server using rtcamp's EasyEngine

ee-secured's Introduction

EE-Secured

Install script and files for a secure WordPress server using rtcamp's EasyEngine.

Intended for a 512MB DigitalOcean droplet running Ubuntu 14.04 x64, but can be used for any VPS with modification.

The script:

  • updates APT & upgrades system
  • adds & enables 1GB swap
  • configures unattended security updates
  • installs EasyEngine
  • changes default SSH port to a random one and allows only key-based login
    • (assumes that a key has already been added to the server during droplet creation)
  • adds & enables UFW
    • configures rules, including randomly assigned SSH port
    • whitelists CloudFlare IPv4 Ranges
  • installs fail2ban with WP brute force protection
    • fail2ban active on the random SSH port
  • changes the default server page to show the hostname
  • prints the ssh command to access the new server

In order to run the script, create a new droplet, SSH into it, then:

  • wget https://raw.githubusercontent.com/mattradford/EE-Secured/master/do-install.sh
  • chmod +x do-install.sh
  • ./do-install.sh

You will need to answer some prompts as the script runs.

After the script has run, log in to the server again using a new terminal to check everything is correct. Then alter EasyEngine's conf file (/etc/easyengine/ee.conf) to suit your defaults.

The server is then ready for ee site create to start adding WordPress sites.

To Do

  • allow user to enter EE config choices
  • automate CloudFlare IPv4 range addition
  • integrate UFW with fail2ban
  • check brute force protection
  • email ssh login command to a specified email address

License

[GPL] (http://www.gnu.org/licenses/gpl-2.0.txt).

ee-secured's People

Contributors

mattradford avatar

Stargazers

Mel avatar

Watchers

James Cloos avatar Mitesh Shah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.