seed-forge/harness-ai-kit/diag-network-port-unreach
Claude Code and agent skill by seed-forge/harness-ai-kit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
端口不可达全链诊断。从 DNS 解析 → TCP connect → iptables/firewalld 规则 → 服务监听状态 → 路由表 → SELinux/AppArmor,逐层排查并输出结构化报告。
Install
npx vskill@latest install seed-forge/harness-ai-kit/diag-network-port-unreachSKILL.md
The same SKILL.md was published earlier as seed-forge/harness-ai-kit/diag-network-port-unreach.
Network Port Unreachable Full-Chain Diagnostics
用途
当用户报告某个端口/服务不可达、连接超时或被拒绝时触发。
输入
- 目标 host:port
- 可选:源机器、协议(TCP/UDP)
输出
- 端口连通性诊断报告 + 修复建议
诊断步骤
Step 1: DNS 解析
Step 2: TCP 连通性测试
Step 3: 目标端服务监听
Step 4: 防火墙规则
Step 5: 路由与 NAT
输出模板
模式分类
| 症状 | 根因 | 修复 | |
|---|---|---|---|
| Connection refused | 服务未监听 | 启动服务 / 检查端口配置 | |
| Connection refused + 127.0.0.1 | 只绑定 localhost | 改 bind 为 0.0.0.0 | |
| Connection timeout | 防火墙丢弃 / 路由不通 | 开放防火墙 / 检查路由 | |
| No route to host | 网络不可达 | 检查路由表和网关 | |
| DNS resolution failed | 域名无法解析 | 检查 DNS 配置 |
告警阈值
| 指标 | Warning | Critical | |
|---|---|---|---|
| Port unreachable | 单端口 | 多端口同时 | |
| Response time | > 2s | > 5s |
推荐输出格式
执行完毕后,按以下格式输出结果:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/diag-network-port-unreach/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 2
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/seed-forge/harness-ai-kit/diag-network-port-unreach)