Share the output returned by the last node
Information on your n8n setup
n8n Version: 1.84.3 (Docker, Ubuntu 24.04.1 LTS)
Issue: Need to route only OpenAI node traffic through a proxy, while other nodes connect directly.
n8n Version: 1.84.3 (Docker, Ubuntu 24.04.1 LTS)
Issue: Need to route only OpenAI node traffic through a proxy, while other nodes connect directly.
If you are running n8n in an environment where you have control over DNS, you could add api.openai.com to your DNS and map it to your proxy instead, or if you are running n8n in docker, you could add a localized remapping to docker-compose.yml like:
services:
n8n:
# ...
extra_hosts:
# Outbound proxy hosted on 192.168.0.10 with virtual host for api.openai.com
- "api.openai.com:192.168.0.10"
Then, to be sure the requests from n8n don’t go direct, add a firewall rule to drop packets from your n8n instance to the actual api.openai.com IP addresses.
Thank you very much for the options you suggested. Could you explain a bit more, as I don’t have deep technical knowledge? Preferably step by step.
If you’re not following the suggestion about DNS, I would recommend finding someone who can help you directly with your networking setup. Someone with a basic understanding of networking will recognize what is going on.
The goal is to make n8n send requests to your proxy IP address instead of directly to openai.com.
Assuming the proxy is already in place, there would only be 2 steps.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.