Commit Graph

140 Commits

Author SHA1 Message Date
Chris Buechler
bc395b180b Remove array_intersect_key here too, definitely not needed. add to obsoletedfiles 2015-04-04 00:23:09 -05:00
Renato Botelho
934c88ee95 Proper fix #4443, do not unset carp entry when content differ, also set correct real interface and use subnet to check IP protocol 2015-03-11 20:51:46 -03:00
Renato Botelho
c8a4eb4056 Save vip interface and subnet to use to delete old vips from secondary nodes. Fixes #4446 2015-03-11 16:02:59 -03:00
Renato Botelho
b01d44a3f3 Revert "Use a consistent variable name here. related to Ticket #4446"
This reverts commit 0e7954b8a3.
2015-03-11 16:02:59 -03:00
Chris Buechler
0e7954b8a3 Use a consistent variable name here. related to Ticket #4446 2015-03-10 19:00:06 -05:00
Ermal LUÇI
457d9c3275 Fixes #4446 Correct ipalias removal on top of carp during configuration sync. 2015-03-09 18:52:13 +01:00
Phil Davis
6317d31dfc Fix lineup of copyright lines
and module names and other bits of formatting and typos in header
comment sections.
2015-01-01 10:13:14 -02:00
Renato Botelho
d961e7e33e Welcome 2015 2014-12-31 16:22:27 -02:00
Renato Botelho
ef6f553dd9 Move this check before full sync to disable dnsmasq/unbound in the first time it's sync'd 2014-12-26 12:21:51 -02:00
Renato Botelho
4469379c20 Add dnsmasq and unbound config sections to full sync, it fixes #4076 that is caused because boolean config fields are not disabled on secondary 2014-12-26 12:21:49 -02:00
Renato Botelho
73041230a7 Add DNS Resolver to the list of services to be sync'd on HA, make sure it and DNS Forwarder are not enabled simultaneously. It fixes #4067 2014-12-15 17:18:59 -02:00
Ermal LUÇI
e3cffd6cef Properly remove IPv6 carp vips as reported from https://forum.pfsense.org/index.php?topic=84392.0 2014-11-21 11:20:46 +01:00
Jim Thompson
dd447bde2b modify copyright statement to reflect reality 2014-11-10 22:49:50 -06:00
Ermal
8ff85c397c rename interfaces_carp_setup to interfaces_sync_setup and call it during bootup since it does not only relate to carp interfaces. 2014-10-15 01:39:56 +02:00
Renato Botelho
846dc21c3d Fix operator 2014-09-10 15:39:01 -03:00
Renato Botelho
85b3c59786 Do not reconfigure dhcpd twice on secondary after config sync. Fixes #3797 2014-08-29 14:30:38 -03:00
Phil Davis
bbceec685f Use function_exists test 2014-05-11 16:34:30 -07:00
Phil Davis
7553877692 Use require_once in more places 2014-05-09 06:12:03 -07:00
Warren Baker
d1116f3b4d Ensure config is global here 2014-04-28 22:12:53 +02:00
Warren Baker
137460a706 Ensure to reconfigure Unbound for filter configuration on XMLRPC 2014-04-28 22:12:16 +02:00
Ermal
7238e0cfc8 Remove references to _vip interface and provide proper configuration for carp on FreeBSD 10. Still some places to deal with this and certainly missing upgrade code 2013-11-28 18:36:18 +00:00
jim-p
611f2910bd Make sure to account for IP aliases on lo0 here, or they get duplicated on each CARP sync 2013-09-11 14:33:17 -04:00
jim-p
f6339216b7 s/require/require_once/g for filter.inc to avoid redeclaration errors in some rare cases. 2013-08-28 13:54:30 -04:00
Ermal
174a331e19 Also take dhcpv6 into consideration even here. 2013-08-15 09:02:34 +00:00
Ermal
fb0eb20bb9 Actually do not allow the loop to continue. Related to Ticket #1928 2013-06-12 17:46:12 +00:00
Renato Botelho
c4bd43ccba Copy full dhcpd conf from master to slave. Fixes #2600 2013-02-22 14:22:40 -03:00
Renato Botelho
d026178fa6 Make sure we create / delete SPDs and SADs on secondary node when it changes on primary. Fixes #2303 2013-02-22 11:56:34 -03:00
Renato Botelho
a1fb7d61c4 Fully sync filter and nat sections. Fixes #2362 2013-02-13 17:19:52 -02:00
Ermal
c87f4b7092 Fixes #1928. Disallow sync loop only for certain types of calls but not for exec_[php|shell]. Also fix CARP loop detection to use correct variable 2013-01-30 10:57:00 +00:00
Renato Botelho
3dacbd7c6d Remove a couple of call-time pass-by-reference for interface_ipalias_configure() 2013-01-14 11:38:12 -02:00
Ermal
3e662cb0b2 Get rid of carpdev, it will never be 2012-06-07 08:51:16 +00:00
Ermal
7b47bd4c3c Make vips vhid be unique per parent interface! 2012-04-05 20:22:01 +00:00
Darren Embry
f97a5b0419 Move CARP settings from pkg XML to a real PHP page
https://redmine.pfsense.org/issues/647
2012-03-22 21:25:58 -04:00
jim-p
1b99e1e53a Some sections should just be copied and not merged or we end up unable to sync the deletion of the last item in a section. 2011-12-12 14:49:02 -05:00
Scott Ullrich
3dd2a27826 Log when XMLRPC auth fails so that the brute force lockout will kick in. 2011-08-28 13:06:42 -04:00
Ermal
2708a5cf16 NEw functiong does_vip_exist() which works for carp and ipalias type vips to help in carp sync issues. Fixes #1598 2011-06-14 11:36:20 +00:00
Ermal
63f81fbd88 Do not assume that every merge is about vips. Found-by: Jim 2011-06-13 18:16:03 +00:00
Ermal
19ed162443 unset after checking that no reconfiguring is needed. 2011-06-13 15:04:59 +00:00
Ermal
92ca32ccbe Actually make this code more readble. 2011-06-08 18:22:04 +00:00
Ermal
d1e0382258 Remove the entry from old entries even when there are no changes to prevent marking them down. 2011-06-08 18:21:00 +00:00
Ermal
7fc6c00573 Generate proper index for unsetting so we do not destroy all the vips in the backup. 2011-06-08 07:29:33 +00:00
Scott Ullrich
f9d7c5b3c4 Use array_overlay() 2011-05-31 14:42:22 -04:00
Scott Ullrich
0b581a8acf Use array_extend 2011-05-31 14:28:13 -04:00
Scott Ullrich
485b1ca5ce Remove debugging code 2011-05-31 13:47:53 -04:00
Scott Ullrich
db748384c1 Add merge handler code 2011-05-31 13:45:16 -04:00
jim-p
aa6699fbea Fix config sync issue. Resolves #1547 Fixed-by: Ermal 2011-05-20 10:27:29 -04:00
Ermal
c415a55bd3 Micro optimization. 2011-05-18 21:56:13 +00:00
Ermal
f51d4f989e Ticket #1534, #1433. Remove custom sync code for vip, since it array_merge() replaces same keys data when merging. But make the code for reloading only changed vips after merge better and some more checks. 2011-05-18 21:31:35 +00:00
Ermal
516114406b Ticket #1534, #1433. Properly merge carp interfaces and do not reload carp interfaces that have not change any configuration parameter. Also make merge_config_section_xmlrpc() an alias for restore_config_section_xmlrpc() since that what it is. 2011-05-18 21:11:10 +00:00
Ermal
67d78c87c9 Ticket #1534. Serialize all the xmlrpc requests coming to the firewall. Seems such request can stomp into each other and create either corruption of xmlrpc request or other issues. 2011-05-17 21:18:33 +00:00