Skip to content

Commit d09dad7

Browse files
committed
Create overrides for unbound blocking. Locations come from Guardian
1 parent 2935d52 commit d09dad7

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
local-zone: "jado.iad.appboy.com" redirect
2+
local-data: "jado.iad.appboy.com A 0.0.0.0" # Braze
3+
local-zone: "sdk.iad-03.braze.com" redirect
4+
local-data: "sdk.iad-03.braze.com A 0.0.0.0"
5+
local-zone: "mobile-collector.newrelic.com" redirect
6+
local-data: "mobile-collector.newrelic.com A 0.0.0.0"

ansible/roles/firewall/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
mode: 0644
3535
notify: Restart unbound
3636

37+
- name: Copy default ad blocking config
38+
copy:
39+
src: unbound-default-adhosts.conf
40+
dest: /var/unbound/etc/unbound-default-adhosts.conf
41+
owner: root
42+
group: wheel
43+
mode: 0644
44+
notify: Restart unbound
45+
3746
- name: Copy script to populate ad blocking config
3847
copy:
3948
src: generate_unbound_ads_conf.sh

ansible/roles/firewall/templates/unbound_conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ server:
1313
# Enable dnssec
1414
auto-trust-anchor-file: "/db/root.key"
1515

16+
include: /var/unbound/etc/unbound-default-adhosts.conf
1617
include: /var/unbound/etc/unbound-adhosts.conf
1718
include: /var/unbound/etc/unbound-local-data.conf
1819

0 commit comments

Comments
 (0)