QuotaGuard and n8n Integration Guide

QuotaGuard Static IPs allow your n8n workflows to send outbound HTTP requests through a load-balanced pair of static IP addresses. Once configured, you can use QuotaGuard’s IPs to connect to firewalled APIs, enterprise databases, and services that require IP allowlisting.

You do not need QuotaGuard for internal n8n operations or connections to services that don’t require IP whitelisting. QuotaGuard is specifically for reaching external services that block requests from unknown IP addresses.

Two ways to use this guide: Setting it up yourself? Start with the Guided setup (Quickstart). Working with an AI coding agent? Share the page and use the in-depth programmatic reference to configure the integration, verify the connection and troubleshoot.

To let your agent set up and test the connection, provide the required proxy connection details through its secure credential mechanism rather than sharing your QuotaGuard account password. Review any changes it proposes.

Why n8n Workflows Get Blocked

When you run a workflow on n8n Cloud or a self-hosted instance on a cloud provider, your outbound traffic comes from shared, rotating IP addresses. These IPs are often flagged by:

  • Enterprise firewalls and WAFs (Cloudflare, Akamai)
  • Corporate APIs with IP allowlisting requirements
  • Google Workspace Context-Aware Access policies
  • Financial services and healthcare APIs with strict access controls
  • Database providers like MongoDB Atlas or Amazon RDS

The result is 403 Forbidden or ECONNREFUSED errors that have nothing to do with your workflow logic. Your API keys are valid. Your code is correct. The target service is simply blocking cloud IP ranges.

QuotaGuard gives your n8n workflows a fixed, verifiable identity that partners can add to their firewall allowlists once.

Guided setup (Quickstart)

Start with your connection details, follow the five steps in Option 1, then run the test workflow below. The other configuration options remain in the Programmatic reference. If a check fails, use Troubleshooting.

Getting Started

After creating a QuotaGuard account, you will be redirected to your dashboard where you can find your proxy credentials and static IP addresses.

Choose the right proxy region: Select a QuotaGuard region close to your n8n deployment to minimize latency:

n8n Hosting Location Recommended QuotaGuard Region
US (AWS, DigitalOcean) US-East
Europe EU
Asia-Pacific AP-Southeast or AP-Northeast

Your proxy URL will look like this:

http://username:password@<your-quotaguard-proxy-host>:9293

This URL contains your credentials and the proxy hostname. You’ll use this to route n8n requests through your static IPs.

Finding Your Static IPs: Your two static IPs are displayed in the QuotaGuard dashboard. Both IPs are active simultaneously for high availability. Add both to any firewall allowlists you’re configuring on the target service side.

Configuring n8n

n8n supports proxy configuration at multiple levels depending on your deployment type and needs.

Choose your starting point: On n8n Cloud, start with Option 1: HTTP Request node. On self-hosted n8n, you can also start with Option 1; see Option 3 for process environment settings. For database/TCP connections on a self-hosted runtime, use the QGTunnel section below.

The simplest approach is configuring the proxy directly in individual HTTP Request nodes. This works for both n8n Cloud and self-hosted instances.

Step 1: Open your HTTP Request node in the n8n workflow editor.

Step 2: Click Add Option at the bottom of the node configuration panel.

Step 3: Select Proxy from the options list.

Step 4: Enter your QuotaGuard proxy URL:

http://username:password@<your-quotaguard-proxy-host>:9293

Step 5: Execute your workflow. All requests from this node will now route through your static IP.

The node-level Proxy option takes precedence over the HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY environment variables, so a single node can use QuotaGuard even on an instance configured differently.

This method is ideal when:

  • You’re using n8n Cloud
  • You only need static IPs for specific API calls
  • Different nodes need different proxy configurations

Testing Your Implementation

Create a simple workflow to verify your proxy configuration:

Step 1: Add an HTTP Request node.

Step 2: Set the URL to:

https://ip.quotaguard.com

Step 3: Configure the proxy option with your QuotaGuard URL.

Step 4: Execute the workflow.

Expected response:

{"ip":"<one of your two assigned QuotaGuard IPs>"}

The returned IP must match either of your two assigned IPs shown in the QuotaGuard dashboard. You can repeat the workflow, but observing both addresses is not required for success. Allowlist both assigned IPs at the destination.

Workflow Testing Example

Here’s a complete test workflow structure:

  1. Manual Trigger - Start the workflow manually
  2. HTTP Request - Call https://ip.quotaguard.com with proxy configured
  3. Set - Extract the IP from the response
  4. IF - Check if the IP matches your expected QuotaGuard IPs

