Remove newline
Remove second %
Be consistent on % for loss state.
Catch up with php limits.
Show some sensible defaults for delay and loss.
Reorganize code to be able to actually use the lookup_gateway_ip_by_name() function to find even dynamic gateways ip.
Return the gateway status only for gateways apinger knows about instead of assuming that all gateways are down, which might give consecuences. Also prepend 'filter_' to the function used to kill states for down gateways in filter.inc to be consistent.
Ups remove erroneous curly.
Actually return to previous function code for lookup_gateway_ip_by_name() to not create recursive loops. There is still the question of how dynamic interfaces should be handled here?
Revert "Use a global array for the most part of using the return_gateways_array() function in the backend which should lower the memory allocated/cached by php a lot."
This reverts commit e51cf5960f6718a14c07daa7b6e96337fdba1f0e.
Use a global array for the most part of using the return_gateways_array() function in the backend which should lower the memory allocated/cached by php a lot.
Remove unecessary check.
Do not duplicate gateway entries when status file is not present. Mostly an innocuos programmer error.
Fixes #536. More fixes and optimizations on the various functions and status pages used for gateways [groups].
Fixes #536. More fixes and optimizations on the various functions used for gateways [groups].
Fixes #536. Actually add all available gateways to the gateway_groups array so all up members will be present for balancing.
Add myself to copyright for gwlb file.
Preserve previous behaviour of having all alarms on for all gateways. Not sure this should be/is the right behaviour though.
Move the settings of down/latency/loss to per gateway. This allows more fine grained control on gateways.
Correct delay matching on outgoing load balancer code.
Catch up with latest apinger changes to make easier to extract the status of gateways.
Remove check that prevented bugs from happening. Now all code paths are safe from this.
Ticket #506. Correctly save dynamic gateways extra parameters.
Actually minimum weight is 1.
Allow for each gateway a weight to be choosen if the gateway has to be used in Gateway groups. This will create that many entries in the route-to statement as the weight says.
Ticket #507. Do not remove all static routes to readd them back. The change will never delete a rule but define the action to be taken on it, either add or change a present route. Be consinstent on gateways allowed to be selected as destinations for static routes, including dynamic gateways.
temporary work around for ticket #536
Use stristr as a microoptimization.
Be more strict on validations.
Fixed variable definition.
Ticket #304. Fix bogus dynamic entries in system->gateways after deleting gateways.
Revert "Fix linking interface to vlans function so it works correctly."
This reverts commit 930595154ccc8702befdd880f1c424b78040af2a.
Fix linking interface to vlans function so it works correctly.
Ticket #303. Fix very many bugs in this code. From strings that were not quoted propperly to completely broken code paths.
Ticket #305. Grey out the gateway when it is a dynamic one.
Make sure to properly use the configured monitor IP address for dynamic interfaces too.
Style fixes for the interfaces page, use switch instead of a large if,elseif procedure.Fix the monitor IP route adding and removing to skip non IP addresses and dynamic entriesAdd a Gateway item on the gateway_item stack so that it properly shows up in th configuration. Static configurations will need to...
Make sure to use the correct dummy IP address for the monitor for dynamic interfaces
Partial rewrite of gateway code, now partially facilitates dynamic interfaces- Upgrade code takes different naming into account- Add gateway entries for dynamic interfaces- Rewrite status array to also support dynamic interfaces.- Always use unique localhost monitor IP addresses for down dynamic interfaces...
Clarify the description for Dynamic gateways that it is automatically added
Resolves #175. Return description even for disabled interfaces. Teach the return_gateways_array() to return status for disabled interfaces if the caller requests it.
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions
Send gateway notifications to GROWL
Supress foreach warning on empty array()
Correct swapped values
Fix the function that checks if a link is to be included or excluded.Multiple alarms can be returned which requires different parsing.Scott will test this
Specify complete path to touch to avoid: apinger: command (touch /tmp/filter_dirty) exited with status: 1
Make sure to handle a empty settings array correctly
Update gateway group gateway IP for dhcp interface wan interfaces.
Also show for through gateway we are adding the new monitor.
Add log_error() when removing a route for a monitor IP when running setup_gateways_monitor();
Add code to the backend so that apinger will use the configured high and low watermarks for latency and packetloss.
Make sure we don't add any routes for the 127.0.0.2 dummy address
Make sure to sort the tiers array by tier priority key
fix return of gateway interface for route-to
Another try at fixing http://forum.pfsense.org/index.php/topic,14220.0.html
Remove debugging
Commit function that returns all gateway group items in a array after processing.The items from this array can then be directly reference from the filter code.
Untested but correct way to work with interfaces.
Untested change, exec.php is broken.Might work and prevent bogus gateway entries showing up.
Add more debugging to trace the pppoe problems.
Add debug statement for pppoe and pptp issue with dynamic gateways.Perhaps it returns without a trim()
Reverse name fields to be compatible with current graph frontend
Create RRD file for each gateway name, not the gateway address which can change a lot or be plainbogus.
Set permissions correctly so apinger can write the rrd files
Correctly process static gateway entries which have a label and not a IP.
Pick monitor IP from the interface config section
Include more information in the array including a attribute flag.The attribute is either "system" or the gateway array id.
Correct typo to prevent gateways showing up twice.Fetch monitor IP for automatic gateways from the interface config section
Require globals.inc
Mute killall output
Do a better job of detecting existing configured gateways
Fix existing static gateway check.
Fix adding static entries to array.Skip static entries from polluting the dynamic array
swap fields, make pretty
correct name, add descr
Add backend for dynamic interfaces, ui pages next
Filter_configure takes too long to run on embedded and this seems toupset apinger?
Correct mode setting to correct permissions in octal mode
Remove sleepMake sure our tmp has the correct permission so we can trigger filterreloads.
Commit forgotten change so we use the proper script for filter reloads.Maybe failover works now :)
Eliminate very annoying message on bootup "No process found".
NOTE: this is only half part of the changes the other half will come after
Move gateway status and monitoring over to gwlb.inc.Still needs a return_gateway_status_by_name();
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...