Disabling IPv6 for openvpn

I’m trying to use my CyberGhost VPN, and one of the requirements is to disable IPv6. It looks like there is another bug with key files not being saved in the openvpn GUI. Hoping to find a solution to the IPv6 part here.

I’m following these instructions for the VPN setup.

I started with echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

Then, I followed these instructions, both the /etc/sysctl.conf and /etc/default/grub files.

VPN is still not working and I’m still getting an IPv6 address. Output from my ifconfig:

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 241875 bytes 1855298673 (1.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 241875 bytes 1855298673 (1.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.141 netmask 255.255.255.0 broadcast 192.168.11.255
ether 18:cf:5e:d7:c5:2c txqueuelen 1000 (Ethernet)
RX packets 3047344 bytes 1310756411 (1.2 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3768617 bytes 3856704575 (3.5 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Has anyone else tried to disable IPv6? Any success?

I followed these directions to configure OpenVPN on my VPS running Centos7 and on my Librem 13 running PureOS: https://openvpn.net/index.php/open-source/documentation/howto.html.

Initially I connected from the command line to work out problems with the config files on both ends, firewall settings, etc. When I was able to establish the connection that way, I tried to set it up in Network Mangler (sic) and ran into the problem in the other thread you referenced.

I downgraded the network-manager-openvpn and network-manager-openvpn-gnome packages following the instructions in the link I posted to the other thread. That works.

I had no need to disable IPv6 so haven’t tried to do it.

The downgrade worked for me, too, no need to disable IPv6. Thanks.