Revision b32ea59d
Added by Renato Botelho over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1858 | 1858 |
if (is_ipaddr($pfsyncpeerip)) |
1859 | 1859 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} syncpeer {$pfsyncpeerip} up", false); |
1860 | 1860 |
else |
1861 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} up", false); |
|
1861 |
mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} -syncpeer up", false);
|
|
1862 | 1862 |
|
1863 | 1863 |
sleep(1); |
1864 | 1864 |
|
... | ... | |
1873 | 1873 |
} |
1874 | 1874 |
log_error("pfsync done in $i seconds."); |
1875 | 1875 |
log_error("Configuring CARP settings finalize..."); |
1876 |
} else { |
|
1877 |
mwexec("/sbin/ifconfig pfsync0 -syncdev -syncpeer", false); |
|
1876 | 1878 |
} |
1877 | 1879 |
|
1878 | 1880 |
if($config['virtualip']['vip']) |
usr/local/www/system_hasync.php | ||
---|---|---|
77 | 77 |
$a_hasync['username'] = $pconfig['username']; |
78 | 78 |
$a_hasync['password'] = $pconfig['password']; |
79 | 79 |
write_config("Updated High Availability Sync configuration"); |
80 |
interfaces_carp_setup(); |
|
80 | 81 |
header("Location: system_hasync.php"); |
81 | 82 |
exit(); |
82 | 83 |
} |
Also available in: Unified diff
Fixes on HA setup:
- Configure pfsync when configuration is changed
- Disable pfsync when it's disabled on GUI
- Remove syncpeer and back it to default multicast address when it's
removed from conf
Fixes #2491