Iván

Network

运维安全v1.0.0
作者:Iván更新于 2026-05-11network@clawhub_ivangdavila/network
服务器运维故障排查

据 AlphaMoat 统计,截至 2026-09,Network 累计下载 4,010 次、获 10 个星标,在全部 5,078 个 AI 技能中排名第 2,554 位,在「运维安全」分类(264 个)中排名第 150 位。

累计安装
120
累计下载
4,010
星标
10
全站排名
#2,554
全站前 51% · 「运维安全」前 57%
平台累计安装累计下载星标评论
ClawHub ↗1204,0109-
SkillHub ↗1203,95610—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

用 ping、traceroute、dig、ss、curl 和抓包思路检查连通性、解析、监听端口、HTTP 与 TLS,涉及 NAT、防火墙、负载均衡及隧道。ICMP 可能被阻,ping 无响应不代表主机下线;DNS 变化受缓存 TTL 影响。检查防火墙时兼顾 IPv4/IPv6,证书缺少中间链可能导致验证失败。

资料发布于 2026-10-26

可以用来做什么

  • 排查解析和连接故障

什么时候用

  • 服务无法连接或网络行为异常时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

梳理这个连接故障的 DNS、端口和 TLS 检查步骤

月度数据趋势

累计下载4,010
1,9533,0584,1622026-03 · 累计下载 2,1052026-05 · 累计下载 2,9232026-06 · 累计下载 3,1472026-07 · 累计下载 3,5692026-08 · 累计下载 3,8212026-09 · 累计下载 4,01026-0326-09
星标10
89102026-03 · 星标 82026-05 · 星标 102026-06 · 星标 102026-07 · 星标 102026-08 · 星标 102026-09 · 星标 1026-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,010—10
2026-083,821+7.1%10
2026-073,569+13.4%10
2026-063,147+7.7%10
2026-052,923—10
2026-032,105—8

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.0 KB · ClawHub v1.0.0
---
name: Network
description: Understand and troubleshoot computer networks with TCP/IP, DNS, routing, and diagnostic tools.
metadata: {"clawdbot":{"emoji":"🌐","os":["linux","darwin","win32"]}}
---

# Network Fundamentals

## TCP/IP Basics
- TCP guarantees delivery with retransmission — use for reliability (HTTP, SSH, databases)
展开全部(共 73 行)
- UDP is fire-and-forget — use for speed when loss is acceptable (video, gaming, DNS queries)
- Port numbers: 0-1023 privileged (need root), 1024-65535 available — common services have well-known ports
- Ephemeral ports for client connections — OS assigns randomly from high range

## DNS
- DNS resolution is cached at multiple levels — browser, OS, router, ISP — flush all when debugging
- TTL determines cache duration — lower before migrations, raise after for performance
- A record for IPv4, AAAA for IPv6, CNAME for aliases, MX for mail
- CNAME cannot exist at zone apex (root domain) — use A record or provider-specific alias
- `dig` and `nslookup` query DNS directly — bypass local cache for accurate results

## IP Addressing
- Private ranges: 10.x.x.x, 172.16-31.x.x, 192.168.x.x — not routable on internet
- CIDR notation: /24 = 256 IPs, /16 = 65536 IPs — each bit halves or doubles the range
- 127.0.0.1 is localhost — 0.0.0.0 means all interfaces, not a valid destination
- NAT translates private to public IPs — most home/office networks use this
- IPv6 eliminates NAT need — but dual-stack with IPv4 still common

## Common Ports
- 22: SSH — 80: HTTP — 443: HTTPS — 53: DNS
- 25/465/587: SMTP (mail sending) — 143/993: IMAP — 110/995: POP3
- 3306: MySQL — 5432: PostgreSQL — 6379: Redis — 27017: MongoDB
- 3000/8080/8000: Common development servers

## Troubleshooting Tools
- `ping` tests reachability — but ICMP may be blocked, no response doesn't mean down
- `traceroute`/`tracert` shows path — identifies where packets stop or slow down
- `netstat -tulpn` or `ss -tulpn` shows listening ports — find what's using a port
- `curl -v` shows full HTTP transaction — headers, timing, TLS negotiation
- `tcpdump` and Wireshark capture packets — last resort for deep debugging

## Firewalls and NAT
- Stateful firewalls track connections — allow response to outbound requests automatically
- Port forwarding maps external port to internal IP:port — required to expose services behind NAT
- Hairpin NAT for internal access to external IP — not all routers support it
- UPnP auto-configures port forwarding — convenient but security risk, disable on servers

## Load Balancing
- Round-robin distributes sequentially — simple but ignores server capacity
- Least connections sends to least busy — better for varying request durations
- Health checks remove dead servers — configure appropriate intervals and thresholds
- Sticky sessions (affinity) keep user on same server — needed for stateful apps, breaks scaling

## VPNs and Tunnels
- VPN encrypts traffic to exit point — all traffic appears from VPN server IP
- Split tunneling sends only some traffic through VPN — reduces latency for local resources
- WireGuard is modern and fast — simpler than OpenVPN, better performance
- SSH tunnels for ad-hoc port forwarding — `ssh -L local:remote:port` creates secure tunnel

## SSL/TLS
- TLS 1.2 minimum, prefer 1.3 — older versions have known vulnerabilities
- Certificate chain: leaf → intermediate → root — missing intermediate causes validation failures
- SNI allows multiple certs on one IP — older clients without SNI get default cert
- Let's Encrypt certs expire in 90 days — automate renewal or face outages

## Common Mistakes
- Assuming DNS changes are instant — TTL means old records persist in caches
- Blocking ICMP entirely — breaks path MTU discovery, causes mysterious failures
- Forgetting IPv6 — services may be accessible on IPv6 even with IPv4 firewall
- Hardcoding IPs instead of hostnames — breaks when IPs change
- Not checking both TCP and UDP — some services need UDP (DNS, VPN, game servers)
- Confusing latency and bandwidth — high bandwidth doesn't mean low latency

「运维安全」分类下的热门技能

SkillScan运维安全

在使用技能包之前做安全扫描,并按结论决定放行或拦截的技能。

↓ 18.2万★ 41tokauthai
Free Ride - Unlimited free AI运维安全

管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...

↓ 9.7万★ 485Shaishav Pidadi
OpenClaw Backup运维安全

备份与恢复 OpenClaw 配置、凭据与工作区的技能。

↓ 3.5万★ 93alex3alex
1password运维安全

设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。

↓ 3.5万★ 53Peter Steinberger
MoltGuard - Security & Antivirus & Guardrails运维安全

MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。

↓ 3.4万★ 116Thomas
Tmux运维安全

远程控制 tmux 会话,向交互式命令行发送按键并抓取输出。

↓ 3.3万★ 46Peter Steinberger
Security Auditor运维安全

用于代码安全漏洞审查、身份验证流程实现、OWASP Top 10审计、CORS/CSP 头部配置、密钥处理、输入验证、SQL 注入防护、XSS 防护及其他安全相关代码审查。

↓ 3.0万★ 51jgarrison929
Tencent COS运维安全

腾讯云对象存储(COS)和数据万象(CI)集成技能。覆盖文件存储管理、AI处理和知识库三大核心场景。 存储场景:上传文件到云端、下载云端文件、批量管理存储桶文件、获取文件签名链接分享、查看文件元信息。 图片处理场景:图片质量评估打分、AI超分辨率放大、AI智能裁剪、二维码/条形码识别、添加文字水印、获取图片EXI...

↓ 2.7万★ 15u_23a69fa7

Iván 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。