YunoHost-Apps / vpnclient_ynh

VPN Client app for YunoHost
GNU Affero General Public License v3.0
41 stars 25 forks source link

no tun0 if ipv6 is deactivate on system #78

Open zamentur opened 3 years ago

zamentur commented 3 years ago

I had to do

sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.all.disable_ipv6=0
systemctl restart ynh-vpnclient.service

To get the tun0 interface

Without ipv6 i had those errors in openvpn log:

# tail -f /var/log/openvpn-client.log 
Mon Mar  1 22:24:37 2021 Restart pause, 5 second(s)
Mon Mar  1 22:24:42 2021 WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.
Mon Mar  1 22:24:42 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]89.xxx.yyy.zzz:443
Mon Mar  1 22:24:42 2021 Socket Buffers: R=[180224->180224] S=[180224->180224]
Mon Mar  1 22:24:42 2021 UDP link local: (not bound)
Mon Mar  1 22:24:42 2021 UDP link remote: [AF_INET]89.xxx.yyy.zzz:443
Mon Mar  1 22:24:42 2021 write UDP: Operation not permitted (code=1)
Mon Mar  1 22:24:44 2021 write UDP: Operation not permitted (code=1)
Mon Mar  1 22:24:48 2021 write UDP: Operation not permitted (code=1)
Mon Mar  1 22:24:56 2021 write UDP: Operation not permitted (code=1)