fortigate-config

自动配置 FortiGate 防火墙,支持基础策略管理及工控协议(Modbus、IEC104、S7等)的安全配置。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fortigate-config" with this command: npx skills add jiansiting/fortigate-config

FortiGate 自动配置技能(工控增强版)

功能说明

本技能通过 FortiGate REST API 实现防火墙的自动化配置,特别增加了对工业控制系统(ICS)协议的支持。您可以:

  • 管理防火墙策略(增、删、改、查)
  • 管理地址对象
  • 配置 Industrial Connectivity(协议转换,仅 Rugged 系列)
  • 创建基于工控协议的服务对象(Modbus TCP、IEC104 等)
  • 创建针对工控协议的 IPS 配置文件
  • 添加工控协议策略并关联安全配置文件

许可证要求

使用工控协议签名功能需要以下许可证之一:

  • FortiGuard 工业安全服务
  • ATP(高级威胁防护)套装
  • UTP(统一威胁防护)套装

配置项

在使用本技能前,需要在 OpenClaw 的环境变量或配置文件中设置以下项:

配置项说明必填默认值
FORTIGATE_HOSTFortiGate 设备的 IP 地址或域名
FORTIGATE_TOKENAPI 访问令牌
FORTIGATE_PORTAPI 端口443
FORTIGATE_VERIFY_SSL是否验证 SSL 证书false

使用方法

@openclaw fortigate-config <操作> <参数(JSON 格式)>

基础操作

操作说明参数示例
list-policies列出所有防火墙策略{}
add-address添加地址对象{"name": "web-server", "subnet": "192.168.1.10/32"}
delete-address删除地址对象{"name": "web-server"}
add-policy添加防火墙策略{"name": "allow-web", "srcintf": "port1", "dstintf": "port2", "srcaddr": "all", "dstaddr": "all", "action": "accept"}
update-policy更新防火墙策略{"policyid": 1, "action": "deny", "name": "new-name"}

工控协议操作

操作说明参数示例
configure-icond配置 Industrial Connectivity 服务(协议转换){"interface": "internal1", "protocol_type": "modbus-serial-tcp", "tty_device": "serial0"}
create-industrial-service创建工控协议服务对象{"name": "modbus-tcp", "protocol": "TCP", "port": 502}
create-industrial-ips创建工控 IPS 配置文件{"name": "plc-protection", "protocols": ["Modbus", "IEC104"], "action": "monitor"}
add-industrial-policy添加工控协议策略(带安全防护){"name": "hmi-to-plc", "srcintf": "port1", "dstintf": "port2", "srcaddr": "hmi-net", "dstaddr": "plc-net", "service": "modbus-tcp", "ips_profile": "plc-protection"}

常见工控协议端口

协议端口描述
Modbus TCPTCP 502工业自动化常用协议
IEC 104TCP 2404电力系统远程控制协议
S7 PlusTCP 102西门子 PLC 协议
Ethernet/IPTCP 44818Rockwell/ODVA 工业协议
DNP3TCP 20000电力/水务自动化协议

注意事项

  • 所有写操作(添加、删除、更新)均会先检查对象是否存在,避免重复创建或误删。
  • 输出格式优先使用表格(需安装 tabulate),否则使用简单文本对齐。
  • 生产环境请将 FORTIGATE_VERIFY_SSL 设为 true 并使用有效证书。

反馈与支持

如有问题,请联系 jiansiting@gmail.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

Claude Agent

作为项目经理操作 Claude Code 完全体。包含:任务执行(提示词设计→执行→监控→质量检查→迭代→汇报)。通过 tmux 操作交互式 CLI,通过 hooks + pane monitor 实现异步唤醒。NOT for: 简单单行编辑(用 edit)、读文件(用 read)、快速问答(直接回答)。

Registry SourceRecently Updated
2190Profile unavailable
Security

Update Scout

Automate update tracking for OpenClaw and any other GitHub-released tools. Scout monitors your watchlist weekly, reviews release notes with a security lens,...

Registry SourceRecently Updated
2500Profile unavailable
Security

Ssh Batch Manager

Batch SSH key management. Distribute/remove SSH keys to/from multiple servers with intelligent connectivity pre-check and source tracking.

Registry SourceRecently Updated
5231Profile unavailable
Security

AgentGate - Enterprise Security Firewall for OpenClaw

Enforces regex-based, real-time authorization policies on OpenClaw agents’ tool calls, blocking, allowing, or requiring approval before execution.

Registry SourceRecently Updated
7180Profile unavailable