Not able to disbale IPv6 please help

Sir, I want to disable ipv6 in my FreePBX.
I have checked and tried many commands
but when I restart FreePBX IPv6 appears again.

please tell me which command I need to use.

Add a file in /etc/sysctl.d (assuming that the directory exists), for example 20-disable-ipv6.conf, containing

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

Reboot and test.

I’m new to Linux
please write full command so I can copy and paste from here to disable ipv6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.