apache / apache/cloudstack

Static NAT and Port forwarding do not work if the VM NIC is not default

Abierto
#8,366 0 comentarios 0 reacciones 1 asignado Reclamado por @weizhouapache Ver en GitHub
component:advanced-networking component:networking
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

as title

Steps to reproduce the issue
- create a VM with two NICs (the 2nd NIC is on an isolated network)
- acquire public IPs for the isolated network
- Enable Static NAT to the VM, add firewall rules. The IP is unreachable
- Create port forwarding rule to the vm, add firewall rules. The IP is unreachable as well

Workaround
- Use load balancing rule instead of static NAT and port forwarding.
- configure ip rule/tables inside the VM

Idea: when enable static nat or create firewall rules, specify if the public IP is transparent or not.
- If transparent, the source IP of packets which are forwarded from cloudstack VR to the VM, will not be changed
- If not transparent, the source IP of packets which are forwarded from cloudstack VR to the VM, will be the VR IP.

##### ISSUE TYPE

* Bug Report
* Improvement Request

##### COMPONENT NAME

~~~
VR
~~~

##### CLOUDSTACK VERSION

~~~
4.18/4.19
~~~

##### CONFIGURATION

##### OS / ENVIRONMENT

##### SUMMARY

##### STEPS TO REPRODUCE

~~~

~~~

##### EXPECTED RESULTS

~~~

~~~

##### ACTUAL RESULTS

~~~

~~~

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.