Coder Social home page Coder Social logo

docker-pfelk's Introduction

docker-pfelk

Deploy pfelk with docker-compose Video Tutorial

Version badge Build Status Donate

(1) Required Prerequisits

  • Docker
  • Docker-Compose
  • Maxmind
  • Java

(1a) Docker Install

sudo apt-get install docker
sudo apt-get install docker-compose

(1b) MaxMind Install

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:maxmind/ppa

(2) Download pfELK Docker

sudo wget https://github.com/3ilson/docker-pfelk/raw/master/pfelkdocker.zip

(2a) Unzip pfelkdocker.zip

sudo apt-get install unzip
sudo unzip pfelkdocker.zip

(2b) Enter License Key

  • Ceate a Max Mind Account @ https://www.maxmind.com/en/geolite2/signup
  • Login to your Max Mind Account; navigate to "My License Key" under "Services" and Generate new license key
  • Enter the Account ID and Key to the file below (lines 7 & 8)
sudo nano /etc/GeoIP.conf
  • Modify line 13 as follows:
EditionIDs GeoLite2-City GeoLite2-Country GeoLite2-ASN
  • Wait up to 5min and initiate geoipupdate
sudo mkdir /usr/share/GeoIP/
sudo geoipupdate -d /usr/share/GeoIP/

(3) Memory

(3a) Set vm.max_map_count to no less than 262144 (must run each time host is booted)

sudo sysctl -w vm.max_map_count=262144

(3b) Set vm.max_map_count to no less than 262144 (one time configuration)

sudo echo "vm.max_map_count=262144" >> /etc/sysctl.conf

(4) Configuration

(4a) Edit 01-inputs.conf (pfelkdocker.zip:/logstash/conf.d/01-inputs.conf)

Change line 12; the "if [host] =~ ..." should point to your pfSense/OPNsense IP address
Change line 15; rename "firewall" (OPTIONAL) to identify your device (i.e. backup_firewall)
Change line 18-27; (OPTIONAL) to point to your second PF IP address or ignore

(4b) Edit 01-inputs.conf (pfelkdocker.zip:/logstash/conf.d/01-inputs.conf)

For pfSense uncommit line 34 and commit out line 31
For OPNsense uncommit line 31 and commit out line 34

(5) Start Docker

sudo docker-compose up

Once fully running, navigate to the host ip (ex: 192.168.0.100:5601)

docker-pfelk's People

Contributors

fktkrt avatar mmohoney avatar pclever1 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.