【openwrt】 BitTorrent下载功能设计与实现
来源:互联网 发布:全国网络培训中心 编辑:程序博客网 时间:2024/05/18 03:44
文章说明:
本文主要描述openwrt平台下,BitTorrent功能的设计方法和实现方式,仅供喜欢openwrt的朋友或开发者参考。
功能描述:使用BitTorrent种子下载你想下的东西
固件平台:openwrt (可用官方版或自己编译的版本)
主要功能包:
transmission-daemon_2.84-1_ramips_24kec.ipk
transmission-web_2.84-1_ramips_24kec.ipk
其中,上面这两个包要依赖一些lib库包才能正常安装,依赖包如下:
libcurl_7.38.0-1_ramips_24kec.ipk
libevent2_2.0.21-1_ramips_24kec.ipk
libopenssl_1.0.2a-0_ramips_24kec.ipk
libpolarssl_1.3.9-2_ramips_24kec.ipk
libpthread_0.9.33.2-1_ramips_24kec.ipk
librt_0.9.33.2-1_ramips_24kec.ipk
zlib_1.2.8-1_ramips_24kec.ipk
只要关注这些包名称的前半部分即可,后半部分的名称随平台不同而变化,ramips是我的平台名称。
安装:
opkg --force-overwrite install *.ipk
配置文件:
下载相关的配置信息在文件 /etc/config/transmission 中,我们只修改我们关注的就好,我的修改如下:
config transmission
option config_dir '/etc/transmission
option download_dir '/mnt/sda1/transmission/done'
option watch_dir '/mnt/sda1/transmission/watch'
防火墙配置:
/etc/config/firewall 文件中,加入下面内容
config rule 'transmission_web'
option src 'wan'
option dest_port '9091'
option proto 'tcp'
option target 'ACCEPT'
option name 'transmission mgmt from wan'
config rule 'transmission_peer_tcp'
option src 'wan'
option dest_port '51413'
option proto 'tcp'
option target 'ACCEPT'
option name 'transmission incoming tcp'
config rule 'transmission_peer_udp'
option src 'wan'
option dest_port '51413'
option proto 'udp'
option target 'ACCEPT'
option name 'transmission incoming udp'
启动服务:
以上配置都OK后,就可以启动服务了,
/etc/init.d/transmission restart
/etc/init.d/firewall restart
web访问,使用种子下载:
使用你路由器的本地IP+9091端口即可打开transmission客户端,使用种子下载吧:-),
我的ip + port:192.168.1.1:9091
^^~~
- 【openwrt】 BitTorrent下载功能设计与实现
- 俄罗斯方块(二) 功能设计与实现
- OpenWRT下载与编译
- openwrt下载与编译
- OpenWRT下载与编译
- Android换肤功能设计与实现
- 用户在线、离线、忙碌功能设计与实现
- 【Openwrt】迅雷远程下载功能的设计与实现
- Openwrt源码下载与编译
- BT下载原理(BitTorrent)
- 监控平台(J2EE)声音告警程序功能设计与实现
- Android日志收集上报功能设计与实现(总)
- Android日志收集上报功能设计与实现(总)
- openwrt第一课 --- 下载与安装
- openwrt第一课 --- 下载与安装
- openWRT源码下载与配置编译
- BitTorrent下载协议的译文
- BitTorrent下载协议的译文
- AsyncTask的缺陷
- c++ 备忘录模式(memento)
- 一点思考
- FrontEnd API 与语音识别前端处理
- 《剑指offer》跳台阶
- 【openwrt】 BitTorrent下载功能设计与实现
- [倚天屠龙记] vim 查找与替换(正则表达式)
- Rcurl小应用,爬取京东评论
- centos7 安装 mariadb-10
- WienerFilter API
- 职场必备:简历信息图怎么做?
- 随便写写
- 关于Web里面常有的(More )About US
- cocos2D-x 3.5 引擎解析之--引用计数(Ref),自动释放池(PoolManager),自动释放池管理器( AutoreleasePool)