Deploy pfelk with docker-compose Video Tutorial
- Docker
- Docker-Compose
- Maxmind
- Java
sudo apt-get install docker
sudo apt-get install docker-compose
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:maxmind/ppa
sudo wget https://github.com/3ilson/docker-pfelk/raw/master/pfelkdocker.zip
sudo apt-get install unzip
sudo unzip pfelkdocker.zip
- 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/
sudo sysctl -w vm.max_map_count=262144
sudo echo "vm.max_map_count=262144" >> /etc/sysctl.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
For pfSense uncommit line 34 and commit out line 31
For OPNsense uncommit line 31 and commit out line 34
sudo docker-compose up
Once fully running, navigate to the host ip (ex: 192.168.0.100:5601)