找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 13177|回复: 17

也谈dnsmasq的fan wall、过滤广告

[复制链接]
发表于 2012-9-2 16:32 | 显示全部楼层 |阅读模式
       按照 5417 大大的【分享之二】dnsmasq来有限fan wall(可以访问 google+,你管),并过滤广告 设置之后, 因为 /tmp 关机后会丢失的不会保存, 但是我是PPPOE拨号,这样开机后不能立刻连接上网络,wget就会出现错误,我是直接修改 hosts 文件来达到fan wall和过滤广告的效果。

用ssh
1、进入ETC目录
  1. cd /etc
复制代码
2、下载新的hosts文件
  1. wget http://hostsx.googlecode.com/svn/trunk/HostsX.orzhosts
复制代码
3、将下载的文件改成系统自带的hosts文件
  1. mv -f HostsX.orzhosts Hosts
复制代码
4、重启dnsmasq
  1. init.d/dnsmasq restart
复制代码
psinux的hosts文件格式不能在一行中一个IP对应多个域名

同时附上我自己修改好的Hosts文件:去掉pdf后缀名就可以用了。






本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2012-9-2 17:03 | 显示全部楼层
再附上让GOOGLE稳定工作的方法,就是使用Google的国内IP

server=/*.youtube.com/8.8.8.8
server=/*.facebook.com/8.8.8.8
server=/twitter.com/8.8.8.8
address=/google.com/203.208.46.211
address=/google.com.hk/203.208.46.211
address=/.googlevideo.com/203.208.46.30



刚刚发现openvirtual**正在研究,这个是个好东西,可以自动翻墙了。

点评

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  发表于 2015-12-26 04:12
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-4 09:51 | 显示全部楼层
咱已经快被Openvirtual**搞疯了喵……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-10 16:59 | 显示全部楼层
我已获得真正的 op 广告过滤代码 比这完美 回家给你们放出来 设置启动脚本就OK或者LOC里改 自动更新 加载HOSTS
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-10 16:59 | 显示全部楼层
tzgl 发表于 2012-9-2 17:03
再附上让GOOGLE稳定工作的方法,就是使用Google的国内IP

server=/*.youtube.com/8.8.8.8

我已获得真正的 op 广告过滤代码 比这完美 回家给你们放出来 设置启动脚本就OK或者LOC里改 自动更新 加载HOSTS
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-16 16:43 | 显示全部楼层
还是没有看懂怎么用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-16 16:44 | 显示全部楼层
ssh是什么??
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-9-16 17:01 | 显示全部楼层
顶!!!!!!!!!!!!!!!!!!!!!!!!111
111111111111111111111111111
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-12-31 16:07 | 显示全部楼层
看不懂怎么用,直接把hosts文件拷贝到系统目录下面不就可以了吗?怎么这么复杂呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-1-26 10:56 | 显示全部楼层
学习一下先。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-6 22:54 | 显示全部楼层
标记一下还不明白中
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-7 02:38 | 显示全部楼层
Hosts?应该是hosts才对
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-7-31 19:55 | 显示全部楼层
感觉不起作用啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-3-5 23:03 来自手机 | 显示全部楼层
好东西谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-26 17:18 | 显示全部楼层
我也是通过dnsmasq改hosts来去广告,但是用这种方法fq肯定是不好的,有局限性不讲,万一IP被封了怎么办?现在还是用chinadns效率高些
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 19:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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