Author Topic: Manual to configure IPV6 in CWP.  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Manual to configure IPV6 in CWP.
« on: December 17, 2019, 11:04:46 PM »
Hello, everybody.

This is my first message and I have to say that I am totally new with CWP, so, what I publish may be wrong or have better ways to do it.

As for the language, I'm Spanish, so don't be frightened by the translation, I do what I can.

I've just started using IPv6 in the domains I'm testing the CWP panel with, I've only been working with the panel for days and I've seen a lot of people asking for IPv6 support, these steps have already been transmitted to the CWP team, which I hope they will implement very soon.

We started:

For this test, we have assigned the server an IPv6 /112 range, with the intention that each domain has its own IPv6. ( The IPs shown, are only as an example ).

IPv6 /112 range: 2001:1234:1234:1234:1234:1234:1234:1/112

Step one:

Add a DNS record to the domain you are going to configure, in this case: domainexample.com

AAAA: @ - 2001:1234:1234:1234:1234:1234:1234:1

Second Step:

If you are adding the first IPv6 of your own assigned range it is not necessary to do anything, but if it is not the first IP of the range, you have to execute this command by SSH for each configured IPv6, Examples:

/sbin/ip -6 addr add 2001:1234:1234:1234:1234:1234:1234:2/112 dev eth0
/sbin/ip -6 addr add 2001:1234:1234:1234:1234:1234:1234:3/112 dev eth0
/sbin/ip -6 addr add 2001:1234:1234:1234:1234:1234:1234:4/112 dev eth0
/sbin/ip -6 addr add 2001:1234:1234:1234:1234:1234:1234:5/112 dev eth0
/sbin/ip -6 addr add 2001:1234:1234:1234:1234:1234:1234:6/112 dev eth0

And so, all the ones you configure on the server.

Step three:

Add the IP to the NGINX configuration of each domain, as follows, add line to http and https:

http:

/etc/nginx/conf.d/vhosts/domainexample.com.conf:

listen [2001:1234:1234:1234:1234:1234:1234:1]:80;

https:

/etc/nginx/conf.d/vhosts/domainexample.com.ssl.conf:

listen [2001:1234:1234:1234:1234:1234:1234:1]:443  ssl http2;

Step four (You only have to do this once on the server, you don't have to do it for every domain.):

Add this line to the file: /etc/sysctl.conf

net.ipv6.ip_nonlocal_bind = 1

After adding the line save it and run this command :

sysctl -p /etc/sysctl.conf

Step five:

Go to the CWP home page and restart the NGINX service.

FINAL

With these steps I have running IPv6 already for different domains on the server.

You can ping the domain and see if it does it correctly in this url: http://www.ipv6now.com.au/pingme.php

NOTE:

Don't be too cruel to me, I'm still a newcomer to this panel and I'm sure the process can be improved, but right now it's what gave me time and I wanted to share it.

PS: It would be interesting for someone or the developers to make a module to be able to do this in a simple way from CWP. I am willing to accept budgets if someone knows how to make a module for CWP.

Greetings and thanks!
« Last Edit: December 17, 2019, 11:08:03 PM by coriaweb »

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #1 on: December 20, 2019, 12:12:06 AM »
Buenas tardes, veo que hablas en español por lo cual prefiero escribir en español, lograste agregar correctamente registros IPV6 al servidor DNS ? te lo digo porque estoy tratando hace semanas de agregar un registro Ipv6 al DNS y no funciona , siempre me sale "Some fields is not valid value" , esta todo correcto y el ipv6 responde correctamente al servidor, solo el DNS no me funciona . No te genero ningun problema al agregar la zona de DNS ?

Muchas Gracias .

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #2 on: December 20, 2019, 12:55:48 AM »
 ;D ;D ;D ;D  , por fin , funcionando , aun no se cual era el problema , pero al ingresar el dominio y no solamente la entrada www como AAAA me funciono. Muchas Gracias .

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #3 on: December 20, 2019, 11:59:12 AM »
Hola!!

Que va, ningún problema, mira:



Le he puesto asteriscos para seguridad, pero yo estoy andando con IPV6 en todos los dominios sin problema. Ahora mismo andamos creando un script para automatizar todo ese proceso, espero poderlo publicar pronto y mandarlo a los administradores para ver si lo quieren incluir.

Saludos!