On this page
bigip_asm_dos_application – Manage application settings for DOS profile
New in version 2.9.
Synopsis
- Manages Application settings for ASM/AFM DOS profile.
Parameters
Parameter | Choices/Defaults | Comments | ||
---|---|---|---|---|
geolocations
dictionary
|
Manages the geolocations countries whitelist, blacklist.
|
|||
blacklist
list
|
A list of countries to be put on blacklist, must not have overlapping elements with whitelist .
|
|||
whitelist
list
|
A list of countries to be put on whitelist, must not have overlapping elements with blacklist .
|
|||
heavy_urls
dictionary
|
Manages Heavy URL protection.
Heavy URLs are a small number of site URLs that might consume considerable server resources per request.
|
|||
auto_detect
boolean
|
|
Enables or disables automatic heavy URL detection.
|
||
exclude
list
|
Specifies a list of URLs or wildcards to exclude from the heavy URLs.
|
|||
include
list
|
Configures additional URLs to include in the heavy URLs that were auto detected.
|
|||
threshold
string
|
Specifies the threshold of requests per second, where the URL in question is considered under attack.
The accepted range is between 1 and 4294967295 inclusive, or auto .
|
|||
url
string
|
Specifies the URL to be added to the list of heavy URLs, in addition to the automatically detected ones.
|
|||
latency_threshold
integer
|
Specifies the latency threshold for automatic heavy URL detection.
The accepted range is between 0 and 4294967295 milliseconds inclusive.
|
|||
mobile_detection
dictionary
|
Configures detection of mobile applications built with the Anti-Bot Mobile SDK and defines how requests from these mobile application clients are handled.
|
|||
allow_android_rooted_device
boolean
|
|
When yes device will allow traffic from rooted Android devices.
|
||
allow_any_android_package
boolean
|
|
When
yes allows any application publisher.
A publisher is identified by the certificate used to sign the application.
|
||
allow_any_ios_package
boolean
|
|
When
yes allows any iOS package.
A package name is the unique identifier of the mobile application.
|
||
allow_emulators
boolean
|
|
When yes allows traffic from applications run on emulators.
|
||
allow_jailbroken_devices
boolean
|
|
When yes allows traffic from jailbroken iOS devices.
|
||
android_publishers
list
|
This option has no effect when
allow_any_android_package is set to yes .
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 partition parameter needs to be provided in full_path format /Foo/cert.crt .
|
|||
client_side_challenge_mode
string
|
|
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
pass or cshui .
When
pass the traffic is passed without incident.
When cshui the SDK checks for human interactions with the screen in the last few seconds. If none are detected, the traffic is blocked.
|
||
enabled
boolean
|
|
When
yes , requests from mobile applications built with Anti-Bot Mobile SDK will be detected and handled according to the parameters set.
When no , these requests will be handled like any other request which may let attacks in, or cause false positives.
|
||
ios_allowed_package_names
list
|
Specifies the names of iOS packages to allow traffic on.
This option has no effect when allow_any_ios_package is set to yes .
|
|||
partition
string
|
Default:
"Common"
|
Device partition to manage resources on.
|
||
profile
string / required
|
Specifies the name of the profile to manage application settings in.
|
|||
provider
dictionary
added in 2.5
|
A dict object containing connection details.
|
|||
auth_provider
string
|
Configures the auth provider for to obtain authentication tokens from the remote device.
This option is really used when working with BIG-IQ devices.
|
|||
password
string / required
|
The password for the user account used to connect to the BIG-IP.
You may omit this option by setting the environment variable
F5_PASSWORD .
aliases: pass, pwd |
|||
server
string / required
|
The BIG-IP host.
You may omit this option by setting the environment variable F5_SERVER .
|
|||
server_port
integer
|
Default:
443
|
The BIG-IP server port.
You may omit this option by setting the environment variable F5_SERVER_PORT .
|
||
ssh_keyfile
path
|
Specifies the SSH keyfile to use to authenticate the connection to the remote device. This argument is only used for cli transports.
You may omit this option by setting the environment variable ANSIBLE_NET_SSH_KEYFILE .
|
|||
timeout
integer
|
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.
|
|||
transport
string
|
|
Configures the transport connection to use when connecting to the remote device.
|
||
user
string / required
|
The username to connect to the BIG-IP with. This user must have administrative privileges on the device.
You may omit this option by setting the environment variable F5_USER .
|
|||
validate_certs
boolean
|
|
If
no , SSL certificates are not validated. Use this only on personally controlled sites using self-signed certificates.
You may omit this option by setting the environment variable F5_VALIDATE_CERTS .
|
||
rtbh_duration
integer
|
Specifies the duration of the RTBH BGP route advertisement, in seconds.
The accepted range is between 0 and 4294967295 inclusive.
|
|||
rtbh_enable
boolean
|
|
Specifies whether to enable Remote Triggered Black Hole RTBH of attacking IPs by advertising BGP routes.
|
||
scrubbing_duration
integer
|
Specifies the duration of the Traffic Scrubbing BGP route advertisement, in seconds.
The accepted range is between 0 and 4294967295 inclusive.
|
|||
scrubbing_enable
boolean
|
|
Specifies whether to enable Traffic Scrubbing during attacks by advertising BGP routes.
|
||
single_page_application
boolean
|
|
Specifies, when yes , that the system supports a Single Page Applications.
|
||
state
string
|
|
When
state is present , ensures that the Application object exists.
When state is absent , ensures that the Application object is removed.
|
||
trigger_irule
boolean
|
|
Specifies, when yes , that the system activates an Application DoS iRule event.
|
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 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: yes
latency_threshold: 1000
rtbh_duration: 3600
rtbh_enable: yes
single_page_application: yes
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: yes
allow_any_ios_package: yes
allow_emulators: yes
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 | Returned | Description | ||
---|---|---|---|---|
geolocations
complex
|
changed |
Specifies geolocations countries whitelist, blacklist.
Sample:
hash/dictionary of values
|
||
blacklist
list
|
changed |
A list of countries to be put on blacklist.
Sample:
['Russia', 'Germany']
|
||
whitelist
list
|
changed |
A list of countries to be put on whitelist.
Sample:
['United States, United Kingdom']
|
||
heavy_urls
complex
|
changed |
Manages Heavy URL protection.
Sample:
hash/dictionary of values
|
||
auto_detect
boolean
|
changed |
Enables or disables automatic heavy URL detection.
Sample:
True
|
||
exclude
list
|
changed |
Specifies a list of URLs or wildcards to exclude from the heavy URLs.
Sample:
['/exclude.html', '/exclude2.html']
|
||
include
complex
|
changed |
Configures additional URLs to include in the heavy URLs.
Sample:
hash/dictionary of values
|
||
threshold
string
|
changed |
The threshold of requests per second
Sample:
auto
|
||
url
string
|
changed |
The URL to be added to the list of heavy URLs.
Sample:
/include.html
|
||
latency_threshold
integer
|
changed |
Specifies the latency threshold for automatic heavy URL detection.
Sample:
2000
|
||
mobile_detection
complex
|
changed |
Configures detection of mobile applications built with the Anti-Bot Mobile SDK.
Sample:
hash/dictionary of values
|
||
allow_android_rooted_device
boolean
|
changed |
Allows traffic from rooted Android devices.
|
||
allow_any_android_package
boolean
|
changed |
Allows any application publisher.
|
||
allow_any_ios_package
boolean
|
changed |
Allows any iOS package.
Sample:
True
|
||
allow_emulators
boolean
|
changed |
Allows traffic from applications run on emulators.
Sample:
True
|
||
allow_jailbroken_devices
boolean
|
changed |
Allows traffic from jailbroken iOS devices.
|
||
android_publishers
list
|
changed |
The allowed publisher certificates for android applications.
Sample:
['/Common/cert1.crt', '/Common/cert2.crt']
|
||
client_side_challenge_mode
string
|
changed |
Action to take when a CAPTCHA or Client Side Integrity challenge needs to be presented.
Sample:
pass
|
||
enable
boolean
|
changed |
Enables or disables automatic mobile detection.
Sample:
True
|
||
ios_allowed_package_names
list
|
changed |
The names of iOS packages to allow traffic on.
Sample:
['package1', 'package2']
|
||
rtbh_duration
integer
|
changed |
The duration of the RTBH BGP route advertisement.
Sample:
3600
|
||
rtbh_enable
boolean
|
changed |
Enables Remote Triggered Black Hole of attacking IPs.
|
||
scrubbing_duration
integer
|
changed |
The duration of the Traffic Scrubbing BGP route advertisement.
Sample:
3600
|
||
scrubbing_enable
boolean
|
changed |
Enables Traffic Scrubbing during attacks.
Sample:
True
|
||
single_page_application
boolean
|
changed |
Enables support of a Single Page Applications.
|
||
trigger_irule
boolean
|
changed |
Activates an Application DoS iRule event.
Sample:
True
|
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by an Ansible Partner. [certified]
Authors
- Wojciech Wypior (@wojtek0806)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/bigip_asm_dos_application_module.html