Skip to content

Instantly share code, notes, and snippets.

Tokugero / Step1.png
Last active Aug 8, 2019
How to see your inventory in
View Example ansible
- hosts: virtuals
become: yes
become_user: root
become_method: su
- name: Install sudo
name: sudo
state: present
View SampleHAProxy
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
#! bin/python
import json
from datetime import datetime,date
#open report to memory (look for date today)
filename = str(".json"
dbRaw = open("db/"+filename, "r")
dbLines = dbRaw.readlines()
db = json.loads(dbLines[0])
Tokugero /
Last active Dec 8, 2021
Telegraf with pfSense 2.4.4 and pfBlockerNG

How to Install Telegraf logparser for pfBlockerNG

On pfSense

Step 1: Install pfBlockerNg-devel

System > Package Manager > Available Packages > pfBlockerNG-devel (As of this writing this was 2.2.5_19) (Optional, run the /usr/local/bin/ script)

[2.4.4-RELEASE][root@pfSense.lab]/root: /usr/local/bin/
Fetching GeoIP.dat and GeoIPv6.dat...
/usr/local/share/GeoIP/GeoIPupdate.VOmIvG/GeoI100% of  694 kB 6683 kBps 00m00s
/usr/local/share/GeoIP/GeoIPupdate.TeBBKT/GeoI100% of 1171 kB 6629 kBps 00m00s
View gist:75f29a9594809bca96b30e387528d2db
import csv
import os
import re
# Put this code inside the directory you want to fix tabs
spaces1 = " "
spaces2 = " "
spaces3 = " "
spaces4 = " "