Opened 7 years ago

Closed 15 months ago

#874 closed Patch submission (worksforme)

Can't establish vpn connection with multihome option in some case.

Reported by: hashiz Owned by:
Priority: minor Milestone:
Component: IPv6 Version: OpenVPN 2.4.0 (Community Ed)
Severity: Patch Queue: New / awaiting ACK Keywords:
Cc:

Description

On attached file's network case.
If "multihome" specified, openvpn can't establish connection with following error.

[IPv6 Address] write UDPv6: Can't assign requested address (code=49)

In this case, openvpn tries to bind UDP socket to illegal combination address and interface.

Attachments (2)

IPv6.pdf (94.1 KB) - added by hashiz 7 years ago.
Network description
patch-src-openvpn-socket.c (440 bytes) - added by hashiz 7 years ago.
fix patch

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by hashiz

Attachment: IPv6.pdf added

Network description

Changed 7 years ago by hashiz

Attachment: patch-src-openvpn-socket.c added

fix patch

comment:1 Changed 6 years ago by Antonio Quartulli

@hashiz any clue why it would try to bind address B with the WAN interface? is there something conflicting in the routing table which makes it believe this to be possible?

comment:2 Changed 15 months ago by Gert Döring

Resolution: worksforme
Status: newclosed

I would actually like to see the config, a log file with --verb 4 and understand why it's having an interface ID there that is not valid.

Always setting the ifindex to 0 might work in this case, but in the generic case we use the ifindex the OS gives to us, so that is what we need to use.

Maybe it's just an OS bug (we've found a few, in various OSes).

Note: See TracTickets for help on using tickets.