Make sure VPN interface gateways are handled separately
Add the correct fix to pick up the IPv6 gateway for slaac interfaces
Make sure that SLAAC gateways show up in return_gateways_array();redmine ticket #1834
Some IPv6 fixes for gateway groups
Make sure that we use the right interface for 6rd
Add better hardening to the dynamic gateway code, handle IPv6 networks betterPrevent duplicate monitor IP addresses in the apinger configuration, otherwise we might end up with -4 million milisecond responses.Show the actual type of dynamic connection appended to the gateway name
Remove suprious debugging line
Add the stf0 interface to interface_has_gateway_v6() for 6to4
Adding gateway support for 6rd support, does not add route yet.Adds to ticket #2117
Fix for redmine ticket #1993. Allow saving multiple dynamic entries.Make sure that return_gateways_status() also returns all gateways that have monitoring disabled as up.
Add a find_interface_ipv6_ll() to find the link local address of a interface.Use this link local address for the apinger srcip otherwise we might try using the DHCP6 /128 address which will fail.We need to extend apinger or any replacement thereoff to understand the %{$realif} scope suffix for link local addresses so that these are always correct. This is important since link local gateway addresses are a normal thing and FreeBSD will complain otherwise.
Another address family check for dynamic gateways, v4 has dynamic, v6 has dynamic6 as string.
Add a possible "dynamic6 type to differentiate between IPv6 and IPv4 dynamic connections"
Add a interface_has_gatewayv6() function to determine if a interface has a IPv6 gateway.Implement that function return_gateways_array() to prevent ghost entries
Add the IP protocol to the configured gateway list to prevent duplicate entries on dynamic interfaces
Remove stray echo statement
Remove stray print_r()
Automatically pick up on dynamic IPv6 interfaces. For Example dhcp6.
Add a function that allows you to validate the address family on 2 addresses or 1 address and a gateway name. the gateway name must be the 2nd argument.
Oops fix variable name
Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services.
Add an override for default interval to send icmp
Add a new option to allow disabling of gateway monitoring. This gateways will always be reported as up.
Use change here to be cleaner and less disruptive.
Switch back to the default gateway configured when possible when gateway switching is active
Merge remote-tracking branch 'upstream/master'
Conflicts: etc/inc/easyrule.inc etc/inc/filter.inc etc/inc/interfaces.inc etc/inc/services.inc etc/inc/xmlrpc_client.inc usr/local/www/fbegin.inc usr/local/www/services_dhcp.php
Merge remote-tracking branch 'mainline/master' into inc
Conflicts: etc/inc/voucher.inc usr/local/www/fbegin.inc
Add tunable, by default disabled, to enable the default gateway switching feature when the default one 'disappears'.
Test the right variable otherwise we have no hope of getting a v6 gateway
Merge remote branch 'upstream/master'
Correct default code disabling! Ponty-hat: myself
Disable the default route switching code since its causing more issues than solving. It needs more work to get re-enabled.
Conflicts: etc/inc/gwlb.inc
Remove blank trailing c/r.
Notify via smtp as well as growl
Correct error message for gateways to report down when the gateway is down and not high latency.
Another sweep at keeping the default route always present when the default setup route is marked as down. This now adds checks for configuration where a defaultgw is not specified by the user but deduced automatically.
Conflicts: etc/inc/shaper.inc
Try to always keep pfSense with a default gateway to avoid errors for service running from pfSense itself. Previously PBR should be configured for such services. While PBR is a better fix this at least keeps users from complaining in simple setups. Reported by many.
BP: fix syntax error on gettext implementation
nuke trailing carriage returns
Conflicts: etc/inc/interfaces.inc etc/inc/vslb.inc usr/local/www/interfaces.php
Merge remote branch 'mainline/master' into inc
Conflicts: etc/inc/auth.inc etc/inc/config.lib.inc etc/inc/filter.inc etc/inc/gwlb.inc etc/inc/interfaces.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc...
Do not spam logs uselessly on bootup and sleep a bit before starting apinger.
Do not spam console with useless messages. Also remove killall not needed anymore.
Remove temporary hack which spams console during boot.
Do not guess the defaultgw this is static info.
Remove trailing carriage return
remove some debugging from filter inc, show correct ipv6 gateway from function
Add the default ipv4 route and the default ipv6 route, check both routing tables before adding or changing.set the ipv6 IP address via a mwexec() until the pfsense module is adapted. FIXME.Add filter rules for ipv6 to let traffic out of the firewall. FilterIflist not cooperating yet.
Conflicts: etc/inc/authgui.inc
Kill apinger with a large axe until the TERM issues can be resolved
Fix the "all dynamic gateways are shown as default" problem reported here: http://forum.pfsense.org/index.php/topic,28960.0.html
A non-empty string will evaluate true with == operator.
Avoid generating a dynamic gateway entry in the list if there is already one in the config for the interface.
Test if this variable is set before making a reference, for safety. Add reference back for speed.
More unneeded references.
Report dynamic gateways as default even when they are down.
If gateways appear to lose their default status when they are down it canbe confusing for users. This is purely a UI change.
Add $g variable to global declaration so we can access it later.
Fix checking the status of gateways. Typos and unset variables! Spotted-by: Mark Huijgen
Be sane at what was supposed to be done.:
Do not show statically configured interfaces as with dynamic gateways because the gateway is already referenced/monitored on its own entry.
Make sure we do not overwrite the gateway stored in config with a dynamic gateway info. Correct POST var name(Found by ghnb). Also correctly reload only the defaultgw interface changed only if it is different than the present one.
Fix quotes to use %N$X on gettext calls
Conflicts: etc/inc/filter.inc etc/inc/system.inc
cbuechler says monitorip should not be stored in <interfaces><$if>. See ticket #919
Do not support anymore an ip in the 'gateway' section of an interface.
Don't refer to non-existent variable.
Reported in forum http://forum.pfsense.org/index.php/topic,28643.0.html
Properly handle reinitializing of variables on the next loop. Reported-by: http://forum.pfsense.org/index.php/topic,28636.0.html
We might not have any defaultgw selected and consider wan as default. Make sure to catch this so GUI works and other parts that depend on defaultgw detection.
Make it possible to show default against dynamic gateway names in the GUI.
Actually display a the right class for static gateways. Also fix whitespace
Conflicts: etc/inc/filter.inc
Write status file every 5seconds.
Oops this is meant to add members not override them.
Cleanup code.
Ticket #867. Flush the cache when restarting apinger and also when rc.newwanip is called. also restart apinger earlier in to be on latest address asap.
Ticket #876. Actually use the friendly name for the key of the array returned by return_gateways_array() so the dynamic gateway and status pages work correctly.
Conflicts: etc/inc/filter.inc etc/inc/gwlb.inc
Ticket #876. Show all gateways even though apinger is not monitoring them, for various reasons, this removes user confusion in the status pages.
Ticket #876. Add the ip to the respective files on ppp linkup event so the code of dynamic gateways finds them. Also reorganize/simplify/optimize the apinger config generation code. Do not use that 127.0.0.x hack anymore and avoid loops as much as possible.
Conflicts: etc/inc/filter.inc etc/inc/pkg-utils.inc etc/inc/service-utils.inc etc/inc/system.inc etc/inc/vpn.inc
Use the new events mechanisms to dispatch events.
Ticket #876. Remove old status file of apinger before restarting because it might confuse gui.
Fix gettext calls with printf to permit change strings order
No functional change just code reshuffle.
Implement gettext() calls on gwlb.inc
Ticket #8. Use proper IP to pfctl -b and run the command after the rules have been removed for the not 'down' interfaces.
Make sure that the RRD path exists before apinger is started. Should really fix quality graphs on NanoBSD.
Create a valid apinger configuration file for targets that are down during creation.
Do not write anything to config before finishing all tests of correctnes. This avoids a problem of wrong config to apinger Discovered-by: Seth
Do not try to reload apinger config but always kill the running process and start a new one so it behaves.
Actually apinger can be reloaded and this is not doing its job apparently.
Actually send the HUP signal to tell apinger that a new config file is to be loaded! This should solve a lot of issues with apinger monitoring.