2015-10-16

[SOLVED]Disable IPv6

11:33 14/01/2015
################
To set it permanently on system boot I put the setting also in /etc/sysctl.conf :
#nano /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6=1" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6=1" >> /etc/sysctl.conf

#Approved new config:
root@srv001 ~# sysctl -p

#CENTOS ONLY:
#nano /etc/sysconfig/network
echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network
echo "IPV6INIT=no" >> /etc/sysconfig/network
#
reboot

##########SSH DISABLE IPv6:
#http://wiki.centos.org/FAQ/CentOS6
nano /etc/ssh/sshd_config

(1) Change the line
#AddressFamily any
to
AddressFamily inet
(inet is ipv4 only; inet6 is ipv6 only)

or
(2) Remove the hash mark (#) in front of the line
#ListenAddress 0.0.0.0
Then restart ssh.

########################

No comments:

Post a Comment