mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #618] 局域网内通过代理可以连接,外网通过代理就无法连接 #479
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#479
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 @ligf on GitHub (Jan 24, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/618
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.15.1
What operating system and processor architecture are you using (
go env)?客户端和服务器都是Linux
Configures you used:
服务器
[common]
bind_addr = 0.0.0.0
bind_port = 17000
dashboard_port = 17500
dashboard_user = admin
dashboard_pwd = 654321
privilege_allow_ports = 18000-18100
log_file = /mnt/frp/frpc.log
log_level = debug
客户端
[common]
A literal address or host name for IPv6 must be enclosed
in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
server_addr = 0.0.0.0
server_port = 17000
[secret_tcp]
If the type is secret tcp, remote_port is useless
Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
type = stcp
sk used for authentication for visitors
sk = abcdefg
local_ip = 127.0.0.1
local_port = 9559
use_encryption = false
use_compression = false
服务器是阿里云的linux系统,运行客户端的linux系统中有个服务,如果用跟客户端在同一局域网的电脑通过frp代理连接该客户端的服务是可以连接的,如果用外网的电脑就无法连接,这种情况是不是这个服务对访问的ip有限制呢,我试过在外网直接访问该服务也是失败的(路由器有公网ip做了端口映射)。