Skip to content

Instantly share code, notes, and snippets.

{
"service": {
"nat": {
"rule": {
"1001": {
"description": "Policy DNAT: Force DNS request to PiHole",
"destination": {
"port": "53"
},
"inbound-interface": "eth1",
#!/bin/sh
## This script helps install the parser
##
## It checks if it's already installed
## and removes "old version" files
## It may spit out errors such as
## File does not exist
##
## It also sets the variable for the installation
@PranavMaddula
PranavMaddula / snmp-agent-setup.sh
Last active August 28, 2015 08:08 — forked from d-a-n/observium_agent_setup.sh
Observium Agent Setup Guide
# CONFIG
SYSLOCATION=
SNMP_COMMUNITY=maddula
SYSCONTACT=hello@maddula.net
# get packages
apt-get install snmpd
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
cat >/etc/snmp/snmpd.conf <<EOL