Quick way to disable IPv6 – Debian Squeeze (6)
echo "# Disable IPv6" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "#" >> /etc/sysctl.conf
reboot
Oh yeah, and if exim freaks out,
vi /etc/exim4/update-exim4.conf.conf
and change dc_local_interfaces so it reads
dc_local_interfaces='127.0.0.1'
you can run ‘sysctl -p’ instead of ‘reboot’ (works for me).
‘sysctl -p’ works nicely as well. Then I do a ‘shutdown -h now’ so I can move the server, but that’s not your point, right? 😉
Great, man !