Task 1 - Create FortiGate Firewall Policy

  1. Login to the FortiGate using the IP address and credentials from the Terraform output.

  2. Click through any opening screens for FortiGate setup actions, no changes are required.

  3. Click the CLI Console

  4. Enter the following CLI commands to create a FortiGate Firewall Policy “webserver2webserver”

    config firewall policy
        edit 1
            set name "webserver2webserver"
            set srcintf "port2"
            set dstintf "port2"
            set action accept
            set srcaddr "WebServers"
            set dstaddr "WebServers"
            set schedule "always"
            set service "ALL"
        next
    end
    
  5. View the configured Policy in the FortiGate UI

    • Minimize “CLI Console”
    • Click “Policy & Objects”
    • Click “Firewall Policy”

    firewallpolicy1 firewallpolicy1

  6. View webserver2webserver configuration in the FortiGate UI

    • Double-Click the webserver2webserver Policy

    firewallpolicy2 firewallpolicy2

Notice that the Dynamic address WebServers is used as both the source and destination.