Project

General

Profile

Actions

Feature #5533

closed

CARP /31 support

Added by Olivier GUENET about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
CARP
Target version:
Start date:
11/24/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

Description

Hi, we encountered problem when we configured an /31 IP CARP address, but it usually used for Router Interconnections.

In this configuration, there isn't network or broadcast ip address, so I have edited the firewall_virtual_ip_edit.php :

/* ipalias and carp should not use network or broadcast address */
if ($_POST['mode'] "ipalias" || $_POST['mode'] "carp") {
if (is_ipaddrv4($_POST['subnet']) && $_POST['subnet_bits'] != "32" && $_POST['subnet_bits'] != "31") {
$network_addr = gen_subnet($_POST['subnet'], $_POST['subnet_bits']);
$broadcast_addr = gen_subnet_max($_POST['subnet'], $_POST['subnet_bits']);
} else if (is_ipaddrv6($_POST['subnet']) && $_POST['subnet_bits'] != "128" ) {
$network_addr = gen_subnetv6($_POST['subnet'], $_POST['subnet_bits']);
$broadcast_addr = gen_subnetv6_max($_POST['subnet'], $_POST['subnet_bits']);
}
if (isset($network_addr) && $_POST['subnet'] == $network_addr)
$input_errors[] = gettext("You cannot use the network address for this VIP");
else if (isset($broadcast_addr) && $_POST['subnet'] == $broadcast_addr)
$input_errors[] = gettext("You cannot use the broadcast address for this VIP");
}

Is it possible to integer this modification for the newers releases please?

Thanks,

Olivier

Actions

Also available in: Atom PDF