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
累計下載
4010
星標
10
全站排名
#2,554
全站前 51% · 「運維安全」前 57%
平台累計安裝累計下載星標評論
ClawHub ↗12040109-
SkillHub ↗120395610—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

用 ping、traceroute、dig、ss、curl 和抓包思路檢查連通性、解析、監聽埠、HTTP 與 TLS,涉及 NAT、防火牆、負載平衡及隧道。ICMP 可能遭阻擋,ping 無回應不代表主機下線;DNS 變化受快取 TTL 影響。檢查防火牆時兼顧 IPv4/IPv6,憑證缺少中間鏈可能導致驗證失敗。

資料釋出於 2026-10-26

可以用來做什麼

  • 排查解析和連線故障

什麼時候用

  • 服務無法連線或網路行為異常時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

梳理這個連線故障的 DNS、埠和 TLS 檢查步驟

月度資料趨勢

累計下載4010
1953305841622026-03 · 累計下載 21052026-05 · 累計下載 29232026-06 · 累計下載 31472026-07 · 累計下載 35692026-08 · 累計下載 38212026-09 · 累計下載 401026-0326-09
星標10
89102026-03 · 星標 82026-05 · 星標 102026-06 · 星標 102026-07 · 星標 102026-08 · 星標 102026-09 · 星標 1026-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094010—10
2026-083821+7.1%10
2026-073569+13.4%10
2026-063147+7.7%10
2026-052923—10
2026-032105—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萬★ 51jgarrison929
Tencent COS運維安全

騰訊雲物件儲存(COS)和資料永珍(CI)整合技能。覆蓋檔案儲存管理、AI處理和知識庫三大核心場景。 儲存場景:上傳檔案到雲端、下載雲端檔案、批次管理儲存桶檔案、獲取檔案簽名連結分享、檢視檔案元資訊。 圖片處理場景:圖片質量評估打分、AI超解析度放大、AI智慧裁剪、二維碼/條形碼識別、新增文字水印、獲取圖片EXI...

↓ 2.7萬★ 15u_23a69fa7

Iván 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。