summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Remove the filter configure call as this could otherwise lead to a recursive ↵smos2012-09-121-3/+3
| | | | filter configure.
* Put apinger default values into a functionPhil Davis2012-07-251-17/+22
| | | The default advanced apinger parameter values are now returned by function return_apinger_defaults. So they can easily be obtained by any code that cares.
* Make sure that we process the logic statement correctly, otherwise we might ↵smos2012-07-181-2/+2
| | | | accidentally end up missing dual stacked or tunneled interface gateways
* Change field name from lowloss to losslow ccesario2012-07-051-2/+2
| | | related in http://redmine.pfsense.org/issues/2537
* Reconfigure OpenVPN on gateway changesmos2012-06-301-2/+2
|
* Comment out adding static routes for gateway monitor IPs because we now bind ↵smos2012-06-281-2/+2
| | | | to the correct Interface with apinger.
* Fix: Warning: preg_match(): No ending delimiter '/' found in ↵Phil Davis2012-06-281-2/+2
| | | | /etc/inc/gwlb.inc on line 696
* Check in code that allows for using a gateway group as the interface on the ↵smos2012-06-251-10/+24
| | | | | | | | OpenVPN server page. Only allow IPv4 gateway groups for now. We'll need to add IPv6 suppport here later when we import OpenVPN 2.3. Unbreak the gateway group function on broken configurations like a missing 3G stick. Unbreak the interface IP/IPv6 code in openvpn.inc, we can listen on IPv4 or IPv6, not both. That path is now seperate which should cause less grief down the line. Adds to Redmine ticket #1965 which was for the IPsec failover.
* Needs a default case so IPv6 interfaces are resolved to a real interfacesmos2012-06-091-0/+3
|
* Changeover to the new multiple command pfSctlsmos2012-06-061-2/+2
|
* Reverse the arguments, i got them wrong.smos2012-06-061-2/+2
| | | | Redmine ticket #1965
* Trigger dyndns and ipsecdns updates through check_reload_status. IpsecDNS ↵smos2012-06-061-2/+2
| | | | | | already performs a filter_configure() too. Redmine ticket #1965
* Make sure to return the Null route gateways too for looking up a gateway entrysmos2012-06-051-3/+3
|
* Some minor enhancements from renaming the Gathering Data to Pending.smos2012-06-041-2/+2
| | | | When it doesn't exist in the array it's really unknown. Make that lightblue. show a ~
* Fix Typo, although the host might indeed be loca. We'll just keep it local ↵smos2012-06-041-1/+1
| | | | instead.
* Allow for Null routessmos2012-06-041-1/+17
|
* Unbreak php errors on login formjim-p2012-06-031-0/+1
|
OpenPOWER on IntegriCloud