Back to exam

NSE7_PBC-7.2 Cheatsheet

Fortinet NSE 7 - Public Cloud Security 7.2

Download free PDF

AWS networking and centralized inspection

Subnet controls and public access

  • **Security groups** filter traffic at network interfaces and are stateful. **Network ACLs** filter at subnet boundaries and are stateless; permit return traffic, including required ephemeral ports.
  • **NACL rules** run from the lowest number upward; the first match wins. An SSH allow rule must have a lower number than a matching deny. The default NACL initially permits traffic; a new custom NACL initially denies it.
  • **Direct public access** needs a public IPv4 address or Elastic IP, an attached internet gateway, suitable subnet routes and permitted traffic. An Elastic IP alone does not create an internet path.
  • For FortiGate **HTTPS/SSH administration**, check cloud routing, security groups and NACLs before the FortiGate interface's administrative access and trusted hosts. If no packets arrive, investigate the upstream path first.
  • **EC2 SSH** needs the correct instance username, private-key path and matching key pair. On Linux, restrict private-key permissions, for example with chmod 400, and verify that SSH is reachable.

Transit Gateway route tables

  • **Transit Gateway (TGW)** connects VPCs and other networks through attachments. Add routes in the workload subnet route tables toward TGW; creating an attachment alone does not redirect workload traffic.
  • **Association** selects the TGW route table used for traffic arriving from an attachment. An attachment associates with one TGW route table at a time; a TGW can contain multiple route tables.
  • **Propagation** installs an attachment's reachable prefixes into selected TGW route tables. It can target multiple tables independently of association; propagation does not change the arriving attachment's lookup table.
  • Use separate **spoke and security routing domains** to steer inspection. Verify the TGW route table for each direction, the VPC subnet routes and the final return path; a route in one layer does not populate every other layer.

Spoke-to-security traffic paths

  • **North-south inspection** handles traffic entering or leaving the cloud. **East-west inspection** handles traffic between workloads or VPCs; both directions must traverse the intended inspection path.
  • For **centralized egress**, route the spoke's selected destinations toward TGW, steer them to the security attachment, and route traffic arriving in the security VPC to the FortiGate inside interface.
  • The FortiGate needs **firewall policies**, a valid onward route, and **source NAT** where private workloads require internet address translation. Its external subnet must have the intended internet gateway path.
  • For the **return path**, route spoke prefixes back through TGW and its correct attachments. Keep stateful inspection symmetric; use TGW appliance mode where the inspection design requires flow affinity across Availability Zones.
  • **Longest-prefix matching** can preserve direct management access while default traffic uses centralized inspection. A narrow management-client route through the internet gateway must have a matching inbound path and tightly scoped access rules.

TGW Connect: GRE and BGP

  • **TGW Connect** uses **GRE** for encapsulation and **BGP** for route exchange. In a VPC deployment, the Connect attachment rides on an existing VPC **transport attachment**; a Connect peer defines the GRE tunnel.
  • **Outer GRE addresses** identify the FortiGate and TGW tunnel endpoints. The TGW address comes from its configured CIDR pool and may be allocated automatically; select a reachable FortiGate interface address for the peer endpoint.
  • **Inside BGP addresses** use a unique, eligible /29 from 169.254.0.0/16 for IPv4. Configure the first usable address on the appliance; reserved ranges cannot be used. Inside BGP addresses differ from the outer tunnel addresses.
  • Route the **TGW GRE endpoint prefix** through the transport attachment. Advertise workload routes through BGP, and enable Connect propagation in the TGW tables that need those routes.
  • **GRE provides no encryption.** Connect improves appliance integration without the same per-tunnel IPsec processing model. **ECMP** can distribute eligible equal-cost routes; it does not make one flow consume every available path.

