From b7359e1d45f505171356bcae3c7d5e2341ecc859 Mon Sep 17 00:00:00 2001 From: radhitya Date: Sun, 21 Jun 2026 09:48:42 +0700 Subject: forward mode, cache opt, ACL, rate limit, admin/health, systemd, fix UDP reply --- linum.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'linum.toml') diff --git a/linum.toml b/linum.toml index 33d1dd7..3e4637f 100644 --- a/linum.toml +++ b/linum.toml @@ -11,15 +11,22 @@ db_path = "/tmp/cache.db" mode = "forward" timeout = "2s" max_delegations = 30 -forwarders = ["1.1.1.1", "8.8.8.8"] +forwarders = ["1.1.1.1"] [blocklist] response = "zero_ip" files = ["etc/blocklist/*.txt"] #urls = [ # "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", - # "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt", #] +[admin] +listen = "127.0.0.1:8080" + +[acl] +allow = ["127.0.0.1/8", "::1/128"] +rate_limit_qps = 50 +rate_limit_burst = 10 + [log] level = "info" -- cgit v1.2.3