Prerequisites
Before setting up IPv6, make sure you have:
- SSH access to your VPS
- IPv6 address assigned by Hostxpeed (check service details page)
- Root or sudo privileges
Step 1: Check if IPv6 is Already Enabled
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
ip addr show | grep inet6
Step 2: Find Your IPv6 Details
In Hostxpeed client area (Service Details page), look for IPv6 address (e.g., 2607:5300:205:200::4b93).
Step 3: Configure IPv6 (Ubuntu/Debian Netplan)
sudo nano /etc/netplan/01-netcfg.yaml
Add IPv6 configuration:
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- YOUR_IPV4/22
- "YOUR_IPV6/64"
gateway6: YOUR_IPV6_GATEWAY
Apply:
sudo netplan apply
Step 4: Test IPv6 Connectivity
ping6 -c 4 google.com
curl -6 ifconfig.co
Step 5: Configure Services for IPv6
Nginx example (listen on both IPv4 and IPv6):
server {
listen 80;
listen [::]:80;
server_name example.com;
}
Apache example:
Listen 80
Listen [::]:80
Step 6: Update Firewall for IPv6
For UFW:
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
UFW handles both IPv4 and IPv6 automatically.
✅ IPv6 has been configured. Your VPS can now serve traffic over IPv6.