fortinet.fortios.fortios_wireless_controller_wids_profile – Configure wireless intrusion detection system (WIDS) profiles in Fortinet’s FortiOS and FortiGate.

Note

This plugin is part of the fortinet.fortios collection (version 1.1.8).

To install it use: ansible-galaxy collection install fortinet.fortios.

To use it in a playbook, specify: fortinet.fortios.fortios_wireless_controller_wids_profile.

New in version 2.8: of fortinet.fortios

Synopsis

  • This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify wireless_controller feature and wids_profile 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.9.0

Parameters

Parameter Choices/Defaults Comments
access_token
string
Token-based authentication. Generated from GUI of Fortigate.
state
string
added in 2.9 of fortinet.fortios
    Choices:
  • present
  • absent
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.
vdom
string
Default:
"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.
wireless_controller_wids_profile
dictionary
Configure wireless intrusion detection system (WIDS) profiles.
ap_auto_suppress
string
    Choices:
  • enable
  • disable
Enable/disable on-wire rogue AP auto-suppression .
ap_bgscan_disable_day
string
    Choices:
  • sunday
  • monday
  • tuesday
  • wednesday
  • thursday
  • friday
  • saturday
Optionally turn off scanning for one or more days of the week. Separate the days with a space. By default, no days are set.
ap_bgscan_disable_end
string
End time, using a 24-hour clock in the format of hh:mm, for disabling background scanning .
ap_bgscan_disable_start
string
Start time, using a 24-hour clock in the format of hh:mm, for disabling background scanning .
ap_bgscan_duration
integer
Listening time on a scanning channel (10 - 1000 msec).
ap_bgscan_idle
integer
Waiting time for channel inactivity before scanning this channel (0 - 1000 msec).
ap_bgscan_intv
integer
Period of time between scanning two channels (1 - 600 sec).
ap_bgscan_period
integer
Period of time between background scans (60 - 3600 sec).
ap_bgscan_report_intv
integer
Period of time between background scan reports (15 - 600 sec).
ap_fgscan_report_intv
integer
Period of time between foreground scan reports (15 - 600 sec).
ap_scan
string
    Choices:
  • disable
  • enable
Enable/disable rogue AP detection.
ap_scan_passive
string
    Choices:
  • enable
  • disable
Enable/disable passive scanning. Enable means do not send probe request on any channels .
asleap_attack
string
    Choices:
  • enable
  • disable
Enable/disable asleap attack detection .
assoc_flood_thresh
integer
The threshold value for association frame flooding.
assoc_flood_time
integer
Number of seconds after which a station is considered not connected.
assoc_frame_flood
string
    Choices:
  • enable
  • disable
Enable/disable association frame flooding detection .
auth_flood_thresh
integer
The threshold value for authentication frame flooding.
auth_flood_time
integer
Number of seconds after which a station is considered not connected.
auth_frame_flood
string
    Choices:
  • enable
  • disable
Enable/disable authentication frame flooding detection .
comment
string
Comment.
deauth_broadcast
string
    Choices:
  • enable
  • disable
Enable/disable broadcasting de-authentication detection .
deauth_unknown_src_thresh
integer
Threshold value per second to deauth unknown src for DoS attack (0: no limit).
eapol_fail_flood
string
    Choices:
  • enable
  • disable
Enable/disable EAPOL-Failure flooding (to AP) detection .
eapol_fail_intv
integer
The detection interval for EAPOL-Failure flooding (1 - 3600 sec).
eapol_fail_thresh
integer
The threshold value for EAPOL-Failure flooding in specified interval.
eapol_logoff_flood
string
    Choices:
  • enable
  • disable
Enable/disable EAPOL-Logoff flooding (to AP) detection .
eapol_logoff_intv
integer
The detection interval for EAPOL-Logoff flooding (1 - 3600 sec).
eapol_logoff_thresh
integer
The threshold value for EAPOL-Logoff flooding in specified interval.
eapol_pre_fail_flood
string
    Choices:
  • enable
  • disable
Enable/disable premature EAPOL-Failure flooding (to STA) detection .
eapol_pre_fail_intv
integer
The detection interval for premature EAPOL-Failure flooding (1 - 3600 sec).
eapol_pre_fail_thresh
integer
The threshold value for premature EAPOL-Failure flooding in specified interval.
eapol_pre_succ_flood
string
    Choices:
  • enable
  • disable
Enable/disable premature EAPOL-Success flooding (to STA) detection .
eapol_pre_succ_intv
integer
The detection interval for premature EAPOL-Success flooding (1 - 3600 sec).
eapol_pre_succ_thresh
integer
The threshold value for premature EAPOL-Success flooding in specified interval.
eapol_start_flood
string
    Choices:
  • enable
  • disable
Enable/disable EAPOL-Start flooding (to AP) detection .
eapol_start_intv
integer
The detection interval for EAPOL-Start flooding (1 - 3600 sec).
eapol_start_thresh
integer
The threshold value for EAPOL-Start flooding in specified interval.
eapol_succ_flood
string
    Choices:
  • enable
  • disable
