Skip to content

Instantly share code, notes, and snippets.

View edward-scroop's full-sized avatar

Edward Scroop edward-scroop

  • Perth, Australia
View GitHub Profile
@edward-scroop
edward-scroop / 10-wancarp
Last active November 13, 2024 05:26 — forked from tlyakhov/10-wancarp
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] : '';