check_connection script should accommodate point-to-point links without explicit addressing
My upstream uses a point-to-point tunnel without explicit addressing. Therefore, my routing table looks like this:
# ip -6 rou show default
default dev wg0 proto static metric 1024 pref medium
Since there is no gateway address to ping, it is expected that the script /sbin/check_connection
will fail when pinging gateway. It will, however, also fail to check IPv4 and IPv6 connectivity and even DNS/DNSSEC functionality. In fact it will not even try to test those if gateway is unreachable.
I think this is unnecessary attempt to be too smart. Conditions, which are making the test dependent on each other like this should be avoided.
Even better, there should be a third state for GW reachability test – N/A – which would be the proper result when there's no gateway IP address configured.