Hi,
>
>> Note: All that said, I can't seem to connect to the server via ipv6
>> when there is no v4 address. tracert fails before the first hop.
>> v6 does work when ifconfig is not filtered out.
>>
>> One difference from my  earlier test using your previous
>> version with the minor change to allow tap initialize is that the tap
>> adapter now gets the link-local v4 address (169.254.x.y) as opposed to
>> staying at 0.0.0.0 earlier. But this may be just dependent on the order
>> in which I tried various combinations and may not matter.
>>
>
> This happens because I have factored out the set 0/0/0 in open_tun(). I
> have added a "if (tt->did_ifconfig_setup)" that prevents the entire
> setup if no ipv4 is present. I wanted to see if this could make any
> difference. Should be at tun.c:5721. Feel free to remove that if and see
> if it makes any difference again.

Oh, no, that wont work. Some configuration steps for the tap will not happen
in this case -- one of the ioctls (TUN or POINT_TO_POINT) needs to happen.

See the two-line diff I had sent earlier.

So that explains why the tunnel doesn't work when no v4 address is set.

While we do need to do further tests to ensure setting tap for TUN
mode using 0/0/0 doesn't break anything, skipping it is not an option.

Selva

------------------------------------------------------------------------------
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

Reply via email to