找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 17283|回复: 170

openwrt 石像鬼 adbyby去广告 安装教程

 火... [复制链接]
发表于 2015-1-6 16:28 | 显示全部楼层 |阅读模式
本帖最后由 a291899192 于 2015-1-11 15:11 编辑

adbyby目前会支持mt7620A(N)    ar71xxl路由

1.下载openwrt.tar.gz文件 根据不用的cpu类型 在putty端执行不同的命令
mt7620执行   
  1. wget http://info.adbyby.com/download/7620n.tar.gz
复制代码

ar71xxl           
  1. wget http://info.adbyby.com/download/openwrt.tar.gz
复制代码

2.解压openwrt.tar.gz  putty端执行  
  1. tar -xzvf openwrt.tar.gz
复制代码
3. 移动文件到指定目录,并且进去次目录
  1. mv bin /usr/share/adbyby
复制代码
  1. cd /usr/share/adbyby
复制代码
至此,adbyby就算安装完成了,如果要求不高,就已经可以使用了,使用方法是直接运行/usr/share/adbyby/adbyby,然后在pc上设置http代理,指向路由器的8118端口就行了。如果希望客户端不做任何设置就能享受到广告屏蔽的效果,并且每次都不用手动启动adbyby那就继续往下看。
4.使用winscp在/usr/share/adbyby目录创建三个文件

文件1:show-state,内容如下:

  1. ps | grep "/usr/share/adbyby/adbyby" | grep -v grep
复制代码

文件2:start-adbyby,内容如下:

  1. /usr/share/adbyby/adbyby &> /tmp/log/adbyby.log &
  2. iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118
复制代码

文件3:stop-adbyby,内容如下:

  1. ps | grep "/usr/share/adbyby/adbyby" | grep -v 'grep' | awk '{print $1}' | xargs kill -9
  2. iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118
复制代码

5.给三个文件赋予可执行的权限(可以直接在winscp命令行):

  1. chmod +x show-state
复制代码
  1. chmod +x start-adbyby
复制代码
  1. chmod +x stop-adbyby
复制代码

6.到/etc/init.d/下创建文件adbyby,内容如下:

  1. #!/bin/sh /etc/rc.common
  2. <span style="white-space: pre;">START=80
  3. start() {
  4.     echo "starting adbyby..."
  5.     /usr/share/adbyby/start-adbyby
  6. }
  7. stop() {
  8.     echo "stopping adbyby..."
  9.      /usr/share/adbyby/stop-adbyby
  10. }
  11. restart() {
  12.     stop
  13.     sleep 1
  14.     start
  15. }</span>
复制代码

7.赋予/etc/init.d/adbyby可执行的权限(可以直接在winscp命令行)

  1. chmod +x /etc/init.d/adbyby
复制代码

8. 在/etc/rc.d/下建立一个到/etc/init.d/adbyby的链接(可以直接在winscp命令行):

  1. ln -s /etc/init.d/adbyby S80adbyby
复制代码

9.重启路由。  这样广告屏蔽程序就可以开机启动了。


参考连接

http://blog.csdn.net/boliang319/article/details/39957897
http://www.adbyby.com/install.htm



评分

参与人数 3恩山币 +3 收起 理由
897 + 1 泥马,真给力,我要顶!
心太高命太薄 + 1 楼主,石像鬼1.7做全局不成功啊
人生之际 + 1 楼主威武—我就想问问挖掘机技术哪家强?

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2015-1-6 16:47 | 显示全部楼层
谢谢分享                                       
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 16:49 | 显示全部楼层
看看~~~~~~~~~~~

点评

语妹逗逼  详情 回复 发表于 2015-1-6 19:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:06 来自手机 | 显示全部楼层
看看         
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:18 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:22 来自手机 | 显示全部楼层
看着不错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:26 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:27 来自手机 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:31 | 显示全部楼层
感谢分享啊!!!!!!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:44 | 显示全部楼层

感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:54 | 显示全部楼层
谢了楼主 感谢分享!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 17:56 | 显示全部楼层
顶楼主啦..希望楼主多发精品好帖啦.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 18:06 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 18:59 | 显示全部楼层
看看,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-1-6 19:07 | 显示全部楼层
感谢楼主分享,顶贴支持~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 11:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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