:source: fortios_vpn_ssl_settings.py :orphan: .. fortios_vpn_ssl_settings: fortios_vpn_ssl_settings -- Configure Agentless VPN in Fortinet's FortiOS and FortiGate. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. versionadded:: 2.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify vpn_ssl feature and settings category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0 Requirements ------------ The below requirements are needed on the host that executes this module. - ansible>=2.16 Tips ---- Using member operation to add an element to an existing object. FortiOS Version Compatibility ----------------------------- Supported Version Ranges: v6.0.0 -> v7.6.6 Parameters ---------- .. raw:: html Notes ----- .. note:: - Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks - The module supports check_mode. Examples -------- .. code-block:: yaml+jinja - name: Configure Agentless VPN. fortinet.fortios.fortios_vpn_ssl_settings: vdom: "{{ vdom }}" vpn_ssl_settings: algorithm: "high" auth_session_check_source_ip: "enable" auth_timeout: "28800" authentication_rule: - auth: "any" cipher: "any" client_cert: "enable" groups: - name: "default_name_11 (source user.group.name)" id: "12" portal: " (source vpn.ssl.web.portal.name)" realm: " (source vpn.ssl.web.realm.url-path)" source_address: - name: "default_name_16 (source firewall.address.name firewall.addrgrp.name system.external-resource.name)" source_address_negate: "enable" source_address6: - name: "default_name_19 (source firewall.address6.name firewall.addrgrp6.name system.external-resource.name)" source_address6_negate: "enable" source_interface: - name: "default_name_22 (source system.interface.name system.zone.name)" user_peer: " (source user.peer.name)" users: - name: "default_name_25 (source user.local.name)" auto_tunnel_static_route: "enable" banned_cipher: "RSA" browser_language_detection: "enable" check_referer: "enable" ciphersuite: "TLS-AES-128-GCM-SHA256" client_sigalgs: "no-rsa-pss" default_portal: " (source vpn.ssl.web.portal.name)" deflate_compression_level: "6" deflate_min_data_size: "300" dns_server1: "" dns_server2: "" dns_suffix: "" dtls_heartbeat_fail_count: "3" dtls_heartbeat_idle_timeout: "3" dtls_heartbeat_interval: "3" dtls_hello_timeout: "10" dtls_max_proto_ver: "dtls1-0" dtls_min_proto_ver: "dtls1-0" dtls_tunnel: "enable" dual_stack_mode: "enable" encode_2f_sequence: "enable" encrypt_and_store_password: "enable" force_two_factor_auth: "enable" header_x_forwarded_for: "pass" hsts_include_subdomains: "enable" http_compression: "enable" http_only_cookie: "enable" http_request_body_timeout: "30" http_request_header_timeout: "20" https_redirect: "enable" idle_timeout: "300" ipv6_dns_server1: "" ipv6_dns_server2: "" ipv6_wins_server1: "" ipv6_wins_server2: "" login_attempt_limit: "2" login_block_time: "60" login_timeout: "30" port: "10443" port_precedence: "enable" remote_https_cert_check: "no-check" reqclientcert: "enable" route_source_interface: "enable" saml_redirect_port: "8020" server_hostname: "myhostname" servercert: " (source vpn.certificate.local.name)" source_address: - name: "default_name_73 (source firewall.address.name firewall.addrgrp.name system.external-resource.name)" source_address_negate: "enable" source_address6: - name: "default_name_76 (source firewall.address6.name firewall.addrgrp6.name system.external-resource.name)" source_address6_negate: "enable" source_interface: - name: "default_name_79 (source system.interface.name system.zone.name)" ssl_client_renegotiation: "disable" ssl_insert_empty_fragment: "enable" ssl_max_proto_ver: "tls1-0" ssl_min_proto_ver: "tls1-0" status: "enable" tls_groups: "P-521" tlsv1_0: "enable" tlsv1_1: "enable" tlsv1_2: "enable" tlsv1_3: "enable" transform_backward_slashes: "enable" tunnel_addr_assigned_method: "first-available" tunnel_connect_without_reauth: "enable" tunnel_ip_pools: - name: "default_name_94 (source firewall.address.name firewall.addrgrp.name)" tunnel_ipv6_pools: - name: "default_name_96 (source firewall.address6.name firewall.addrgrp6.name)" tunnel_user_session_timeout: "30" unsafe_legacy_renegotiation: "enable" url_obscuration: "enable" user_peer: " (source user.peer.name)" web_mode_snat: "enable" wins_server1: "" wins_server2: "" x_content_type_options: "enable" ztna_trusted_client: "enable" Return Values ------------- Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module: .. raw:: html
  • build - Build number of the fortigate image returned: always type: str sample: 1547
  • http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
  • http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
  • mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
  • name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
  • path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
  • revision - Internal revision number returned: always type: str sample: 17.0.2.10658
  • serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
  • status - Indication of the operation's result returned: always type: str sample: success
  • vdom - Virtual domain used returned: always type: str sample: root
  • version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status ------ - This module is not guaranteed to have a backwards compatible interface. Authors ------- - Link Zheng (@chillancezen) - Jie Xue (@JieX19) - Hongbin Lu (@fgtdev-hblu) - Frank Shen (@frankshen01) - Miguel Angel Munoz (@mamunozgonzalez) - Nicolas Thomas (@thomnico) .. hint:: If you notice any issues in this documentation, you can create a pull request to improve it.