如何讓手機IP:192.168.1.200不通過廣告屏蔽?這樣設置可行嗎? #229
Unanswered
Forwish0529
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
因手機要遊戲需要看廣告, 所以不希望手機WIFI上網時被廣告屏蔽
原本的想法如下, 但是手機廣告還是被屏蔽, 請問要怎麼修改?
log:
level: info
file: ''
plugin:
tag: main_server
type: server
args:
entry:
- _prefer_ipv4
- _single_flight
- _no_ecs
- mem_cache
- modify_ttl
- main_sequence
server:
- protocol: udp
addr: 192.168.1.100:53
- protocol: tcp
addr: 192.168.1.100:53
tag: main_sequence
type: sequence
args:
exec:
- if:
- phone
exec:
- forward_remote
- _end
tag: 'mem_cache'
type: 'cache'
args:
size: 512000
lazy_cache_ttl: 86400
lazy_cache_reply_ttl: 30
tag: 'modify_ttl'
type: 'ttl'
args:
minimal_ttl: 300
maximum_ttl: 3600
tag: forward_local
type: forward
args:
upstream:
- addr: 'https://dns.pub/dns-query'
ip_addr:
- '119.29.29.29'
- '119.28.28.28'
trusted: true
timeout: 5
fastest_ip: false
insecure_skip_verify: false
tag: forward_remote
type: forward
args:
upstream:
- addr: 'https://1.1.1.1/dns-query'
ip_addr:
- '1.1.1.1'
- '1.0.0.1'
- '2606:4700:4700::1111'
- '2606:4700:4700::1001'
trusted: true
timeout: 5
fastest_ip: false
insecure_skip_verify: false
tag: phone
type: query_matcher
args:
client_ip:
- '192.168.1.200'
tag: query_is_ad_domain
type: query_matcher
args:
domain:
- 'ext:./geosite.dat:category-ads-all'
tag: query_is_local_domain
type: query_matcher
args:
domain:
- 'ext:./geosite.dat:cn'
tag: query_is_non_local_domain
type: query_matcher
args:
domain:
- 'ext:./geosite.dat:geolocation-!cn'
tag: response_has_local_ip
type: response_matcher
args:
ip:
- 'ext:./geoip.dat:cn'
Beta Was this translation helpful? Give feedback.
All reactions