Enable/disable EAPOL-Success flooding (to AP) detection .
eapol_succ_intv
integer
The detection interval for EAPOL-Success flooding (1 - 3600 sec).
eapol_succ_thresh
integer
The threshold value for EAPOL-Success flooding in specified interval.
invalid_mac_oui
string
    Choices:
  • enable
  • disable
Enable/disable invalid MAC OUI detection.
long_duration_attack
string
    Choices:
  • enable
  • disable
Enable/disable long duration attack detection based on user configured threshold .
long_duration_thresh
integer
Threshold value for long duration attack detection (1000 - 32767 usec).
name
string / required
WIDS profile name.
null_ssid_probe_resp
string
    Choices:
  • enable
  • disable
Enable/disable null SSID probe response detection .
sensor_mode
string
    Choices:
  • disable
  • foreign
  • both
Scan WiFi nearby stations .
spoofed_deauth
string
    Choices:
  • enable
  • disable
Enable/disable spoofed de-authentication attack detection .
state
string
    Choices:
  • present
  • absent
Deprecated
Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.

Indicates whether to create or remove the object.
weak_wep_iv
string
    Choices:
  • enable
  • disable
Enable/disable weak WEP IV (Initialization Vector) detection .
wireless_bridge
string
    Choices:
  • enable
  • disable
Enable/disable wireless bridge detection .

Notes

Note

  • Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks

Examples

- hosts: fortigates
  collections:
    - fortinet.fortios
  connection: httpapi
  vars:
   vdom: "root"
   ansible_httpapi_use_ssl: yes
   ansible_httpapi_validate_certs: no
   ansible_httpapi_port: 443
  tasks:
  - name: Configure wireless intrusion detection system (WIDS) profiles.
    fortios_wireless_controller_wids_profile:
      vdom:  "{{ vdom }}"
      state: "present"
      access_token: "<your_own_value>"
      wireless_controller_wids_profile:
        ap_auto_suppress: "enable"
        ap_bgscan_disable_day: "sunday"
        ap_bgscan_disable_end: "<your_own_value>"
        ap_bgscan_disable_start: "<your_own_value>"
        ap_bgscan_duration: "7"
        ap_bgscan_idle: "8"
        ap_bgscan_intv: "9"
        ap_bgscan_period: "10"
        ap_bgscan_report_intv: "11"
        ap_fgscan_report_intv: "12"
        ap_scan: "disable"
        ap_scan_passive: "enable"
        asleap_attack: "enable"
        assoc_flood_thresh: "16"
        assoc_flood_time: "17"
        assoc_frame_flood: "enable"
        auth_flood_thresh: "19"
        auth_flood_time: "20"
        auth_frame_flood: "enable"
        comment: "Comment."
        deauth_broadcast: "enable"
        deauth_unknown_src_thresh: "24"
        eapol_fail_flood: "enable"
        eapol_fail_intv: "26"
        eapol_fail_thresh: "27"
        eapol_logoff_flood: "enable"
        eapol_logoff_intv: "29"
        eapol_logoff_thresh: "30"
        eapol_pre_fail_flood: "enable"
        eapol_pre_fail_intv: "32"
        eapol_pre_fail_thresh: "33"
        eapol_pre_succ_flood: "enable"
        eapol_pre_succ_intv: "35"
        eapol_pre_succ_thresh: "36"
        eapol_start_flood: "enable"
        eapol_start_intv: "38"
        eapol_start_thresh: "39"
        eapol_succ_flood: "enable"
        eapol_succ_intv: "41"
        eapol_succ_thresh: "42"
        invalid_mac_oui: "enable"
        long_duration_attack: "enable"
        long_duration_thresh: "45"
        name: "default_name_46"
        null_ssid_probe_resp: "enable"
        sensor_mode: "disable"
        spoofed_deauth: "enable"
        weak_wep_iv: "enable"
        wireless_bridge: "enable"

Return Values

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

Key Returned Description
build
string
always
Build number of the fortigate image

Sample:
1547
http_method
string
always
Last method used to provision the content into FortiGate

Sample:
PUT
http_status
string
always
Last result given by FortiGate on last operation applied

Sample:
200
mkey
string
success
Master key (id) used in the last call to FortiGate

Sample:
id
name
string
always
Name of the table used to fulfill the request

Sample:
urlfilter
path
string
always
Path of the table used to fulfill the request

Sample:
webfilter
revision
string
always
Internal revision number

Sample:
17.0.2.10658
serial
string
always
Serial number of the unit

Sample:
FGVMEVYYQT3AB5352
status
string
always
Indication of the operation's result

Sample:
success
vdom
string
always
Virtual domain used

Sample:
root
version
string
always
Version of the FortiGate

Sample:
v5.6.3


Authors

  • Link Zheng (@chillancezen)

  • Jie Xue (@JieX19)

  • Hongbin Lu (@fgtdev-hblu)

  • Frank Shen (@frankshen01)

  • Miguel Angel Munoz (@mamunozgonzalez)

  • Nicolas Thomas (@thomnico)