summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #984 from phil-davis/masterRenato Botelho2014-03-041-8/+10
|\ | | | | Return GWG IP protocol (version) when no gateway IP
| * Return GWG IP protocol (version) when no gateway IPPhil Davis2014-02-271-8/+10
| | | | | | This is a resubmit of an older pull request I had closed. It came up again in the forum, with a user setting up a VM environment and wondering why he cannot make policy-routing rules to a gateway group. The gateway group names did not display because all his WANs were down at the time and so the existing code was too dumb to determine the IP protocol (version 4 or 6) when none of the WANs in the gateway group actually have an IP address yet.
* | Remove broken 'dynamic6' gateway, we already have ipprotocol to tell us the ↵Renato Botelho2014-03-031-6/+6
| | | | | | | | IP version, leave it more simple using only 'dynamic'. It helps #3484
* | Fix typo on var nameRenato Botelho2014-03-031-1/+1
| |
* | Small correction for clear codeErmal2014-02-281-2/+2
| |
* | Ticket #3484 Correct the case for GRE tunnels as well since they behave the ↵Ermal2014-02-281-1/+2
| | | | | | | | same. GRE seems to need the prefixlen 128 specified all the time so do it explicitly to be on safe side
* | Fixes #3484. Provide a dynamic gateway for gif v6 tunnels so it can be used ↵Ermal2014-02-281-0/+2
|/ | | | on firewall rules etc. The guide for setting up this tunnels on docs need to change to leave the gif interface as none type. People upgrading need to fix this themselves with a not on release notes. This can be fixed if the kernel condition is relaxed to allow setting the prefixlen on the tunnel as ipv4
* Gateway Monitor Advanced SettingsN0YB2014-01-241-6/+42
| | | | | | | | | Exposes 3 additional apinger configuration options in the gateway monitor advanced section which can either be set manually, calculated based on interval, or use the hard coded defaults. 1) Avg Delay Samples 2) Avg Loss Samples 3) Avg Loss Delay Samples The current hard coded defaults are okay for a short interval such as the 1 second default. But do not work well when a longer interval is required.
* Add an option to force a gateway to be down, it fixes #2847Renato Botelho2014-01-061-0/+3
|
* Fix a bug introduced in commit 06b8d43c that breaks return_gateways_array() ↵Renato Botelho2013-12-271-1/+1
| | | | called with $disabled == false
* No reason to set the same value to ipprotocolRenato Botelho2013-12-271-2/+0
|
* Add a new param to return_gateways_array and make it return gateways when ↵Renato Botelho2013-11-261-4/+8
| | | | interface doesn't exist. Default behavior didn't change. Also check the new gateway parameter (disabled) when filtering
* Fix an issue that changes wrong gateway entry when items are hiddenRenato Botelho2013-11-211-2/+4
|
* Don't flush interface cache on each call of the function when looping ↵jim-p2013-11-201-2/+4
| | | | through all gateways.
* Revert "Define dynamic gateway for GRE interfaces and do not user to define ↵Renato Botelho2013-10-291-4/+0
| | | | | | | | IP address to the interface. Fixes #3280" Another solution will be implemented This reverts commit 6721d6d0443bd7e697bd6ca33f470c801608df7e.
* Define dynamic gateway for GRE interfaces and do not user to define IP ↵Renato Botelho2013-10-291-0/+4
| | | | address to the interface. Fixes #3280
* Make return_gateways_array() return all disabled gateways when $disabled is ↵Renato Botelho2013-10-281-1/+1
| | | | true, it should fix #3291
* Bring back static routes to fix issues reported on Ticext #3179Ermal2013-09-031-0/+24
|
* Fix #3172, return_gateway_groups_array() was returning the last vip since it ↵Renato Botelho2013-09-021-3/+3
| | | | was using wrong variable name on iteration
* Ooops fix this to add only th einterfaceErmal2013-08-161-1/+1
|
* Add scope identifier to target when its link-localErmal2013-08-161-0/+2
|
* Cleanup some code that is not needed anymoreErmal2013-08-141-3/+1
|
* Force apinger to write the status file before getting gateway statusErmal2013-08-131-1/+5
|
* Reload apinger now that we can rather than restarting. Related to Ticket #3119Ermal2013-08-021-7/+10
|
* Fix #3113, fix multiple english spell errors s/seperet/separat/Renato Botelho2013-07-281-1/+1
|
* Fix #3091, fix bad var assignmentRenato Botelho2013-07-131-1/+1
|
* Resolves #2910. Make apinger write its status file just after starting so ↵Ermal2013-07-051-0/+2
| | | | that thing work as expected
* Remove referenced binary not used anymoreErmal2013-06-171-1/+1
|
* Remove unused code and spurious alertErmal2013-06-171-16/+0
|
* Use file_put_contents for simplicity and readbilityErmal2013-06-171-3/+1
|
* Replace all linklocal checks by is_linklocal()Renato Botelho2013-05-091-1/+1
|
* Fixup gwlb functions related to gw failoverPhil Davis2013-05-071-2/+2
| | | | Make apinger pass the gateway parameter both when an alarm alarms (gateway is down) and when it comes good (gateway is up). This way the downstream openvpn and dyndns code can know what happened and do sensible stuff. Return the friendly interface name ("wan", "opt1" etc) rather than the actual device name ("vr0", "vr1" etc). The openvpn and dynamic dns code that uses this needs to work with various entries in the config that all use the friendly interface name.
* ipprotocol is inet or inet6Renato Botelho2013-04-251-1/+1
|
* Take dynamic6 into consideration tooRenato Botelho2013-04-251-1/+1
|
* Deduplicate and simplify codeRenato Botelho2013-04-251-44/+12
|
* Make more strict comparison to avoid type issues when gw name only contain ↵Renato Botelho2013-04-181-1/+1
| | | | numbers. Fixes #2956
* Fix whitespace and indentRenato Botelho2013-04-181-33/+33
|
* Add default case when detecting dynamic gateway ipavandeweghe2013-04-151-0/+16
| | | Add a default to $wancfg['ipaddr'] case for both ipv4 and ipv6 to allow gateway ip to be returned rather then 'dynamic' for an openvpn connection
* Make fe80: addresses check case insensitiveRenato Botelho2013-04-141-1/+1
|
* Use apinger macros to send the gateway name for openvpn and dyndns. Ipsec ↵Ermal2013-04-121-1/+1
| | | | will reload all of it since its single process
* Provide a function to get all gateway groups a gateway is member ofErmal2013-04-121-0/+22
|
* Optimize a bit interface_gateway_group_memberErmal2013-04-121-4/+8
|
* Check if the argument is a gateway or an interfaceErmal2013-04-121-1/+1
|
* Correct code and initialize properly variables escpecially arrays. Also do ↵Ermal2013-03-261-84/+82
| | | | fixes and simplificate to make it more readble
* Correct check from previous code path simplificationErmal2013-03-261-1/+1
|
* Initialize some arrays to avoid php issues and also use list() here to avoid ↵Ermal2013-03-261-4/+6
| | | | double array dereference
* Simplify a bit code branching no change on functionalityErmal2013-03-261-31/+33
|
* Track apinger status in /var/run instead of /tmpRyan Dlugosz2013-03-201-5/+5
| | | | | | | | This is a one line status file updated every few seconds. It would be better to store this in /var/run since that is (always?) a ram disk on pfSense. Especially important on systems with flash storage. see: http://forum.pfsense.org/index.php/topic,52734.msg281834.html#msg281834
* If gatway is dynamic the type cannot be determined, trim the code trying to ↵Ermal2013-03-181-18/+11
| | | | do something impossible. While here optimize a bit
* Try to remove as much as possible _stf special case through the codeErmal2013-03-181-21/+5
|
OpenPOWER on IntegriCloud