[OPSWAT] [Metadefender] How to disable IPv6 on Linux

Modified on Sun, 09 Jul 2017 at 01:31 PM

Symptom:

MD Core server issues an error of maximum clients connected to the server (100), while only working with several.



Cause:

This is an issue with the MD Core software and IPv6 on the server



Solution:

Here's how to disable the protocol on a Red Hat-based system:

  1. Open a terminal window.
  2. Change to the root user.
  3. Issue the command sysctl -w net.ipv6.conf.all.disable_ipv6=1
  4. Issue the command sysctl -w net.ipv6.conf.default.disable_ipv6=1

To re-enable IPv6, issue the following commands:

sysctl -w net.ipv6.conf.all.disable_ipv6=0

sysctl -w net.ipv6.conf.default.disable_ipv6=0


Here's how to disable the protocol on a Debian-based machine.

  1. Open a terminal window.
  2. Issue the command sudo nano /etc/sysctl.conf
  3. Add the following at the bottom of the file:
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
  4. Save and close the file.
  5. Reboot the machine.

To re-enable IPv6, remove the above lines from /etc/sysctl.conf and reboot the machine.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article