Gérer les cookies utilisés pour la publicité, tels que la personnalisation des annonces, le remarketing et l’analyse des performances des annonces.
5.3.10. Disable IPv6 on VPS
In Linux-based operating systems, you can disable IPv6 either for all interfaces or for a specific one. There are general methods that can be applied to all operating systems.
For all interfaces
- Go to the
/etc/sysctl.d/directory:cd /etc/sysctl.d/ - Add the necessary settings to the
99-sysctl.conffile to disable IPv6 using any of the following methods:- Or edit the file manually using an editor:
vi 99-sysctl.confAdd the following lines to the end of the file:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 - Or run the command to insert the desired lines at the end of the file:
printf "\n net.ipv6.conf.all.disable_ipv6 = 1 \n net.ipv6.conf.default.disable_ipv6 = 1" >> 99-sysctl.conf
- Apply the changes:
sysctl -p - Check that IPv6 is not configured on the server:
ifconfig
For specific interface
- Determine which interface you need to disable IPv6 on. You can list all interfaces using the following command:
ifconfigThe output of the command will look something like this:
For example, the desired interface will be named eth0. - Go to the
/etc/sysctl.d/directory:cd /etc/sysctl.d/ - Add the necessary settings to the
99-sysctl.conffile to disable IPv6 using any of the following methods:- Or edit the file manually using any text editor:
vi 99-sysctl.confAdd the following line to the end of the file:
net.ipv6.conf.eth0.disable_ipv6 = 1Replace
eth0with the appropriate interface. - Or run the following command to append the necessary lines to the end of the file:
printf "\n net.ipv6.conf.eth0.disable_ipv6 = 1" >> 99-sysctl.confReplace
eth0with the appropriate interface.
- Apply the changes:
sysctl -p - Check that IPv6 is not configured on the server:
ifconfig