forked from hxlevo/hosts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sy618
committed
Jun 14, 2017
1 parent
7de1a9d
commit b200eed
Showing
17 changed files
with
4,985 additions
and
4,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,3 +373,5 @@ address=/.supfast.net/0.0.0.0 | |
address=/.am15.net/0.0.0.0 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
## dnsmasq规则文件说明: | ||
* dnsfq:GFW翻墙专用。这个需要大家共同努力完善。(已支持汤不热网页视频播放) | ||
* dnsip:屏蔽运营商劫持IP与一些广告IP(如何查看是否被劫持,使用nslookup命令测试一个不存在的域名,若返回IP就是劫持) | ||
* dnsad:屏蔽广告家族 | ||
https://raw.githubusercontent.com/sy618/hosts/master/dnsmasq/dnsfq | ||
|
||
* ip.conf:屏蔽运营商劫持IP与一些广告IP(如何查看是否被劫持,使用nslookup命令测试一个不存在的域名,若返回IP就是劫持) | ||
https://raw.githubusercontent.com/vokins/yhosts/master/dnsmasq/ip.conf | ||
|
||
* union.conf:屏蔽广告家族 | ||
https://raw.githubusercontent.com/vokins/yhosts/master/dnsmasq/union.conf | ||
|
||
* hosts:默认使用的是vokins的完整AD hosts,并删除了与dnsad重复的域名,需要配合dnsad一起使用。 | ||
(如PC需看视频的,请自行更换为不带屏蔽视频广告的hosts.txt规则,https://raw.githubusercontent.com/vokins/yhosts/master/hosts.txt) | ||
|
||
## sh文件夹 是[【华硕老毛子固件】全自动脚本](https://github.com/sy618/hosts/tree/master/dnsmasq/sh) | ||
## sh文件夹 是[华硕老毛子固件专用自动脚本](https://github.com/sy618/hosts/tree/master/dnsmasq/sh) | ||
* start.sh:立刻更新规则的脚本 | ||
* setting.sh:初次运行的脚本,全自动修改配置与启用dnsmasq,只需要运行一次。 | ||
* del.sh:删除所有更改,出问题了只需要运行一下即可还原 | ||
|
||
## 手动修改教程: | ||
此方法适用于openwrt类的路由器,来自机友https://www.mylede.cf/?p=125 | ||
使用脚本前请检查dnsmasq.conf的配置。/etc/dnsmasq.conf 看是否有conf-dir 配置参数,默认貌似是没有的。添加conf-dir=/etc/dnsmasq.d.会自动加载目录下的配置文件。 | ||
### 然后执行以下命令即可: | ||
* wget -q https://raw.githubusercontent.com/sy618/hosts/master/dnsmasq/dnsfq -O /etc/dnsmasq.d/gfw.conf –no-check-certificate ; /etc/init.d/dnsmasq restart | ||
### 如果想定时执行,请在网页配置端的计划任务添加以下脚本: | ||
* 01 06 * * * wget -q https://raw.githubusercontent.com/sy618/hosts/master/dnsmasq/dnsfq -O /etc/dnsmasq.d/gfw.conf –no-check-certificate ; /etc/init.d/dnsmasq restart | ||
### tomato 是[tomato固件专用脚本](https://github.com/sy618/hosts/tree/master/dnsmasq/tomato) | ||
|
||
## [dnsmasq.txt](https://github.com/sy618/hosts/blob/master/dnsmasq/dnsmasq.txt )恩山论坛更详细的手动教程与自动脚本教程帖子。 | ||
|
||
```javascript | ||
* 注:不同路由器固件可能文件路径位置不一样 | ||
``` |
Oops, something went wrong.