]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/unbound/unbound.conf
unbound: Drop certificates for local control connection
[ipfire-2.x.git] / config / unbound / unbound.conf
index 5193dd93123f9c0e2c6446ad32a7a052df07b474..e20c3330d7045ac93856ee1eb2e01d7d41b62d83 100644 (file)
@@ -28,7 +28,7 @@ server:
        log-queries: no
 
        # Unbound Statistics
-       statistics-interval: 0
+       statistics-interval: 86400
        statistics-cumulative: yes
        extended-statistics: yes
 
@@ -59,24 +59,22 @@ server:
        harden-below-nxdomain: yes
        harden-referral-path: yes
        harden-algo-downgrade: no
-       use-caps-for-id: no
+       use-caps-for-id: yes
+       aggressive-nsec: yes
+
+       # Harden against DNS cache poisoning
+       unwanted-reply-threshold: 1000000
 
        # Listen on all interfaces
+       interface-automatic: yes
        interface: 0.0.0.0
 
-       # Deny access from everywhere
-       access-control: 0.0.0.0/0 refuse
-
-       # Allow access from localhost
-       access-control: 127.0.0.0/8 allow
+       # Allow access from everywhere
+       access-control: 0.0.0.0/0 allow
 
        # Bootstrap root servers
        root-hints: "/etc/unbound/root.hints"
 
-       # IPFire interface configuration
-       include: "/etc/unbound/interfaces.conf"
-       interface-automatic: no
-
        # Include DHCP leases
        include: "/etc/unbound/dhcp-leases.conf"
 
@@ -85,12 +83,8 @@ server:
 
 remote-control:
        control-enable: yes
-       control-use-cert: yes
+       control-use-cert: no
        control-interface: 127.0.0.1
-       server-key-file: "/etc/unbound/unbound_server.key"
-       server-cert-file: "/etc/unbound/unbound_server.pem"
-       control-key-file: "/etc/unbound/unbound_control.key"
-       control-cert-file: "/etc/unbound/unbound_control.pem"
 
 # Import any local configurations
 include: "/etc/unbound/local.d/*.conf"