Customer SupportShop

Manage egress firewall rules in CloudStack

Control which connections may leave an isolated CloudStack network, with checks for the offering’s default policy and existing broad allowances.

Applies to: CloudStack isolated networks with an Egress Firewall service. VPC tiers use network ACLs; shared networks are outside this procedure.

Before you start

  • List the application’s required source addresses, destination addresses, protocols and ports.
  • Record the existing egress rules and offering’s default egress policy. Do not assume that an empty rule list means either allow or deny.
  • Arrange a change window and recovery access before restricting a network used by live services.

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

  1. Open Network → Guest networks, select the correct network and open Egress rules.
  2. Check the current policy and rules. An existing allow-all rule can continue to permit traffic even after a narrower rule is added.
  3. Add an allowance for the required source CIDR, protocol and destination port or range. Set approved destination CIDRs where the interface supports them.
  4. For an application making HTTPS connections, TCP destination port 443 is a common requirement. DNS may need TCP and UDP 53 to approved external resolvers; CloudStack-provided DNS can follow a different path.
  5. Apply the change and test the application. If the goal is to restrict access, remove superseded broad allowances only within the planned change and after checking dependencies.
  6. Where the offering’s default policy prevents the required result, ask Blue Sky Systems to review the offering. Do not change a shared offering or a global setting as part of a tenant rule edit.

Check the result

  • Test the permitted application from a VM in the intended source range.
  • Test a connection that should be blocked, where the network is intended to restrict outbound access.
  • Confirm updates, DNS, backups and other required services still work.

Important details

  • Egress permissions do not publish a VM to the internet.
  • Deleting the final rule can expose the offering’s default behaviour. Keep the previous configuration so the change can be reversed deliberately.

Related guides