Disable IPv6 permanently

Having issues? Post them here, and help other users.
Post Reply
koahli
Junior Member
Posts: 2
Joined: Wed Mar 25, 2020 5:40 am

Disable IPv6 permanently

Post by koahli »

Hi,
because of my network policies I have to disable IPv6 when I want to send emails.
I face some problems to do it permanently.
I already tried https://askubuntu.com/questions/309461/ ... ermanently and https://www.pcsuggest.com/disable-ipv6- ... _conf_file
It works to disable IPv6 for the moment when I add

Code: Select all

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
to /etc/sysctl.conf and then run

Code: Select all

sudo sysctl -p
but it does not work after a reboot.
Therefor I tried to add this cronjob

Code: Select all

@reboot sysctl -p >/dev/null 2>&1
but it does not help.
I am very thanful for any tip :)


NEMS Platform: Raspberry Pi 3 B+
NEMS Version Running: 1.5.1
Build number: 1
Post Reply