mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3814] p2p下访问samba,一直访问的是本机,已做端口转发 #3031
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#3031
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 (Nov 29, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3814
p2p下访问samba怎么正确配置
frp --verison 0.52.3
前提:已经配置过xtcp下ssh 端口转发访问被访问端,且被访问端的web端都能访问,一切正常
现在是需要访问文件服务器linux上安装的samba4
被访问端是linux:
访问端是windows:
netsh interface portproxy add v4tov4 listenport=445 connectaddress=127.0.0.1 connectport=12345
windows下查看是以下结果:
现在在windows文件管理中输入 \127.0.0.1 默认定位到的是本机的共享,应该怎么设置才能xtcp远程访问到linux上的samba上面去。
Describe alternatives you've considered
No response
Affected area
@xqzr commented on GitHub (Nov 29, 2023):
Windows 默认会监听
@superzjg commented on GitHub (Nov 29, 2023):
你这windows的转发445,貌似还缺少listenaddress,检查命令是不是错了。
@kktt007 commented on GitHub (Nov 30, 2023):
是啊,而且默认端口改不了,所以我才用了转发,不过我只显示这一条:tcp 0.0.0.0:445,另一条对我没影响吧
@kktt007 commented on GitHub (Nov 30, 2023):
感谢回复
系统默认监听的445,这里的命令把445转发到12345,listenaddress就是frpc的12345端口,见最后
在frpc(visitor访问端,也就是本机上)
bindAddr = "127.0.0.1"
bindPort = 12345
查看12345端口
TCP 127.0.0.1:12345 0.0.0.0:0 LISTENING 3032
@xqzr commented on GitHub (Nov 30, 2023):
看起来 这一条 优先于“另一条”
@ATKghost commented on GitHub (Dec 4, 2023):
尝试一下监听127.0.0.2、127.0.0.3这些地址呢?
@github-actions[bot] commented on GitHub (Jan 4, 2024):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@RowgerGo commented on GitHub (Nov 19, 2024):
大佬,你最后是怎么解决监听的