---
title: FortiOS Firewall Policy64
slug: homologacao-atmosphere/fortios-firewall-policy64
description: Learn how to configure your FortiGate or FortiOS device with this comprehensive document. Discover how to use the module to set and modify firewall features and policy64 categories. Explore the various parameters that can be adjusted, including action, co
createdAt: 2021-08-23T14:10:23.000Z
---

## Resumo

- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify firewall feature and policy64 category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.5

## Requirements

The below requirements are needed on the host that executes this module.

- fortiosapi>=0.9.8

## Parameters

| ParameterChoices/DefaultsComments |                                 |                                                                                                                                                                        |                                                                                                                     |                                                                                                              |
| --------------------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| firewall\_policy64 dictionary     |                                 | Configure IPv6 to IPv4 policies.                                                                                                                                       |                                                                                                                     |                                                                                                              |
|                                   | action string                   |                                                                                                                                                                        | Policy action.                                                                                                      |                                                                                                              |
|                                   | comments string                 |                                                                                                                                                                        | Comment.                                                                                                            |                                                                                                              |
|                                   | dstaddr list                    |                                                                                                                                                                        | Destination address name.                                                                                           |                                                                                                              |
|                                   |                                 | name string / required                                                                                                                                                 |                                                                                                                     | Address name. Source firewall.address.name firewall.addrgrp.name firewall.vip64.name firewall.vipgrp64.name. |
|                                   | dstintf string                  |                                                                                                                                                                        | Destination interface name. Source system.interface.name system.zone.name.                                          |                                                                                                              |
|                                   | fixedport string                |                                                                                                                                                                        | Enable/disable policy fixed port.                                                                                   |                                                                                                              |
|                                   | ippool string                   |                                                                                                                                                                        | Enable/disable policy64 IP pool.                                                                                    |                                                                                                              |
|                                   | logtraffic string               |                                                                                                                                                                        | Enable/disable policy log traffic.                                                                                  |                                                                                                              |
|                                   | per\_ip\_shaper string          |                                                                                                                                                                        | Per-IP traffic shaper. Source firewall.shaper.per-ip-shaper.name.                                                   |                                                                                                              |
|                                   | permit\_any\_host string        |                                                                                                                                                                        | Enable/disable permit any host in.                                                                                  |                                                                                                              |
|                                   | policyid integer / required     |                                                                                                                                                                        | Policy ID.                                                                                                          |                                                                                                              |
|                                   | poolname list                   |                                                                                                                                                                        | Policy IP pool names.                                                                                               |                                                                                                              |
|                                   |                                 | name string / required                                                                                                                                                 |                                                                                                                     | IP pool name. Source firewall.ippool.name.                                                                   |
|                                   | schedule string                 |                                                                                                                                                                        | Schedule name. Source firewall.schedule.onetime.name firewall.schedule.recurring.name firewall.schedule.group.name. |                                                                                                              |
|                                   | service list                    |                                                                                                                                                                        | Service name.                                                                                                       |                                                                                                              |
|                                   |                                 | name string / required                                                                                                                                                 |                                                                                                                     | Address name. Source firewall.service.custom.name firewall.service.group.name.                               |
|                                   | srcaddr list                    |                                                                                                                                                                        | Source address name.                                                                                                |                                                                                                              |
|                                   |                                 | name string / required                                                                                                                                                 |                                                                                                                     | Address name. Source firewall.address6.name firewall.addrgrp6.name.                                          |
|                                   | srcintf string                  |                                                                                                                                                                        | Source interface name. Source system.zone.name system.interface.name.                                               |                                                                                                              |
|                                   | status string                   |                                                                                                                                                                        | Enable/disable policy status.                                                                                       |                                                                                                              |
|                                   | tcp\_mss\_receiver integer      |                                                                                                                                                                        | TCP MSS value of receiver.                                                                                          |                                                                                                              |
|                                   | tcp\_mss\_sender integer        |                                                                                                                                                                        | TCP MSS value of sender.                                                                                            |                                                                                                              |
|                                   | traffic\_shaper string          |                                                                                                                                                                        | Traffic shaper. Source firewall.shaper.traffic-shaper.name.                                                         |                                                                                                              |
|                                   | traffic\_shaper\_reverse string |                                                                                                                                                                        | Reverse traffic shaper. Source firewall.shaper.traffic-shaper.name.                                                 |                                                                                                              |
|                                   | uuid string                     |                                                                                                                                                                        | Universally Unique Identifier (UUID; automatically assigned but can be manually reset).                             |                                                                                                              |
| host string                       |                                 | FortiOS or FortiGate IP address.                                                                                                                                       |                                                                                                                     |                                                                                                              |
| https boolean                     |                                 | Indicates if the requests towards FortiGate must use HTTPS protocol.                                                                                                   |                                                                                                                     |                                                                                                              |
| password string                   | Default:<br />""                | FortiOS or FortiGate password.                                                                                                                                         |                                                                                                                     |                                                                                                              |
| ssl\_verify booleanadded in 2.9   |                                 | Ensures FortiGate certificate must be verified by a proper CA.                                                                                                         |                                                                                                                     |                                                                                                              |
| state stringadded in 2.9          |                                 | Indicates whether to create or remove the object. This attribute was present already in previous version in a deeper level. It has been moved out to this outer level. |                                                                                                                     |                                                                                                              |
| username string                   |                                 | FortiOS or FortiGate username.                                                                                                                                         |                                                                                                                     |                                                                                                              |
| vdom string                       | Default:<br />"root"            | Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit.                     |                                                                                                                     |                                                                                                              |




## Notes

Note

- Requires fortiosapi library developed by Fortinet
- Run as a local\_action in your playbook

## Examples

```javascript
```

## Return Values

Common return values are documented here, the following are the fields unique to this module:

