diff --git a/src/etc/rc.syshook.d/carp/20-ppp b/src/etc/rc.syshook.d/carp/20-ppp new file mode 100755 index 000000000..f7a4b8532 --- /dev/null +++ b/src/etc/rc.syshook.d/carp/20-ppp @@ -0,0 +1,63 @@ +#!/usr/local/bin/php + $interface) { + if ($ppp['if'] == $interface['if']) { + log_error("{$iface} is connected to ppp interface {$ifkey} set new status {$type}"); + if ($type == 'BACKUP') { + interface_bring_down($ifkey); + } else { + interface_ppps_configure(false, $ifkey); + } + } + } + } + } +} diff --git a/src/www/system_hasync.php b/src/www/system_hasync.php index 9b3ba8304..ab949c2ba 100644 --- a/src/www/system_hasync.php +++ b/src/www/system_hasync.php @@ -35,6 +35,7 @@ $a_hasync = &config_read_array('hasync'); $checkbox_names = array( 'pfsyncenabled', 'disablepreempt', + 'disconnectppps', 'synchronizealiases', 'synchronizeauthservers', 'synchronizecerts', @@ -127,12 +128,30 @@ include("head.inc");