-
Notifications
You must be signed in to change notification settings - Fork 53
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
DNS Cloudflare not working for mobile data connection #50
Comments
is filtering working? Can you post the dns settings of the app? |
Yes the filter seems to be working.
This is the DNsfilter.conf
# detectDNS = true|false.
# if true, the DNS servers will be detected if possible.
# if false, the DNS Servers will be taken from the fallbackDNS setting
below.
detectDNS = true
# fallbackDNS - list of DNS servers seperated by ";".
# Used in case DNS servers are not detected automatically (either switched
off or not possible).
# Format: <IP>::<PORT>::<PROTOCOL>::<URL END POINT>
# Cloudflare examples below:
# 1.1.1.1::53::UDP (Default DNS on UDP port 53 / just 1.1.1.1 will work as
well)
# 1.1.1.1::853::DoT (DNS over TLS)
# 1.1.1.1::443::DoH::https://cloudflare-dns.com/dns-query
# The Google DNS Servers as default below:
fallbackDNS = 1.1.1.1::53::UDP ;1.1.1.1::853::DOT ;1.1.1.1::443::DOH::
https://cloudflare-dns.com/dns-query ;1.0.0.1
# routeIPs - Only for Android VPN based version (requires at least Android
5.1).
# List of IPs routed in addition to the (virtual) DNS (configured by the
VPN) to the DNSFilter.
# This might be usefull in case applications ignore the VPN's DNS and just
use an own DNS Server,
# such as the Googles DNS Servers
# default = "". Uncomment setting below for using this option.
# As an example below the list of Google DNS servers for IPV4 and IPV6.
# routeIPs = 8.8.8.8; 8.8.4.4; 2001:4860:4860::8888; 2001:4860:4860::8844
# AUTOSTART = true|false - used only by Android version.
# if true android app is started automatically on device boot completed.
AUTOSTART = true
# androidAppWhiteList - Only for Android VPN based version (requires at
least Android 5.1).
# List of applications seperated by "," which should bypass the VPN
androidAppWhiteList = <none>
# dnsProxyOnAndroid = true|false - used by Android version.
# if true, on Android in addition to VPN Service, a DNS Proxy is started
(requires root!)
# Could act as DNS filter Proxy within the local network.
dnsProxyOnAndroid = false
# androidKeepAwake - Only for Android version.
# When switched on, Android device won't go to sleep mode (e.g. when
running proxy mode)
androidKeepAwake = false
# manageDNSCryptProxy - Only for Android version
# if true, an installed DNScryptProxy will be started and stopped together
with DNSFilter (requires root!)
manageDNSCryptProxy = false
# options for starting DNSCryptProxy
dnsCryptProxyStartOptions = -config
/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml
# traffic log configuration for a rotating traffic log (trafficlog_0.log,
trafficlog_1.log, ...)
# enableTrafficLog = true|false - true: trafficlog enabled, false:
trafficlog is OFF
# trafficLogSize - max size of a log slot file in bytes / default 1 MB
# trafficLogName - the name of the log /default trafficlog
# trafficLogSlotCount - number of log slots for log rotation / default 2
enableTrafficLog = true
trafficLogName = trafficlog
trafficLogSize = 1048576
trafficLogSlotCount = 2
# Remote host configuration for remote control client
client_remote_ctrl_host = 127.0.0.1
client_remote_ctrl_keyphrase = Change This Default Keyphrase!
client_remote_ctrl_port = 3333
# Remote host configuration for remote control server
server_remote_ctrl_keyphrase = Change This Default Keyphrase!
server_remote_ctrl_port = -1
# Switch for debug logging
debug = false
# DNS request timeout in milliseconds
dnsRequestTimeout = 15000
# filterHostsFile - file path of filter hosts text file containing hosts
which are filtered.
# comment in case you want to disable filtering!
filterHostsFile = FILTERHOSTS.TXT
# filterAutoUpdateURL - the URL from were the filterHostsFile gets
automatically updated.
# You can specify different URLs seperated by ';' for an concatenated
filterHostsFile.
# Comment in case you want to disable the automatic update of the filter
host file!
filterAutoUpdateURL = https://adaway.org/hosts.txt;
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext;
https://hosts-file.net/ad_servers.txt; https://hosts-file.net/emd.txt;
https://hosts-file.net/exp.txt; https://hosts-file.net/fsa.txt;
https://hosts-file.net/grm.txt; https://hosts-file.net/hjk.txt;
https://hosts-file.net/psh.txt; https://hosts-file.net/pup.txt;
https://hosts-file.net/wrz.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/spark/formats/hosts;
https://raw.githubusercontent.com/EnergizedProtection/block/master/bluGo/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/blu/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/basic/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/ultimate/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/unified/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/porn/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/porn-lite/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/social/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/xtreme/formats/domains.txt;
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/regional/formats/hosts.txt
# filterAutoUpdateURL_IDs - Sequence of short names for above URLs
seperated by ";" in same
# sequence as URLs above. When not specified, the URL host will be taken
filterAutoUpdateURL_IDs = adaway; pgl.yoyo.org; Ads/tracking; Malware;
Exploits; Fraud; Spam; Hijack; Phishing; PUP; Warez/Piracy; Spark; BluGo;
Blu; Basic; Ultimate; Unified; Porn; Porn Lite; Social; Xtreme; Regional
# filterAutoUpdateURL_categories - Sequence of categories for above URLs
seperated by ";" in same
# sequence as URLs above. When not specified, the URL host will be taken
filterAutoUpdateURL_categories = adaway; pgl.yoyo.org; hosts-file.net;
hosts-file.net; hosts-file.net; hosts-file.net; hosts-file.net;
hosts-file.net; hosts-file.net; hosts-file.net; hosts-file.net;
EnergizedProtection; EnergizedProtection; EnergizedProtection;
EnergizedProtection; EnergizedProtection; EnergizedProtection;
EnergizedProtection; EnergizedProtection; EnergizedProtection;
EnergizedProtection; EnergizedProtection
# filterAutoUpdateURL_switchs - Sequence of boolean values (true|false) for
above URLs seperated by ";"
# in same sequence as URLs above. When not specified, the value "true" is
taken.
# Value "true" means that the URL is active and thus taken for filter
download, when false the URL
# is inactive
filterAutoUpdateURL_switchs = true; false; true; true; false; false; false;
false; false; false; false; false; false; false; false; false; false;
false; false; false; false; false
# previousAutoUpdateURL - the URL from were the last filterHostsFile was
automatically updated .
# DO NOT CHANGE! - will be set internally!
previousAutoUpdateURL = https://adaway.org/hosts.txt;
https://hosts-file.net/ad_servers.txt; https://hosts-file.net/emd.txt
# additionalHosts_lastImportTS - the time stamp of additionalHosts.txt when
it was last imported
# DO NOT CHANGE! - will be set internally!
additionalHosts_lastImportTS = 1574317765000
# reloadIntervalDays - specifies the number of days, after the filter gets
updated when configured.
reloadIntervalDays = 7
# overrule filterHostFile with filter.<host>=true|false (true will be
blocked, false will not be blocked).
#allow bild.de - remove # below to enable
#filter.cdn1.smartadserver.com = false
#filter.ec-ns.sascdn.com = false
#filter.acdn.adnxs.com=false
#allow spiegel.de - remove # below to enable
#filter.imagesrv.adition.com=false
#filter.spiegel-de.spiegel.de=false
…-----------
Il gio 21 nov 2019, 20:20 IngoZenz <notifications@github.com> ha scritto:
is filtering working? Can you post the dns settings of the app?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#50?email_source=notifications&email_token=AE6HUIWUZ76LIUO6A7QOWJLQU3NRDA5CNFSM4JP6MLT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3LJQI#issuecomment-557233345>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6HUIQS225A7OOTDMGM5MTQU3NRDANCNFSM4JP6MLTQ>
.
|
DNS server detection is enabled in your settings (detectDNS = true). You need to uncheck this in the DNS server settings dialog.
|
Thank you.
That dialog message was not clear to me: I thought that I should leave it
un heckled for using the DNS written there.
Bests,
Stefano
Il gio 21 nov 2019, 22:05 IngoZenz <notifications@github.com> ha scritto:
… DNS server detection is enabled in your settings (detectDNS = true). You
need to uncheck this in the DNS server settings dialog.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#50?email_source=notifications&email_token=AE6HUIQTJXNBSNDBLUPDF4TQU3ZZ5A5CNFSM4JP6MLT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3UT6Y#issuecomment-557271547>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6HUIQKQ3PKWCLRF36W5RLQU3ZZ5ANCNFSM4JP6MLTQ>
.
|
Great having it working for you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I run an Android 6.0.1 (CyanogenOS 13.1.2) non rooted.
After installing and starting your app I found that when on mobile data connection the DNS is the one from my ISP. Instead when connecting via WiFi it is Cloudflare, as set in the GUI of your app.
DNS checked with http://www.whatsmydnsserver.com/
Beware that other apps like DNSChanger are able to set Cloudflare also for mobile data connection in my phone.
The text was updated successfully, but these errors were encountered: