Applies to: A NAT-based isolated CloudStack network with Port Forwarding enabled. VPC tiers and routed networks need their own firewall or ACL design.
Before you start
- Confirm the destination VM, private IP, application port and allowed public source addresses.
- Check the service works inside the guest network and that the guest firewall permits it.
- Choose a public IP that supports port forwarding and is not already assigned to Static NAT. Record the existing rules.
CloudStack menu labels and available actions vary by release, account permissions and the services enabled for your network or zone. If an option is missing, confirm the supported approach with Blue Sky Systems.
Procedure
- Open the guest network, then Public IP addresses. Select the intended address, or acquire one for that network if your allocation permits.
- Open its Port forwarding configuration. Select the protocol, public port or range, destination VM and corresponding private port or range.
- For a web service using HTTPS on both sides, the mapping is TCP public port
443to private port443. Use the ports required by your actual application. - Apply the rule. Review the public IP’s inbound firewall configuration: some workflows create a matching allowance automatically; others require a separate firewall rule.
- Restrict permitted source CIDRs in the applicable firewall controls. Confirm the resulting rules rather than assuming the port-forwarding entry applies a source restriction.
- Test the public IP and port from an allowed external network. After testing, update application DNS only if that is part of the approved change.
Check the result
- Confirm the correct VM and service respond from an allowed external source.
- Test that disallowed sources cannot reach a service intended to be restricted.
- Check the certificate, application response and guest firewall, not just whether a TCP port opens.
Important details
- Keep management access behind a VPN or restricted to trusted source addresses.
- If the test fails, check the forwarding rule, public firewall, VM address, guest firewall and application listener before broadening access. Remove only the rules added by this change if you roll back.