Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 663 Bytes

add-allowed-ip.mdx

File metadata and controls

29 lines (19 loc) · 663 Bytes
title description
ADD ALLOWED IP
The ADD ALLOWED IP command restricts access for the role or user by allowing only some IP addresses

Syntax

ADD ALLOWED IP ip_address [ROLE role_name] [USER username]

Privileges

USERADMIN

Description

The ADD ALLOWED IP command restricts access for the role or user by allowing only some IP addresses. Ranges in CIDR notation like 10.10.10.0/24 can be used. IPv4 and IPv6 addresses are supported.

Return

OK string or error value (see SCSP protocol).

Example

> ADD ALLOWED IP 10.10.10.0/24 USER user1
OK