找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 17865|回复: 36

tomato路由器手动安装adbyby

  [复制链接]
本帖最后由 yumin9822 于 2016-3-23 20:29 编辑

看见openwrt,关于adbyby的讨论很多,在tomato这里貌似好没有。本人尝试了一下可以运行。安装参考文章:http://www.cnblogs.com/xuningfans/p/5077890.html
防火墙参考:http://blog.csdn.net/abcbc/article/details/10296425

本人机器华硕N16 刷的是1.28.0121 MIPSR2-20140808.Hyzoom.RT_N5x K26 USB 32M-AIO-AR-TR-PY-GAE-XUNLEI-NGINX-MYSQL-5G
其实关键的参数是CPU: mipsel
adbyby官网有MTK7620N的现成bin,地址:wget http://update.adbyby.com/download/7620n.tar.gz(7620N的CPU也是mipsel)

安装就按照参考文章安装,我是放在/tmp里面测试的,需要永久保留的请放到USB设备或者JFFS里面。文件解压出来占用空间 1616KB

唯一需要改动的地方就是:开机启动,可选的透明广告过滤(iptables 设置)。两处都在路由器web页面的“系统管理”--》“脚本设置”里面
1. 开机启动
将你adbyby下载的好的地址放到“脚本设置”的“初始化”,本文的adbyby在/tmp/bin/bin下面为例设置如下
  1. /tmp/bin/bin/adbyby&
复制代码

2. 透明透明广告过滤
这一步推荐设置,不设置的话,需要局域网客户机的代理服务器设置为路由器ip,端口 8118。
要设置的话,请将你以内容放到“脚本设置”的“防火墙”里面,
  1. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 路由器ip:8118
复制代码



参考http://serverfault.com/questions ... edirect-in-iptables


以下是我成功运行的信息:

  1. Tomato v1.28.0121 MIPSR2-20140808.Hyzoom.RT_N5x K26 USB 32M-AIO-AR-TR-PY-GAE-XUNLEI-NGINX-MYSQL-5G
  2. ========================================================
  3. Welcome to the Asus RT-N16 [TomatoUSB]
  4. Uptime:  12:52:10 up 2 days,  4:26
  5. Load average: 0.06, 0.01, 0.00
  6. Mem usage: 10.9% (used 13.47 of 123.97 MB)
  7. WAN : 180.156.222.44/32 @ BC:AE:C5:C5:19:56
  8. LAN : 192.168.2.1/24 @ DHCP: 192.168.2.10 - 192.168.2.254
  9. WL0 : Tomato_hg320 @ channel: CNauto @ BC:AE:C5:C5:19:57
  10. ========================================================
复制代码
  1. root@unknown:/tmp/home/root# ps
  2.   PID USER       VSZ STAT COMMAND
  3.     1 root      1472 S    /sbin/init noinitrd
  4.     2 root         0 SW<  [kthreadd]
  5.     3 root         0 SW<  [ksoftirqd/0]
  6.     4 root         0 SW<  [events/0]
  7.     5 root         0 SW<  [khelper]
  8.    21 root         0 SW<  [kblockd/0]
  9.    24 root         0 SW<  [khubd]
  10.    51 root         0 SW   [pdflush]
  11.    52 root         0 SW   [pdflush]
  12.    53 root         0 SW<  [kswapd0]
  13.    54 root         0 SW<  [aio/0]
  14.    96 root         0 SW<  [mtdblockd]
  15.   290 root       660 S    hotplug2 --persistent --no-coldplug
  16.   330 root      1452 S    buttons
  17.   331 root      1420 S    console
  18.   332 root      1616 S    /bin/sh
  19.   334 root      1608 S    syslogd -L -s 50 -b 1
  20.   336 root      1604 S    klogd
  21.   490 root      1560 S    pppd file /tmp/ppp/wanoptions
  22.   491 root      1452 S    redial
  23.   495 root      1608 S    telnetd -p 23
  24.   498 root      1112 S    dropbear -p 2222 -a
  25.   526 root      1624 S    crond -l 9
  26.   534 root       952 S    rstats
  27.   540 root      1032 S    cstats
  28.   742 root      1008 S    eapd
  29.   745 root      1112 S    nas
  30. 1118 root       880 S    miniupnpd -f /etc/upnp/config
  31. 1123 root      2876 S    httpd
  32. 1303 nobody    1116 S    dnsmasq -c 1500 --log-async
  33. 2227 root      1180 R    dropbear -p 2222 -a
  34. 2228 root      1632 S    -sh
  35. 2343 root      1252 S    /tmp/bin/bin/adbyby
  36. 2344 root      2012 S    /tmp/bin/bin/adbyby
  37. 2350 root      1612 R    ps
