Created
December 18, 2020 13:59
-
-
Save lattera/cc6146551bf59098d26103d909beea6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
logfile: "unbound.log" | |
verbosity: 1 | |
interface: 0.0.0.0 | |
interface: ::0 | |
access-control: 192.168.99.0/24 allow | |
access-control: 2001:470:e1e1::/48 allow | |
########################### | |
#### Generic hardening #### | |
########################### | |
harden-algo-downgrade: yes | |
harden-glue: yes | |
harden-referral-path: yes | |
harden-short-bufsize: yes | |
hide-identity: yes | |
use-caps-for-id: yes | |
ignore-cd-flag: yes | |
################################### | |
#### Validator-based hardening #### | |
################################### | |
val-clean-additional: yes | |
val-permissive-mode: no | |
################################################################# | |
#### Prevent DNS rebinding attacks by stripping private IPs ##### | |
################################################################# | |
private-address: 10.0.0.0/8 | |
private-address: 172.16.0.0/12 | |
private-address: 192.168.0.0/16 | |
private-address: 169.254.0.0/16 | |
private-address: fd00::/8 | |
private-address: fe80::/10 | |
private-address: ::ffff:0:0/96 | |
unwanted-reply-threshold: 10000000 | |
module-config: "validator iterator" | |
auto-trust-anchor-file: "/usr/local/etc/unbound/root.key" | |
include: /var/unbound/local-void.zones | |
# Disable DoH/DoT | |
local-zone: "use-application-dns.net" static | |
include: /usr/local/etc/unbound/zones/md.hardenedbsd.net | |
include: /usr/local/etc/unbound/zones/hawksense.dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment