On Friday 28 Jan 2011 00:07:37 Stefan Hellermann wrote: > I have a problem with proto udp6 (tun inside). My Openvpn-server should > be reachable on multiple IPv6-addresses over UDP6. The packets arrive at > the correct IP, but Openvpn answers them on a default ip, not on the one > where the packet arrived. With proto tcp6-server it works. > > I know that UDP is stateless, but you can get the destination ip out of > the recived packet and use it as a source ip for sending packets. This > should somehow work with IPV6_PKTINFO on the socket (man 7 ipv6 on linux). > > I have more than one IPv6-address because my tunnel broker for IPv6 is > not 100% stable, so I use multiple tunnels to different endpoints. > > My openvpn-Version: openvpn-201102.tar.gz from here: > ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/ > > Can anyone help me? Do I have to configure something? I have already > thought about DNAT all other IPs to the working default IP ... but IPv6 > DNAT isn't implemented on this machine. > And running as many openvpn-instances as there are IPv4 and IPv6 > addresses is to problematic as the addresses go up and down.
Are you using the "multihome" option in the server configuration? As far as I can tell, using "multihome" uses the PKTINFO information to source UDP replies from the correct IP address; however, while it does work for IPv4, I don't know if that functionality has been ported to IPv6 already. I'm CC-ing the devel list as well. -- D.