Hi, On 06/06/18 04:30, Selva Nair wrote: >>> However, even with !ipv4, redirect-gateway ipv6 appears to error out >>> -- it fails with >>> >>> "TEST ROUTES: 0/2 succeeded len=1 ret=0 a=0 u/d=up >>> Route: Waiting for TUN/TAP interface to come up..." >> >> Interesting. This is route.c, test_routes(), using test_route_helper() >> -> test_route(), which basically tries to find the adapter index where >> a given (route)->gateway is configured on. Since it cannot find anything, >> it assumes "tun interface is stuck in DHCP" and is unhappy. >> >> This shouldn't actually try to do anything in the first place - it >> looks at "struct route_list *rl", which should not be populated if >> we have no v4 address to point the routes to. (Or maybe it should, >> but only for "non-tun/tap routes"). > > Yeah, we cant ignore v4 routes completely. So the logic for checking the > tun is ready has to change? >
I am not sure why you get those 2 routes. Do you have a more extensive log to show? It may help clearing up some doubts. On Linux the route_list is empty when there is no v4 and "gateway-redirect !ipv4" is set. Cheers, -- Antonio Quartulli
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel