fortinet.fortimanager.fmgr_ztna_trafficforwardproxy module – Configure ZTNA traffic forward proxy.
Note
This module is part of the fortinet.fortimanager collection (version 2.12.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install fortinet.fortimanager.
To use it in a playbook, specify: fortinet.fortimanager.fmgr_ztna_trafficforwardproxy.
New in fortinet.fortimanager 2.12.0
Synopsis
This module is able to configure a FortiManager device.
Examples include all parameters and values which need to be adjusted to data sources before usage.
Parameters
Parameter |
Comments |
|---|---|
The token to access FortiManager without using username and password. |
|
The parameter (adom) in requested url. |
|
Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. Choices:
|
|
Enable/Disable logging for task. Choices:
|
|
Authenticate Ansible client with forticloud API access token. |
|
The overridden method for the underlying Json RPC request. Choices:
|
|
The rc codes list with which the conditions to fail will be overriden. |
|
The rc codes list with which the conditions to succeed will be overriden. |
|
The change note that can be specified when an object is created or updated. |
|
The directive to create, update or delete an object. Choices:
|
|
The adom to lock for FortiManager running in workspace mode, the value can be global and others including root. |
|
The maximum time in seconds to wait for other user to release the workspace lock. Default: |
|
The top level parameters set. |
|
Enable/disable authentication portal. Choices:
|
|
Virtual host for authentication portal. |
|
Client cert. Choices:
|
|
Comment. |
|
Decrypted traffic mirror. |
|
Empty cert action. Choices:
|
|
H3 support. Choices:
|
|
Virtual or real host name. |
|
Interface. |
|
Enable/disable logging of blocked traffic. Choices:
|
|
ZTNA proxy name. |
|
Port. |
|
Quic. |
|
Ack delay exponent. |
|
Active connection id limit. |
|
Active migration. Choices:
|
|
Grease quic bit. Choices:
|
|
Max ack delay. |
|
Max datagram frame size. |
|
Max idle timeout. |
|
Max udp payload size. |
|
Ssl accept ffdhe groups. Choices:
|
|
Ssl algorithm. Choices:
|
|
Ssl certificate. |
|
Ssl cipher suites. |
|
Cipher. Choices:
|
|
Priority. |
|
Versions. Choices:
|
|
Ssl client fallback. Choices:
|
|
Ssl client rekey count. |
|
Ssl client renegotiation. Choices:
|
|
Ssl client session state max. |
|
Ssl client session state timeout. |
|
Ssl client session state type. Choices:
|
|
Ssl dh bits. Choices:
|
|
Ssl hpkp. Choices:
|
|
Ssl hpkp age. |
|
Ssl hpkp backup. |
|
Ssl hpkp include subdomains. Choices:
|
|
Ssl hpkp primary. |
|
Ssl hpkp report uri. |
|
Ssl hsts. Choices:
|
|
Ssl hsts age. |
|
Ssl hsts include subdomains. Choices:
|
|
Ssl http location conversion. Choices:
|
|
Ssl http match host. Choices:
|
|
Ssl max version. Choices:
|
|
Ssl min version. Choices:
|
|
Ssl mode. Choices:
|
|
Ssl pfs. Choices:
|
|
Ssl send empty frags. Choices:
|
|
Ssl server algorithm. Choices:
|
|
Ssl server cipher suites. |
|
Cipher. Choices:
|
|
Priority. |
|
Versions. Choices:
|
|
Ssl server max version. Choices:
|
|
Ssl server min version. Choices:
|
|
Ssl server renegotiation. Choices:
|
|
Ssl server session state max. |
|
Ssl server session state timeout. |
|
Ssl server session state type. Choices:
|
|
Status. Choices:
|
|
Svr pool multiplex. Choices:
|
|
Svr pool server max concurrent request. |
|
Svr pool server max request. |
|
Svr pool ttl. |
|
Url route. |
|
Name. |
|
Service connector. |
|
Url pattern. |
|
User agent detect. Choices:
|
|
Virtual IP name. |
|
Virtual IPv6 name. |
Notes
Note
Starting in version 2.4.0, all input arguments are named using the underscore naming convention (snake_case). Please change the arguments such as “var-name” to “var_name”. Old argument names are still available yet you will receive deprecation warnings. You can ignore this warning by setting deprecation_warnings=False in ansible.cfg.
Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
To create or update an object, use state present directive.
To delete an object, use state absent directive.
Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
gather_facts: false
vars:
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_httpapi_port: 443
tasks:
- name: Configure ZTNA traffic forward proxy.
fortinet.fortimanager.fmgr_ztna_trafficforwardproxy:
# bypass_validation: false
# workspace_locking_adom: <global or your adom name>
# workspace_locking_timeout: 300
# rc_succeeded: [0, -2, -3, ...]
# rc_failed: [-2, -3, ...]
adom: <your own value>
state: present # <value in [present, absent]>
ztna_trafficforwardproxy:
name: "your value" # Required variable, string
# auth_portal: <value in [disable, enable]>
# auth_virtual_host: <list or string>
# decrypted_traffic_mirror: <list or string>
# host: <list or string>
# log_blocked_traffic: <value in [disable, enable]>
# url_route:
# - name: <string>
# service_connector: <list or string>
# url_pattern: <string>
# vip: <list or string>
# ssl_client_session_state_max: <integer>
# ssl_send_empty_frags: <value in [disable, enable]>
# ssl_server_max_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
# ssl_accept_ffdhe_groups: <value in [disable, enable]>
# empty_cert_action: <value in [accept, block, accept-unmanageable]>
# quic:
# ack_delay_exponent: <integer>
# active_connection_id_limit: <integer>
# active_migration: <value in [disable, enable]>
# grease_quic_bit: <value in [disable, enable]>
# max_ack_delay: <integer>
# max_datagram_frame_size: <integer>
# max_idle_timeout: <integer>
# max_udp_payload_size: <integer>
# ssl_server_session_state_max: <integer>
# ssl_client_session_state_type: <value in [disable, time, count, ...]>
# ssl_hpkp_age: <integer>
# ssl_hpkp_report_uri: <string>
# ssl_min_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
# ssl_mode: <value in [half, full]>
# ssl_client_session_state_timeout: <integer>
# ssl_hsts_age: <integer>
# interface: <list or string>
# ssl_client_renegotiation: <value in [allow, deny, secure]>
# ssl_server_session_state_timeout: <integer>
# ssl_server_min_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
# ssl_cipher_suites:
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
# priority: <integer>
# versions:
# - "ssl-3.0"
# - "tls-1.0"
# - "tls-1.1"
# - "tls-1.2"
# - "tls-1.3"
# ssl_client_rekey_count: <integer>
# svr_pool_server_max_request: <integer>
# ssl_dh_bits: <value in [768, 1024, 1536, ...]>
# port: <string>
# ssl_http_match_host: <value in [disable, enable]>
# ssl_server_session_state_type: <value in [disable, time, count, ...]>
# status: <value in [disable, enable]>
# svr_pool_multiplex: <value in [disable, enable]>
# ssl_hpkp: <value in [disable, enable, report-only]>
# ssl_hsts: <value in [disable, enable]>
# svr_pool_server_max_concurrent_request: <integer>
# h3_support: <value in [disable, enable]>
# ssl_http_location_conversion: <value in [disable, enable]>
# comment: <string>
# ssl_pfs: <value in [require, deny, allow]>
# ssl_hsts_include_subdomains: <value in [disable, enable]>
# ssl_certificate: <list or string>
# ssl_max_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
# ssl_hpkp_backup: <list or string>
# client_cert: <value in [disable, enable]>
# ssl_client_fallback: <value in [disable, enable]>
# vip6: <list or string>
# ssl_algorithm: <value in [high, low, medium, ...]>
# ssl_server_algorithm: <value in [high, low, medium, ...]>
# ssl_hpkp_include_subdomains: <value in [disable, enable]>
# user_agent_detect: <value in [disable, enable]>
# ssl_server_renegotiation: <value in [disable, enable]>
# svr_pool_ttl: <integer>
# ssl_server_cipher_suites:
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
# priority: <integer>
# versions:
# - "ssl-3.0"
# - "tls-1.0"
# - "tls-1.1"
# - "tls-1.2"
# - "tls-1.3"
# ssl_hpkp_primary: <list or string>
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The result of the request. Returned: always |
|
The full url requested. Returned: always Sample: |
|
The status of api request. Returned: always Sample: |
|
The api response. Returned: always |
|
The descriptive message of the api response. Returned: always Sample: |
|
The information of the target system. Returned: always |
|
The status the request. Returned: always Sample: |
|
Warning if the parameters used in the playbook are not supported by the current FortiManager version. Returned: complex |