Enzonic VPS
Cyber Monday: 40% off your first 2 months on VPS plans.Ends in 1d 3hSee deal prices
Guides · 10 min read

Host a website on IPv6 and reach IPv4 visitors through Cloudflare

Serve a site on ports 80 and 443 of your VPS's own IPv6 address and let Cloudflare's proxy carry IPv4 visitors, or add a dedicated IPv4.

Ports 80 and 443 on the shared IPv4 belong to nobody in particular, but your IPv6 address is all yours. A proxy such as Cloudflare accepts visitors on IPv4 and IPv6 and connects to your server over IPv6. If you need IPv4 on 80/443 directly, add a dedicated IPv4 in the panel.

  1. 1Install a web server

    Caddy gets and renews HTTPS certificates by itself.

    sudo apt install -y caddy
    echo "example.com {
      root * /var/www/html
      file_server
    }" | sudo tee /etc/caddy/Caddyfile
    sudo systemctl reload caddy
  2. 2Point an AAAA record at the VPS

    In your DNS (Cloudflare, or Enzonic Domains) create an AAAA record for the name with your VPS's IPv6 address from the panel.

    example.com.  AAAA  2001:db8:5b5f:1::1000
  3. 3Turn on the proxy for IPv4 visitors

    In Cloudflare set the record to Proxied. IPv4 visitors reach Cloudflare, which connects to your server over IPv6. Use SSL mode Full (strict).

  4. 4Allow the ports

    Open 80 and 443 in the firewall.

    sudo ufw allow 80,443/tcp

Without a proxy, IPv4-only visitors cannot reach ports 80/443 on IPv6. A dedicated IPv4 add-on gives you every port on your own IPv4 address.

Your VPS is a few clicks away

Create it in the VPS panel with your Enzonic account. Refunds within 72 hours of payment.

Deploy a VPS