Hello list,

it seems that OpenVPN in P2P mode (static keys) doesn't configure and
start the tun interface when there are no configured IPv4 addresses:

OpenVPN 2.4.3
In "void do_ifconfig()" of tun.c line 881: if (tt->did_ifconfig_setup)

The flag tt->did_ifconfig_ipv6_setup is not considered at all. Is there
a reason to not start an IPv6 only tun device? Maybe this has simply
been overseen?

For testing I changed it to:
if (tt->did_ifconfig_setup || tt->did_ifconfig_ipv6_setup)

I'm on Linux. The IPv4 addresses are initialized with, the "ip"
tool doesn't complain, the IPv6 address is configured, the tun
interface gets up.

A trick would be to use something like this in the config file:

Alternatively one would have to set up the tun interface manually after
starting the tunnel. 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Openvpn-devel mailing list

Reply via email to