fortinet.fortimanager.fmgr_vpn_ssl_settings module – Configure SSL VPN.
Note
This module is part of the fortinet.fortimanager collection (version 2.3.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_vpn_ssl_settings
.
New in fortinet.fortimanager 2.1.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. |
|
Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. Choices:
|
|
the parameter (device) in requested url |
|
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 parameter (vdom) in requested url |
|
the top level parameters set |
|
Force the SSL VPN security level. Choices:
|
|
Enable/disable checking of source IP for authentication session. Choices:
|
|
SSL VPN authentication timeout |
|
no description |
|
SSL VPN authentication method restriction. Choices:
|
|
SSL VPN cipher strength. Choices:
|
|
Enable/disable SSL VPN client certificate restrictive. Choices:
|
|
(list or str) User groups. |
|
ID |
|
SSL VPN portal. |
|
SSL VPN realm. |
|
(list or str) Source address of incoming traffic. |
|
Enable/disable negated source address match. Choices:
|
|
(list or str) IPv6 source address of incoming traffic. |
|
Enable/disable negated source IPv6 address match. Choices:
|
|
(list or str) SSL VPN source interface of incoming traffic. |
|
Name of user peer. |
|
(list or str) User name. |
|
Enable/disable to auto-create static routes for the SSL VPN tunnel IP addresses. Choices:
|
|
no description Choices:
|
|
Enable/disable overriding the configured system language based on the preferred language of the browser. Choices:
|
|
Enable/disable verification of referer field in HTTP request header. Choices:
|
|
no description Choices:
|
|
Set signature algorithms related to client authentication. Choices:
|
|
Default SSL VPN portal. |
|
Compression level |
|
Minimum amount of data that triggers compression |
|
DNS server 1. |
|
DNS server 2. |
|
DNS suffix used for SSL VPN clients. |
|
Number of missing heartbeats before the connection is considered dropped. |
|
Idle timeout before DTLS heartbeat is sent. |
|
Interval between DTLS heartbeat. |
|
SSLVPN maximum DTLS hello timeout |
|
DTLS maximum protocol version. Choices:
|
|
DTLS minimum protocol version. Choices:
|
|
Enable/disable DTLS to prevent eavesdropping, tampering, or message forgery. Choices:
|
|
Tunnel mode Choices:
|
|
Encode 2F sequence to forward slash in URLs. Choices:
|
|
Encrypt and store user passwords for SSL VPN web sessions. Choices:
|
|
Enable/disable only PKI users with two-factor authentication for SSL VPNs. Choices:
|
|
Forward the same, add, or remove HTTP header. Choices:
|
|
Add HSTS includeSubDomains response header. Choices:
|
|
Enable/disable to allow HTTP compression over SSL VPN tunnels. Choices:
|
|
Enable/disable SSL VPN support for HttpOnly cookies. Choices:
|
|
SSL VPN session is disconnected if an HTTP request body is not received within this time |
|
SSL VPN session is disconnected if an HTTP request header is not received within this time |
|
Enable/disable redirect of port 80 to SSL VPN port. Choices:
|
|
SSL VPN disconnects if idle for specified time in seconds. |
|
IPv6 DNS server 1. |
|
IPv6 DNS server 2. |
|
IPv6 WINS server 1. |
|
IPv6 WINS server 2. |
|
SSL VPN maximum login attempt times before block |
|
Time for which a user is blocked from logging in after too many failed login attempts |
|
SSLVPN maximum login timeout |
|
SSL VPN access port |
|
Enable/disable, Enable means that if SSL VPN connections are allowed on an interface admin GUI connections are blocked on that … Choices:
|
|
Enable/disable to require client certificates for all SSL VPN users. Choices:
|
|
Enable/disable to allow SSL VPN sessions to bypass routing and bind to the incoming interface. Choices:
|
|
SAML local redirect port in the machine running FortiClient |
|
Server hostname for HTTPS. |
|
Name of the server certificate to be used for SSL VPNs. |
|
(list or str) Source address of incoming traffic. |
|
Enable/disable negated source address match. Choices:
|
|
(list or str) IPv6 source address of incoming traffic. |
|
Enable/disable negated source IPv6 address match. Choices:
|
|
(list or str) SSL VPN source interface of incoming traffic. |
|
Disable using the big SSLv3 buffer feature to save memory and force higher security. Choices:
|
|
Enable/disable to allow client renegotiation by the server if the tunnel goes down. Choices:
|
|
Enable/disable insertion of empty fragment. Choices:
|
|
SSL maximum protocol version. Choices:
|
|
SSL minimum protocol version. Choices:
|
|
no description Choices:
|
|
Enable/disable SSL-VPN. Choices:
|
|
Enable/disable TLSv1. Choices:
|
|
Enable/disable TLSv1. Choices:
|
|
Enable/disable TLSv1. Choices:
|
|
no description Choices:
|
|
Transform backward slashes to forward slashes in URLs. Choices:
|
|
Method used for assigning address for tunnel. Choices:
|
|
Enable/disable tunnel connection without re-authorization if previous connection dropped. Choices:
|
|
(list or str) Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients. |
|
(list or str) Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients. |
|
Time out value to clean up user session after tunnel connection is dropped |
|
Enable/disable unsafe legacy re-negotiation. Choices:
|
|
Enable/disable to obscure the host name of the URL of the web browser display. Choices:
|
|
Name of user peer. |
|
Enable/disable use of IP pools defined in firewall policy while using web-mode. Choices:
|
|
WINS server 1. |
|
WINS server 2. |
|
Add HTTP X-Content-Type-Options header. Choices:
|
|
Enable/disable verification of device certificate for SSLVPN ZTNA session. 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: |
Notes
Note
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
- hosts: fortimanager-inventory
collections:
- fortinet.fortimanager
connection: httpapi
vars:
ansible_httpapi_use_ssl: True
ansible_httpapi_validate_certs: False
ansible_httpapi_port: 443
tasks:
- name: Configure SSL VPN.
fmgr_vpn_ssl_settings:
bypass_validation: False
workspace_locking_adom: <value in [global, custom adom including root]>
workspace_locking_timeout: 300
rc_succeeded: [0, -2, -3, ...]
rc_failed: [-2, -3, ...]
device: <your own value>
vdom: <your own value>
vpn_ssl_settings:
algorithm: <value in [default, high, low, ...]>
auth-session-check-source-ip: <value in [disable, enable]>
auth-timeout: <integer>
authentication-rule:
-
auth: <value in [any, local, radius, ...]>
cipher: <value in [any, high, medium]>
client-cert: <value in [disable, enable]>
groups: <list or string>
id: <integer>
portal: <string>
realm: <string>
source-address: <list or string>
source-address-negate: <value in [disable, enable]>
source-address6: <list or string>
source-address6-negate: <value in [disable, enable]>
source-interface: <list or string>
user-peer: <string>
users: <list or string>
auto-tunnel-static-route: <value in [disable, enable]>
banned-cipher:
- RSA
- DH
- DHE
- ECDH
- ECDHE
- DSS
- ECDSA
- AES
- AESGCM
- CAMELLIA
- 3DES
- SHA1
- SHA256
- SHA384
- STATIC
- CHACHA20
- ARIA
- AESCCM
check-referer: <value in [disable, enable]>
default-portal: <string>
deflate-compression-level: <integer>
deflate-min-data-size: <integer>
dns-server1: <string>
dns-server2: <string>
dns-suffix: <string>
dtls-hello-timeout: <integer>
dtls-max-proto-ver: <value in [dtls1-0, dtls1-2]>
dtls-min-proto-ver: <value in [dtls1-0, dtls1-2]>
dtls-tunnel: <value in [disable, enable]>
encode-2f-sequence: <value in [disable, enable]>
encrypt-and-store-password: <value in [disable, enable]>
force-two-factor-auth: <value in [disable, enable]>
header-x-forwarded-for: <value in [pass, add, remove]>
hsts-include-subdomains: <value in [disable, enable]>
http-compression: <value in [disable, enable]>
http-only-cookie: <value in [disable, enable]>
http-request-body-timeout: <integer>
http-request-header-timeout: <integer>
https-redirect: <value in [disable, enable]>
idle-timeout: <integer>
ipv6-dns-server1: <string>
ipv6-dns-server2: <string>
ipv6-wins-server1: <string>
ipv6-wins-server2: <string>
login-attempt-limit: <integer>
login-block-time: <integer>
login-timeout: <integer>
port: <integer>
port-precedence: <value in [disable, enable]>
reqclientcert: <value in [disable, enable]>
route-source-interface: <value in [disable, enable]>
servercert: <string>
source-address: <list or string>
source-address-negate: <value in [disable, enable]>
source-address6: <list or string>
source-address6-negate: <value in [disable, enable]>
source-interface: <list or string>
ssl-client-renegotiation: <value in [disable, enable]>
ssl-insert-empty-fragment: <value in [disable, enable]>
ssl-max-proto-ver: <value in [tls1-0, tls1-1, tls1-2, ...]>
ssl-min-proto-ver: <value in [tls1-0, tls1-1, tls1-2, ...]>
tlsv1-0: <value in [disable, enable]>
tlsv1-1: <value in [disable, enable]>
tlsv1-2: <value in [disable, enable]>
tlsv1-3: <value in [disable, enable]>
transform-backward-slashes: <value in [disable, enable]>
tunnel-connect-without-reauth: <value in [disable, enable]>
tunnel-ip-pools: <list or string>
tunnel-ipv6-pools: <list or string>
tunnel-user-session-timeout: <integer>
unsafe-legacy-renegotiation: <value in [disable, enable]>
url-obscuration: <value in [disable, enable]>
user-peer: <string>
wins-server1: <string>
wins-server2: <string>
x-content-type-options: <value in [disable, enable]>
sslv3: <value in [disable, enable]>
ssl-big-buffer: <value in [disable, enable]>
client-sigalgs: <value in [no-rsa-pss, all]>
ciphersuite:
- TLS-AES-128-GCM-SHA256
- TLS-AES-256-GCM-SHA384
- TLS-CHACHA20-POLY1305-SHA256
- TLS-AES-128-CCM-SHA256
- TLS-AES-128-CCM-8-SHA256
dual-stack-mode: <value in [disable, enable]>
tunnel-addr-assigned-method: <value in [first-available, round-robin]>
browser-language-detection: <value in [disable, enable]>
saml-redirect-port: <integer>
status: <value in [disable, enable]>
web-mode-snat: <value in [disable, enable]>
ztna-trusted-client: <value in [disable, enable]>
dtls-heartbeat-fail-count: <integer>
dtls-heartbeat-idle-timeout: <integer>
dtls-heartbeat-interval: <integer>
server-hostname: <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 |