Ubuntu: disable IPv6

 1.

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

 2.

sudo nano /etc/sysctl.conf

insert lines:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

apply settings:

sudo sysctl -p

create file:

sudo nano /etc/rc.local

insert lines:

#!/bin/bash
# /etc/rc.local
/etc/sysctl.d
/etc/init.d/procps restart
exit 0

set permissions:

sudo chmod 755 /etc/rc.local

 

Комментарии закрыты