Applying IP Policies to Endpoints
You can add an IP Policy to your endpoints using therestrict-ips Traffic Policy Action.
To get started with an Agent Endpoint, create a policy.yml or policy.json file on the same machine as the endpoint. To use a Cloud Endpoint, visit the Endpoints section in the ngrok dashboard and select the Cloud Endpoint. You’ll be taken to the Traffic Policy editor.
The contents of the policy file should be the following:
--traffic-policy-file flag as shown in the following example: