Skip to content

Instantly share code, notes, and snippets.

@lavacano
lavacano / 10-wancarp
Last active July 18, 2025 07:55 — forked from spali/10-wancarp
Disable WAN Interface on CARP Backup
#!/usr/local/bin/php
<?php
declare(strict_types=1);
/*
* OPNsense HA Failover Script - FINAL CORRECTED VERSION
* Makes targeted changes for WAN, Tunnels, and Services.
* Controls services that are not CARP-aware.
* Correctly handles default route on backup node.