Webhook Whitelist

Hi,

i use a on premise N8n behind a Nginx Proxy. Now i would setup the Whitelist and give these message:
IP is not whitelisted to access the webhook!

Now, i have setup some settings to have the real IP of the client in the Webhook. But then the message comes again. Which header field is used to grab the IP Adress of the call ?

image

Thanks, Stefan

  • **n8n version:1.57.0
  • **Database (default: SQLite):postgres
  • n8n EXECUTIONS_PROCESS setting (default: main):
  • Running n8n via (npm):
  • **Operating system:Ubuntu 22.04

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Stefan,

We should use the x-forwarded-for header to get the IP for this, However if you are running n8n behind a reverse proxy you will need to set the N8N_PROXY_HOPS env option to the number of reverse proxies you are running or we will just use the IP of the reverse proxy.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.