Transit VPC and spoke automation

  • A **transit VPC** hosts hub appliances that connect spokes through routed tunnels. **VPC peering** is non-transitive; a peering mesh does not automatically provide transit through a security hub.
  • **CloudFormation** templates provision repeatable spoke connectivity. Match spoke-discovery tags and the hub's **BGP ASN** to the deployed automation; tags identify resources, while ASNs identify routing domains.
  • In event-driven automation, **CloudWatch events** can trigger configuration work and **S3** can hold templates or configuration artifacts. Their exact roles depend on the deployed template and supporting functions.
  • Multiple **VPN tunnels** with BGP and supported **ECMP** can increase aggregate hybrid capacity. Check tunnel limits, route equality, appliance capacity and redundancy; connection count alone does not guarantee higher throughput.

Azure connectivity and FortiGate availability

Active-passive failover models

  • **Azure Virtual WAN** hubs connect branches and VNets. **Site-to-site VPN** provides encrypted internet connectivity; **ExpressRoute** provides private circuit connectivity. Choose the connection type for bandwidth, latency and resilience needs.
  • In **SDN connector failover**, the newly active FortiGate calls Azure APIs to move public-IP associations and update user-defined routes. Convergence depends on control-plane updates as well as FortiGate failure detection.
  • Identify the correct **subscription**, **resource group**, interfaces, public IPs and route tables. Grant both nodes' identities the required read and write access; an API-driven failover requires more than read-only discovery permissions.
  • **Configuration synchronization** and **cloud failover automation** serve different purposes. FGCP can synchronize eligible configuration while device-specific settings remain local; vdom-exception controls selected synchronization exceptions.

Load balancers and session continuity

  • In a **load balancer sandwich**, an external load balancer handles ingress and an internal load balancer steers protected-subnet traffic to FortiGate backends. Use the **internal frontend private IP** as the UDR next hop in the applicable design.
  • **Health probes** determine which backend can receive traffic. Allow Azure probe traffic and provide the required return routes to **168.63.129.16** through the probed interfaces; route details depend on the deployed topology.
  • **Active-passive** load balancing directs traffic to the healthy active firewall. **Active-active** distributes traffic across independent firewalls; an active-active deployment does not itself enable autoscaling or synchronize configuration.
  • **FGSP** synchronizes supported sessions between peers; configuration synchronization is a separate setting. Configure peerip as the other FortiGate's reachable synchronization address, commonly its inside address, rather than a load balancer frontend.
  • **Session pickup**, consistent policy and appropriate load balancer persistence help preserve flows. Plan asymmetric handling and NAT behavior explicitly; enabling FGSP alone does not guarantee that every session survives any path change.

SDN identity and API troubleshooting

  • An **Azure SDN connector** resolves cloud attributes into dynamic address objects. Read access supports discovery; API-driven HA needs write rights such as **Network Contributor** or an appropriate custom role on affected resources.
  • With **managed identity**, enable the VM's system-assigned identity and assign its roles. FortiGate obtains a token through Azure instance metadata at **169.254.169.254**, then uses the token for Azure management API calls.
  • With a **service principal**, verify tenant ID, client ID, client secret, subscription and scope. A lost secret value cannot be displayed again; create a replacement, update the consumer and account for expiration.
  • For failed connector calls, check **DNS**, outbound HTTPS, metadata reachability, credentials and role assignments. For failed floating-IP movement, inspect write authorization and the targeted network resources after confirming token acquisition.
  • Use **diagnose sys sdn status** for connector status and **diagnose debug application azd -1** with debug enabled to inspect Azure calls. Stop debugging afterward with **diagnose debug disable**.

Infrastructure and configuration automation

Terraform lifecycle and state

  • **terraform init** initializes the working directory, backend and providers. **terraform validate** checks configuration validity; **terraform plan** previews proposed changes without deploying them.
  • **terraform apply** performs the proposed changes. It can generate a plan itself or apply a saved plan; a separate plan command is useful for review but is not always a prerequisite.
  • **State** maps Terraform resource addresses to provisioned objects. Local state normally uses **terraform.tfstate**; remote backends store it elsewhere. Protect state because it can contain sensitive values.
  • **terraform destroy** plans removal of resources managed by the selected configuration and state. It does not automatically remove an unrelated Marketplace VM, every resource in a group, or every resource owned by the credentials.
  • A **command not found** error points to installation or PATH resolution. Verify the executable location and permissions; placing the binary in an appropriate PATH directory makes the command discoverable.

