Open SSH and run the following command
echo -e “net.ipv6.conf.all.disable_ipv6 = 1n net.ipv6.conf.default.disable_ipv6 = 1n” >> /etc/sysctl.conf && sysctl -p
The command will disable IPV6 immediately. Now we need to disable auto update daily so it won’t change the above config
sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl daemon-reload
Disabling IPV6 is a must if you use the whitelist option for the restreamer line. Enabling whitelist their IP will make sure nobody will be able to steal the restreamer’s line. Some datacenters like OVH prefer to return IPV6 instead of IPV4 so we need to disable IPV6 permanently. The panel is not able to whitelist IPV6.
In case you already run the above command but the server restarted and it did not reload the config, simply run the following command to make it effective:
sysctl -p