Webhook IP Whitelist by list of CIDRs

The idea is:

As an admin/user of N8n self-hosted, I would like the ability to whitelist allowed IPs by CIDR range such as 10.0.0.0/8.

My use case:

I have multiple internal networks that I would like to whitelist where containers could receive one of 1000’s of IP addresses. Whitelisting every possible combination isn’t feasible.

Are you willing to work on this?

Yes

Have you tried using a regex inside a filter node? Maybe that could get you a bit further.

For accurately determining CIDRs you could also use the code node first while using the cidr-regex library. You could just copy the source and its ip-regex dependency instead of importing. Should be faster.

1 Like