apache / apache/cloudstack

VMs with security groups allowing all egress traffic cannot access the Internet in 4.23.0.0

Abierto
#14,099 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

### problem

# Description

In CloudStack 4.23.0.0, a VM cannot access the Internet when its security group has egress rules configured, even when the egress rules allow all outbound traffic (0.0.0.0/0).

The same configuration works as expected in older CloudStack versions.

The issue occurs when the security group has egress rules but no ingress rules.

# Expected behavior

The VM should be able to initiate outbound connections to the Internet when the security group has an egress rule allowing all traffic.

According to the CloudStack documentation:
```
If there is no Egress rule in a Security Group, all the outgoing traffic will be allowed.
If there are Egress rules in a Security Group, only the outgoing traffic which match a Egress rule will be allowed.
Only the incoming traffic which match a Ingress rule will be allowed.
```

# Actual behavior

With CloudStack 4.23.0.0:

- The VM has a security group assigned.
- The security group has one egress rule allowing ALL outbound traffic.
- There are no ingress rules.
- The VM cannot access the Internet.

Image

Image

### versions

The versions of ACS, hypervisors, storage, network etc..

### The steps to reproduce the bug

1.
2.
3.
...

### What to do about it?

_No response_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se identifican archivos, pruebas ni puntos de entrada. Primero reproduce el caso 4.23.0.0 con un grupo de seguridad solo de salida que permita 0.0.0.0/0, después compáralo con una versión anterior que funcione y rastrea la ruta de salida del grupo de seguridad. Se considera terminado cuando la VM pueda iniciar conexiones a Internet sin reglas de entrada y la regresión correspondiente esté cubierta por una prueba.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
cloud, networking, security
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Necesita aclaración
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.