Instance network delay after IPV6 migration

0

Hi, my instance (Ubuntu 22.04 ARM) was in default vpc and I created new VPC with IPV6 CIDR in view of recent IP charges. To migrate my instance to new VPC, I created AMI, launched new instance in new VPC and assigned primary IPV6. So now, no IPv4 address or elastic IP attached to it. Just IPv6 address. Post this, I'm facing below issues,

  1. All my websites that run on PHP started to give timeouts and respond slowly. I see many errors like below,
FastCGI sent in stderr: "PHP message: cURL error 28: Connection timed out after 5001 milliseconds" while reading response header from upstream, client: <<MY_IP_V6_ADDRESS>>, server: www.website.com
  1. Emails that I send from instance using AWS SES SMTP are not being sent and the scripts are just timing out.

Note: All this started to work back in BAU if I assign an elastic IP address to the instance temporarily.

Is there anything to change in /etc/hosts files or something? I've already setup Security Groups with inbound traffic for 80, 443, custom SSH port for both IPv4 & v6. Help is appreciated in resolving this.

JC
preguntada hace 4 meses215 visualizaciones
2 Respuestas
0
Respuesta aceptada

I've figured it out. Simple thing is now my EC2 instance is on IPv6 only and my apps are cURLing to external IPv4 sites, sending emails using AWS SES (seems not in ipv6 yet). So the timeouts. I've added elastic IP temporarily until AWS SES support IPv6.

JC
respondido hace 4 meses
0

Hi,

Is your PHP stack including curl, opensll up-to-date?

See https://kinsta.com/knowledgebase/curl-error-28/

Outdated software or limited server resources may cause cURL requests to time out. For example, 
outdated PHP, cURL library, or OpenSSL could trigger the cURL error 28. You can read our article 
on the ideal WordPress PHP and server requirements to see if the values match up.

Best,

Didier

profile pictureAWS
EXPERTO
respondido hace 4 meses
  • Hi Didier - Yes, it was always working and even prior migrating to new Vpc. Tried the article but same issues still pertain. Only when an elastic IP is assigned to the instance, everything speeds up. Pls advice.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas