-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCorefile.local-dev
More file actions
27 lines (27 loc) · 1.24 KB
/
Corefile.local-dev
File metadata and controls
27 lines (27 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# for local development on ports 5354 (dns) and 5380 (http)
# run with: ./p2p-forge -conf Corefile.local-dev -dns.port 5354
libp2p.direct {
log
errors
any # RFC 8482
prometheus localhost:9253
denylist {
# Spamhaus DROP: hijacked IP ranges used for spam and malware
# Spamhaus recommends once per day; 12h is a reasonable compromise
feed https://www.spamhaus.org/drop/drop.txt format=ip refresh=12h name=spamhaus-drop
feed https://www.spamhaus.org/drop/dropv6.txt format=ip refresh=12h name=spamhaus-dropv6
# URLhaus: malware distribution URLs (IPs extracted)
# URLhaus updates every 5 minutes; use their stated minimum
feed https://urlhaus.abuse.ch/downloads/text/ format=url refresh=5m name=urlhaus
# Local allowlist: bypasses all denylists (own infrastructure, feed false positives)
# file ip-allowlist.txt type=allow
# Local denylist: quick blocks without waiting for feed updates
# file ip-denylist.txt
}
ipparser libp2p.direct
file zones/libp2p.direct
acme libp2p.direct {
registration-domain registration.libp2p.direct listen-address=:5380 external-tls=true
database-type badger badger.libp2p-direct-challenges
}
}