Allow an IP and a range

Configure the plugin to allow access to a specific IP address and to an IP range, and deny all other IPs.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: ip-restriction
    config:
      allow:
      - 203.0.113.1
      - 192.0.2.0/24
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!