White List
November 25, 2024About 1 min
White List
function description
Allow which client addresses can connect to IoTDB
configuration file
conf/iotdb-system.properties
conf/white.list
configuration item
iotdb-system.properties:
Decide whether to enable white list
# Whether to enable white list
enable_white_list=true
white.list:
Decide which IP addresses can connect to IoTDB
# Support for annotation
# Supports precise matching, one IP per line
10.2.3.4
# Support for * wildcards, one ip per line
10.*.1.3
10.100.0.*
note
- If the white list itself is cancelled via the session client, the current connection is not immediately disconnected. It is rejected the next time the connection is created.
- If white.list is modified directly, it takes effect within one minute. If modified via the session client, it takes effect immediately, updating the values in memory and the white.list disk file.
- Enable the whitelist function, there is no white.list file, start the DB service successfully, however, all connections are rejected.
- while DB service is running, the white.list file is deleted, and all connections are denied after up to one minute.
- whether to enable the configuration of the white list function, can be hot loaded.
- Use the Java native interface to modify the whitelist, must be the root user to modify, reject non-root user to modify; modify the content must be legal, otherwise it will throw a StatementExecutionException.