forked from folbricht/routedns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfamily-browsing.toml
38 lines (32 loc) · 1.29 KB
/
family-browsing.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This example shows how to prevent children's devices from browsing to potentially
# harmful content. These devices are identified by their IP on the network. Any
# such device will have its request first filtered through a custom blocklist and
# then sent on to the CleanBrowsing resolver which is performing additional
# filtering as well. Everyone else on the network will be sent to Cloudflare's DNS
# for unfiltered access. All lookups are performed with DNS-over-TLS.
[resolvers.cleanbrowsing-dot]
address = "family-filter-dns.cleanbrowsing.org:853"
protocol = "dot"
[resolvers.cloudflare-dot]
address = "1.1.1.1:853"
protocol = "dot"
[groups.cleanbrowsing-filtered]
type = "blocklist-v2"
resolvers = ["cleanbrowsing-dot"] # Anything that passes the filter is sent on to this resolver
blocklist = [ # Define the names to be blocked, by default in regexp format
'(^|\.)facebook\.com\.$',
'(^|\.)twitter\.com\.$',
]
[routers.router1]
routes = [
{ source = "192.168.1.123/32", resolver="cleanbrowsing-filtered" }, # The IP or network that will use the blocklist in CIDR notation
{ resolver="cloudflare-dot" }, # default route
]
[listeners.local-udp]
address = ":53"
protocol = "udp"
resolver = "router1"
[listeners.local-tcp]
address = ":53"
protocol = "tcp"
resolver = "router1"