br101 / pingcheck

Check connectivity of interfaces in OpenWRT
GNU General Public License v2.0
51 stars 15 forks source link

pingcheck fails on VPN without routes #3

Closed gwax closed 6 years ago

gwax commented 7 years ago

Certain OpenVPN connections do not register routes on the interface and use other mechanisms for managing traffic flow. These interfaces return an empty routes list.

when pingcheck initializes the interface, it registers the interface as NO_ROUTE: https://github.com/br101/pingcheck/blob/master/ping.c#L115

pingcheck assumes a ping will fail without actually checking.

However, a manual ping of the interface ping -I ... succeeds.

br101 commented 6 years ago

should have been fixed with #8