Auto-sync: 2026-04-16 20:05

This commit is contained in:
2026-04-16 20:05:13 +08:00
parent db72ecb4f6
commit ee6406f30c
43 changed files with 1786 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
---
id: nei-wang-chuan-tou
title: "内网穿透"
type: concept
tags: [networking, nat, proxy]
date: 2026-04-16
---
## Definition
内网穿透NAT Penetration是一种将内网服务通过公网服务器暴露给外部访问的技术又称端口映射或反向代理。
## Key Mechanisms
- **端口映射**:将内网端口映射到公网端口
- **反向代理**:公网服务器接收请求后转发到内网
- **心跳保活**:维持 NAT 映射有效性的机制
- **UDP 打洞**:通过 UDP 穿透 NAT 的技术
## Tools
- [[FRP]]Fast Reverse Proxy开源内网穿透工具
- [[NAT穿透]]:内网穿透的另一种称呼
- ngrok商业内网穿透服务
- frp开源方案
## Use Cases
- 远程访问内网 SSH
- 暴露本地 Web 服务到公网
- 远程调试和开发
- IoT 设备远程管理
## Connections
- [[内网穿透]] ← implemented_by ← [[FRP]]
- [[内网穿透]] ← uses ← [[NAT穿透]]