Allow an IP and a rangev1.0+

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 kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: ip-restriction
    config:
      allow:
      - 203.0.113.1
      - 192.0.2.0/24

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!