**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/sshdconfig: <code> ListenAddress :: </code> ===== Lighttpd ===== add this to your main lighttpd configuration file: <code> server.use-ipv6 = “enable” $SERVER[“socket”] == “0.0.0.0:80” { # listen on all ipv4 interfaces. } </code> ===== vsftpd ===== you'll have to run to different instances of vsftpd, one for ipv4, and one for ipv6. * /etc/vsftpd.conf: <code> listen=YES </code> * /etc/vsftpdipv6.conf:

listen=NO
listen_ipv6=YES

Then run each instance separately:

# /path/to/vsftpd /etc/vsftpd.conf
# /path/to/vsftpd /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).

netfilter

remember that ipv6 needs icmp to work, so you have to enable it:

        # ip6tables -A INPUT -p icmpv6 -j ACCEPT

Packet Filter

remember that ipv6 needs icmp to work, so you have to enable it. add this to /etc/pf.conf:

pass proto ipv6-icmp all    

MySQL

as stated here, you need at least MySQL v5.5.x for ipv6 to work.