mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #612] 不使用域名怎样修改配置文件实现访问内网web服务? #476
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#476
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 @gyje on GitHub (Jan 21, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/612
不知道哪里配置有问题,在内网用Apache开了个1024端口的web页面,想要不通过域名直接访问公网IP实现访问该内网页面。
frps.ini
[common]
bind_port = 7000
auth_token = admin
privilege_token = 12345678
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
auth_token = admin
privilege_token = 12345678
[web]
type = http
local_port = 1024
custom_domains = 127.0.0.1
谢谢!
@fatedier commented on GitHub (Jan 23, 2018):
使用 tcp 类型
@gyje commented on GitHub (Jan 23, 2018):
@fatedier 能否给出一个简单的示例配置?尝试了tcp,但是提示io error
@fatedier commented on GitHub (Jan 23, 2018):
请自行查阅相关文档,提示的错误贴出日志。
@gyje commented on GitHub (Jan 24, 2018):
frps.ini
[common]
bind_port = 7000
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[proxy]
type = tcp
local_ip = 0.0.0.0
local_port = 1024
remote_port = 6000
防火墙配置,端口占用,都检查了,服务端可以启动成功,但是客户端出错:
2018/01/24 20:16:24 [I] [proxy_manager.go:284] proxy removed: []
2018/01/24 20:16:24 [I] [proxy_manager.go:294] proxy added: [proxy]
2018/01/24 20:16:24 [I] [proxy_manager.go:317] visitor removed: []
2018/01/24 20:16:24 [I] [proxy_manager.go:326] visitor added: []
2018/01/24 20:16:45 [W] [control.go:109] login to server failed: dial tcp x.x.
x.x:7000: connectex: A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection faile
d because connected host has failed to respond.
dial tcp x.x.x.x:7000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
本地web服务已经启动,1024端口web页面正常
@fatedier
@gyje commented on GitHub (Jan 31, 2018):
用goproxy解决了
@bluethon commented on GitHub (Mar 21, 2018):
我也遇到同样的问题, 最后找到了配置说明, 解决了,
frpc.ini例子如下