找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5115|回复: 15

[其他设备] 免费FRP内网穿透服务

[复制链接]
发表于 2019-3-8 07:53 | 显示全部楼层 |阅读模式
本帖最后由 start2005a 于 2019-5-10 10:44 编辑

免费FRP内网穿透服务已不能使用。依靠别人提供的免费FRP内网穿透服务总是不可靠。

现在IPv6已经开始普及,路由器如果支持IPv6,可以通过公网IPv6直达设备,不需要路由器转发。
免费的动态域名还没看到支持IPv6的,但阿里云域名服务支持IPv6,可以买特价1元=1年的域名(1年后再换个域名,或一次性买10年的域名,好像有6位纯数字的域名特价10年=63元),实现动态域名解析了。

=============================================

http://freenat.win/ 提供


使用介绍:(以0.24.1版本 和 linux arm64 平台为示例)


连接地址为:freenat.club:7000
特权认证密码为:frp888
状态查询:http://freenat.club:7500
查询帐号和密码均为:admin
默认http端口为80
默认https端口为443
端口全部开放
提供二级域名*.freenat.club(*自定义)
支持KCP协议
支持P2P穿透(xtcp)

步骤:
1. 下载

https://github.com/fatedier/frp/releases 下载 frp 0.24.1版 的 frp_0.24.1_linux_arm64.tar.gz

解压缩至 /opt/frp 目录下,

frpc 是 frp 客户端部分,frps 是 frp 服务端部分。这里我们使用免费的 freenat.club 作为 frp服务,所以我们只需要用到 frpc 部分。

2. 修改 frpc.ini 文件

  1. [common]
  2. server_addr = freenat.club
  3. server_port = 7000
  4. token = frp888
  5. log_file = frpc.log
  6. log_level = info
  7. log_max_days = 7
  8. login_fail_exit = false

  9. [http_mysite]
  10. type = http
  11. local_ip = 192.168.2.50
  12. local_port = 80
  13. use_compression = true
  14. use_encryption = true
  15. custom_domains = mysite.freenat.club

  16. [tcp_ssh]
  17. type = tcp
  18. local_ip = 192.168.2.50
  19. local_port = 22
  20. use_compression = true
  21. use_encryption = true
  22. remote_port = 22
复制代码

3. 执行后台运行命令:
nohub ./frpc -c ./frpc.ini

即可。

当访问  http://mysite.freenat.club 就是访问你内网的 http://192.168.2.50

以下是对  frpc.ini 内容 的说明:

server_addr: frps 服务地址
server_port:frps 服务端口
token:特权认证密码

[http_mysite]、[tcp_ssh] :对应客户端的服务名称,要求在同一个 frps 服务里,名称唯一即可。这里是为了方便看。实际应该改成复杂、与域名无关的名称,避免被人从 freenat.club的状态里查看到。

比如改为:

[Tafdasiuowqrnkldfn]
type = http
local_ip = 192.168.2.50
local_port = 80
use_compression = true
use_encryption = true
custom_domains = mysite.freenat.club

这样,在 freenat.club 上面查询到的是 Name=Tafdasiuowqrnkldfn, Port=80

type:通讯类型,有 tcp | udp | http | https,http 和 https已经在 frps 服务端指定了远程端口。如果想将 http服务以其他端口(比如:8080),则可以使用 tcp类型


[Tafdasiuowqrnkldfn]
type = tcp
local_ip = 192.168.2.50
local_port = 80
use_compression = true
use_encryption = true
custom_domains = mysite.freenat.club
remote_port = 8080

当访问  http://mysite.freenat.club:8080/ 就是访问你内网的 http://192.168.2.50

local_ip:本地服务器地址
local_port:本地服务端口
custom_domains:外网访问本机服务的域名
remote_port:外网访问本机服务的端口
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-3-8 08:01 | 显示全部楼层
完全看不懂。全是代码,晕
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 08:20 | 显示全部楼层
只是个端口映射吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 08:24 | 显示全部楼层
完全看不懂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 08:58 | 显示全部楼层
好东西分享,赞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 09:23 | 显示全部楼层
看这域名后缀就知道是搞着玩的,不会长久的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 09:32 | 显示全部楼层
大佬啊,小白看不懂
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 14:49 | 显示全部楼层
真心感谢楼主兄弟的分享,帖子清晰明了,赞!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 18:29 | 显示全部楼层
万分感谢楼主分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-10 09:34 | 显示全部楼层
这个是不是崩了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-10 09:44 | 显示全部楼层
简单的用用就花生壳内网穿透免费版,1G流量控制下内网设备,远程查看下状态也够用了。

点评

花生壳不支持arm64的平台,只能是AMD64  详情 回复 发表于 2020-2-10 02:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-5-10 18:19 | 显示全部楼层
这个不能用了,还有什么好一点的免费frp,推荐一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-10 02:51 | 显示全部楼层
huang7dede 发表于 2019-5-10 09:44
简单的用用就花生壳内网穿透免费版,1G流量控制下内网设备,远程查看下状态也够用了。

花生壳不支持arm64的平台,只能是AMD64
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-10 03:15 | 显示全部楼层
因为花生壳不能用于arm,且这套方案不太懂怎么能穿透,所以自己改用了nat123的服务,做了域名解析到cname:端口就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-13 15:04 | 显示全部楼层
过来学习的了。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 22:50

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表