The files in this repository were used to configure the network depicted below.
These files have been tested and used to generate a live ELK deployment on Azure. They can be used to either recreate the entire deployment pictured above. Alternatively, select portions of the /etc/ansible/install-elk.yml file may be used to install only certain pieces of it, such as Filebeat.
This document contains the following details:
The main purpose of this network is to expose a load-balanced and monitored instance of DVWA, the D*mn Vulnerable Web Application.
Load balancing ensures that the application will be highly redundant, in addition to restricting traffic to the network.
Integrating an ELK server allows users to easily monitor the vulnerable VMs for changes to the filesystem and system resources / availability.
The configuration details of each machine may be found below. Note: Use the Markdown Table Generator to add/remove values from the table.
Name | Function | IP Address | Operating System |
---|---|---|---|
Jump Box | Gateway | 10.0.0.7 / 52.188.152.183 | Linux |
Web-1 | DVWA | 10.0.0.8 | Linux |
Web-2 | DVWA | 10.0.0.9 | Linux |
Web-3 | DVWA | 10.0.0.10 | Linux |
ELK-VM | ELK Server | 10.1.0.4 / 104.42.4.112 | Linux |
The machines on the internal network are not exposed to the public Internet.
Only the JumpBox machine can accept connections from the Internet. Access to this machine is only allowed from the following IP addresses:
Machines within the network can only be accessed by JumpBox.
A summary of the access policies in place can be found in the table below.
Name | Publicly Accessible | Allowed IP Addresses |
---|---|---|
Jump Box | Yes (SSH) | SSH:My home network IPaddr |
Web-1 | Yes (HTTP) | HTTP:any, SSH:10.0.0.7 |
Web-2 | Yes (HTTP) | HTTP:any, SSH:10.0.0.7 |
Web-3 | Yes (HTTP) | HTTP:any, SSH:10.0.0.7 |
ELK-VM | Yes (HTTP, SSH) | HTTP:any, SSH:10.0.0.7 |
Ansible was used to automate configuration of the ELK machine. No configuration was performed manually, which is advantageous becauseā¦
The playbook implements the following tasks:
The following screenshot displays the result of running docker ps
after successfully configuring the ELK instance.
This ELK server is configured to monitor the following machines:
We have installed the following Beats on these machines:
These Beats allow us to collect the following information from each machine:
In order to use the playbook, you will need to have an Ansible control node already configured. Assuming you have such a control node provisioned:
SSH into the control node and follow the steps below:
Run the playbook, and navigate to http://104.42.4.112:5601/app/kibana to check that the installation worked as expected.
As a Bonus, provide the specific commands the user will need to run to download the playbook, update the files, etc.