Enable IPv6 on your Directadmin server

By | July 24, 2013

Internet Protocol version 6 (IPv6) was designed by the Internet Engineering Task Force (the IETF) to expand the amount of IP addresses available. IPv6 addresses are 128-bit addresses, expressed in hexadecimal notation (for example, 2001:DB8:8::260:97ff:fe40:efab). There are 2128 IPv6 addresses, or roughly 340 trillion, trillion, trillion. This huge amount of addresses is expected to accommodate the predicted expansion of the Internet and Internet-related services over the coming years. IPv6 was introduced in 1999 and has been in use since then. This means that the core standards are stable and have been well tested in research and operational contexts.

The later versions of Directadmin have improved in their IPv6 support. In this post we’re going to setup IPv6 on a Directadmin server.

Configuration

1. Start with updating your Directadmin server. Login into your Directadmin server at port 2222 and update the Directadmin version.

Screenshot_1
Screenshot_2

Now grab some coffee, eat a donut and give Directadmin a few minutes to update itself.

2. Once Directadmin is updated, we can tell it to use IPv6. To do this, login with SSH and open the Directadmin configuration.

vi /usr/local/directadmin/conf/directadmin.conf

Check if there is a rule ipv6, add it if it doesn’t exist and make it look like:

ipv6=1

And restart Directadmin:

/etc/init.d/directadmin restart

3. With this option Directadmin can handle IPv6 IPs so let’s add one to the IP Manager. With IPv6, you have to use the prefix notation (like /64).

Screenshot_4

Assign the IP to the reseller where your users are, for example admin.
Screenshot_5

4. You can assign IPs to users just as you do normally. Thanks to the multi-IP system, you can assign an IPv4 and an IPv6 address to an user.

Go the the admin level in Directadmin and click Show all users.
Screenshot_6

Select the user you want to add an IPv6 address to.
Screenshot_7

Click on Modify user %username%.
Screenshot_8

Add the addition IPv6 IP.
Screenshot_9

The end result will look like this.
Screenshot_10

5. Check if your Exim installation has IPv6 compiled in. Login with SSH and type:

exim -bV | grep -i ipv6

If you get output, your Exim installation has IPv6 compiled in. If this isn’t the case, you have to recompile Exim from source. Please use the manual if this is the case.

6. For Dovecot, you have to make a small adjustment. Check the version of Dovecot:

dovecot --version

If your dovecot version is 2.0.0+, change your dovecot.conf.

vi /etc/dovecot.conf

Change this lines:

#IPv4
listen = *

#IPv4 and IPv6:
#listen = *, ::

To:

#IPv4
#listen = *

#IPv4 and IPv6:
listen = *, ::

If your dovecot version is 1.2.x, open up your dovecot.conf.

vi /etc/dovecot.conf

And add this line to the top of the file:

listen = "*, [::]"

The last step is to restart dovecot:

service dovecot restart

7. You are done! Your Directadmin installation is ready for IPv6 and you can add some AAAA records in your DNS to use IPv6. If you got any questions, you can ask them by leaving a comment!

If you want to read more, please subscribe and get our newest articles in your mailbox.

5 thoughts on “Enable IPv6 on your Directadmin server

  1. Youri

    How about changing tings in your DNS ?
    I use my own DNS server in my DA installation, would my DNS autoaticly reasy for ipv6

    There is also a option to link a ipv6 to ipv4 in DA 1.433 what about that ?

    Reply
  2. M. Pas Post author

    The DNS server in Directadmin is already IPv6 ready. You just have to add the needed AAAA records to your DNS zone.

    What do you mean by the option “to link a ipv6 to ipv4 address”? I don’t see anything about that in the changelog at http://www.directadmin.com/versions.php

    Reply
    1. M. Pas Post author

      Thank you for the URL. I will write a post about that feature soon. :)

      Reply
  3. Youri

    Any news on this ? a tutorial about linking would be great , also a howto add AAAA records in your DNS after doing things you mention in this tutorial would be awesome

    Reply

Leave a Reply to Youri Cancel reply

Your email address will not be published. Required fields are marked *