From: Marek VavruĊĦa Date: Thu, 17 Dec 2015 14:17:27 +0000 (+0100) Subject: modules: doc update X-Git-Tag: v1.0.0-beta3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bbdca301ee9eb75a062d6711b5c2fd83defa3db;p=thirdparty%2Fknot-resolver.git modules: doc update --- diff --git a/modules/view/README.rst b/modules/view/README.rst index ffa264ebf..6fd8decd7 100644 --- a/modules/view/README.rst +++ b/modules/view/README.rst @@ -11,7 +11,7 @@ There are two identification mechanisms: * ``subnet`` - identifies the client based on his subnet -* ``key`` +* ``tsig`` - identifies the client based on a TSIG key You can combine this information with :ref:`policy ` rules. @@ -31,7 +31,7 @@ Example configuration -- Load modules modules = { 'policy', 'view' } -- Whitelist queries identified by TSIG key - view:key('\5mykey', function (req, qry) return policy.PASS end) + view:tsig('\5mykey', function (req, qry) return policy.PASS end) -- Block local clients (ACL like) view:addr('127.0.0.1', function (req, qry) return policy.DENY end)) -- Drop queries with suffix match for remote client @@ -51,7 +51,7 @@ Properties Apply rule to clients in given subnet. -.. function:: view:key(key_name, rule) +.. function:: view:tsig(key, rule) :param key: client TSIG key domain name, i.e. ``\5mykey`` :param rule: added rule, i.e. ``policy.pattern(policy.DENY, '[0-9]+\2cz')``