Skip to content

openvpn fails if ipv6 is disabled

the following happens in a system with ipv6 disabled. I've tried removing the tun-ipv6 arg that we get from eip-service, but to no avail - it seems to me that server is pushing the net addr add commands, which fails.

2021-03-06 18:53:28 [pie.riseup.net] Peer Connection Initiated with [AF_INET]212.83.146.228:443
2021-03-06 18:53:29 sitnl_send: rtnl: generic error (-95): Operation not supported
2021-03-06 18:53:29 TUN/TAP device tun0 opened
2021-03-06 18:53:29 net_iface_mtu_set: mtu 1500 for tun0
2021-03-06 18:53:29 net_iface_up: set tun0 up
2021-03-06 18:53:29 net_addr_v4_add: 10.41.0.48/21 dev tun0
2021-03-06 18:53:29 net_iface_mtu_set: mtu 1500 for tun0
2021-03-06 18:53:29 net_iface_up: set tun0 up
2021-03-06 18:53:29 net_addr_v6_add: 2001:db8:123::102e/64 dev tun0
2021-03-06 18:53:29 sitnl_send: rtnl: generic error (-95): Operation not supported
2021-03-06 18:53:29 Linux can't add IPv6 to interface tun0
2021-03-06 18:53:29 Exiting due to fatal error

enabling ipv6 "solves" this issue. I'm not sure if there's something we can do, other than avoiding the push from the server side, but we do want ipv6 support at some point. to me, it looks like openvpn should do a system check before trying to blindly apply that net_addr_v6 command... maybe there's some configuration option we should be using?

Edited by Kali Kaneko