Files
nexus/wiki/concepts/内网穿透.md
2026-04-16 20:05:13 +08:00

32 lines
937 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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穿透]]