mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1742] frp如何设置可以实现公网访问内网博客? #1377
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#1377
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 @bruceluo111 on GitHub (Apr 10, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1742
What version of frp are you using (./frpc -v or ./frps -v)?
0.29.1
What operating system and processor architecture are you using (
go env)?Raspbian
Configures you used:
我之前用frp和国外VPS做内网穿透树莓派可以SSH访问,aria2远程下载,然后最近搭了个wordpress博客想让外网访问,然后就只改了以下设置,其他没改:
【web01】
type = http
local_ip=127.0.0.1
local_port=8080 (我的wordpress本地网页端口用的8080,害怕别的程序要用80起冲突)
use_encryption=true
use_compression=false
Steps to reproduce the issue:
1.远程登录SSH,sudo nano /etc/frpc/frpc_full.ini
2.改完后我ctrl+x退出,Y保存,回车返回
3.输入systemctl restart frpc
4.远程连接直接断了,再连也连不上,说明frpc没有启动
5.因为我把frpc做成了service,所以又在本地局域网接着用了systemctl daemon-reload, systemctl start frpc,都启动不了
6.然后sudo nano /etc/frpc/frpc_full.ini, 又把刚做的更改全部注释掉,再systemctl daemon-reload, 然后status是activated, 然后systemctl enable frpc, 就恢复正常了可以开机自启和远程连接
Describe the results you received:*
远程SSH直接断开,frpc应该是没启动
Describe the results you expected:
本来想着改完【web01】就可以输入VPS的IP加本地端口8080就可以公网访问本地博客
Additional information you deem important (e.g. issue happens only occasionally):
是不是不是改【web01】,而是改【Rang:udp_port】? 我是小白,只是看网上教程搞得tcp穿透,博客搭建,不想搞路由器端口转发, 非常感谢大神解答:我该改哪里的设置,是输入VPS的IP和【range:udp_port】里随便设置的远程端口还是什么IP加什么端口远程访问本地博客?
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Apr 10, 2020):
建议直接参考文档 通过 ssh 访问公司内网机器配置一个 TCP 的映射
@bruceluo111 commented on GitHub (Apr 10, 2020):
我已经有两个TCP映射了,一个SSH,一个aria2, 现在是想用http, 是要有域名才行吗?还是直接udp设置本地端口和远程端口就可以用VPS的IP和远程端口访问,不需要域名了?
@bruceluo111 commented on GitHub (Apr 10, 2020):
@AntiverX commented on GitHub (Apr 11, 2020):
要不要域名都可以,方法跟映射SSH一样