fortinet.fortimanager.fmgr_system_npu_fpanomaly module – NP6Lite anomaly protection
Note
This module is part of the fortinet.fortimanager collection (version 2.2.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_system_npu_fpanomaly
.
New in fortinet.fortimanager 2.1.6
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. |
|
the parameter (adom) in requested url |
|
Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. Choices:
|
|
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 top level parameters set |
|
no description Choices:
|
|
Invalid IPv4 ESP short packet anomalies. Choices:
|
|
no description Choices:
|
|
no description Choices:
|
|
Invalid IPv4 ICMP packet checksum anomalies. Choices:
|
|
Layer 3 fragmented packets that could be part of layer 4 ICMP anomalies. Choices:
|
|
ICMP land anomalies. Choices:
|
|
Invalid IPv4 ICMP short packet anomalies. Choices:
|
|
Invalid IPv4 packet checksum anomalies. Choices:
|
|
Invalid IPv4 header length anomalies. Choices:
|
|
Land anomalies. Choices:
|
|
Invalid IPv4 packet length anomalies. Choices:
|
|
Invalid IPv4 option parsing anomalies. Choices:
|
|
Loose source record route option anomalies. Choices:
|
|
Record route option anomalies. Choices:
|
|
Security option anomalies. Choices:
|
|
Strict source record route option anomalies. Choices:
|
|
Stream option anomalies. Choices:
|
|
Timestamp option anomalies. Choices:
|
|
Invalid layer 4 protocol anomalies. Choices:
|
|
Invalid IPv4 TTL field zero anomalies. Choices:
|
|
Unknown option anomalies. Choices:
|
|
Invalid IPv4 header version anomalies. Choices:
|
|
Destination address as unspecified or loopback address anomalies. Choices:
|
|
Invalid IPv6 packet chain extension header total length anomalies. Choices:
|
|
Invalid IPv6 packet extension header ordering anomalies. Choices:
|
|
Invalid IPv6 packet length anomalies. Choices:
|
|
Land anomalies. Choices:
|
|
End point identification anomalies. Choices:
|
|
Home address option anomalies. Choices:
|
|
Invalid option anomalies. Choices:
|
|
Jumbo options anomalies. Choices:
|
|
Network service access point address option anomalies. Choices:
|
|
Router alert option anomalies. Choices:
|
|
Tunnel encapsulation limit option anomalies. Choices:
|
|
Invalid IPv6 packet payload length zero anomalies. Choices:
|
|
Layer 4 invalid protocol anomalies. Choices:
|
|
Source address as multicast anomalies. Choices:
|
|
Unknown option anomalies. Choices:
|
|
Invalid IPv6 packet version anomalies. Choices:
|
|
no description Choices:
|
|
no description Choices:
|
|
no description Choices:
|
|
no description Choices:
|
|
Invalid IPv4 TCP packet checksum anomalies. Choices:
|
|
TCP SYN flood with FIN flag set without ACK setting anomalies. Choices:
|
|
TCP SYN flood with only FIN flag set anomalies. Choices:
|
|
Invalid IPv4 TCP header length anomalies. Choices:
|
|
no description Choices:
|
|
TCP land anomalies. Choices:
|
|
TCP SYN flood with no flag set anomalies. Choices:
|
|
Invalid IPv4 TCP packet length anomalies. Choices:
|
|
TCP SYN flood packets with data anomalies. Choices:
|
|
TCP SYN flood SYN/FIN flag set anomalies. Choices:
|
|
TCP WinNuke anomalies. Choices:
|
|
Invalid IPv4 UDP packet checksum anomalies. Choices:
|
|
Invalid IPv4 UDP packet header length anomalies. Choices:
|
|
UDP land anomalies. Choices:
|
|
Invalid IPv4 UDP packet length anomalies. Choices:
|
|
Invalid IPv4 UDP packet minimum length anomalies. Choices:
|
|
Invalid IPv4 UDP-Lite packet coverage anomalies. Choices:
|
|
Invalid IPv4 UDP-Lite packet checksum anomalies. Choices:
|
|
no description Choices:
|
|
Invalid IPv4 L4 unknown protocol short packet anomalies. Choices:
|
|
no description 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: NP6Lite anomaly protection
fmgr_system_npu_fpanomaly:
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, ...]
adom: <your own value>
system_npu_fpanomaly:
esp-minlen-err: <value in [drop, trap-to-host]>
icmp-csum-err: <value in [drop, trap-to-host]>
icmp-minlen-err: <value in [drop, trap-to-host]>
ipv4-csum-err: <value in [drop, trap-to-host]>
ipv4-ihl-err: <value in [drop, trap-to-host]>
ipv4-len-err: <value in [drop, trap-to-host]>
ipv4-opt-err: <value in [drop, trap-to-host]>
ipv4-ttlzero-err: <value in [drop, trap-to-host]>
ipv4-ver-err: <value in [drop, trap-to-host]>
ipv6-exthdr-len-err: <value in [drop, trap-to-host]>
ipv6-exthdr-order-err: <value in [drop, trap-to-host]>
ipv6-ihl-err: <value in [drop, trap-to-host]>
ipv6-plen-zero: <value in [drop, trap-to-host]>
ipv6-ver-err: <value in [drop, trap-to-host]>
tcp-csum-err: <value in [drop, trap-to-host]>
tcp-hlen-err: <value in [drop, trap-to-host]>
tcp-plen-err: <value in [drop, trap-to-host]>
udp-csum-err: <value in [drop, trap-to-host]>
udp-hlen-err: <value in [drop, trap-to-host]>
udp-len-err: <value in [drop, trap-to-host]>
udp-plen-err: <value in [drop, trap-to-host]>
udplite-cover-err: <value in [drop, trap-to-host]>
udplite-csum-err: <value in [drop, trap-to-host]>
unknproto-minlen-err: <value in [drop, trap-to-host]>
tcp-land: <value in [allow, drop, trap-to-host]>
tcp-fin-noack: <value in [allow, drop, trap-to-host]>
tcp-syn-data: <value in [allow, drop, trap-to-host]>
tcp-winnuke: <value in [allow, drop, trap-to-host]>
ipv4-optssrr: <value in [allow, drop, trap-to-host]>
ipv6-proto-err: <value in [allow, drop, trap-to-host]>
ipv6-land: <value in [allow, drop, trap-to-host]>
tcp-no-flag: <value in [allow, drop, trap-to-host]>
ipv4-land: <value in [allow, drop, trap-to-host]>
ipv4-optlsrr: <value in [allow, drop, trap-to-host]>
udp-land: <value in [allow, drop, trap-to-host]>
icmp-frag: <value in [allow, drop, trap-to-host]>
ipv6-optendpid: <value in [allow, drop, trap-to-host]>
ipv4-opttimestamp: <value in [allow, drop, trap-to-host]>
ipv4-optrr: <value in [allow, drop, trap-to-host]>
ipv6-unknopt: <value in [allow, drop, trap-to-host]>
tcp-fin-only: <value in [allow, drop, trap-to-host]>
tcp-syn-fin: <value in [allow, drop, trap-to-host]>
ipv6-optinvld: <value in [allow, drop, trap-to-host]>
ipv6-saddr-err: <value in [allow, drop, trap-to-host]>
ipv4-proto-err: <value in [allow, drop, trap-to-host]>
ipv4-optstream: <value in [allow, drop, trap-to-host]>
ipv6-optnsap: <value in [allow, drop, trap-to-host]>
icmp-land: <value in [allow, drop, trap-to-host]>
ipv6-optjumbo: <value in [allow, drop, trap-to-host]>
ipv4-optsecurity: <value in [allow, drop, trap-to-host]>
ipv6-optralert: <value in [allow, drop, trap-to-host]>
ipv6-daddr-err: <value in [allow, drop, trap-to-host]>
ipv6-opthomeaddr: <value in [allow, drop, trap-to-host]>
ipv4-unknopt: <value in [allow, drop, trap-to-host]>
ipv6-opttunnel: <value in [allow, drop, trap-to-host]>
uesp-minlen-err: <value in [drop, trap-to-host]>
vxlan-minlen-err: <value in [drop, trap-to-host]>
sctp-crc-err: <value in [drop, trap-to-host]>
nvgre-minlen-err: <value in [drop, trap-to-host]>
sctp-l4len-err: <value in [drop, trap-to-host]>
sctp-clen-err: <value in [drop, trap-to-host]>
gtpu-plen-err: <value in [drop, trap-to-host]>
capwap-minlen-err: <value in [drop, trap-to-host]>
gre-csum-err: <value in [drop, trap-to-host]>
tcp-hlenvsl4len-err: <value in [drop, trap-to-host]>
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 |