Skip to content

VPC SourceNat with Port Forwarding #4454

@alexandru-bagu

Description

@alexandru-bagu

I am wondering why the VPC network cannot offer both SNAT and PortForwarding. At the moment the VPC offering must be "Non Conserve". A network being "non conserve" means only one service type is allowed to be enabled at any one point. The issue is while Port Forward might be considered a separate service than Source Nat I do not see why a VPC network cannot do both at the same time. I tracked the issue to this place in code public boolean canIpUsedForNonConserveService(PublicIp ip, Service service) which is used by public Map<PublicIpAddress, Set<Service>> getIpToServices(List<? extends PublicIpAddress> publicIps, boolean postApplyRules, boolean includingFirewall).

Is there any specific reason why CloudStack would not be able to manage port forwarding rules on the SNAT ip for a VPC network? I've done some small tests with portfowarding on the VR and there did not seem to be any issues.

I've searched the issues for this but I did not find anything about it. I hope it's not a duplicate.

ISSUE TYPE

Improvement Request

COMPONENT NAME

VR

CLOUDSTACK VERSION

4.14.0.0 - 6f96b3b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions