mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #211] 内网解析如何配置? #144
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#144
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 @idoall on GitHub (Jan 4, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/211
问题描述
内网的网关是10.10.10.1
在网关上配置了域名转发a.com指向10.10.10.10
然后在10.10.10.10上启动了frps用的是特权模式
在另一台机器10.10.10.5启动frpc,连接到10.10.10.10。并在10.10.10.5上设置a.com转发到10.10.10.7上。
然后访问a.com,打不开,好像frps默认上公网做DNS解析,内网10.10.10.1上配置的域名解析不起作用。
PS:我在10.10.10.10上ping a.com,返回的ip是10.10.10.10
问题
如果frps在公网上做DNS解析,有办法设置,在内网指定DNS解析的IP吗?
以下是在10.10.10.10上frps的配置
以下是在10.10.10.5上frpc的配置
@fatedier commented on GitHub (Jan 4, 2017):
a.com对于 frps 来说是不需要解析的,frps 只是根据 http 请求的 host 中的a.com来决定要将这个 http 请求发往哪一个 proxy(frpc)。你需要明确打不开是什么错误,这个描述不够具体。建议通过
curl -v进行请求然后将输出结果发出来。@idoall commented on GitHub (Jan 5, 2017):
内网现在改用haproxy解决了,当时的环境找不到,先关闭问题