This article provides a guide demonstrating how to disable IPv6 on Debian servers.
How to Disable IPv6 on Debian
To disable IPv6 on Debian server, follow the steps below:
- Edit the configuration file:
sudo nano /etc/sysctl.d/99-disable-ipv6.conf - Add the following lines:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 - Apply the changes:
sudo sysctl -p /etc/sysctl.d/99-disable-ipv6.conf - Verify:
should return:cat /proc/sys/net/ipv6/conf/all/disable_ipv61
Conclusion
You now know how to disable IPv6 on Debian servers.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.
