udp6/tcp6 combined with IPv4 address in client configuration
If a user check Listen on IPv6 it generates
proto udp6 or
tcp6 to client configuration files. But
remote still contains an IPv4 address. This configuration won't work because it can't resolve IPv4 addresses for IPv6 communication.
Steps to reproduce
- Check Listen on IPv6 on the OpenVPN -> Server Settings page.
- Generate a client configuration on the OpenVPN -> Client Registration page.
- Download the configuration and use it in an OpenVPN client.
Unfortunately, it can't be determined what Listen on IPv6 exactly means (whether IPv4 should be used or not). Because of this, there can be two distinct ways how to work with it.
IPv6 without IPv4
The checkbox should be available only if IPv6 is enabled and working. If checked, it should generate
proto udp6/tcp6 together with an IPv6 address in
IPv4 + IPv6
Another option should be available to choose which protocol to be used. It should generate
remote for the selected protocol.
According to the checkbox state,
udp6/tcp6. Regardless to the checkbox state,
remote contains an IPv4 address.