summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/gwlb.inc
Commit message (Collapse)AuthorAgeFilesLines
* Do not run the dpinger when the IPv6 address has the tentative flag even ↵Luiz Souza2017-08-111-2/+6
| | | | after the timeout.
* Issue #7659 foreach warning on adding gatewayPhil Davis2017-06-251-6/+8
| | | | Signed-off-by: Phil Davis <phil@jankaritech.com>
* Merge pull request #3700 from phil-davis/ifgwaddRenato Botelho2017-04-201-2/+473
|\
| * Simplify indexing of gateways arrayPhil Davis2017-04-201-5/+1
| |
| * Remove obsolete isAjax array key handlingPhil Davis2017-04-181-1/+1
| |
| * Validate gateway and interface togetherPhil Davis2017-04-181-11/+20
| |
| * Refactor gateway savePhil Davis2017-04-171-2/+146
| |
| * Refactor gateway parameter validationPhil Davis2017-04-171-2/+324
| |
* | Refactor get_configured_interface_with_descr remove unused parameterPhil Davis2017-04-161-1/+1
|/
* Fix incorrect sorting for various dropdown lists.Chris Rowe2017-02-121-0/+3
|
* Wait while interface is in 'tentative' state before try to bind dpinger to ↵Renato Botelho2017-01-171-0/+6
| | | | its address
* Correctly report unmonitored gateway statusPhil Davis2017-01-051-0/+2
| | | | | | | | | | | | If an alternate monitor IP has been entered and saved, then the user checks "Disable Gateway Monitoring" and saves, the alternate monitor IP is retained in the config - that is handy for when unchecking "Disable Gateway Monitoring" later on. But the Gateways widget and Status Gateways do not correctly understand this combination. The gateway status shows as "Online" when it is intended to show "Online (unmonitored)". This PR corrects this.
* Add a function to format and return plain text output showing the gateway ↵jim-p2016-12-281-0/+43
| | | | status, for use by a shell script and status.php. Ticket #7046
* Add a gateway state plugin hook.Luiz Otavio O Souza2016-12-091-0/+8
| | | | Pull Request #3093
* Feature #3151 Disable gateway monitoring actionsPhil Davis2016-12-071-9/+28
| | | | | | | | | | | | | | | | without disabling gateway monitoring. This allows the user to continue to monitor the gateway with dpinger, so they can see how it is performing, but for the system not to take any real action if the latency/loss exceeds the given limits. A typical use case for this would be on a single-WAN system. There is no failover option, so there is no point taking any real action when the latency/loss is high. Having stuff try to failover (and stop/start stuff...) is just disruptive. In ths case the use could have disabled monitoring completely, but then they get no feedback abut gateway performance.
* Add missing L2TP from this gateway handling case. Fixes #6980jim-p2016-12-021-0/+1
|
* Fix #6828Renato Botelho2016-10-181-10/+8
| | | | | | | | Until 2.3.x pfSense carried a patch that changed the behavior of 'route change' command, making it add the route when it fails to change. On 2.4 this patch was removed and will not be added back. This change adjust PHP code to deal with route add / change and make it work without the patch
* Make unlink_if_exists return true/falsePhil Davis2016-10-131-2/+1
| | | | | | | | | | | | | | | | This allows the caller to do a single "atomic" call to unlink_if_exists. If it returns true, then they know that the file existed and that it has been unlinked successfully. This should help avoid race conditions where multiple code paths try sequences like: if (file_exists("somefile") { unlink("somefile"); do_other_stuff(); } in the case where we really only want do_other_stuff() to happen for the code path that is the first one to actually unlink the file.
* Improve gwlb.inc notification mechanismsNewEraCracker2016-10-121-10/+10
| | | | | | 1) Unlink earlier to reduce the chances of any concurrency issues; 2) Translate and improve output of available notification; 3) While I'm here, fix whitespace and improve PHP syntax.
* Move copyright from ESF to NetgateRenato Botelho2016-09-061-1/+1
|
* dpinger: fixed check for pidfile length #6505Daniel Hoffend2016-07-241-1/+1
|
* Move to Apache License 2.0Renato Botelho2016-07-151-41/+9
|
* Review license / copyright on all files (final round)Renato Botelho2016-07-151-1/+1
|
* Review license / copyright on all files (1st round)Renato Botelho2016-07-141-49/+50
|
* Merge pull request #2847 from jazzl0ver/patch-1Chris Buechler2016-07-121-3/+15
|\
| * notify by email and in syslog when a channel goes up or downjazzl0ver2016-04-061-3/+15
| |
* | Shorten gwifip if whole socket path exceeds 100 charsDaniel Hoffend2016-06-291-4/+10
| | | | | | | | | | | | | | | | | | | | | | dpinger stopps with an error when the socketname exceeds over (around) 100 characters. The dpinger will not start and not deliver monitoring results to the WebUI. These long socket names can get created when using link-local addresses and long gateway names / interface scopes. See Ticket 6505
* | Use a different delimiter for dpinger socket namesDaniel Hoffend2016-06-291-5/+5
| | | | | | | | | | | | | | Currently underscores are used to seperate gwifip, monitorip, etc, but underscors are also used in vlan subinterfaces like em0_vlan10 and therefore can't be used because the interface scope is appended to IPv6 link-local addresses.
* | Fix scope for IPv6 link local gateway IPs. Ticket #6353Chris Buechler2016-05-131-1/+1
| |
* | Handle link local IPv6 gateways and default gateway switching correctly. ↵Chris Buechler2016-05-131-0/+11
| | | | | | | | Ticket #6258
* | Put gateway name and group around the correct wayPhil Davis2016-04-131-3/+3
|/ | | | | Redmine #6134 Forum: https://forum.pfsense.org/index.php?topic=109781.0 Originally broken by commit: https://github.com/pfsense/pfsense/commit/d18f3f6e09b86359395cd78db2e19f721818b992
* Fix display of gateway IP address and gateway/group descriptions in ↵jim-p2016-03-231-0/+1
| | | | firewall_rules_edit.php.
* Adjust default parameters to match changes in dpingerDenny Page2016-03-031-3/+3
|
* Fix a typo.Luiz Otavio O Souza2016-02-241-1/+1
|
* Merge pull request #2660 from phil-davis/gtetc1Renato Botelho2016-02-171-12/+11
|\
| * Internationalize etc inc a-i filesPhil Davis2016-02-171-12/+11
| |
* | Fix interface write_config message for ↵Phil Davis2016-02-151-1/+1
|/ | | | | dhclient_update_gateway_groups_defaultroute Typo in var name.
* Fix style issues.Chris Buechler2016-02-091-3/+6
|
* Review of CARP uniqid changes.Luiz Otavio O Souza2016-02-091-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that current CARP implementation is not much different from an IP alias. This commit converts the IP alias to also use the CARP uniqid scheme, this simplify the code in all other places because now we have only two different cases to deal with: - A friendly interface name (lan, wan, opt1, etc.); - A Virtual IP - VIP alias (_vip{$uniqid}) - CARP or IP Alias. The parent of a CARP is always a friendly interface. The parent of an IP alias can be a friendly interface or a CARP (this is the only case of recursion of a VIP). This commit removes a few cases where CARP were still considered a interface (the old CARP implementation), fixes all the wrong cases of strpos() being used to detect a VIP address (wont work as it returns '0' which fails when tested as 'TRUE'), review the usage of CARP and IP alias as services bind addresses, fixes general issues of adding and editing VIP addresses. The following subsystems were affected by this changes: - IPSEC; - OpenVPN; - dnsmasq; - NTP; - gateways and gateway groups; - IPv6 RA; - GRE interfaces; - CARP status; - Referrer authentication. Fixes (and/or revisit) the following tickets: - Ticket #3257 - Ticket #3716 - Ticket #4450 - Ticket #4858 - Ticket #5441 - Ticket #5442 - Ticket #5500 - Ticket #5783 - Ticket #5844
* Return blank rather than 0ms/0% for unmonitored gateways latency and loss. ↵Chris Buechler2016-02-041-2/+2
| | | | Show on dashboard widget when a gateway is unmonitored. Ticket #2226
* Fix #5830Renato Botelho2016-02-041-1/+8
| | | | | Add a new advanced option on gateways to allow user define data payload. Default is 0
* Add standard deviation to gateway status and widgetDenny Page2016-01-181-0/+1
|
* Update license on files from /etc/incRenato Botelho2016-01-151-16/+40
|
* Adjust dpinger default values to match recent changes in dpinger projectRenato Botelho2016-01-041-2/+2
|
* Remove workaround to get dpinger running when interface is in tentative stateRenato Botelho2015-12-301-20/+2
|
* Make sure source and target addresses have scope id when they are ↵Renato Botelho2015-12-291-23/+15
| | | | link-local. It should fix #5695
* Add a seatbelt to prevent 2 dpinger instances for same GWRenato Botelho2015-12-291-0/+3
|
* Collect dpinger processes that failed to start and try again after 1 second, ↵Renato Botelho2015-12-291-2/+25
| | | | this should be enough to fix #5711
* No need to return 0 hereRenato Botelho2015-12-291-1/+1
|
* Change start_dpinger() to return dpinger return codeRenato Botelho2015-12-291-1/+2
|
OpenPOWER on IntegriCloud