fortinet.fortios.fortios_log_threat_weight 模块 – 在 Fortinet 的 FortiOS 和 FortiGate 中配置威胁权重设置。
注意
此模块是 fortinet.fortios 集合(版本 2.3.8)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install fortinet.fortios
。您需要进一步的要求才能使用此模块,有关详细信息,请参阅 要求。
要在 playbook 中使用它,请指定:fortinet.fortios.fortios_log_threat_weight
。
fortinet.fortios 2.0.0 中的新功能
概要
此模块能够通过允许用户设置和修改日志功能和 threat_weight 类别来配置 FortiGate 或 FortiOS (FOS) 设备。示例包括所有参数和值,需要在使用前调整到数据源。已使用 FOS v6.0.0 进行测试
要求
在执行此模块的主机上需要以下要求。
ansible>=2.15
参数
参数 |
注释 |
---|---|
基于令牌的身份验证。从 FortiGate 的 GUI 生成。 |
|
启用/禁用任务的日志记录。 选择
|
|
配置威胁权重设置。 |
|
应用程序控制威胁权重设置。 |
|
应用程序类别。 |
|
条目 ID。请参阅 <a href=’#notes’>备注</a>。 |
|
应用程序事件的威胁权重分数。 选择
|
|
阻止连接的威胁权重分数。 选择
|
|
检测到的僵尸网络连接的威胁权重分数。 选择
|
|
失败连接的威胁权重分数。 选择
|
|
基于地理位置的威胁权重设置。 |
|
国家代码。 |
|
条目 ID。请参阅 <a href=’#notes’>备注</a>。 |
|
基于地理位置的事件的威胁权重分数。 选择
|
|
IPS 威胁权重设置。 |
|
IPS 严重级别事件的威胁权重分数。 选择
|
|
IPS 高严重级别事件的威胁权重分数。 选择
|
|
IPS 信息严重级别事件的威胁权重分数。 选择
|
|
IPS 低严重级别事件的威胁权重分数。 选择
|
|
IPS 中严重级别事件的威胁权重分数。 选择
|
|
威胁权重级别的分数映射。 |
|
严重级别分数(1 - 100)。 |
|
高级别分数(1 - 100)。 |
|
低级别分数(1 - 100)。 |
|
中级别分数(1 - 100)。 |
|
防病毒恶意软件威胁权重设置。 |
|
检测到的僵尸网络连接的威胁权重分数。 选择
|
|
检测到的阻止命令的威胁权重分数。 选择
|
|
检测到的病毒(内容解除)的威胁权重分数。 选择
|
|
检测到的病毒(EMS 威胁源)的威胁权重分数。 选择
|
|
检测到的阻止文件的威胁权重分数。 选择
|
|
FortiAI 检测到的病毒的威胁权重分数。 选择
|
|
FortiNDR 检测到的病毒的威胁权重分数。 选择
|
|
FortiSandbox 检测到的病毒的威胁权重分数。 选择
|
|
检测到的 FortiSandbox 高风险恶意软件的威胁权重分数。 选择
|
|
检测到的 FortiSandbox 恶意恶意软件的威胁权重分数。 选择
|
|
检测到的 FortiSandbox 中风险恶意软件的威胁权重分数。 选择
|
|
内联阻止检测到的恶意软件的威胁权重分数。 选择
|
|
检测到的病毒(恶意软件列表)的威胁权重分数。 选择
|
|
检测到的 mimefragmented 的威胁权重分数。 选择
|
|
检测到的大文件威胁权重分数。 选择
|
|
检测到的 switch proto 的威胁权重分数。 选择
|
|
检测到的病毒(已阻止)的威胁权重分数。 选择
|
|
检测到的病毒(文件类型可执行)的威胁权重分数。 选择
|
|
检测到的病毒(已感染)的威胁权重分数。 选择
|
|
病毒(爆发预防)事件的威胁权重分数。 选择
|
|
检测到的病毒(扫描错误)的威胁权重分数。 选择
|
|
启用/禁用威胁权重功能。 选择
|
|
URL 阻止的威胁权重分数。 选择
|
|
Web 过滤威胁权重设置。 |
|
Web 类别过滤匹配的威胁权重分数。 |
|
条目 ID。请参阅 <a href=’#notes’>备注</a>。 |
|
Web 类别过滤匹配的威胁权重分数。 选择
|
|
要操作的成员属性路径。 如果存在多个属性,则用斜杠字符分隔。 标记为 member_path 的参数对于执行成员操作是合法的。 |
|
在指定的属性路径下添加或删除成员。 当指定 member_state 时,将忽略 state 选项。 选择
|
|
虚拟域,在之前定义的那些中。vdom 是 FortiGate 的虚拟实例,可以配置并用作不同的单元。 默认值: |
注释
注意
传统的 fortiosapi 已被弃用,httpapi 是运行 playbook 的首选方式
示例
- name: Configure threat weight settings.
fortinet.fortios.fortios_log_threat_weight:
vdom: "{{ vdom }}"
log_threat_weight:
application:
-
category: "0"
id: "5"
level: "disable"
blocked_connection: "disable"
botnet_connection_detected: "disable"
failed_connection: "disable"
geolocation:
-
country: "<your_own_value>"
id: "12"
level: "disable"
ips:
critical_severity: "disable"
high_severity: "disable"
info_severity: "disable"
low_severity: "disable"
medium_severity: "disable"
level:
critical: "50"
high: "30"
low: "5"
medium: "10"
malware:
botnet_connection: "disable"
command_blocked: "disable"
content_disarm: "disable"
ems_threat_feed: "disable"
file_blocked: "disable"
fortiai: "disable"
fortindr: "disable"
fortisandbox: "disable"
fsa_high_risk: "disable"
fsa_malicious: "disable"
fsa_medium_risk: "disable"
inline_block: "disable"
malware_list: "disable"
mimefragmented: "disable"
oversized: "disable"
switch_proto: "disable"
virus_blocked: "disable"
virus_file_type_executable: "disable"
virus_infected: "disable"
virus_outbreak_prevention: "disable"
virus_scan_error: "disable"
status: "enable"
url_block_detected: "disable"
web:
-
category: "0"
id: "51"
level: "disable"
返回值
常见的返回值记录在这里,以下是此模块特有的字段
键 |
描述 |
---|---|
FortiGate 镜像的构建版本号 返回: 总是 示例: |
|
最后一次将内容配置到 FortiGate 中使用的方法 返回: 总是 示例: |
|
FortiGate 在上次应用操作时给出的最后结果 返回: 总是 示例: |
|
上次调用 FortiGate 时使用的主键 (id) 返回: 成功 示例: |
|
用于满足请求的表的名称 返回: 总是 示例: |
|
用于满足请求的表的路径 返回: 总是 示例: |
|
内部修订号 返回: 总是 示例: |
|
设备的序列号 返回: 总是 示例: |
|
操作结果的指示 返回: 总是 示例: |
|
使用的虚拟域 返回: 总是 示例: |
|
FortiGate 的版本 返回: 总是 示例: |