frp 如何添加多个 80 端口?

2020-12-17 00:04:58 +08:00
 CSGO

我今天学习了 exsi 虚拟机,然后成功在下面安装了 lede,并且现在可以正常上网了。 现在客户端 frpc 是这样配置:

[common] server_addr = wangyifang.com server_port = 7000 token = password

[Raspberry-Pi-SSH] type = tcp local_ip = 192.168.100.102 local_port = 22 remote_port = 7998

[Raspberry-Pi-VNC] type = tcp local_ip = 192.168.100.102 local_port = 5901 remote_port = 7999

[LEDE 软路由 SSH] type = tcp local_ip = 192.168.100.1 local_port = 22 remote_port = 7005

[PC 远程桌面] type = tcp local_ip = 192.168.100.101 local_port = 3389 remote_port = 7006

[LEDE 软路由后台] type = http local_ip = 192.168.100.1 local_port = 80 custom_domains = wangyifang.com

================ 这是原本的配置,但是我想着如果可以把 exsi 也放到公网上就好了,就想着把最后一个改为如:

[LEDE 软路由后台] type = http local_ip = 192.168.100.1 local_port = 80 custom_domains = wangyifang.com remote_port = 7100

[LEDE 软路由后台] type = http local_ip = 192.168.100.100 local_port = 80 custom_domains = wangyifang.com remote_port = 7101

这样发现 wangyifang.com:7100 都已经不能访问 lede 后台了。而我知道 frp 的 Http Port: 7002,所以是不是 frp 只能有一个这样的记录?

3808 次点击
所在节点    宽带症候群
25 条回复
CSGO
2020-12-21 15:40:27 +08:00
@SgtPepper 删掉 https 后,用 http 也不行。用 tcp 也不行。
CSGO
2020-12-21 15:42:36 +08:00
@SgtPepper 下面两个都试了都不行。

[EXSI-后台]
type = http
local_ip = 192.168.100.100
local_port = 443
custom_domains = exsi.wangyifang.com

[EXSI-后台]
type = tcp
local_ip = 192.168.100.100
local_port = 443
remote_port = 7010
SgtPepper
2020-12-22 14:38:30 +08:00
frps 你怎么配的啊?
CSGO
2020-12-22 23:31:33 +08:00
@SgtPepper

这样配置的:

[common]
bind_port = 7000
dashboard_port = 7001
token = 4E****************6Dn^q
dashboard_user = admin
dashboard_pwd = 4E****************6Dn^q
vhost_http_port = 7002
SgtPepper
2020-12-22 23:39:48 +08:00
frpc 里面指定了 remote_port 的话 frps 里面的 vhost_http_port 去掉试试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/736203

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX