Debian 12 - Disable IPv6
It occasionally comes up that I just need to disable IPv6 for whatever reason. Below is the easiest and most straightforward way if you are using Debian 12 or similar.
Steps
Create the a file called "/etc/sysctl.d/60-custom.conf"
sudo editor /etc/sysctl.d/60-custom.conf
... with the following 3 lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl -p
sudo systemctl restart procps
References
Last updated: 12th July 2024
First published: 29th May 2024
First published: 29th May 2024