High Availability for dynamic PPPoE interfaces by using pfSense High Availability (CARP)
pfSense supports two different PPPoE backends:
-
Legacy
mpdbackend
In this mode, it was possible to enable HA by binding a PPPoE interface directly to a CARP VIP. -
New
if_pppoebackend (available since pfSense 2.8 / 25.07)
This backend no longer allows binding PPPoE directly to a CARP VIP, breaking HA setups.
This package restores high availability for dynamic PPPoE interfaces.
It works by listening for CARP state changes of a specified CARP VHID which represents the state the current firewall should be in and enabling or disabling the configured PPPoE interface accordingly.
If you still use legacy PPPoE (mpd backend), you can also use this package. In that case you don’t need to bind the PPPoE interface to a VIP – our package handles failover logic automatically.
- On CARP MASTER: brings the PPPoE interface(s) up (
/pfSctl -c 'interface reload <iface>') - On CARP BACKUP/INIT: brings the PPPoE interface(s) down (
ifconfig down) - GUI functionality to conveniently configure the WAN/PPPoE Interface(s) and the corresponding CARP groups
This ensures that only the current CARP master attempts the PPPoE session, avoiding duplicate sessions and ensuring clean failover.
- GUI page under Services → PPPoE High Availability
- Add rows mapping PPPoE interfaces to CARP VIPs.
-
devdintegration to receive CARP updates.
- Still calls pfSense’s native CARP actions (
pfSctl) so built-in behavior remains intact. - One-shot reconcile command to sync PPPoE state with current CARP state after boot or install.
- Logs actions to syslog.
Installed components:
- GUI definition:
/usr/local/pkg/pppoe_ha.xml - GUI helper:
/usr/local/pkg/pppoe_ha.inc - Event handler:
/usr/local/sbin/pppoe_ha_event.php(+ launcher/usr/local/sbin/pppoe_ha_event) devdrules:/usr/local/etc/devd/pppoe_ha.conf(priority 200)- Optional GUI registration helper:
/usr/local/sbin/pppoe_ha_register_gui
Workflow:
- CARP changes state (
MASTER,BACKUP,INIT) devdtriggers/usr/local/sbin/pppoe_ha_event carp <subsystem> <state>- Script finds matching PPPoE mappings in your config
- Interface is brought up or down as needed
#current version 0.1.1
# remove package if already installed
pkg delete -y pfSense-pkg-pppoe-ha-<version>
# build from source (run in repo root)
pkg create -m metadata -r stage -p pkg-plist -o .
# install generated pkg
pkg add ./pfSense-pkg-pppoe-ha-<version>.pkg