mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4514] xtcp模式下 内网中的访问端怎么通过内网中的(双网卡)代理服务器访问到外面的被访问端 #3567
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3567
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kktt007 on GitHub (Oct 26, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4514
Bug Description
下面的配置是部署在内网有双网卡的linux服务器中
在家里能通过 这个服务器 访问到内网中其他任何电脑,只要proxies配置需要被访问的电脑即可
但是现在想在这个服务器上同时部署visitors端,这样内网中的电脑(比如192.168.1.11)能通过这个服务器,访问外面的被访问端bbb(bbb在家里)
应该怎么配置
假如:内网服务器linux的ip是192.168.1.111
bindAddr = "127.0.0.1"
bindPort = 9999
其他内部电脑,可以通过这样的配置借助192.168.1.111这台电脑访问外面的bbb电脑吗
如果可以rdp的方式应该是什么样的
现在用内网电脑192.168.11来操作
打开mstsc后应该怎么做才对
也就是内网中的192.168.11 想借助服务器 192.168.111 访问外部的电脑bbb
frpc Version
0.60
frps Version
0.60
System Architecture
windows/amd64
Configurations
serverAddr = xxx
serverPort = xxx
auth.method = "token"
auth.token = xxx
log.to = "./frpc.log"
log.level = "info"
log.maxDays = 3
proxies 这段不用看,做为被访问端没问题
name = "aaa"
type = "xtcp"
secretKey = "aaaaa"
localIp = "192.168.1.2"
localPort = 3389
这个可以吗:
visitors
name = bbb_visitor
type = "xtcp"
serverName = bbb
secretKey = xxx
bindAddr = "127.0.0.1" # 这样操作感觉更加通用,但是具体在内网的电脑上怎么做?
bindPort = 9999
或者应该设置成
visitors
name = bbb_visitor
type = "xtcp"
serverName = bbb
secretKey = xxx
bindAddr = "192.168.1.11" # 这样比较麻烦,如果192.168.1.12 等等要访问这边就要添加很多
bindPort = 9999
Logs
No response
Steps to reproduce
...
Affected area
@xqzr commented on GitHub (Oct 26, 2024):
监听所有网卡,但请注意安全
@kktt007 commented on GitHub (Oct 27, 2024):
谢谢,这个确实可以
2个问题