summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Just set defaultgw after all gateways are processed, it fixes ↵Renato Botelho2013-02-271-18/+21
| | | | return_gateways_array()
* This message can be really spammy on a failure if you have multiple gateway ↵jim-p2013-02-061-1/+1
| | | | | | groups. Disable e-mail notification of this message for now. If the e-mail actually made it out, at least one of the gateways must still be up...
* If the user has IPv6 disabled, don't create dynamic IPv6 gateways.jim-p2013-02-051-0/+4
|
* Only allow gateways of the appropriate type (ipv4 or ipv6) to affect whether ↵jim-p2013-02-051-2/+2
| | | | a gateway is marked as default, otherwise you can end up with an ipv4 gateway marked as default for ipv6 and the gui just shows "default".
* Oops correct interface nameErmal2013-01-301-3/+3
|
* Make gateways for assigned OpenVPN servers as well as clients.jim-p2012-12-181-2/+2
|
* Add unsetErmal2012-11-211-0/+1
|
* Switch to is_array() check and add curlysmos2012-11-191-2/+3
|
* gateway monitoring, make the notifications generated clear to tell which ↵PiBa-NL2012-11-181-4/+4
| | | | gateway/group they are about
* Separate default gateway switching code to its own function, fix it to only ↵jim-p2012-09-261-50/+54
| | | | operate on one address family at a time. Old method wouldn't re-set inet gateway if there was an inet6 default.
* Make the gateway group member check a boolean, might convert to something ↵smos2012-09-131-3/+3
| | | | | | else at a later time so we could check group memberships. Also launch the dyndns configure if the dyndns interface is a gateway group name, could check membership later if we wanted.
* Add function that checks if the interface is part of a gateway group.smos2012-09-131-0/+22
|
* Reference the correct variable here, it was broken before and could never ↵smos2012-09-131-1/+1
| | | | have worked.
OpenPOWER on IntegriCloud