services/unbound: fix local access-control and state path

This commit is contained in:
LavaDesu 2022-02-24 14:08:51 +07:00
parent 59a48fc8bb
commit dc88ab4fdb
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -23,10 +23,15 @@ in {
server = { server = {
interface = [ "0.0.0.0" ]; interface = [ "0.0.0.0" ];
access-control = [ "192.168.100.0/24 allow" ]; access-control = [
"127.0.0.1/8 allow"
"192.168.100.0/24 allow"
];
}; };
include = "${inputs.hosts-blocklists}/unbound/unbound.blacklist.conf"; include = "${inputs.hosts-blocklists}/unbound/unbound.blacklist.conf";
}; };
}; };
systemd.services.unbound.serviceConfig.ReadWritePaths = [ dir ];
} }