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:33 +0200
commit6e4c8e92f8f0407468eccb4c76f4f5affc598d1d (patch)
tree15c28ce889b25a73008839df05af408d7c36ea7e /usr/local/www/firewall_virtual_ip.php
parent6a15be3fb17980e9328bbfc94b0c1adb737314a0 (diff)
downloadpfsense-6e4c8e92f8f0407468eccb4c76f4f5affc598d1d.zip
pfsense-6e4c8e92f8f0407468eccb4c76f4f5affc598d1d.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