diff options
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index e62fbc6..e85488d 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -170,6 +170,10 @@ if ($_POST) { $vipent['subnet'] = $_POST['subnet']; } + /* force a netmask of /32 for carp ip's */ + if ($vipent['type'] == "carp") + $vipent['subnet_bits'] = "32"; + if (isset($id) && $a_vip[$id]) { /* modify all virtual IP rules with this address */ for ($i = 0; isset($config['nat']['rule'][$i]); $i++) { @@ -183,8 +187,7 @@ if ($_POST) { touch($d_vipconfdirty_path); /* setup carp interfaces */ - interfaces_carp_configure(); - interfaces_carp_bring_up_final(); + reset_carp(); write_config(); |