linux:disable_ipv6

Disable IPv6 on Debian

For some unknown reasons Oracle / SUN Java and other programs on Debian doesn't work properly when IPv6 is enabled.

To disable IPv6 bindings on debian edit /etc/sysctl.d/bindipv6.conf and disable ipv6. Set net.ipv6.bindv6only = 0.

# This sysctl sets the default value of the IPV6_V6ONLY socket option.
#
# When disabled, IPv6 sockets will also be able to send and receive IPv4
# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening
# on IPv6 sockets will also accept IPv4 connections.
#
# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
# connections must open two listening sockets.
# This is the default behaviour of almost all modern operating systems.

net.ipv6.bindv6only = 0