Skip to content

Commit

Permalink
feat: add rate limit support
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtwnklr authored and chubchubsancho committed Aug 16, 2022
1 parent 5bea8f7 commit 33b2fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ REGEX_DEBUGMODE=false|true Note that if one of them is set to true, the other on
* `pi_hole_ftl_debug_dnsmasq_lines` - (default: false) - Print file and line causing a dnsmasq event into FTL's log files. This is handy to implement additional hooks missing from FTL.
* `pi_hole_ftl_debug_vectors` - (default: false) - FTL uses dynamically allocated vectors for various tasks. This config option enables extensive debugging information such as information about allocation, referencing, deletion, and appending.
* `pi_hole_ftl_debug_resolver` - (default: false) - Extensive information about hostname resolution like which DNS servers are used in the first and second hostname resolving tries (only affecting internally generated PTR queries).
* `pi_hole_ftl_rate_limit` - (default: "1000/60") - Block clients making more than `x` queries (default 1000) within `y` seconds (default 60). Rate-limiting may be disabled altogether by setting both values to zero.
1 change: 1 addition & 0 deletions templates/etc/pihole/pihole-FTL.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ DEBUG_CAPS={{ pi_hole_ftl_debug_caps | default(false) | lower }}
DEBUG_DNSMASQ_LINES={{ pi_hole_ftl_debug_dnsmasq_lines | default(false) | lower }}
DEBUG_VECTORS={{ pi_hole_ftl_debug_vectors | default(false) | lower }}
DEBUG_RESOLVER={{ pi_hole_ftl_debug_resolver | default(false) | lower }}
RATE_LIMIT={{ pi_hole_ftl_rate_limit | default("1000/60") }}

0 comments on commit 33b2fb2

Please sign in to comment.