create_firewall_policy
Creates a new firewall policy on a FortiGate device to control traffic flow by defining rules for source, destination, interfaces, and services.
Instructions
Create a new firewall policy on a FortiGate device.
This tool adds a new security policy to control traffic flow through the FortiGate device, defining rules for source, destination, and services.
Parameters:
device_id: Identifier of the FortiGate device
policy_data: Policy configuration as JSON object
vdom: Virtual Domain name (optional, uses device default)
Policy data should include:
name: Policy name
srcintf: Source interface(s)
dstintf: Destination interface(s)
srcaddr: Source address object(s)
dstaddr: Destination address object(s)
service: Service object(s)
action: accept or deny
Returns:
Creation status
Policy ID assigned
Configuration summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier | |
| policy_data | Yes | Policy configuration as JSON |