From 56acb7b5aba08c2dbb196a685005d2a8c140d8ab Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 2 Jan 2021 15:10:30 +0100 Subject: [PATCH] Log when the ECS plugin is enabled --- dnscrypt-proxy/example-captive-portals.txt | 22 ++++++++++++++++++++++ dnscrypt-proxy/plugin_ecs.go | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 dnscrypt-proxy/example-captive-portals.txt diff --git a/dnscrypt-proxy/example-captive-portals.txt b/dnscrypt-proxy/example-captive-portals.txt new file mode 100644 index 00000000..d35f6bb8 --- /dev/null +++ b/dnscrypt-proxy/example-captive-portals.txt @@ -0,0 +1,22 @@ +########################################### +# Captive portal test names # +########################################### + +# Some operating systems send queries to these names after a network change, +# in order to check if connectivity beyond the router is possible without +# going through a captive portal. +# +# This is a list of hard-coded IP addresses that will be returned when queries +# for these names are received, even before the operating system an interface +# as usable for reaching the Internet. +# +# Note that IPv6 addresses don't need to be specified within brackets, +# as there are no port numbers. + +captive.apple.com 17.253.109.201, 17.253.113.202 +connectivitycheck.gstatic.com 64.233.162.94, 64.233.164.94, 64.233.165.94, 64.233.177.94, 64.233.185.94, 74.125.132.94, 74.125.136.94, 74.125.20.94, 74.125.21.94, 74.125.28.94 +connectivitycheck.android.com 64.233.162.100, 64.233.162.101, 64.233.162.102, 64.233.162.113, 64.233.162.138, 64.233.162.139 +www.msftncsi.com 95.100.252.49, 95.100.252.8, 2.19.98.8, 2.19.98.59, 88.221.113.88, 88.221.113.43, 88.221.113.49, 88.221.113.75 +dns.msftncsi.com 131.107.255.255, fd3e:4f5a:5b81::1 +www.msftconnecttest.com 13.107.4.52 +ipv4only.arpa 192.0.0.170, 192.0.0.171 diff --git a/dnscrypt-proxy/plugin_ecs.go b/dnscrypt-proxy/plugin_ecs.go index 60c817e0..c856398c 100644 --- a/dnscrypt-proxy/plugin_ecs.go +++ b/dnscrypt-proxy/plugin_ecs.go @@ -4,6 +4,7 @@ import ( "math/rand" "net" + "github.com/jedisct1/dlog" "github.com/miekg/dns" ) @@ -21,6 +22,7 @@ func (plugin *PluginECS) Description() string { func (plugin *PluginECS) Init(proxy *Proxy) error { plugin.nets = proxy.ednsClientSubnets + dlog.Notice("ECS plugin enabled") return nil }