Open rvalle opened 2 years ago
I think it is looking for a secondary IP on the default NIC, however the use case is the ip of a non default NIC. I am not sure of what is the casuistic that should be supported. perhaps ANY ip primary or secondary of any interface should be allowed?
I believe it is not possible to add a port forward rule to the secondary NIC. Trying it directly via Cloudstack i.e, on trying to add a port-forward rule for the primary IP on the secondary nic fails with the following error:
(ansibletest) 🐱 > create portforwardingrule ipaddressid=75421aee-cc8b-47bd-b4ba-8bb926b330ab privateport=3000 privateendport=3000 publicport=3000 publicendport=3000 networkid=32621cf2-ca8a-4821-9f3a-1dadfdddf4fd vmguestip=10.1.1.184 protocol=tcp virtualmachineid=f57183a3-a7dd-4302-8414-2ed3e6fd310b
🙈 Error: (HTTP 431, error code 4350) IP Address is not in the VM nic's network
However, there does exist an issue with creating a PF rule on the primary IP of the default NIC as well.
I am not sure what is going wrong, I try to make this port forward in the UI and works.
As far as I understand when forwarding ports to secondary NIC the secondary IP of the VM needs to be specified, like so:
vm_guest_ip belongs to network frontend3 but that is on secondary NIC for ft1c vm. In the UI I set similar parameters and works.
I get the following error: