Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atomlab/89ad9d1a58e9b593c6107608bb65153f to your computer and use it in GitHub Desktop.
Save atomlab/89ad9d1a58e9b593c6107608bb65153f to your computer and use it in GitHub Desktop.
Cloudflare – Restrict Tunnel Access by IP Address
  1. Find the "Access Groups" section
  2. Click the "Create Group" button
  3. Enter group name: allow-ips
  4. Add IP addresses or ranges that should not be restricted.

Screenshot_20250103_195507

  1. Then go to the "Applications" section and create a new application by clicking the "Add an Application" button.

Screenshot_20250103_195718_edit

  1. Enter the name of the application.
  2. Specify the application domain.
  3. Click Next to create a Policy
  4. Enter any Policy name and select the Bypass type.

Screenshot_20250103_195856

  1. Select the previously created allowed-ips group in the Assign a group section.
  2. Then click Next and in the next step "Add Application".

Now we have to get the desired behavior. Anything that is not included in the group of allowed-ips is prohibited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment