fortinet.fortios.fortios_system_np6 module – Configure NP6 attributes in Fortinet’s FortiOS and FortiGate.
Note
This module is part of the fortinet.fortios collection (version 2.2.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 fortinet.fortios
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: fortinet.fortios.fortios_system_np6
.
New in fortinet.fortios 2.0.0
Synopsis
This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and np6 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
Parameters
Parameter |
Comments |
---|---|
Token-based authentication. Generated from GUI of Fortigate. |
|
Enable/Disable logging for task. Choices:
|
|
Member attribute path to operate on. Delimited by a slash character if there are more than one attribute. Parameter marked with member_path is legitimate for doing member operation. |
|
Add or delete a member under specified attribute path. When member_state is specified, the state option is ignored. Choices:
|
|
Indicates whether to create or remove the object. Choices:
|
|
Configure NP6 attributes. |
|
Enable/disable NP6 offloading (also called fast path). Choices:
|
|
NP6 IPv4 anomaly protection. trap-to-host forwards anomaly sessions to the CPU. |
|
Invalid IPv4 ICMP checksum anomalies. Choices:
|
|
Layer 3 fragmented packets that could be part of layer 4 ICMP anomalies. Choices:
|
|
ICMP land anomalies. Choices:
|
|
Invalid IPv4 IP checksum anomalies. Choices:
|
|
Land 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:
|
|
Unknown option anomalies. Choices:
|
|
Destination address as unspecified or loopback address anomalies. Choices:
|
|
Land anomalies. Choices:
|
|
End point identification anomalies. Choices:
|
|
Home address option anomalies. Choices:
|
|
Invalid option anomalies.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:
|
|
Layer 4 invalid protocol anomalies. Choices:
|
|
Source address as multicast anomalies. Choices:
|
|
Unknown option anomalies. Choices:
|
|
Invalid IPv4 TCP 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:
|
|
TCP land anomalies. Choices:
|
|
TCP SYN flood with no flag set 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 checksum anomalies. Choices:
|
|
UDP land anomalies. Choices:
|
|
Enable/disable garbage session collector. Choices:
|
|
HPE configuration. |
|
Maximum ARP packet rate (1K - 1G pps). |
|
Enable/Disable NPU Host Protection Engine(HPE) for packet type shaper. Choices:
|
|
Maximum ESP packet rate (1K - 1G pps). |
|
Maximum ICMP packet rate (1K - 1G pps). |
|
Maximum fragmented IP packet rate (1K - 1G pps). |
|
Maximum IP packet rate for other packets (packet types that cannot be set with other options) (1K - 1G pps). |
|
Maximum L2 packet rate for L2 packets that are not ARP packets (1K - 1G pps). |
|
Maximum overflow rate of priority type traffic (1K - 1G pps). Includes L2: HA, 802.3ad LACP, heartbeats. L3: OSPF. L4_TCP: BGP. L4_UDP: IKE, SLBC, BFD. |
|
Maximum SCTP packet rate (1K - 1G pps). |
|
Maximum TCP packet rate (1K - 1G pps). |
|
Maximum TCP carries FIN or RST flags packet rate (1K - 1G pps). |
|
Maximum TCP carries SYN and ACK flags packet rate (1K - 1G pps). |
|
Maximum TCP SYN packet rate (1K - 1G pps). |
|
Maximum UDP packet rate (1K - 1G pps). |
|
Set hash function for IPSec outbound. Choices:
|
|
Enable/disable hash function for IPsec outbound traffic. Choices:
|
|
Enable/disable low latency mode. Choices:
|
|
Device Name. |
|
Enable/disable per-session accounting. Choices:
|
|
Set garbage session collection cleanup interval (1 - 100 sec). |
|
{disable | enable} Toggle between using fixed or random timeouts for refreshing NP6 sessions. Choices:
|
|
Set the fixed timeout for refreshing NP6 sessions (0 - 1000 sec). |
|
Set the random timeout range for refreshing NP6 sessions (0 - 1000 sec). |
|
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. Default: |
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 NP6 attributes.
fortios_system_np6:
vdom: "{{ vdom }}"
state: "present"
access_token: "<your_own_value>"
system_np6:
fastpath: "disable"
fp_anomaly:
icmp_csum_err: "drop"
icmp_frag: "allow"
icmp_land: "allow"
ipv4_csum_err: "drop"
ipv4_land: "allow"
ipv4_optlsrr: "allow"
ipv4_optrr: "allow"
ipv4_optsecurity: "allow"
ipv4_optssrr: "allow"
ipv4_optstream: "allow"
ipv4_opttimestamp: "allow"
ipv4_proto_err: "allow"
ipv4_unknopt: "allow"
ipv6_daddr_err: "allow"
ipv6_land: "allow"
ipv6_optendpid: "allow"
ipv6_opthomeaddr: "allow"
ipv6_optinvld: "allow"
ipv6_optjumbo: "allow"
ipv6_optnsap: "allow"
ipv6_optralert: "allow"
ipv6_opttunnel: "allow"
ipv6_proto_err: "allow"
ipv6_saddr_err: "allow"
ipv6_unknopt: "allow"
tcp_csum_err: "drop"
tcp_fin_noack: "allow"
tcp_fin_only: "allow"
tcp_land: "allow"
tcp_no_flag: "allow"
tcp_syn_data: "allow"
tcp_syn_fin: "allow"
tcp_winnuke: "allow"
udp_csum_err: "drop"
udp_land: "allow"
garbage_session_collector: "disable"
hpe:
arp_max: "200000"
enable_shaper: "disable"
esp_max: "200000"
icmp_max: "200000"
ip_frag_max: "200000"
ip_others_max: "200000"
l2_others_max: "200000"
pri_type_max: "200000"
sctp_max: "200000"
tcp_max: "600000"
tcpfin_rst_max: "600000"
tcpsyn_ack_max: "600000"
tcpsyn_max: "600000"
udp_max: "600000"
ipsec_ob_hash_function: "global-hash"
ipsec_outbound_hash: "disable"
low_latency_mode: "disable"
name: "default_name_59"
per_session_accounting: "disable"
session_collector_interval: "64"
session_timeout_fixed: "disable"
session_timeout_interval: "40"
session_timeout_random_range: "8"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Build number of the fortigate image Returned: always Sample: |
|
Last method used to provision the content into FortiGate Returned: always Sample: |
|
Last result given by FortiGate on last operation applied Returned: always Sample: |
|
Master key (id) used in the last call to FortiGate Returned: success Sample: |
|
Name of the table used to fulfill the request Returned: always Sample: |
|
Path of the table used to fulfill the request Returned: always Sample: |
|
Internal revision number Returned: always Sample: |
|
Serial number of the unit Returned: always Sample: |
|
Indication of the operation’s result Returned: always Sample: |
|
Virtual domain used Returned: always Sample: |
|
Version of the FortiGate Returned: always Sample: |