This is an old revision of the document!


My own ipv6 tips for servers

Here you'll find configuration for both ipv4/ipv6 accesses on some servers I personally use.

SSH

add to /etc/ssh/sshd_config:

ListenAddress ::

Lighttpd

add this to your main lighttpd configuration file:

server.use-ipv6 = "enable"
$SERVER["socket"] == "0.0.0.0:80" {
# listen on all ipv4 interfaces.
}

vsftpd

you'll have to run to different instances of vsftpd, one for ipv4, and one for ipv6.

  • /etc/vsftpd.conf:
listen=YES
  • /etc/vsftpd_ipv6.conf:
listen_ipv6=YES

Then run each instance separately:

# /path/to/vsftpd /usr/local/etc/vsftpd.conf
# /path/to/vsftpd /usr/local/etc/vsftpd_ipv6.conf

qmail

compile ucspi-tcp (a.k.a. tcpserver) with ipv6 support.

dovecot

for each “protocol” section in /etc/dovecot.conf, insert the following lines:

        listen = *,[::]
        ssl_listen = *,[::]

of course, ssl_listen have to be used only if you use SSL version of the protocols (that is, imaps or pop3s).