Projet

Général

Profil

« Précédent | Suivant » 

Révision 80a261a2

Ajouté par PiBa-NL il y a plus de 9 ans

CARP, allow carp ip to be outside interface and alias subnets (FreeBSD10 feature)

Voir les différences:

usr/local/www/firewall_virtual_ip_edit.php
180 180
			$subnet = gen_subnetv6($parent_ip, $parent_sn);
181 181
		}
182 182

  
183
		if (isset($parent_ip) && !ip_in_subnet($_POST['subnet'], "{$subnet}/{$parent_sn}") && !ip_in_interface_alias_subnet($_POST['interface'], $_POST['subnet'])) {
184
			$cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ;
185
			$input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s.  Please add an IP alias in this subnet on this interface."),$cannot_find);
186
		}
187

  
188 183
		if ($_POST['interface'] == "lo0")
189 184
			$input_errors[] = gettext("For this type of vip localhost is not allowed.");
190 185
	} else if ($_POST['mode'] != 'ipalias' && $_POST['interface'] == "lo0")

Formats disponibles : Unified diff