Skip to content

Instantly share code, notes, and snippets.

@tlyakhov
tlyakhov / 10-wancarp
Last active June 8, 2024 05:54
single-wan OpnSense HA setup. Put this file into /usr/local/etc/rc.syshook.d/carp on both primary/backup firewalls
#!/usr/local/bin/php
<?php
require_once("config.inc");
require_once("system.inc");
require_once("interfaces.inc");
require_once("util.inc");
$subsystem = !empty($argv[1]) ? $argv[1] : '';
$type = !empty($argv[2]) ? $argv[2] : '';
@tlyakhov
tlyakhov / FreeNAS Grafana.json
Created March 19, 2017 01:24
Exported Grafana dashboard for FreeNAS Server (requires cAdvisor to be set up)
{
"__inputs": [
{
"name": "DS_GRAPHITE",
"label": "Graphite",
"description": "",
"type": "datasource",
"pluginId": "graphite",
"pluginName": "Graphite"
}