mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #767] frpc xtcp命令行参数中没有--bind_port?只能指定配置文件? #598
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#598
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 @iamme5945 on GitHub (May 14, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/767
0.17.0(含)以上版本
点对点内网穿透
……
在要访问这个服务的机器上启动另外一个 frpc,配置如下:
# frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[p2p_ssh_visitor]
type = xtcp
# xtcp 的访问者
role = visitor
# 要访问的 xtcp 代理的名字
server_name = p2p_ssh
sk = abcdefg
# 绑定本地端口用于访问 ssh 服务
bind_addr = 127.0.0.1
bind_port = 6000
写命令行的话:
frpc xtcp -s x.x.x.x:7000 --role visitor --server_name p2p_ssh --sk abcdefg --bind_addr 127.0.0.1
没有--bind_port参数,没地方写绑定的端口啊?
@fatedier commented on GitHub (May 14, 2018):
这里做了一些调整,将 host 和 port 合并了,可以直接使用
--bind_addr 127.0.0.1:9000这样的方式来配置,稍后在-h说明里标注下。@iamme5945 commented on GitHub (May 14, 2018):
frpc xtcp -s x.x.x.x:7000 --role visitor --server_name p2p_ssh --sk abcdefg --bind_addr 127.0.0.1:6000
[W] [proxy_manager.go:249] start error: address 127.0.0.1:6000:0: too many colons in address
@fatedier commented on GitHub (May 16, 2018):
考虑之后,决定还是增加
--bind_port参数,下个 release 版本中发布。@iamme5945 commented on GitHub (May 17, 2018):
Ok,期待下个release!