Author Topic: Manual to configure IPV6 in CWP.  (Read 20638 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 »
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

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!
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #4 on: March 28, 2020, 11:18:50 AM »
Hola has logrado sacar el script al final?
Mi problema es que o mi operador o Contabo tienen mi ip baneada y nadie sabe por que con lo cual no tengo acceso desde mi PC ni al panel, ni a ninguna web incluso ni a los correos.
Me a dicho mi operador Orange que prueba a hacer la configuración en ipv6 pero nunca lo he echo y ando buscando algo de información.
En que mejora el tener la configuración en ipv6?
Un saludo y gracias por tus aportaciones

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #5 on: March 28, 2020, 11:47:22 AM »
Hola has logrado sacar el script al final?
Mi problema es que o mi operador o Contabo tienen mi ip baneada y nadie sabe por que con lo cual no tengo acceso desde mi PC ni al panel, ni a ninguna web incluso ni a los correos.
Me a dicho mi operador Orange que prueba a hacer la configuración en ipv6 pero nunca lo he echo y ando buscando algo de información.
En que mejora el tener la configuración en ipv6?
Un saludo y gracias por tus aportaciones

Hola!

Si, incluso lo mandé al equipo de CWP, pero de momento no han hecho nada.

Lo del tema de la IPv6, ahora mismo no sirve de gran cosa, simplemente es para que si tienes soporte ipv6 en tu conexión de internet, en vez de mostrarla por ipv4 la muestra por ipv6, pero ya está, de momento poco más se puede hacer, para hacer que funcione el servicio de correo por ipv6 y demás se necesita bastante más trabajo.

Atento, si tu proveedor de internet no te da soporte ipv6 en tu conexión (En España muy pocas lo dan, siempre vamos igual de avanzados.. :D ) tampoco te servirá de mucho, ya que no podrás ver la web por ipv6.

Saludos!
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

Offline
**
Re: Manual to configure IPV6 in CWP.
« Reply #6 on: November 22, 2020, 12:53:44 PM »
Disculpad "levante" este post que lleva tiempo.

Mi problema es el mismo que el del compañero, no hay manera de añadir el registro AAAA de ipv6, siempre me dice, algún campo esta erróneo (en inglés claro), he probado con @, con el dominio, con www y sin www, con TTL, sin ello...nunca consigo añadir el registro AAAA siempre me da el mismo problema...

Saludos.

Offline
*****
Re: Manual to configure IPV6 in CWP.
« Reply #7 on: November 23, 2020, 02:30:31 PM »
please try to use English where it is possible.

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #8 on: November 23, 2020, 06:00:02 PM »
Disculpad "levante" este post que lleva tiempo.

Mi problema es el mismo que el del compañero, no hay manera de añadir el registro AAAA de ipv6, siempre me dice, algún campo esta erróneo (en inglés claro), he probado con @, con el dominio, con www y sin www, con TTL, sin ello...nunca consigo añadir el registro AAAA siempre me da el mismo problema...

Saludos.

Hola!

¿Que error te da? ¿Puedes pasar alguna captura de pantalla del error que tienes?
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

Offline
*****
Re: Manual to configure IPV6 in CWP.
« Reply #9 on: November 24, 2020, 09:27:00 AM »
@CoriaWeb Hosting
I will have to delete your topic if you won't use english!
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
**
Re: Manual to configure IPV6 in CWP.
« Reply #10 on: November 24, 2020, 10:15:03 AM »
In English :)
The problem is when adding an ipv6 AAA record, it does not allow me, it always gives me an error, a field is missing or fails, I have tried with @, also with the domain and it always gives me the same error.

Offline
*
Re: Manual to configure IPV6 in CWP.
« Reply #11 on: November 24, 2020, 12:10:17 PM »
In English :)
The problem is when adding an ipv6 AAA record, it does not allow me, it always gives me an error, a field is missing or fails, I have tried with @, also with the domain and it always gives me the same error.

I don't understand having to respond in English to a person who asks in Spanish... it doesn't make sense, but well you would know.

As for your thing, try adding it from the administrator as root and not from the client side. Go to:

https://i.gyazo.com/8d4b63866acb7cb0c81974ade25c612a.png - DNS Zone List

Click this button: https://i.gyazo.com/364dc878cee4b9571d858622c1bce791.png

And try adding it from there.

Let me know if it works for you.

Greetings!
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

Offline
**
Re: Manual to configure IPV6 in CWP.
« Reply #12 on: November 25, 2020, 12:20:50 AM »
In English :)
The problem is when adding an ipv6 AAA record, it does not allow me, it always gives me an error, a field is missing or fails, I have tried with @, also with the domain and it always gives me the same error.

I don't understand having to respond in English to a person who asks in Spanish... it doesn't make sense, but well you would know.

As for your thing, try adding it from the administrator as root and not from the client side. Go to:

https://i.gyazo.com/8d4b63866acb7cb0c81974ade25c612a.png - DNS Zone List

Click this button: https://i.gyazo.com/364dc878cee4b9571d858622c1bce791.png

And try adding it from there.

Let me know if it works for you.

Greetings!

Hi!

Thanks for your reply.

Yes, I made the steps like your screenshoots, my error is, when click in Add record AAAA, always appears:

Error

Some fields is not valid value

Regards!!!

Re: Manual to configure IPV6 in CWP.
« Reply #13 on: November 25, 2020, 01:50:16 AM »
Try putting a dot at the end of the FQDN, like server1.mydomain.com.  or without the dot like server1.mydomain.com
The GUI for records is inconsistent.  ::)

Offline
**
Re: Manual to configure IPV6 in CWP.
« Reply #14 on: November 25, 2020, 09:28:33 AM »
Try putting a dot at the end of the FQDN, like server1.mydomain.com.  or without the dot like server1.mydomain.com
The GUI for records is inconsistent.  ::)
Thanks for reply.
I try with @, with domain with dot at the end and not dot, with hostname with dot at the end and not.
Same problem.

Its possible my site are in cloudflare? The dns in my domain registrar point to dns cloudflare...

Regards.