Reusable deployments and credentials

  • **variables.tf** commonly declares input variables; **.tfvars** files supply environment-specific values. Select a file with **-var-file** to reuse configuration across regions without editing resource definitions.
  • A **region** contains Availability Zones; a value such as **eu-west-1a** names an AZ, while **eu-west-1** names the region. The resource definitions and resolved inputs together determine subnets, instances and license settings.
  • For AWS, authenticate through authorized **IAM credentials or roles**. For Azure, use an authorized identity such as a service principal or managed identity. Authentication and permission scope are separate deployment requirements.
  • **Cloud Shell** can provide Terraform and cloud authentication. Verify the installed version, subscription or account context, and persistent files or state backend; a local installation instead requires an executable on PATH.
  • **Immutable infrastructure** replaces an instance or image when its configuration changes. **Mutable configuration** changes an existing system in place. Choose the lifecycle deliberately and preserve required state outside replaceable compute.

Ansible configuration management

  • **Inventory** identifies target hosts and connection variables; **YAML playbooks** describe tasks. Set the FortiGate address through inventory, ansible_host or the connection inputs required by the selected module.
  • The **FortiOS Ansible collection** supports configuration through **HTTPAPI over HTTPS**. Older or different workflows may use SSH; the collection, module and connection settings determine the transport. YAML is a task format, not a network protocol.
  • Use scoped **API tokens**, verified connectivity and idempotent modules. Terraform outputs can feed Ansible inventory; the number and names of files are project conventions rather than a universal minimum.

Cloud data, applications and containers

Match protection to the workload

  • **FortiGate** inspects routed network traffic. **FortiCASB** provides visibility and policy controls for users, activity and data in supported SaaS applications. **FortiCNP** correlates cloud-resource risks and protection findings.
  • **FortiWeb Cloud** provides web application firewall protection for HTTP(S) applications, including common **OWASP Top 10** attack classes. Select supported regional placement close to the application to reduce cross-region traffic and latency.
  • **DLP** identifies sensitive content; **malware scanning** detects malicious files; **compliance scanning** evaluates posture against rules. For S3 data protection, select supported content-scanning policies and permissions rather than relying on network application control alone.

FortiCNP onboarding and IPS findings

  • **AWS account onboarding** establishes FortiCNP's authorized access to cloud resources. Review and deploy the supplied **CloudFormation** integration or its documented manual equivalent, then verify the connected account and regions.
  • **GuardDuty** contributes threat-detection findings; **Inspector** contributes vulnerability findings. Enable the services and integrations required by the selected protection workflow; **CloudTrail** provides account API activity rather than the same finding types.
  • **FortiGate Fabric Integration** sends IPS logs to FortiCNP as risk findings. Onboard the protected workload, configure log delivery, create an **SSL/SSH inspection profile** and **IPS sensor**, and apply them in a matching firewall policy.
  • Verify **log connectivity** and that real traffic matches the inspected policy. A defined IPS sensor with no policy attachment or traffic path does not generate the intended protection findings.

Container images and network controls

  • FortiCNP **Container Protection** scans container images for known **CVEs** during build workflows and in registries. Repeated scans can reveal newly disclosed vulnerabilities in images that were previously scanned.
  • A **registry**, **repository** and **tag** identify the source and image selection. Verify scan scope and repository access; a successful connection does not mean every tag or image has been scanned.
  • Prioritize findings by **severity**, exposure and affected image use. Rebuild from patched dependencies and redeploy the corrected image; a scan identifies vulnerabilities but does not patch a running container.
  • FortiGate **application control** can recognize supported Docker or container-related traffic using maintained signatures. Combine network controls with image scanning, cluster posture checks and workload permissions; each addresses a different attack surface.