]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Better examples for the webserver's ACL 9254/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jun 2020 13:54:04 +0000 (15:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 17 Jun 2020 13:54:04 +0000 (15:54 +0200)
pdns/dnsdistdist/docs/guides/webserver.rst
pdns/dnsdistdist/docs/reference/config.rst

index bc0de3eafe7f2be848c2cac2fbe8b7ea5c7c086d..01e6992e9dbd64c219352967a2fd159f97556c4c 100755 (executable)
@@ -9,11 +9,11 @@ To visually interact with dnsdist, try add :func:`webserver` to the configuratio
 
 Now point your browser at http://127.0.0.1:8083 and log in with any username, and that password. Enjoy!
 
-Since 1.5.0, only connections from 127.0.0.1 and ::1 are allowed by default. To allow connections from 192.0.2.1, instead:
+Since 1.5.0, only connections from 127.0.0.1 and ::1 are allowed by default. To allow connections from 192.0.2.0/24 but not from 192.0.2.1, instead:
 
 .. code-block:: lua
 
-  webserver("127.0.0.1:8083", "supersecretpassword", "supersecretAPIkey", {}, "192.0.2.1")
+  webserver("127.0.0.1:8083", "supersecretpassword", "supersecretAPIkey", {}, "192.0.2.0/24, !192.0.2.1")
 
 
 Security of the Webserver
index 82fa5d9a30eac5b535c6dafe4bf6862941dc8776..2a036de868e595717087c171ce22094130b83958 100644 (file)
@@ -308,7 +308,7 @@ Webserver configuration
   :param str password: The password required to access the webserver
   :param str apikey: The key required to access the API
   :param {[str]=str,...} custom_headers: Allows setting custom headers and removing the defaults
-  :param str acl: List of IP addresses, as a string, that are allowed to open a connection to the web server. Defaults to "127.0.0.1, ::1".
+  :param str acl: List of netmasks, as a string, that are allowed to open a connection to the web server. Defaults to "127.0.0.1, ::1". It accepts the same syntax that :func:`NetmaskGroup:addMask` does
 
 .. function:: setAPIWritable(allow [,dir])