作业18 · Agent 工具出站域名白名单草案(规范版)
与
hw18_01_出站域名白名单.py输出同步;运行脚本可刷新data/homework18/当日版本。
1. Agent OpenAPI 工具(Dify → ssrf_proxy → 207:877x)
| 域名/IP | 端口 | Agent | Provider | 工具 | 风险 |
|---|---|---|---|---|---|
192.168.110.207 | 8777 | 运维巡检 Agent | server_status | getServerStatus | L2 |
192.168.110.207 | 8779 | vLLM 健康检查 Agent | vllm_health | get_vllm_status, get_gpu_info, get_request_queue | L2 |
192.168.110.207 | 8780 | vLLM 故障自愈 Agent | vllm_self_heal | detect_vllm_anomaly, restart_vllm_container, send_recovery_notification | L2(含 L1 副作用) |
OpenAPI 源文件:
patches_cursor/内部智能体配置文档专题汇总/作业1_server_status_openapi.yamlpatches_cursor/作业5_vLLM健康检查Agent/作业5_vllm_health_openapi.yamlpatches_cursor/作业7_故障自愈工作流/作业7_self_heal_openapi.yaml
2. 工作流 HTTP(非 Agent OpenAPI,同属 Dify 出站)
| 域名/IP | 端口 | 应用 | 路径 | 风险 |
|---|---|---|---|---|
192.168.110.207 | 8778 | 客服意图路由工作流 | POST /ticket, GET /health | L2 |
3. 工具 API 二次出站(207 FastAPI 后端)
| 域名/IP | 端口 | 协议 | 触发工具/脚本 | 风险 |
|---|---|---|---|---|
116.62.10.183 | 22 | SSH | 作业5/7 后端 | L1 |
116.62.10.183 | 8000 | HTTP | get_request_queue → /metrics | L2 |
oapi.dingtalk.com | 443 | HTTPS | send_recovery_notification、作业6 周报 | L3 |
4. SSRF 白名单配置建议(Squid / 防火墙)
# Allow — Agent tools (source: dify api/worker subnets)
acl agent_tools dstdomain 192.168.110.207
http_access allow agent_tools_ports
# Allow — backend egress from 207 host only (not from dify container directly)
# 116.62.10.183:22 → 源 IP 限制 192.168.110.207
# oapi.dingtalk.com → 443
# Deny
http_access deny all现网 ssrf_proxy 具体 ACL 以
ssrf_proxy/squid*.conf为准;本表为审核用草案。
5. 平台依赖(附录 · 非 Agent 工具 HTTP)
| 域名/IP | 端口 | 用途 |
|---|---|---|
116.62.10.183 | 8000 | vLLM 推理 |
192.168.110.207 | 9997 | Xinference |
192.168.110.207 | 3000 | Langfuse |
192.168.110.207 | 4000 | LiteLLM |
192.168.110.207 | 8088 | Weaviate 中继 |
marketplace.dify.ai | 443 | 插件市场(可选) |
6. 刷新命令
python scripts_cursor/作业18_Agent出站白名单与密钥轮换/hw18_01_出站域名白名单.py审核策略:作业18_出站审核与业务策略_cursor.md