[PATCH V2] ocserv: fix ipv6 tun control on OpenBSD

jvi v8kjvi0j6 at gmail.com
Tue Jun 28 02:26:11 PDT 2016


On Tue, Jun 28, 2016 at 9:06 AM, Nikos Mavrogiannopoulos
<n.mavrogiannopoulos at gmail.com> wrote:
> On Sun, Jun 26, 2016 at 9:19 AM, jvi <v8kjvi0j6 at gmail.com> wrote:
>>>On Wed, 2016-06-01 at 19:10 +0200, Andrew Karpow wrote:
>>>> This fixes ipv6 tunnel support on OpenBSD. OpenBSD network stack
>>>> doesn't
>>>> enable the multicast flag on tun devices like FreeBSD - but this is
>>>> obligatory for ipv6.
>>>> Error message without this patch:
>>>> main: tun.c:260: tun0: Error setting IPv6: Invalid argument
>>>Applied, thank you.
>> The same problem persists on FreeBSD. I've just installed ocserv so
>> haven't yet a chance look in-depth what the issue is but it seems
>> ocserv cannot legally set IPv6 address and returns an error.
>> ocserv[41876]: main[test0]: 192.168.1.3:63633 new user session
>> ocserv[41876]: main[test0]: 192.168.1.3:63633 selected IP: 10.250.0.101
>> ocserv[41876]: main[test0]: 192.168.1.3:63633 selected IP: cccc::28
>> ocserv[41876]: main[test0]: 192.168.1.3:63633 assigned IPv4: 10.250.0.101
>> ocserv[41876]: main[test0]: 192.168.1.3:63633 assigned IPv6: cccc::28/128
>> ocserv[41876]: main: tun.c:258: tun1: Error setting IPv6: Invalid argument
>
> I have no idea about the above. Have you tried with a valid IPv6 address?

I have, same thing. It may be that either the call ocserv is making is
either missing something or syntax is in a wrong order. I honestly
don't know and I can't help you there. FreeBSD networking can be very
anal, sometimes even parameters out of an expected order (still
logically correct) can be the reason of a stubborn error.

Is anybody reading this list using FreeBSD too and could perhaps
confirm if this works or not at their end?

jvi



More information about the openconnect-devel mailing list