惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
D
Docker
GbyAI
GbyAI
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog

博客园 - 石曼迪

.net core web api 发布填坑 Visual Studio 2026 开发 MAUI app 记录 Windows下搭建rustdesk远程服务 nginx 二级域名配置 .NET CORE 相关配置 使用SuperSocket开发联网斗地主(四):出牌 使用SuperSocket开发联网斗地主(三):抢地主 使用SuperSocket开发联网斗地主(二):发牌 使用SuperSocket开发联网斗地主(一):联网 SuperSocket服务端与客户端搭建 EXCEL脚本收藏 小程序开发记录 Python练习 Python基础总结 在centos7.6上部署.netcore 3.0 web程序 最简单的centos上安装Nginx办法 七牛网数据备份 solr搜索分词优化 Ionic异常及解决 狗日的腾讯
frps-frpc配置
石曼迪 · 2024-05-28 · via 博客园 - 石曼迪

frps配置(域名指向的云主机):

bindPort = 7000
vhostHTTPPort = 8000
log.to = "./frpc.log"
log.level = "info"
log.maxDays = 3
auth.Token = "11225566"

frpc配置(公司内部主机)

serverAddr = "101.132.99.120"
serverPort = 7000
auth.Token = "11225566"

[[proxies]]
name = "web"
type = "http"
localIP = "127.0.0.1"
localPort = 9700
customDomains = ["www.acb.cn"]

 然后通过 www.acb.cn:7000来访问

IP方式访问配置

frps配置:

bindPort = 7000
log.to = "./frpc.log"
log.level = "info"
log.maxDays = 3
auth.Token = "11225566"

 frpc配置

serverAddr = "101.101.101.101"
serverPort = 7000
auth.Token = "11225566"

[[proxies]]
name = "web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9700
remotePort = 9700

 然后通过http://101.101.101.101:9700/访问

 如果要映射多个端口,服务端不变,只需在客户端增加一个节点即可:

serverAddr = "101.101.101.101"
serverPort = 7000
auth.Token = "11225566"

[[proxies]]
name = "web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9700
remotePort = 9700

[[proxies]]
name = "web2"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9701
remotePort = 9701