diff options
author | Pratyush Desai | 2021-08-17 05:18:56 +0530 |
---|---|---|
committer | Pratyush Desai | 2021-08-17 05:18:56 +0530 |
commit | 9e7d5b6044ac72074a57748a68b14f865b92bf49 (patch) | |
tree | d7e16eefa4189bc71f4b9005ffc77ea432b74421 | |
parent | 87d1e58488cbfa6a27ba9500f99e1a2fa17b2977 (diff) | |
download | irc-master.tar.gz irc-master.tar.bz2 irc-master.zip |
-rw-r--r-- | ergo-dnsbl/config.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ergo-dnsbl/config.yaml b/ergo-dnsbl/config.yaml new file mode 100644 index 0000000..9464c76 --- /dev/null +++ b/ergo-dnsbl/config.yaml @@ -0,0 +1,46 @@ +# an IP may match two different lists. if they give different results, +# which should take precedence? +precedence: [block, require-sasl] + +# the dnsbls to check for every client entering the network +# these are just examples to show the possibilities for the config +lists: + - + # host - specific hostname to use + host: "dnsbl.dronebl.org" + + # action to take if the client matches this dnsbl: + # - allow - let the client access the network + # - block - block the client from accessing the network, with the given message + # - require-sasl - require the client to login with SASL, kill them if they don't + action: require-sasl + + # reason that's shown if they're unable to access the network because of this rbl. + # we support the following variables: + # - "{ip}" - their IP address + reason: "Your IP {ip} is listed in DroneBL. For assistance, see http://dronebl.org/lookup?ip={ip}" + + # specific replies to take action on. these are based on the last octet of the return IP. + # for example, "24" or "13,54,24" would both match a result of "127.0.0.24" from the rbl. + replies: + - + # these are proxies: https://dronebl.org/classes + codes: [8, 9, 10, 11] + action: require-sasl + reason: "You need to enable SASL to access this network. For assistance, see http://dronebl.org/lookup?ip={ip}" + - + # this is the "testing class": + codes: [1] + action: allow + + - + host: "rbl.efnetrbl.org" + # restrict to IPv4 only (use 6 for IPv6) + addresses: 4 + action: block + reason: "Your IP {ip} is listed in the EFnet RBL. For assistance, see http://efnetrbl.org/?i={ip}" + + - + host: "torexit.dan.me.uk" + action: require-sasl + reason: "You need to enable SASL to access this network while using Tor" |