f5networks.f5_modules.bigip_asm_dos_application module – Manage application settings for a DOS profile
Note
This module is part of the f5networks.f5_modules collection (version 1.27.1).
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 f5networks.f5_modules
.
To use it in a playbook, specify: f5networks.f5_modules.bigip_asm_dos_application
.
New in f5networks.f5_modules 1.0.0
Synopsis
Manages Application settings for an ASM/AFM DOS profile.
Parameters
Parameter |
Comments |
---|---|
Manages the geolocations countries whitelist, blacklist. |
|
A list of countries to be put on the blacklist, must not have overlapping elements with |
|
A list of countries to be put on the whitelist, must not have overlapping elements with |
|
Manages Heavy URL protection. Heavy URLs are a small number of site URLs that might consume considerable server resources per request. |
|
Enables or disables automatic heavy URL detection. Choices:
|
|
Specifies a list of URLs or wildcards to exclude from the heavy URLs. |
|
Configures additional URLs to include in the heavy URLs that were auto-detected. |
|
Specifies the threshold of requests per second, where the URL in question is considered under attack. The acceptable range is between 1 and 4294967295 inclusive, or |
|
Specifies the URL to be added to the list of heavy URLs, in addition to those automatically detected. |
|
Specifies the latency threshold for automatic heavy URL detection. The acceptable range is between 0 and 4294967295 miliseconds inclusive. |
|
Configures detection of mobile applications built with the Anti-Bot Mobile SDK and defines how requests from these mobile application clients are handled. |
|
When Choices:
|
|
When A publisher is identified by the certificate used to sign the application. Choices:
|
|
When A package name is the unique identifier of the mobile application. Choices:
|
|
When Choices:
|
|
When Choices:
|
|
This option has no effect when Specifies the allowed publisher certificates for android applications. The publisher certificate needs to be installed on the BIG-IP beforehand. The certificate name located on a different partition than the one specified in the |
|
Action to take when a CAPTCHA or Client Side Integrity challenge needs to be presented. The mobile application user will not see a CAPTCHA challenge and the mobile application will not be presented with the Client Side Integrity challenge. The such options for mobile applications are When When Choices:
|
|
When When Choices:
|
|
Specifies the names of iOS packages to allow traffic on. This option has no effect when |
|
Device partition to manage resources on. Default: |
|
Specifies the name of the profile to manage application settings in. |
|
A dict object containing connection details. |
|
Configures the auth provider for to obtain authentication tokens from the remote device. This option is really used when working with BIG-IQ devices. |
|
If You may omit this option by setting the environment variable Previously used variable Choices:
|
|
The password for the user account used to connect to the BIG-IP or the BIG-IQ. You may omit this option by setting the environment variable |
|
The BIG-IP host or the BIG-IQ host. You may omit this option by setting the environment variable |
|
The BIG-IP server port. You may omit this option by setting the environment variable Default: |
|
Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error. |
|
Configures the transport connection to use when connecting to the remote device. Choices:
|
|
The username to connect to the BIG-IP or the BIG-IQ. This user must have administrative privileges on the device. You may omit this option by setting the environment variable |
|
If You may omit this option by setting the environment variable Choices:
|
|
Specifies the duration of the RTBH BGP route advertisement, in seconds. The acceptable range is between 0 and 4294967295 inclusive. |
|
Specifies whether to enable Remote Triggered Black Hole Choices:
|
|
Specifies the duration of the Traffic Scrubbing BGP route advertisement, in seconds. The acceptable range is between 0 and 4294967295 inclusive. |
|
Specifies whether to enable Traffic Scrubbing during attacks by advertising BGP routes. Choices:
|
|
When Choices:
|
|
When When Choices:
|
|
When Choices:
|
Notes
Note
Requires BIG-IP >= 13.1.0
For more information on using Ansible to manage F5 Networks devices see https://www.ansible.com/integrations/networks/f5.
Requires BIG-IP software version >= 12.
The F5 modules only manipulate the running configuration of the F5 product. To ensure that BIG-IP specific configuration persists to disk, be sure to include at least one task that uses the f5networks.f5_modules.bigip_config module to save the running configuration. Refer to the module’s documentation for the correct usage of the module to save your running configuration.
Examples
- name: Create an ASM dos application profile
bigip_asm_dos_application:
profile: dos_foo
geolocations:
blacklist:
- Afghanistan
- Andora
whitelist:
- Cuba
heavy_urls:
auto_detect: true
latency_threshold: 1000
rtbh_duration: 3600
rtbh_enable: true
single_page_application: true
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Update an ASM dos application profile
bigip_asm_dos_application:
profile: dos_foo
mobile_detection:
enabled: true
allow_any_ios_package: true
allow_emulators: true
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Remove an ASM dos application profile
bigip_asm_dos_application:
profile: dos_foo
state: absent
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Specifies geolocations countries whitelist, blacklist. Returned: changed Sample: |
|
A list of countries to be put on the blacklist. Returned: changed Sample: |
|
A list of countries to be put on the whitelist. Returned: changed Sample: |
|
Manages Heavy URL protection. Returned: changed Sample: |
|
Enables or disables automatic heavy URL detection. Returned: changed Sample: |
|
Specifies a list of URLs or wildcards to exclude from the heavy URLs. Returned: changed Sample: |
|
Configures additional URLs to include in the heavy URLs. Returned: changed Sample: |
|
The threshold of requests per second. Returned: changed Sample: |
|
The URL to be added to the list of heavy URLs. Returned: changed Sample: |
|
Specifies the latency threshold for automatic heavy URL detection. Returned: changed Sample: |
|
Configures detection of mobile applications built with the Anti-Bot Mobile SDK. Returned: changed Sample: |
|
Allows traffic from rooted Android devices. Returned: changed Sample: |
|
Allows any application publisher. Returned: changed Sample: |
|
Allows any iOS package. Returned: changed Sample: |
|
Allows traffic from applications run on emulators. Returned: changed Sample: |
|
Allows traffic from jailbroken iOS devices. Returned: changed Sample: |
|
The allowed publisher certificates for android applications. Returned: changed Sample: |
|
Action to take when a CAPTCHA or Client Side Integrity challenge needs to be presented. Returned: changed Sample: |
|
Enables or disables automatic mobile detection. Returned: changed Sample: |
|
The names of iOS packages to allow traffic on. Returned: changed Sample: |
|
The duration of the RTBH BGP route advertisement. Returned: changed Sample: |
|
Enables Remote Triggered Black Hole of attacking IPs. Returned: changed Sample: |
|
The duration of the Traffic Scrubbing BGP route advertisement. Returned: changed Sample: |
|
Enables Traffic Scrubbing during attacks. Returned: changed Sample: |
|
Enables support of Single Page Applications. Returned: changed Sample: |
|
Activates an Application DoS iRule event. Returned: changed Sample: |