Activate IPv6 Openvpn Interface by default

Started by raoulblt, August 02, 2025, 09:29:35 PM

Previous topic - Next topic
August 02, 2025, 09:29:35 PM Last Edit: August 03, 2025, 02:10:03 PM by raoulblt
Hi all,

I'm trying to route IPv6 local network through Openvpn tunnel to a distant site without assigning IPv6 address to the Openvpn clients themself (I don't need it so I would like to avoid it if possible).

The problem is that without IPv6 address the ovpnc1 inet6 interface is disabled by default (IFDISABLED flag):

ovpnc1: flags=1008043<UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: VPN (opt1)
options=4080000<LINKSTATE,MEXTPG>
inet 10.8.0.10 netmask 0xffffff00 broadcast 10.8.0.255
groups: tun openvpn
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Opened by PID 99805

If I do ifconfig ovpnc1 inet6 -ifdisabled everything works as expected.

I tried adding ipv6_activate_all_interfaces="YES" to /etc/rc.conf and did a reboot but it doesn't work.

I would like to make this persistent. Any idea?