addAction(AllRule(), LuaAction(lua_route_tc_to_abuse_pool))
If the YAML configuration is used, there are three different ways of calling a Lua function. The first option is to declare the Lua function in
-a global Lua file that will loaded before the YAML configuration is parsed. This is done by creating a Lua file with the exact same name as
+a global Lua file that will be loaded before the YAML configuration is parsed. This is done by creating a Lua file with the exact same name as
the YAML configuration one, but with a ``.lua`` extension. See :doc:`../reference/yaml-settings` for more information. For example, creating
a file named ``/etc/dnsdist/dnsdist.lua`` containing:
agentxperms 0700 0700 dnsdist dnsdist
-In order to allow the retrieval of statistics via SNMP, ``snmpd``'s access control has to configured.
+In order to allow the retrieval of statistics via SNMP, ``snmpd``'s access control has to be configured.
A very simple SNMPv2c setup only needs the configuration of a read-only community in ``snmpd.conf``::
rocommunity dnsdist42
``options`` optional parameter added
Adds a rate-limiting rule for the ratio of cache-misses responses over the total number of responses for a given client.
- A minimum global cache-hit ratio has to specified to prevent false-positive when the cache is empty.
+ A minimum global cache-hit ratio has to be specified to prevent false-positive when the cache is empty.
:param float ratio: Ratio of cache-miss responses per second over the total number of responses for this client to exceed
:param int seconds: Number of seconds the ratio has been exceeded