summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-05-01 21:44:33 +0200
committerErmal LUÇI <eri@pfsense.org>2015-05-01 21:44:46 +0200
commit3a09e0d96e63e5a8fafcad9199ab2c1d657d68b9 (patch)
tree442881faa6c167efa97198485c5f3fa0c1259bfd /usr/local/www/firewall_virtual_ip.php
parentf539af7623f85222cc04e41e39b1d90f415c6611 (diff)
downloadpfsense-3a09e0d96e63e5a8fafcad9199ab2c1d657d68b9.zip
pfsense-3a09e0d96e63e5a8fafcad9199ab2c1d657d68b9.tar.gz
Fixes #4633 Enable carp packets to flow on the first carp interface creation. This is needed only when the system is booted up without any carp vip configured
Diffstat (limited to 'usr/local/www/firewall_virtual_ip.php')
-rw-r--r--usr/local/www/firewall_virtual_ip.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php
index dfa2c41..0fe725f 100644
--- a/usr/local/www/firewall_virtual_ip.php
+++ b/usr/local/www/firewall_virtual_ip.php
@@ -63,6 +63,7 @@ if ($_POST) {
$pconfig = $_POST;
if ($_POST['apply']) {
+ $check_carp = false;
if (file_exists("{$g['tmp_path']}/.firewall_virtual_ip.apply")) {
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.firewall_virtual_ip.apply"));
foreach ($toapplylist as $vid => $ovip) {
@@ -77,6 +78,7 @@ if ($_POST) {
interface_proxyarp_configure($a_vip[$vid]['interface']);
break;
case "carp":
+ $check_carp = true;
interface_carp_configure($a_vip[$vid]);
break;
default:
@@ -86,6 +88,10 @@ if ($_POST) {
}
@unlink("{$g['tmp_path']}/.firewall_virtual_ip.apply");
}
+ /* Before changing check #4633 */
+ if ($check_carp === true && !get_carp_status())
+ set_single_sysctl("net.inet.carp.allow", "1");
+
$retval = 0;
$retval |= filter_configure();
$savemsg = get_std_save_message($retval);
OpenPOWER on IntegriCloud