DirectAdmin fully supports IPv6. To use it, you must first enable the feature in the configuration and then assign the IP addresses to your resellers or users.
Step 1: Enable IPv6 Support in DirectAdmin
First, verify if IPv6 is already enabled in your DirectAdmin configuration.
- Log in via SSH as
root. - Check the configuration:
grep 'ipv6' /usr/local/directadmin/conf/directadmin.conf -
- If the output is
ipv6=1, you can skip to Step 2. - If the output is empty or
ipv6=0, run the following commands to enable it:
/usr/local/directadmin/directadmin set ipv6 1 systemctl restart directadmin - If the output is
Verification
Check if DirectAdmin is listening on the IPv6 port:
netstat -lnp | grep 2222
You should see a line starting with tcp6 and listening on :::2222.
Step 2: Adding IPv6 Addresses
Now you need to tell DirectAdmin which IPv6 addresses are available for use.
- Log in to the DirectAdmin control panel as
admin. - Navigate to Server Manager > IP Management.
- Click on the button Add IP (top right).
- In the dropdown menu, change the protocol to IPv6.
- Enter your IPv6 address.
-
Important: Ensure you set the netmask correctly (usually
/64or/48depending on your Tilaa allocation, but typically entered as/64in DirectAdmin). - Click Add IP.
Tip:
If you are adding the main IPv6 address of the server, make sure to uncheck "Add to device" if the OS has already configured it automatically (to avoid duplicates). If it's a new/additional IP, keep "Add to device" checked.
If you are adding the main IPv6 address of the server, make sure to uncheck "Add to device" if the OS has already configured it automatically (to avoid duplicates). If it's a new/additional IP, keep "Add to device" checked.
Step 3: Assigning IPv6 to Users
Once the IP is added to the system pool, you must assign it to a Reseller or User before it can be used for a website.
- Go back to IP Management.
- Find the IPv6 address you just added.
- Select the checkbox next to it.
- Click Assign.
- Select the Reseller (e.g.,
admin) you want to assign it to.
The reseller can now go to "User Level" -> "Domain Setup" and assign this IPv6 address to specific domains.