How to enable and assign IPv6 Addresses in DirectAdmin

IPv6 is the most recent version of the Internet Protocol (IP), a communications protocol that offers provides a mechanism for identifying and locating machines on networks and distributes traffic over the internet. The Internet Engineering Task Force (IETF) created IPv6 to solve the long-awaited problem of IPv4 address exhaustion. 

How to enable IPv6 Support 

DirectAdmin v1.37.0 now fully supports IPv6 addresses and includes several improvements. To utilize IPv6, we must inform the Direct Admin that we require an IPv6 address rather than an IPv4 address. 

grep 'ipv6' /usr/local/directadmin/conf/directadmin.conf 

If the result is ipv6=1, DirectAdmin has IPv6 enabled. IPv6 is not enabled in DirectAdmin if the output is ipv6=0 or does not return a value. The following command can be used to enable IPv6 functionality. 

/usr/local/directadmin/directadmin set ipv6 1 
systemctl restart directadmin 

Now, we'll run the following commands to ensure that DirectAdmin and its services are IPv6-ready. 

cd /usr/local/directadmin 
./directadmin o

Compiled on 'CentOS 8.0 64-Bit'
Compile time: Sep 21 2021 at 19:19:40
Timestamp: '1632251966'
Compiled with IPv6
Static binary: yes
commit sha: 2554f9e1
gettext support: yes 

If the response is ‘Compiled with IPv6’, it means DirectAdmin has been configured to work with IPv6. To ensure that DirectAdmin is listening on IPv6 port 2222, run the following command. 

netstat -lnp | grep 2222 

[root@tilaakb directadmin]# netstat -lnp | grep 2222 
tcp6       0      0 :::2222                 :::*                    LISTEN      3255545/directadmin 

DirectAdmin is connected to IPv6, listening on 0:::2222, and ready to accept connections from both IPv4 and IPv6 addresses, according to the output above. 

 

How to add an IPv6 address

IPv6 IPs are added to DirectAdmin in the same way that IPv4 IPs are added. Navigate to the dashboard. Once logged in, select IP Management from the admin level dashboard options.  

blobid0.png

In the upper right corner of the screen, choose add IP. To switch to IPv6, select the IPv4 dropdown box under IP Address in the add IP address window. In the IPv6 Address field, type the IPv6 address you want to add to DirectAdmin. Make sure the /96 is appended to the end of the address and the Add to device option is selected. After that, press the add IP button. 

blobid1.png

DirectAdmin now has the IPv6 address, which will appear in the IP Manager dashboard. The IPv6 address must now be assigned to a user. Click the Assign button after checking the box next to the address.  

blobid2.png

You've successfully assigned an IPv6 address to an admin or reseller account on your DirectAdmin server.  

How to add multiple IPv6 addresses 

You can add and assign several multiple IPv6 addresses to an admin or reseller in the same way they you would create and assign an individual IPv6 address. As previously, log in to the IP Manager dashboard and enter the IPv6 address. Fill in the dashboard with as many IPv6 addresses as you want.  

You can assign these IPv6 addresses to any reseller by checking the box next to the address and clicking the Allocate button. However, at this moment, selecting several IPv6 addresses and assigning them to a reseller is not allowed; they must be allocated individually, as previously. 

blobid3.png

You've successfully assigned a reseller to your DirectAdmin server and added numerous IPv6 addresses! 

The DNS server is IPv6-ready. For newly created zones, we have the dns a.conf and dns aaaa.conf default records. The IP type is checked in each of these template files. When an IP is sent to the template, the IP type is also included, so the template can choose to ignore adding any records if the IP type does not match its format, or (with customization) you can add some other value. Most people will benefit from leaving it alone. 

Please note: Backups and restores with the multi-IP system and DNS are still in progress. If you use multiple IP addresses on a domain, you may need to adjust the zone after restoration because the ‘Additional IPs’ may still be in the zone even if the account is on a different IP. 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.

Articles in this section

See more