找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 69544|回复: 209

【原创】科普下frp内网穿透管理路由及Aria2、TR远程下载用法,同时分享几个免费服务器

 火... [复制链接]
本帖最后由 zhengxinhn 于 2017-7-8 23:43 编辑

主要拿H大的 Padavan 做例子,其实都通用的。
先说局域网内下载,已经知道的可以往下翻。

首先当然要开启 USB应用程序中的相应程序了。
RPC端口如果没啥特别需求,用默认就好。



开启之前最好先改好配置文件,Aria2 在 aria/config/aria2.conf。
主要是把 rpc-secret 前面的#注释去掉,设置一个自己的token,以下示例,肯定越复杂越好。
  1. # 设置的RPC授权令牌, v1.18.4新增功能, 取代 --rpc-user 和 --rpc-passwd 选项
  2. rpc-secret=youkuL2
复制代码

这时候局域网内下载的RPC如下, aria2c.com 这种直接填这个地址就好
  1. http://token:youkuL2@192.168.123.1:6800/jsonrpc
复制代码
自带的 Aria2 WeiUI 设置如图




transmission 的配置文件在 transmission/config/settings.json
主要也是添加一个验证 rpc-username rpc-password 2项,改成自己想要的就行。
保存之后 rpc-password 会变成加密字段,以下示例均为 transmission
  1. "rpc-username": "transmission",
  2. "rpc-password": "transmission",
复制代码
可以直接点击 Web control(也可以直接访问 192.168.123.1:9091) 打开网页控制端,登陆之后就可以添加种子下载。
推荐使用transmission-remote,远程的时候用这个更方便,不用加载web页面,设置如图。


下面是内网穿透设置

路由器上开启 fprc 之前,填写 frpc 的配置文件,frp 版本更新变化较大,要客户端跟服务器同一版本。
免费服务器大多是0.9.3版本,自建的话用最新的0.12.0就好,现在H大的固件会自动更新到0.12.0。

我在 baidu 网盘共享了0.9.3-0.12.0 版本,也可以到 https://github.com/fatedier/frp/releases 下载官方版本。
链接: https://pan.baidu.com/s/1dE4vfJN 密码: 3hha
下载后替换文件,路径 opt/bin/frpc ,修改权限。然后填写客户端配置文件 myfrpc.ini 就能启动了。


先是主配置,一般是特权模式,只要这几个参数:服务器地址、端口、特权秘钥,然后就可以连接了。
这也是优点所在,不需要注册乱七八糟的账号,几乎所有配置都在客户端完成。
  1. [common]
  2. server_addr = nat.ee
  3. server_port = 7000
  4. privilege_token = www.nat.ee   
复制代码

然后就是配置想要的内网IP(local_ip)、内网端口(local_port),外网域名以及协议等,名字尽量弄特殊点,避免跟别人冲突,比如自己习惯的 ID+router 代表路由器。
local_ip= 可以去除,默认就是127.0.0.1即路由器本身,可以增加此参数设置为其他局域网内的IP,比如我把transmission项里的local_ip设置为电脑、NAS(192.168.x.x),也可以连上电脑、NAS上的transmission。
示例分别为 路由web界面的80端口、Aria2 RPC 的6800端口、transmission的9091端口,都是http协议。还有个SSH连接的22端口。
  1. [customrouter]
  2. privilege_mode=true
  3. type = http
  4. local_port = 80
  5. custom_domains =customrouter.nat.ee

  6. [customaria]
  7. privilege_mode=true
  8. type = http
  9. local_port = 6800
  10. custom_domains =customaria.nat.ee

  11. [customtransmission]
  12. privilege_mode=true
  13. type = http
  14. local_port = 9091
  15. custom_domains =customtransmission.nat.ee

  16. [ssh]
  17. privilege_mode = true
  18. type = tcp
  19. local_port = 22
  20. remote_port= 6000
复制代码
如果没有指定远程端口,访问 customrouter.nat.ee 就能直接进入路由管理界面。
可以增加http_user http_pwd 参数 ,这样就需要登陆了,另外压缩、加密可选。
  1. [customrouter]
  2. privilege_mode=true
  3. type = http
  4. local_port = 80
  5. custom_domains =customrouter.nat.ee
  6. http_user=admin        用户名
  7. http_pwd=admin         密码
  8. use_gzip=true          压缩
  9. use_encryption = true  加密
复制代码
不过免费服务器打开路由器的管理界面真的是慢,基本没法用。


启动之后,打开你喜欢的 Aira2前端,RPC 改为如下即可连接,因为没有指定远程端口,端口就不用填了。
  1. http://token:youkuL2@customaria.nat.ee/jsonrpc
复制代码


同时访问 customtransmission.nat.ee 可以打开路由器内置的 transmission web端,同样速度也很不理想。
最好是使用 transmission-remote,没有指定远程端口的时候填80就好,设置如图。


通过 ssh 访问内网机器,前面设的端口为6000 假设用户名为 admin:
  1. ssh -oPort=6000 admin@www.nat.ee
复制代码


以上均为示例,远程端口一般服务端有限制,6000端口不一定能用。

下面是几个服务器,都是从网络上搜索到的,如有侵权,可以联系删除。
连接地址为(server_addr): frp.lu8.win
连接端口为(server_port):7000
特权认证密码为(privilege_token):frp888
可映射TCP、UDP端口为:9000-65535

隧道状态查询(dashboard):frp.lu8.win:7500  可以看到正在使用的通道。
查询帐号和密码均为:admin

server_addr = nat.ee
server_port = 7000
privilege_token =www.nat.ee
可映射TCP UDP端口为:10000-19999

server_addr = frp1.chuantou.org
server_port = 7000
privilege_token =www.xxorg.com

server_addr = frp2.chuantou.org
server_port = 7000
privilege_token =www.xxorg.com

server_addr = frp3.chuantou.org
server_port = 7000
privilege_token =www.xxorg.com

免费的服务器虽然速度不行,但是只要能联通,传个下载链接跟种子还是很轻松的。














本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 6恩山币 +6 收起 理由
golde*** + 1 面对这种帖子,我内心复杂,真不知道说什么好……
ax*** + 1 我来恩山就是为了撩你!
yuzu*** + 1 我来恩山就是为了看你!
墨守*** + 1 我来恩山就是为了看你!
cy1*** + 1 我来恩山就是为了看你!
Tri*** + 1 我来恩山就是为了看你!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
以下内容回复可见

点评

看看卡卡卡卡卡卡卡卡卡卡卡卡卡  详情 回复 发表于 2021-3-23 15:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错,支持一下。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
谢谢分享啊啊啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错,支持一下。
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢楼主分享,顶贴支持~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


不错,支持一下。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

主要看看frg
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


看看学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

frp得有自己的服务器才行
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


frp得有自己的服务器才行
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
快看快看看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个可以有,参考参考
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 13:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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