-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
136 lines (121 loc) · 5.88 KB
/
main.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
# defaults file for rls.unbound
unbound_packages:
- unbound
- dns-root-data
# just change this if you know what you are doing ...
unbound_cfg_dir_main: /etc/unbound
unbound_cfg_dir_incl: "{{ unbound_cfg_dir_main }}/unbound.conf.d"
unbound_cfg_file_main: "{{ unbound_cfg_dir_main }}/unbound.conf"
# this will be removed
unbound_remove_files_incl:
- root-auto-trust-anchor-file.conf
# list of cfg templates to use
unbound_cfg_templates_incl:
- 01server.conf
- rebind.conf
# we keep the defaults minimal,
# so you should ensure to adjust them to your needs
# before you deploy this role
# example:
# https://raw.githubusercontent.com/NLnetLabs/unbound/master/doc/example.conf.in
undbound_config:
# server options
server:
verbosity: 1
port: 53
# interface: "{{ ansible_interfaces }}" # enable this to use all interfaces defined at deploy
access-control:
- 127.0.0.1/8 allow
- "::1/64 allow"
# The following line will configure unbound to perform cryptographic
# DNSSEC validation using the root trust anchor.
# auto-trust-anchor-file: "/var/lib/unbound/root.key"
# remote-control options
remote-control: {}
# control-enable: "yes"
# control-interface: 127.0.0.1
# stub-zone options list, each with a name: and zero or more hostnames or IP addresses
# if you use just one list entry, you can define it directly as a dict
stub-zone: []
# forward-zone options list, each with a name: and zero or more hostnames or IP addresses
# if you use just one list entry, you can define it directly as a dict
forward-zone: []
# auth-zone options list, each one must have a name:
# if you use just one list entry, you can define it directly as a dict
auth-zone: []
# view options list. each with a name: and zero or more local-zone and local-data elements
# if you use just one list entry, you can define it directly as a dict
view: []
# optional further sections for unbound like
# python: []
# dynlib-file: []
# some resources for dnsbl
# https://blocklistproject.github.io/Lists/#versions
# https://justdomains.github.io/blocklists/#using-with-pi-hole
# https://crazymax.dev/WindowsSpyBlocker/blocking-rules/
# https://github.com/StevenBlack/hosts
# https://github.com/AdAway/AdAway/wiki/HostsSources
# https://oisd.nl/
# ad here some lists in order to enable dnsbl
dnsbl_lists: []
# exclude these domains from dnsbl
dnsbl_exclude_domains: []
# match all subdomains matching a dnsbl entry?
# if set to true and you have a list blocking i.e.
# donaldtrump.com, duck.donaldtrump.com, s..., f...
# and all other subdomains will be blocked too
dnsbl_match_subdomains: false
# if dnsbl_match_subdomains == true
# use short syntax using always_null
# see https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-role-unbound/issues/14
dnsbl_use_always_null: true
# update the dnsbl_lists via cron job
dnsbl_update_cron: "{{ dnsbl_update_daily | default(true) }}"
dnsbl_cron_minute: 15
dnsbl_cron_hour: 1
# dnsbl_cron_weekday: optional
# dnsbl_cron_day: optional
# dnsbl_update_daily: true # this is a legacy entry and should be replaced by dnsbl_update_cron
# optional: you can redirect the output in the cron job to a file if you like
# pls pay attention to the starting space in the definition!
# dnsbl_cron_shell_redirect: " >/var/log/dnsblupdate.log 2>&1"
unbound_packages_dnsbl:
- python3-requests
- python3-lockfile
# use lists in plain domain and hosts/bind syntax
dnsbl_lists_available:
- https://threatfox.abuse.ch/downloads/hostfile
- https://adaway.org/hosts.txt
- https://blocklistproject.github.io/Lists/alt-version/abuse-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/crypto-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/drugs-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/facebook-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/fraud-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/gambling-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/malware-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/phishing-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/piracy-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/porn-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/ransomware-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/redirect-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/scam-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/tiktok-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/torrent-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt
- https://blocklistproject.github.io/Lists/alt-version/youtube-nl.txt
- https://big.oisd.nl/domainswild
- https://justdomains.github.io/blocklists/lists/easylist-justdomains.txt
- https://justdomains.github.io/blocklists/lists/easyprivacy-justdomains.txt
- https://justdomains.github.io/blocklists/lists/adguarddns-justdomains.txt
- https://justdomains.github.io/blocklists/lists/nocoin-justdomains.txt
- https://raw.githubusercontent.com/chadmayfield/my-pihole-blocklists/master/lists/pi_blocklist_porn_all.list
- https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi_blocklist_porn_top1m.list
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
- https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
- https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update.txt
- https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra.txt
- https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext