Files
nexus/wiki/sources/vps-frp-reverse-proxy-internal-network-access.md
2026-04-17 08:38:12 +08:00

55 lines
2.1 KiB
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.
---
title: "通过 VPS+内网反向代理实现域名访问内网穿透"
type: source
tags: [vps, caddy, frp, reverse-proxy, network, cdn]
date: 2026-04-16
---
## Source File
- [[raw/Home Office/通过VPS+内网反向代理实现域名访问内网穿透.md]]
## Summary
- 核心主题:通过 FRPFast Reverse Proxy实现内网穿透结合 Caddy 反向代理提供 HTTPS 域名访问
- 问题域:如何将内网服务通过公网 VPS 暴露给外部访问,同时使用域名和 HTTPS
- 方法/机制FRP 建立反向隧道Caddy 作为反向代理提供 HTTPSAliyun DNS 管理域名解析
- 结论/价值:实现内网服务的安全外部访问,支持 NAS、n8n、Transmission、Grafana 等多服务穿透
## Key Claims
- FRPFast Reverse Proxy是专为内网穿透设计的工具支持 NAT traversal 和自动重连
- Caddy 反向代理可以自动申请和更新 Let's Encrypt 证书,提供 HTTPS 访问
- 通过 VPS+FRP+Caddy 的组合架构,可以将内网服务映射到公网域名访问
## Key Quotes
> "FRP 优点:专为内网穿透设计,支持 NAT、自动重连、Web 管理面板(可选)" — 文档说明
> "Caddy 会自动申请并更新 Let's Encrypt 证书,提供 HTTPS 访问" — 文档说明
## Key Concepts
- [[内网穿透]]:将内网服务通过公网服务器暴露给外部访问的技术
- [[反向代理]]:服务器代理客户端请求到内部网络服务的技术
- [[端口转发]]:将一个端口的流量转发到另一个端口的机制
## Key Entities
- [[FRP]]Fast Reverse Proxy内网穿透工具
- [[Caddy]]:自动 HTTPS 的 Web 服务器
- [[阿里云]]:阿里云,提供域名 DNS 服务
- [[VPS]]:虚拟专用服务器,运行 frps 和 Caddy
- [[NAS]]:网络附加存储,被穿透的服务之一
- [[n8n]]:工作流自动化工具
## Connections
- [[VPS]] ← runs ← [[FRP (frps)]]
- [[VPS]] ← runs ← [[Caddy]]
- [[Aliyun]] ← manages DNS for ← 域名解析
- [[Caddy]] ← reverse_proxy ← [[内网服务 (n8n/NAS/Transmission/Grafana)]]
- [[FRP (frpc)]] ← connects_to ← [[VPS]]
## Contradictions
暂无冲突记录。