This gives you a reusable workflow to verify proxy configuration is working.

Programmatic reference

Use the shared connection URL and allowlist, node-level configuration and precedence, and verification workflow and expected result above. The remaining options cover reusable configuration, self-hosted process variables and local instances, followed by database/TCP setup, use cases, troubleshooting and product distinctions.

Option 2: Reusing One Proxy Value Across Nodes

n8n credentials carry authentication, not transport settings. The generic HTTP Request credential types (Basic auth, Header auth, Digest auth, Query auth, Custom auth, OAuth1 and OAuth2) have no proxy field, so the proxy itself lives in the node’s Proxy option from Option 1. To stop retyping the connection string in every node, take one of these two routes.

Self-hosted: set it once on the instance. Configure HTTP_PROXY and HTTPS_PROXY as shown in Option 3. Every node then sends its HTTP and HTTPS requests through QuotaGuard with no node-level setting at all, and no workflow stores your proxy password. Prefer this route whenever you control the process.

n8n Cloud: put the one configured node in a sub-workflow. Cloud gives you no process environment variables, so centralise the proxy in a workflow the others call:

  1. Create a workflow whose trigger is When Executed by Another Workflow.
  2. Set that trigger’s Input data mode to Define using fields below and define the fields you want to pass in, for example url, method and body.
  3. Add one HTTP Request node, map those fields into it, and set its Proxy option to your QuotaGuard URL.
  4. Open Options > Settings and set This workflow can be called by so that only the workflows you intend can invoke it.
  5. In each calling workflow, add an Execute Sub-workflow node, select this workflow, and fill in the fields you defined.

One node now holds the connection string, which is the point, but be clear about who can see it: the proxy URL is stored as a node parameter, so anyone able to open or export that sub-workflow can read it, password included, and it appears in the workflow’s JSON export. Limit edit access to that workflow, and rotate the proxy password in the QuotaGuard dashboard if it is exposed.

Option 3: Global Environment Variables (Self-Hosted Only)

For self-hosted n8n instances, you can configure the proxy globally so all outbound HTTP requests route through QuotaGuard automatically.

Docker Compose:

Add these environment variables to your docker-compose.yml:

services:
  n8n:
    image: n8nio/n8n
    environment:
      - HTTP_PROXY=http://username:password@<your-quotaguard-proxy-host>:9293
      - HTTPS_PROXY=http://username:password@<your-quotaguard-proxy-host>:9293
      - NO_PROXY=localhost,127.0.0.1
    # ... rest of your configuration

npm/Node.js Installation:

Set the environment variables before starting n8n:

export HTTP_PROXY="http://username:password@<your-quotaguard-proxy-host>:9293"
export HTTPS_PROXY="http://username:password@<your-quotaguard-proxy-host>:9293"
export NO_PROXY="localhost,127.0.0.1"
n8n start

Important: The NO_PROXY variable prevents internal n8n traffic from routing through the proxy. Without it, internal health checks and local connections may fail.

Four details about how n8n reads these variables are worth knowing before you debug one:

  • HTTP_PROXY covers unencrypted HTTP requests and HTTPS_PROXY covers HTTPS requests. Setting both to the same QuotaGuard URL, as above, covers the HTTP and HTTPS requests your nodes make.
  • ALL_PROXY is a per-protocol fallback, not a global one: for each request n8n looks for the variable matching that request’s protocol and falls back to ALL_PROXY only for that protocol. Set HTTPS_PROXY alone and plain HTTP requests still fall through to ALL_PROXY if it is set.
  • Lowercase wins. When both http_proxy and HTTP_PROXY are present, n8n uses the lowercase one, so pick one form and stick to it.
  • NO_PROXY takes a comma-separated list of bare hostnames, each optionally with a port, as in localhost,127.0.0.1,db.internal:5432. The matching is done by the proxy-from-env library: an entry has to match the host name exactly unless it starts with a dot or an asterisk, in which case it matches any host ending with the entry, and NO_PROXY=* disables all proxies. Full URLs are not parsed, so an entry like https://db.internal never matches anything.

A node’s own Proxy option overrides all of them, which is the cleanest way to send one node somewhere different without touching instance configuration.

Option 4: Local Development Instances

n8n Desktop is no longer part of the product; its repository has been archived and marked as no longer maintained. Local use now means an npm or Docker install, which behaves like any other self-hosted instance, so everything above applies unchanged.

For a local instance:

  1. Configure the proxy in your HTTP Request node as described in Option 1, or
  2. Export HTTP_PROXY and HTTPS_PROXY in the shell before starting n8n, as in Option 3
  3. For database and other TCP connections, wrap the start command with QGTunnel as described below

