Ubuntu 20.04 - как отключить ipv6 через sysctl

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск

Ubuntu 20.04 - как отключить ipv6 через sysctl

# vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

Создаем файл, который будет применять параметры из sysctl.conf после ребута сервера:

# vi  /etc/rc.local
#!/bin/bash
# /etc/rc.local

/etc/sysctl.d
/etc/init.d/procps restart

exit 0


# chmod 755 /etc/rc.local
# reboot
Индекс цитирования