找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9343|回复: 3

石像鬼下aria2 外网使用和rpc-secret使用,求助。

[复制链接]
百度google好久没搞明白,官方的manual我英文水平太差。。只好在这里求助了。

石像鬼里安装了aria2运行本地下载没有问题。
我想映射可以外网使用。

防火墙-在端口转发-单个端口转发 测试过映射没有问题的。



————————————————————
/etc/config/firewall 里也的

config redirect 'redirect_enabled_number_0'
        option name 'aria2'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '6800'
        option dest_ip '192.168.1.1'
        option dest_port '6800

config redirect 'redirect_enabled_number_1'
        option name 'aria2'
        option src 'wan'
        option dest 'lan'
        option proto 'udp'
        option src_dport '6800'
        option dest_ip '192.168.1.1'
        option dest_port '6800'
————————————————————
有这个警告影响不?我不会使用rpc-secret=<TOKEN>功能,没搞明白。

root@Gargoyle:~# /usr/bin/aria2c -c --conf-path=/etc/config/aria2.conf
06/09 18:51:09 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.

06/09 18:51:09 [NOTICE] IPv4 RPC: listening on TCP port 6800

————————————————————

这个是我的/etc/config/aria2.conf的配置

enable-rpc=true                                                                                                                                             
rpc-allow-origin-all=true                                                                                                                                    
rpc-listen-all=true                                                                                                                                          
rpc-listen-port=6800                                                                                                                                         

#rpc-secret=<TOKEN>             (这个我一直不会使用请问要怎么样用的?可以举个例子吗?)                                                                                                                             
#rpc-user=root                                                                                                                                               
#rpc-passwd=zhai                                                                                                                                             
                                                                                                                                       
dir=/mnt/udisk/media                                                                                                                                         
disk-cache=3M                                                                                                                                                
file-allocation=trunc                                                                                                                                       
continue=true                                                                                                                                                
input-file=/etc/config/aria2.session                                                                                                                        
save-session=/etc/config/aria2.session                                                                                                                       
save-session-interval=60                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
max-concurrent-downloads=1                                                                                                                                   
max-connection-per-server=5                                                                                                                                 
min-split-size=10M                                                                                                                                          
split=5                                                                                                                                                      
max-overall-download-limit=0                                                                                                                                 
disable-ipv6=true   

_______________________________________


我的恩山、我的无线 The best wifi forum is right here.
顶一下,这个我也不会用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

#rpc-secret=<TOKEN>                                                                                                           
#rpc-user=root                                                                                                                                               
#rpc-passwd=zhai        
这个命令行被注释掉了,意思是连接不安全
建议用rpc-secret=xxxxxxxxx
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

rpc-secret 你可以当作一个密码,设置后要密码才可以连接。没设置的话任何人都可以控制。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-4-29 15:11

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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