Database Connections (SOCKS5)

For non-HTTP protocols like PostgreSQL, MySQL, or MongoDB connections from n8n, use QuotaGuard’s SOCKS5 proxy with QGTunnel.

When to Use SOCKS5

Standard HTTP proxies only handle HTTP/HTTPS traffic. If your n8n workflow uses:

  • PostgreSQL node
  • MySQL node
  • MongoDB node
  • SSH node
  • FTP node
  • Any raw TCP connection

You’ll need SOCKS5 proxying.

Setting Up QGTunnel for Self-Hosted n8n

Step 1: Download QGTunnel to the root of your n8n project:

curl https://s3.amazonaws.com/quotaguard/qgtunnel-latest.tar.gz | tar xz

The archive extracts two things you need to keep together: bin/qgtunnel and vendor/nss_wrapper/libnss_wrapper.so. QGTunnel resolves that vendor path relative to the directory it starts in, and transparent mode depends on the library, so wherever you place bin/, place vendor/ beside it.

Step 2: Configure your tunnel in the QuotaGuard dashboard, then download it as a .qgtunnel file into the same project root:

Navigate to Settings > Setup > Tunnel > Create Tunnel.

Example PostgreSQL configuration:

Setting Value
Remote Destination tcp://your-database.example.com:5432
Local Port 5432
Transparent true
Encrypted false

Step 3: Start n8n with QGTunnel. QGTunnel reads your connection URL from the environment, so export it before the start command:

export QUOTAGUARDSTATIC_URL="http://username:password@<your-quotaguard-proxy-host>:9293"
bin/qgtunnel n8n start

On Shield, export your assigned Shield URL as QUOTAGUARDSHIELD_URL instead. QGTunnel needs one of the two and stops immediately without them, so this export is not optional. The HTTP_PROXY variables from Option 3 do not satisfy it: they configure n8n’s HTTP clients, not the tunnel.

Or in Docker Compose:

services:
  n8n:
    image: n8nio/n8n
    entrypoint: ["tini", "--", "/home/node/bin/qgtunnel", "/docker-entrypoint.sh"]
    environment:
      - QUOTAGUARDSTATIC_URL=http://username:password@<your-quotaguard-proxy-host>:9293
    volumes:
      - ./bin:/home/node/bin:ro
      - ./vendor:/home/node/vendor:ro
      - ./.qgtunnel:/home/node/.qgtunnel:ro

Three details in that example are deliberate:

  • The entrypoint chain. The official image starts as tini -- /docker-entrypoint.sh, and that script is what trusts certificates mounted at /opt/custom-certificates before launching n8n, so keeping both in the chain means you give up neither signal handling nor your custom CA bundle.
  • The mount location. /home/node is the image’s working directory, so QGTunnel finds vendor/nss_wrapper/libnss_wrapper.so on the relative path it expects. The container runs as the node user, so the files you mount must be readable by it and bin/qgtunnel must be executable: chmod +x bin/qgtunnel before starting.
  • The .qgtunnel mount. The tunnel configuration you downloaded in Step 2 has to be inside the container, not just on the host, which is what the third volume does. Without it, QGTunnel falls back to fetching the configuration from QuotaGuard’s API at every start.

The published archive is a Linux x86-64 build, so use it on x86-64 hosts; an arm64 machine needs a build for that architecture.

Two more QGTunnel settings make the rest of the setup easier to live with:

  • If you are not using transparent mode, set QGTUNNEL_DNSMODE=DISABLED to keep a harmless DNS error out of your logs.
  • QGTUNNEL_DEBUG=true turns on verbose logging while you are getting set up.

With transparent mode enabled, your n8n database nodes can connect to the original hostname while traffic routes through the tunnel transparently.

n8n Cloud Database Limitations

n8n Cloud does not support QGTunnel or SOCKS5 proxy configuration. If you need static IPs for database connections on n8n Cloud, consider:

  1. Using a self-hosted n8n instance with QGTunnel
  2. Creating an API wrapper service that proxies database queries through HTTP
  3. Using cloud database providers that support VPC peering instead of IP allowlisting

Common Use Cases

Connecting to Firewalled APIs

Many enterprise APIs require IP allowlisting. Configure the proxy in your HTTP Request node, then provide your QuotaGuard static IPs to the API provider for their allowlist.

Google Workspace Context-Aware Access