复制代码
  1. root@unknown:/tmp/home/root# netstat -ntl
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address           Foreign Address         State      
  4. tcp        0      0 0.0.0.0:2222            0.0.0.0:*               LISTEN      
  5. tcp        0      0 180.156.*.*:80       0.0.0.0:*               LISTEN      
  6. tcp        0      0 192.168.2.1:80          0.0.0.0:*               LISTEN      
  7. tcp        0      0 0.0.0.0:6161            0.0.0.0:*               LISTEN      
  8. tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
  9. tcp        0      0 0.0.0.0:8118            0.0.0.0:*               LISTEN      
  10. tcp        0      0 :::2222                 :::*                    LISTEN      
  11. tcp        0      0 2001:470:*.*0 :::*                    LISTEN      
  12. tcp        0      0 2001:470:*:1:80     :::*                    LISTEN      
  13. tcp        0      0 :::53                   :::*                    LISTEN      
  14. tcp        0      0 :::23                   :::*                    LISTEN      
复制代码

删除新加的iptables的方法如下:iptables -t nat -L PREROUTING --line-numbers  查看对应的规则前面的数字,如果是4,那就运行下面的删除
iptables -t nat -D PREROUTING 4




评分

参与人数 2恩山币 +4 收起 理由
luc*** + 3 城会玩
mal0*** + 1 亲,你太牛逼了,走,我请你吃鳇鱼头去~~~

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
如果是arm CPU的路由器,只要下载的adbyby文件包搞成下面的就行了
http://update.adbyby.com/download/arm.tar.gz
http://update.adbyby.com/download/arm(v7).tar.gz

点评

我想问下 如何设置仅仅指定IP走ADBYBY 和指定IP不走ADBYBY  详情 回复 发表于 2016-5-12 10:31
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

点赞...之前也思考过,BCM都是MIPS的,果然MT7620的可以用...没空弄,楼主加油
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

官网是iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118
这里是iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 路由器ip:8118
有什么区别吗

点评

tomato的iptables不支持REDIRECT,只能换用DNAT来实现类似的功能  详情 回复 发表于 2016-3-26 13:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
wang0251 发表于 2016-3-24 21:02
官网是iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118
这里是iptables -t ...

tomato的iptables不支持REDIRECT,只能换用DNAT来实现类似的功能

点评

Tomato bwq518 支持REDIRECT,用官网的命令可用!  详情 回复 发表于 2016-4-11 18:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

装上了,很不错。辛苦lz了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错的帖子,顶你!!
今后佐大的7620A固件来了,希望能用上。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不知R6300V2 有人测试成功么?

点评

同问,6300v2有没有测试成功的?  详情 回复 发表于 2016-3-31 16:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

joshua1225 发表于 2016-3-29 22:20
不知R6300V2 有人测试成功么?

同问,6300v2有没有测试成功的?
我的恩山、我的无线 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.
回复

使用道具 举报

openwrt需要

tomato没必要

用好自带的Access Restriction Rule就够狠够准
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

用了2个星期,缺点是对路由器CPU要求较高,因为在下载时占用CPU使用率很高,我用的ac66u,下载速度超过3m/s以后,路由器假死,网页打不开,用TOP查看CPU使用率高达97%
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

真的可以,谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 02:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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