Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #518

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified trunk/user/adguardhome/AdGuardHome
Binary file not shown.
207 changes: 187 additions & 20 deletions trunk/user/adguardhome/adguardhome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ adg_file="/etc/storage/adg.sh"
if [ ! -f "$adg_file" ] || [ ! -s "$adg_file" ] ; then
cat > "$adg_file" <<-\EEE
bind_host: 0.0.0.0
bind_port: 3030
auth_name: admin
auth_pass: admin
bind_port: 3333
users: []
#auth_name: admin
#auth_pass: admin
language: zh-cn
rlimit_nofile: 0
dns:
Expand All @@ -79,7 +80,7 @@ dns:
ratelimit_whitelist: []
refuse_any: true
bootstrap_dns:
- 1.1.1.1
- 127.0.0.1:6053
all_servers: true
allowed_clients: []
disallowed_clients: []
Expand All @@ -90,7 +91,7 @@ dns:
safebrowsing_enabled: false
resolveraddress: ""
upstream_dns:
- 1.1.1.1
- 127.0.0.1:6053
tls:
enabled: false
server_name: ""
Expand All @@ -101,22 +102,188 @@ tls:
private_key: ""
filters:
- enabled: true
url: https://anti-ad.net/easylist.txt
name: anti-ad-easylist默认开第1个
id: 1581953052
- enabled: true
url: https://halflife.coding.net/p/list/d/list/git/raw/master/ad.txt
name: AdFilters默认开第2个
id: 1593095159
- enabled: false
url: https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts
name: googlehosts(正确出墙IP)
id: 1594487153
- enabled: false
url: https://gitlab.com/xuhaiyang1234/AAK-Cont/raw/master/FINAL_BUILD/aak-cont-list-notubo.txt
name: AAK-Cont Filter For AdBlock, Adblock Plus, etc
id: 1565484163
- enabled: false
url: https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
name: AakList (Anti-Adblock Killer)
id: 1565484164
- enabled: false
url: https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjxlist.txt
name: CJX's EasyList Lite
id: 1565484165
- enabled: false
url: https://easylist-downloads.adblockplus.org/easylistchina.txt
name: EasyList China
id: 1565484166
- enabled: false
url: https://hosts-file.net/.%5Cad_servers.txt
name: hpHosts’ Ad and tracking servers
id: 1565484167
- enabled: false
url: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext
name: Peter Lowe’s Ad and tracking server list​
id: 1565484168
- enabled: false
url: https://easylist.to/easylist/fanboy-social.txt
name: Fanboy's Social Blocking List
id: 1565484169
- enabled: false
url: https://easylist.to/easylist/fanboy-annoyance.txt
name: Fanboy's Annoyance List
id: 1565484170
- enabled: false
url: https://secure.fanboy.co.nz/fanboy-cookiemonster.txt
name: Fanboy's Cookie List
id: 1565484171
- enabled: false
url: https://fanboy.co.nz/fanboy-antifacebook.txt
name: Anti-Facebook List
id: 1565484172
- enabled: false
url: https://filters.adtidy.org/extension/ublock/filters/14.txt
name: AdGuard Annoyances filter
id: 1565484173
- enabled: false
url: https://raw.githubusercontent.com/Spam404/lists/master/adblock-list.txt
name: Spam404
id: 1565484174
- enabled: false
url: https://gitcdn.xyz/repo/NanoMeow/MDLMirror/master/hosts.txt
name: Malware Domain List
id: 1565484176
- enabled: false
url: https://www.fanboy.co.nz/enhancedstats.txt
name: Fanboy's Enhanced Tracking List
id: 1565484178
- enabled: false
url: https://easylist.to/easylist/easyprivacy.txt
name: EasyPrivacy
id: 1565484179
- enabled: false
url: https://filters.adtidy.org/extension/ublock/filters/3.txt
name: AdGuard Tracking Protection filter
id: 1565484180
- enabled: false
url: https://easylist.to/easylist/easylist.txt
name: EasyList
id: 1565484181
- enabled: false
url: https://filters.adtidy.org/extension/ublock/filters/11.txt
name: AdGuard Mobile Ads filter
id: 1565484182
- enabled: false
url: https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt
name: AdGuard Base filter
id: 1565484183
- enabled: false
url: https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
name: Adblock Warning Removal List
id: 1565484184
- enabled: false
url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
name: AdGuard Simplified Domain Names filter
id: 1
- enabled: true
url: https://adaway.org/hosts.txt
name: AdAway
id: 2
- enabled: true
url: https://hosts-file.net/ad_servers.txt
name: hpHosts - Ad and Tracking servers only
id: 3
- enabled: true
url: https://www.malwaredomainlist.com/hostslist/hosts.txt
name: MalwareDomainList.com Hosts List
id: 4
user_rules: []
id: 1565484185
- enabled: false
url: http://tools.yiclear.com/ChinaList2.0.txt
name: ChinaListV2.0[20190801000]
id: 1565484186
- enabled: false
url: https://fanboy.co.nz/fanboy-problematic-sites.txt
name: Fanboy's problematic-sites
id: 1565484187
- enabled: false
url: http://sub.adtchrome.com/adt-chinalist-easylist.txt
name: ChinaList+EasyList(修正)
id: 1565484188
- enabled: false
url: https://hosts.nfz.moe/127.0.0.1/full/hosts
name: NeoFelhz Hosts
id: 1565484189
- enabled: false
url: https://raw.githubusercontent.com/adbyby/xwhyc-rules/master/lazy.txt
name: Adbyby Lazy Rule
id: 1565484190
- enabled: false
url: https://raw.githubusercontent.com/adbyby/xwhyc-rules/master/video.txt
name: Adbyby Video Rule
id: 1565484191
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt
name: uBlock filters – Resource abuse
id: 1565486406
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt
name: uBlock filters
id: 1565486407
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt
name: uBlock filters – Badware risks
id: 1565486408
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/experimental.txt
name: uBlock filters – Experimental
id: 1565486409
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt
name: uBlock filters – Privacy
id: 1565486410
- enabled: false
url: https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt
name: uBlock filters -- Unbreak
id: 1565486411
user_rules:
- '||t7z.cupid.ptqy.gitv.tv^$important'
- '@@||g.live.com^$important'
- '@@||s.click.taobao.com^$important'
- '@@||b1-data.ads.heytapmobi.com^$important'
- '@@||stg-data.ads.heytapmobi.com^$important'
- '@@||mar.vip.com^$important'
- '@@||exp.sug.browser.miui.com^$important'
- '@@||dj.1688.com^$important'
- '@@||click.simba.taobao.com^$important'
- '@@||appsupport.qq.com^$important'
- '@@||data.bilibili.com^$important'
- '@@||jumpluna.58.com^$important'
- '@@||oss-asq-static.11222.cn^$important'
- '@@||unet.ucweb.com^$important'
- '@@||kiees.com'
- '@@||alimama.com'
- '@@||pingma.qq.com^$important'
- '@@||wl.jd.com^$important'
- '@@||ipassport.ele.me^$important'
- '@@||mark.l.qq.com^$important'
- '@@||union.video.qq.com^$important'
- '@@||vd.l.qq.com^$important'
- '@@||tj.video.qq.com^$important'
- '@@||trace.qq.com^$important'
- '@@||im-x.jd.com^$important'
- '@@||act.vip.iqiyi.com^$important'
- '@@||paopao.iqiyi.com^$important'
- '@@||hotchat-im.iqiyi.com^$important'
- '@@||t7z.cupid.iqiyi.com^$important'
- '@@||nl-rcd.iqiyi.com^$important'
- '@@||btrace.video.qq.com^$important'
- '@@||btrace.qq.com^$important'
- '@@||livep.l.qq.com^$important'
- '@@||oth.eve.mdt.qq.com^$important'
- '@@||ms.vipstatic.com^$important'
- '@@||click.union.vip.com^$important'
- '@@||a.union.mi.com^$important'
- ""
dhcp:
enabled: false
interface_name: ""
Expand All @@ -139,7 +306,7 @@ fi
dl_adg(){
logger -t "AdGuardHome" "下载AdGuardHome"
#wget --no-check-certificate -O /tmp/AdGuardHome.tar.gz https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.101.0/AdGuardHome_linux_mipsle.tar.gz
curl -k -s -o /tmp/AdGuardHome/AdGuardHome --connect-timeout 10 --retry 3 https://cdn.jsdelivr.net/gh/chongshengB/rt-n56u/trunk/user/adguardhome/AdGuardHome
curl -k -s -o /tmp/AdGuardHome/AdGuardHome --connect-timeout 10 --retry 3 https://cdn.jsdelivr.net/gh/liuyuan29/rt-n56u/trunk/user/adguardhome/AdGuardHome
if [ ! -f "/tmp/AdGuardHome/AdGuardHome" ]; then
logger -t "AdGuardHome" "AdGuardHome下载失败,请检查是否能正常访问github!程序将退出。"
nvram set adg_enable=0
Expand Down