If your organization uses Google Workspace with Context-Aware Access policies, n8n Cloud requests may be blocked because they come from unauthorized IPs. Route your Google API requests through QuotaGuard, then add your static IPs to the Context-Aware Access policy.

Webhook Receivers with IP Restrictions

Some services only accept webhooks from known IP addresses. Configure your outbound webhook calls through QuotaGuard, then add your static IPs to the destination service’s allowlist.

Avoiding Rate Limiting by Cloud IP Reputation

Cloud provider IP ranges are sometimes rate-limited more aggressively because they’re associated with automated traffic.

Latency Considerations

Using QuotaGuard adds a network hop to your requests:

Configuration Added Latency
Same region (n8n US + QuotaGuard US-East) 10-20ms
Cross-region 50-100ms

For high-volume or latency-sensitive workflows, select a QuotaGuard region that matches your n8n hosting location.

Troubleshooting

403 Forbidden Errors

If you’re still seeing 403 errors after configuring the proxy:

  1. Verify the proxy is active: Test with ip.quotaguard.com to confirm traffic routes through QuotaGuard
  2. Check the destination allowlist: Ensure both of your QuotaGuard static IPs are added to the target service’s firewall
  3. Confirm authentication: Double-check your proxy URL credentials are correct

See our detailed guide: How to Fix 403 Forbidden Errors in n8n HTTP Request Nodes

407 Proxy Authentication Required

Your proxy credentials are incorrect. Verify your username:password in the proxy URL matches your QuotaGuard dashboard credentials.

Connection Timeout

  1. Check that your n8n instance can reach external networks
  2. Verify the QuotaGuard proxy hostname is correct
  3. Ensure no firewall rules are blocking outbound connections to port 9293

Wrong IP Address in Response

The proxy URL may not be configured correctly in your HTTP Request node:

  1. Check that you entered the full URL including the protocol (http://)
  2. Verify the proxy option is enabled in the node
  3. Try creating a new HTTP Request node with fresh configuration
  4. On self-hosted instances, check for a competing lowercase http_proxy or https_proxy variable, which takes precedence over the uppercase form, and remember that a node’s own Proxy option overrides both

Container Exits Immediately After Adding QGTunnel

If the container stops as soon as it starts and the log reads:

[QGTUNNEL] Missing QUOTAGUARDSTATIC_URL and QUOTAGUARDSHIELD_URL environment variables. Exiting.

QGTunnel found no connection URL, so it exited without ever launching n8n. Set QUOTAGUARDSTATIC_URL (or QUOTAGUARDSHIELD_URL if you are on Shield) on the container and restart. QGTunnel converts the HTTP URL and port to their SOCKS5 equivalents itself, so either connection URL from the dashboard is fine.

n8n Cloud Proxy Not Working

n8n Cloud supports proxy configuration only at the HTTP Request node level (Option 1). Global environment variables are not available on n8n Cloud.

If the node-level proxy isn’t working:

  1. Ensure you’re configuring the Proxy option, not Headers
  2. Double-check the URL format includes credentials
  3. Test with a simple ip.quotaguard.com call first

Nodes Other Than HTTP Request

Most n8n app nodes (Slack, Gmail, Salesforce, etc.) make HTTP requests internally but don’t expose proxy configuration. For these nodes:

  • Self-hosted: Use global environment variables (Option 3) to proxy all traffic
  • n8n Cloud: These nodes cannot be proxied. Contact the service provider to discuss IP allowlisting options or consider using the HTTP Request node with the service’s raw API instead

QuotaGuard Static vs QuotaGuard Shield

QuotaGuard offers two products for static IPs:

Feature QuotaGuard Static QuotaGuard Shield
Protocol HTTP/SOCKS5 HTTPS/SOCKS5 over TLS
Outbound proxy URL http://username:password@<host>:9293 https://username:password@<host>:9294
Encryption Outbound HTTPS travels in a blind CONNECT tunnel; payload never decrypted. The app-to-proxy hop uses the plain HTTP proxy protocol Outbound HTTPS travels in a blind CONNECT tunnel; payload never decrypted. The app-to-proxy hop is encrypted with TLS
Best for General API access HIPAA, PCI-DSS, regulated data
Starting price $19/month $29/month

For most n8n workflows, QuotaGuard Static provides everything you need. Choose Shield if you’re handling protected health information (PHI), payment card data, or have specific compliance requirements.


Ready to Get Started?

Get in touch or create a free trial account.

Get QuotaGuard for n8n

Read: How to Fix 403 Forbidden Errors in n8n

View n8n Integration Features


Back to top ↑

Copyright © 2009 - 2026 QuotaGuard. All rights reserved.