If you want to disable IPv6 on your server, below is the step to do it.
- Edit this file:
1 |
nano /etc/sysctl.conf |
- Add these lines to the bottom of the file:
1 2 3 |
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 |
- Run this command on your terminal:
1 |
sudo sysctl -p |
Done!