Skip to content

Instantly share code, notes, and snippets.

View nzkiwi68's full-sized avatar

Steven Perreau nzkiwi68

  • Bright Tech Limited
  • New Zealand
View GitHub Profile
@nzkiwi68
nzkiwi68 / 10-wireguard
Last active January 10, 2024 03:06 — forked from jprenken/10-wireguard
OPNsense: Start/stop WireGuard based on single interface CARP state change (place in /usr/local/etc/rc.syshook.d/carp/)
#!/usr/local/bin/php
<?php
/*
* Copyright (C) 2004 Scott Ullrich <sullrich@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*