udp6 source-address wrong with more than one ipv6-address on server
A message that is not in the archive (sent off-list or not yet received): [email protected]...
Quoted 12 lines · 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_PKTINFOon 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.
Quoted 8 lines
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.
Signature · 1 line
D.
A message that is not in the archive (sent off-list or not yet received): [email protected]...
Quoted 10 lines · On Friday 28 Jan 2011 11:57:30 Stefan Hellermann wrote:
Quoted 5 lines
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.
No I haven't tried multihome, and I don't know why I haven't seen this option before... Why isn't this the default?
But, it seems it doesn't work for IPv6 yet, I get this:
Quoted 8 lines
Jan 28 11:37:22 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:24 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:26 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:29 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connectionrefused (code=146)
Not 100% sure but this may mean that multihome has not been ported to IPv6 yet. Perhaps you can open a ticket at
https://community.openvpn.net/openvpn
(you have to register and login first).
Quoted 1 line
With tcp6-server this works.
Yes, because with TCP the source address selection is performed directly by the OS internally. Using TCP was indeed the suggested workaround before UDP multihoming was introduced in OpenVPN.
Signature · 1 line
D.
Am 28.01.2011 13:09, schrieb Davide Brini:
Quoted 26 lines · On Friday 28 Jan 2011 11:57:30 Stefan Hellermann wrote:
Quoted 11 lines
Quoted 6 lines
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.
No I haven't tried multihome, and I don't know why I haven't seen this option before... Why isn't this the default?
But, it seems it doesn't work for IPv6 yet, I get this:Quoted 8 lines
Jan 28 11:37:22 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:24 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:26 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:29 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connectionrefused (code=146)
Not 100% sure but this may mean that multihome has not been ported to IPv6 yet. Perhaps you can open a ticket at
Quoted 8 lines
(you have to register and login first).
Quoted 1 line
With tcp6-server this works.
Yes, because with TCP the source address selection is performed directly by the OS internally. Using TCP was indeed the suggested workaround before UDP multihoming was introduced in OpenVPN.
Quoted 29 lines · Stefan Hellermann
Am 28.01.2011 13:09, schrieb Davide Brini:
Quoted 28 lines · On Friday 28 Jan 2011 11:57:30 Stefan Hellermann wrote:
Quoted 11 lines
Quoted 6 lines
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.
No I haven't tried multihome, and I don't know why I haven't seen this option before... Why isn't this the default?
But, it seems it doesn't work for IPv6 yet, I get this:Quoted 8 lines
Jan 28 11:37:22 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:24 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:26 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connection refused (code=146) Jan 28 11:37:29 openvpn(server)[17978]: read UDPv6 [NO-INFO]: Connectionrefused (code=146)
Not 100% sure but this may mean that multihome has not been ported to IPv6 yet. Perhaps you can open a ticket at
https://community.openvpn.net/openvpn
(you have to register and login first).
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
With tcp6-server this works.
Yes, because with TCP the source address selection is performed directly by the OS internally. Using TCP was indeed the suggested workaround before UDP multihoming was introduced in OpenVPN.
Thank you very much for your report! I've sent a notification to the developer of the IPv6 transport patch, and I hope he chimes in soon.
kind regards,
David Sommerseth
Am 31.01.2011 19:43, schrieb David Sommerseth:
Quoted 10 lines
Quoted 2 lines
Thank you very much for your report! I've sent a notification to the developer of the IPv6 transport patch, and I hope he chimes in soon.
kind regards,
David Sommerseth
I've tested the proposed patch and it works! Could this patch get into the 2.2 Release?
Kind regards,
Stefan
Hi,
Quoted 9 lines · Stefan Hellermann
Am 31.01.2011 19:43, schrieb David Sommerseth:
Quoted 5 lines
Quoted 2 lines
Thank you very much for your report! I've sent a notification to the developer of the IPv6 transport patch, and I hope he chimes in soon.
I've tested the proposed patch and it works! Could this patch get into the 2.2 Release?
There's neither IPv6 transport nor IPv6 payload in 2.2 - so this patch would go into 2.3, not 2.2
But thanks for testing and for noting the results in the ticket, so David can now merge this into "however the git will look like for 2.3" :-)#
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 8 lines · Stefan Hellermann
Am 31.01.2011 19:43, schrieb David Sommerseth:
Quoted 7 lines
Quoted 2 lines
Thank you very much for your report! I've sent a notification to the developer of the IPv6 transport patch, and I hope he chimes in soon.
Quoted 5 lines
Quoted 3 lines
kind regards,
David Sommerseth
I've tested the proposed patch and it works!
Awesome, thanks =)
Quoted 1 line
Could this patch get into the 2.2 Release?
No ipv6 features aimed for 2.2 afaik.
FTR this is already at git://github.com/jjo/openvpn-ipv6.git (master), with this patch at 1 commit (55e1742ec2bdfc52c5af5cb01aec1fb546efde8d) ahead of git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn-testing.git
(feat_ipv6_transport).
David: I rebuilt this repo from scratch, branched off openvpn-testing's feat_ipv6_transport, so it should be safe to pull from its master branch (famous last words ;).
Cheers,
Quoted 15 lines
Kind regards,
Stefan------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'