Due to the DHCP pool tag needing to be an array, rename the old LB "pool" variable to something else so it's not interpreted as an array.
allow port in virtual servers to be left blank
in which case listening port would be inherited from the pool
allow aliases for the ipaddr field in virtual servers (PEV-394754)
Replace is_function with function_exists
work around a redeclaration error.
i'm going to start a discussion about making sure all require() callsbecome require_once() calls but until then i have to fix this.
use existing filter_expand_alias (well, via a wrapper) instead ofreinventing it
Load Balancer: allow port aliases in Pools and Virtual Servers. (PEV-394754)
load balancer: allow IPv4 subnets up to 64 addresses in Pools and Virtual Servers (PEV-394754)
minor changes
- aggh hard tab in a string- aggh brackets in case clauses
normalize indentation.
Ticket #2205 - Add prefork setting
Ticket #2205 - Add input validation, keep same logic as 2.0.1 and abore for default values
Ticket #2205 - Main logic for relayd global settings screen, still need to add stuff (input validation, etc) before closing ticket
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.Replacing it surpresses all the warnings
Relayd expects send/expect arguments to be quoted strings. (And expect must be a pattern, not just a partial string)
Show session detail in Virtual Server status
Add relayd to Status > Services and widget. Add capability to kill when restarting instead of a simple reload. Implements #1913
Fixup relayd to handle DNS load balancing as well as standard TCP load balancing.
In upgrade code for server load balancing, set redirect_mode. Also in the backend code, assume redirect_mode as the default if it's not set.
Timeout is either a global option and/or a table stanza option. For now made it a global option.For the future each pool should probably have a configurable timeout.
Some more whitespace fixes.
Use correct config variable and fix some whitespaces.
Resolves #1486. When sticky option is selected under advanced->misc honor it even in the relayd.conf setting.
Backend support for the retry parameter.
Move some lb status parsing functions to a common area so they can be reused by the widget.
Fix path for relayctl. Fixes #739
only reload if relayd is already running, don't kill and then start it
fix some of the logging for load balancer, still partially broken
couple load balancer fixes, resolves #723
Prevent bootup code from dying on empty load_balancer arrays
Rework includes/require. This saves about 4 megabytes.Simplify get_memory(). Tested on mips/i386
Do not write out <sitedown></sitedown> if the Fall Back Pool is set to none.. Simply unset() it.
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions
Do not include things just for being able too. Reduce a it to only config.inc
Only attempt starting relayd when the vs array is not empty
oops, changed a line in testing, revert
Comment code on why primary pools port is in use - the front end shouldprobably only show fallback pools with the same port, but that will bedifficult if not impossible to put in place until we have a better AJAXframework in place.
Only print out protocols that have actions assigned
Fix generation of protocol line
No need to use a reference to the array, if it doesn't exist alreadythis tends to make it exist the next time a write_config() occurswhich is now happening during bootup thanks to OpenVPN...yay! ;)
Bring in relay options for inbound load balancerMore work pending, this seems to generate proper configsneeds much more testing though
Ooops, remove leftover debug code
oh how I hate thee php array
add comment with an XXX to remind me to fix
Raise the timeout value to 1 second on checks, setting a global timeout doesno good. See http://readlist.com/lists/openbsd.org/misc/15/78304.htmlmany thanks to Alex Volkov who pointed me to this thread
allow relayd to actually restartsitedown isn't required, but may still be set to nothing, don't write outa bogus config line in this situation
pkill relayd instead of using relayctl due to it losing the control connection (or whatever it is)
Bring in relayd to perform server load balancingMove gateway load balancing code into gwlb.inc - still uses slbd
TODO: vs and pool status screens are currently broken...and wouldn't work with the gateway pools anyway, ultimately, the gateway pools need...
Correct is_array() check.
Suggested-by: Bill M
Check for array type before foreach()
Reminded-by: Ryan Wagoner/Seth Mos
Do not foreach through an item that does not exist
Unlink pool file only if it exists
Remove load balancer pool status file when we reconfigure a pool.
Sleep for 2 seconds between restarting slbd
Handle a very unique edge case when using load balancing plus a dhcp wan. If the DHCP wan goes down, then when we add back the route freebsd will simply prefer the working wan.
This code is tested for outbound load balancing on a carp cluster and...
backout last commit
Reload filter on boot.
MFC 11474kill slbd if there are no pools or virtual servers
MFC ougoing lb monitoring fixes
Counter from 1, not 0. Slbd no likie.
MFC from head.Atleast the code that I wrote prior was pretty much the same.
Commit updated file for inspection
Add ping support. Not tested, not mother approved.
We're in 2006 now, toto
Add round-robin method
Ticket #626
Woops! Use correct field.
Add and honour sitedown slbd field
Only iterate through item if its an array
Allow SLBD to start.
add poolname
$Id -> $Id$
missing paren
only start slbd if we have a load balancer array w/ pools
Change polling interval
Tie load balance front end into the slbd daemon