Disable IPv6 on Debian 10

Modern ISPs will automatically provide your home devices with IPv4 and IPv6 addresses. For the privacy minded that means that you have to mask both IP addresses to properly hide your geo-location. Most VPN clients only take care of your IPv4 address – Therefore, you might want to disable IPv6 on your device.

On my main personal laptop I'm using Debian 10 at the moment, so here are the steps to disable IPv6 on Debian 10:

sudo nano /etc/sysctl.conf (at the end of the file add “net.ipv6.conf.all.disable_ipv6 = 1”)

sudo sysctl -p