diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml index a60a71bb24..30781a1f1f 100644 --- a/usr/local/pkg/carp_settings.xml +++ b/usr/local/pkg/carp_settings.xml @@ -166,6 +166,12 @@ foreach($ifdescrs as $descr) if($config['interfaces']['$descr']['ipaddr'] == $_POST["synchronizetoip"]) $input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location."; + if($config['virtualip']['vip']) { + foreach($config['virtualip']['vip'] as $vip) { + if($vip['subnet'] == $_POST["synchronizetoip"]) + $input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location."; + } + } /* setup carp interfaces */