Static IP infrastructure for API whitelisting and database access

Your application runs somewhere that hands out a new outbound IP on every deploy, scale event or restart. The API, payment provider or managed database you call only accepts connections from addresses it has already approved.

An app labelled your app, new IP on every deploy, with two routes to the same API. A dashed grey route stops at a red cross labelled refused, IP not allowlisted. A green route passes through QuotaGuard, showing 203.0.113.10 and 203.0.113.11, and reaches the API, which is labelled allowlisted.

Nothing about the code is wrong. The traffic is simply arriving from an address the destination has never seen.

QuotaGuard gives that application a fixed pair of public IPs to call from, so the destination only ever sees an address it has already approved.

Two traffic shapes need two proxy protocols

This is the part that catches teams out:

an HTTP-only static IP service cannot carry a database connection at all, because an API call and a database connection are not the same kind of traffic and do not use the same proxy protocol.

The table below is the quick chooser: find the destination you are calling, and read off the protocol and the port.

Which QuotaGuard protocol and port to use for the destination you are calling. Six destination types, with the protocol and the port on Static and on Shield. Every port listed is a QuotaGuard static IP service, not a third party.
What you are calling Protocol Port on Static Port on Shield Notes
A vendor REST or GraphQL API over HTTPS HTTP CONNECT 9293 9294 Shield encrypts the hop to the proxy; neither product decrypts the destination payload
A payment or bank API over HTTPS HTTP CONNECT 9293 9294 Same as above; use Shield if the data is regulated
PostgreSQL, MySQL or SQL Server SOCKS5 1080 1081 Raw TCP, so an HTTP-only proxy cannot carry it at all
MongoDB SOCKS5 1080 1081 As above
SFTP or SSH SOCKS5 1080 1081 As above
LDAP SOCKS5 1080 1081 As above

Scroll the table sideways to see every column.

One subscription carries both protocols, so you do not buy twice: the same credentials work on the HTTP proxy and on SOCKS5, and both egress from the same two static IPs. A destination that allowlists the pair is covered whether you reach it with an API call or a database connection.

HTTPS APIs

Most vendor APIs are HTTPS, and an HTTP proxy with CONNECT carries them. That includes vendor REST or GraphQL APIs and payment or bank APIs. On Static use port 9293; on Shield use 9294.

Static 9293Shield 9294

Raw TCP: databases and more

Databases, SFTP, SSH and LDAP are not HTTPS. They are raw TCP, and they need SOCKS5, on port 1080 on Static or 1081 on Shield. PostgreSQL, MySQL, SQL Server, MongoDB, SFTP, SSH and LDAP all go this way.

Static 1080Shield 1081

Why a database needs SOCKS5, not an HTTP proxy

An HTTPS call and a database connection are different kinds of traffic, and an HTTP proxy can only carry one of them.

  • An HTTP proxy carries an HTTPS request because the client can describe it as a CONNECT to a host and port, and the proxy opens the tunnel and passes the TLS session through.
  • A database client makes no HTTP request at all: it opens a raw TCP socket and speaks the database's own wire protocol over it, which an HTTP proxy has no way to describe or forward.
  • SOCKS5 carries that socket as it is, which is why PostgreSQL, MySQL, SQL Server and MongoDB need port 1080 on Static or 1081 on Shield.
  • An HTTP-only static IP service cannot carry the connection however the client is configured, and that gap is the most common reason a team buys the wrong proxy for a database.
Two lanes. HTTPS APIs sends an app to an API panel over HTTP CONNECT on 9293 or 9294. Databases, SFTP, SSH and LDAP sends an app to a database cylinder over SOCKS5 on 1080 or 1081. A bracket under both reads one subscription carries both.

Over both protocols the proxy opens a raw TCP tunnel to the destination and copies bytes through in each direction. TLS is not terminated on the tunnel, so the application's own TLS session to the destination runs intact inside it.

  • QuotaGuard Static carries the HTTP and HTTPS proxy and SOCKS5 in one product, and Shield carries the TLS-wrapped equivalents, so a single subscription covers an API call and a database connection at the same time.
  • Both protocols egress from the same two static IPs and use the same credentials, so the destination allowlists one pair and it is done.
  • That is the practical difference from a service that speaks HTTP only: you would have to add a second product for the database, and that product would egress from a different address, which means a second allowlist entry to maintain and a second thing to check when a call is refused.

What a QuotaGuard subscription gives you

Two static outbound IPs,

a load-balanced pair, counted per subscription rather than per account, and you choose the region they egress from.

How the pair behaves under load, on failover, and across a region move is what this section covers.

Two IPs per subscription

Each subscription includes two static outbound IPs.

Always a /32, never a CIDR

Each address is an individual AWS-assigned Elastic IP, always a single /32, never a CIDR block. A last octet of .0 is a valid host address, not a network address.

Same pair for HTTP and SOCKS5

The HTTP proxy and SOCKS5 are one subscription with one set of credentials, and both egress from the same two static IPs.

Which of the two addresses a connection gets

Egress from the pair is chosen per connection, not per request, and the two IPs are never rotated: the only promise is that any connection can come from either one.

  • The proxy hostname resolves to two load-balancer addresses, one per Availability Zone, and each address hands connections to the proxy node in its own zone, so which address your client gets depends on which one it connected to. A resolver returns both in varying order but caches the answer for a 60-second TTL, so a burst of new connections from one machine inside a minute lands on one node.
  • A client that reuses a connection stays on its node until the agent or the destination closes the tunnel, and the next tunnel is a fresh choice.
  • In practice a serverless function shows both addresses over time as new instances resolve DNS themselves, while a warm instance holding an agent stays on one node.
  • Design a health check to assert that the address is one of the two, not to expect both from one client.

Two zones, and failover

The two nodes sit in separate AWS Availability Zones within their region. If one node fails, new connections continue through its partner and egress from the other allowlisted IP. Detection and rerouting take about 90 seconds.

An app to a load balancer to the QuotaGuard pair, with 203.0.113.10 in AZ a and 203.0.113.11 in AZ b, then to a destination panel headed both allowlisted with both addresses ticked. Two notes read never a third address and failover, about 90 seconds.

Pinning to one address

Some destinations insist on a single source address. Connect to the node-specific hostname with -a or -b appended to pin traffic to one of the pair. The trade is explicit: pinning bypasses the load balancer and gives up failover.

Choosing and changing region

  1. Production proxy infrastructure runs in 12 AWS regions and you choose the egress region for a subscription. One subscription egresses from one region, so a workload that must reach some destinations from the US and others from the EU at the same time needs two subscriptions.
  2. A region move happens in place on the same plan and subscription, and the connection URL changes in the hostname portion only: the username, password and port stay the same, and both IPs of the new pair are in the chosen region, in separate Availability Zones. There is no price change for a same-tier move, and the switch takes a few minutes on the same business day.
  3. The old and new credentials stay active at the same time for a configurable window, 7 days by default and settable from 0 to 180, which is your window to add the new IPs to every allowlist before retiring the old ones.

One catch: a region move sends all egress from that subscription to the new pair, not only the traffic for the destination that prompted it, so any other provider that allowlisted the old addresses has to add the new ones during the overlap.

Certificates, regulation, and diagnosis

Mutual TLS passes through untouched,

Shield is the product for regulated data, a refused call is diagnosed from the request log, and the two connection limits are worth knowing before you design a pool.

Mutual TLS passes through

The proxy does not terminate TLS, so the full TLS session, including the client-certificate exchange, is established between the application and the destination. The client certificate and private key are never seen, terminated or stored by QuotaGuard.

mTLS is not a reason to move to Shield

  • Mutual TLS does not point to Shield. When the application handles mTLS itself, the client-certificate handshake happens inside the tunnel, so it is identical on Static and Shield, and the destination sees the connection arriving from your static IPs with TLS 1.2 or above negotiated end to end.
  • For a non-regulated outbound workload that is the whole picture, and Static is the correct product; Shield's only additional value is encrypting the hop between your application and the proxy.
  • Static supports mTLS through its CONNECT tunnel. Choose Shield for regulated workloads and end-to-end payload encryption, with SSL passthrough and private keys that remain on your servers.
An app to a destination through a QuotaGuard tunnel drawn as a pipe labelled raw TCP, bytes copied through, TLS not terminated. A single continuous line labelled the app's own TLS session runs unbroken through the pipe, and a padlocked note reads client certificate never inspected by QuotaGuard.

Regulated data

Choose QuotaGuard Shield for HIPAA- or PCI-DSS-regulated workloads. Shield keeps your payload encrypted throughout its journey, with SSL passthrough and private keys that remain on your servers. Shield is HIPAA-ready, with a BAA on approved configurations, and supports PCI-DSS scope reduction.

We are engaged with Thoropass for our SOC 2 Type I examination, with the report expected early 2027.

Residency and the DPA

US and EU Data Residency are paid add-ons available on Static or Shield at any tier.

  • The add-on keeps proxy traffic, static IPs, connection logs, monthly usage totals, account and billing records, dashboard and support records, and customer-requested log exports within the chosen US or EU region.
  • The Data Processing Addendum is separate: the current version is v2.1, incorporating the 2021 EU Standard Contractual Clauses, Module Two, with Annexes I and II completed, and it is available on any plan.
  • A paid subscription on its own does not execute it, so coverage needs the separate written DPA signed by both parties; ask support for it early if counsel has to review the terms.

The connection limits to design around

Two limits are worth planning for, and only one of them is adjustable.

Connection limits to design around, by path: the lifetime cap, the idle timeout, and what to do, for the HTTP CONNECT proxy and for SOCKS5.
Path Lifetime cap Idle timeout What to do
HTTP CONNECT (9293, 9294) 600 seconds, hardcoded, with no configuration setting Adjustable; the proxy's own 15-second keepalives mean the load balancer never sees an idle flow, so it does not fire in practice Set a connection pool's maximum lifetime under ten minutes and let it recycle
SOCKS5 (1080, 1081) No fixed lifetime cap Same as above Not bounded by the 600-second cap

Neither limit means a connection never drops, because a deploy or a failover can still sever it, so keep reconnect logic either way.

Diagnosing a refused call

Request https://ip.quotaguard.com through the proxy; it returns JSON in the form {"ip":"..."}. If a failed attempt does not appear in your subscription's request logs at all, it never reached QuotaGuard, which points at the path on your side rather than a proxy-side rejection.

An app to QuotaGuard to a terminal panel showing GET https://ip.quotaguard.com returning {"ip":"203.0.113.10"} with the note matches a QuotaGuard IP. A request log beside it lists CONNECT ip.quotaguard.com:443 and CONNECT api.example.com:443, with no entry for the refused call, captioned not in the log means it never reached QuotaGuard.

FAQs

Common questions and QuotaGuard.

My partner asked for an IP to allowlist. What do I give them?

Two addresses, and nothing else. Each subscription includes two static outbound IPs as a load-balanced pair, counted per subscription rather than per account, and both are individual AWS Elastic IPs that are always a single /32. Send the partner both addresses and have them allowlist each one; a hostname or a range is not needed.

If a second application needs its own pair, that is a second subscription.

Do I allowlist one address or both?

Both. The pair is load-balanced and each node egresses from its own static IP, so in normal operation traffic uses both of your addresses and the destination never sees a third. Allowlisting only one address means every connection that lands on the other node is refused, which is a coin flip on each new connection.

If a destination can hold only one address, see the single-address question below, but treat that as the exception rather than the setup.

Can one subscription carry both an API call and a database connection?

Yes, and carrying both protocols in one product is the point. The same subscription, and the same credentials, carry the HTTP and HTTPS proxy on port 9293 and SOCKS5 on port 1080 on Static, or 9294 and 1081 on Shield. Your HTTPS API calls go through the HTTP proxy and your PostgreSQL, MySQL,

SQL Server or MongoDB connection goes through SOCKS5, egressing from the same two static IPs. You do not buy a second product to add a database, and the destination allowlist does not change.

Why can an HTTP proxy not reach my PostgreSQL database?

Because a database connection is not an HTTP request. An HTTP proxy carries an HTTPS request by opening a CONNECT tunnel to a host and port, but a database client opens a raw TCP socket and speaks the database's own wire protocol over it. SOCKS5 carries that socket as it is,

which is why a database needs port 1080 on Static or 1081 on Shield. An HTTP-only static IP service has no way to carry the socket at all, however the client is configured, and that is the single most common reason a team buys the wrong proxy.

Does the proxy see my payload or my client certificate?

No. Over both protocols the proxy copies bytes through a raw TCP tunnel without parsing or modifying them, and it does not terminate TLS, so your application's TLS session runs end to end to the destination. With mutual TLS the client-certificate exchange happens inside that tunnel,

and the client certificate and private key are presented directly to the destination, never seen, terminated or stored by QuotaGuard. That is true on Static and on Shield; Shield's difference is that it also encrypts the hop between your application and the proxy.

Which product do I need for payment data or PHI?

Choose QuotaGuard Shield. Shield keeps your payload encrypted throughout its journey and your private keys on your own servers. It is HIPAA-ready, with a BAA on approved configurations, and supports PCI-DSS scope reduction.

If the workload has no regulated data, Static carries the same request and bandwidth allowance at each tier for less.

What happens to my allowlist if one IP fails?

Nothing needs to change, because both addresses were already on it. Each node egresses from its own static IP, so if one node fails, new connections continue through its partner and egress from the other allowlisted IP, with detection and rerouting taking about 90 seconds.

Connections that were open on the failed node drop and reconnect through the healthy one, so the visible effect is a brief reconnect rather than a change of address. The addresses are reserved to the pair for the life of the subscription, so a rebuilt instance keeps the same IPs.

A destination insists on a single address. What do I do?

Pin to one node. Append -a or -b to your assigned proxy host, for example us-east-static-01-a.quotaguard.com, and that name maps to one of your two IPs, which does not change. The trade is explicit: the node-specific hostname bypasses the load balancer and gives up automatic failover,

so use it only for the destination that insists on one address and leave everything else on the balanced hostname. Where a destination can take both addresses, allowlisting both keeps failover working.

Where does my traffic physically leave from, and can I change that later?

Production proxy infrastructure runs in 12 AWS regions and you choose the egress region, and each pair sits in two Availability Zones within its region. One subscription egresses from one region, so a workload that needs two regions at the same time needs two subscriptions.

A region move is done in place on the same plan and subscription: the connection URL changes in the hostname portion only, keeping the username, password and port, and both IPs of the new pair are in the chosen region. The old and new credentials overlap for 7 days by default,

configurable from 0 to 180 days, which is the window to move your allowlists.

Do you sign a DPA, and does it need an Enterprise plan?

You can get one on any plan. The current Data Processing Addendum is v2.1, and it incorporates the 2021 EU Standard Contractual Clauses, Module Two, with Annexes I and II completed. A paid subscription on its own does not execute it, so coverage needs the separate written DPA signed by both parties;

ask support early if your counsel has to review the terms. US and EU Data Residency is a separate paid add-on available on Static or Shield at any tier.

How do I check which address the destination actually saw?

Request https://ip.quotaguard.com through the proxy, which always returns JSON in the form {"ip":"..."}. It has no plain-text form, so a client that parses the response as a bare string rejects every reply; parse the JSON field instead. Note that the egress address is chosen per connection, not per request,

and the two IPs are never rotated, so one client inside a DNS TTL, or a reused agent tunnel, will usually show one address of the pair rather than both. A health check should assert that the address is one of the two,

and the dashboard Log Viewer shows the handling node in its Proxy column.

What are the connection limits I should design around?

There is no concurrent-connection limit per subscription or per IP, so sizing is about throughput rather than connection count. Two limits matter for pooled clients: a connection tunneled through the HTTP CONNECT proxy has a hardcoded 600-second lifetime with no configuration setting,

so set a pool's maximum connection lifetime under ten minutes and let it recycle. SOCKS5 carries no fixed lifetime cap, so a database pool over port 1080 or 1081 is not bounded by that. The 600-second cap is separate from the load-balancer idle timeout,

which is the adjustable one and which a keepalive-sending client never reaches.

We are on Heroku and the IP changes on every deploy. Does this fix that?

Yes. The problem is that the platform hands your application a new outbound address on every deploy, scale event or restart, and the destination only accepts addresses it has already approved. Point the application's outbound calls through a QuotaGuard subscription and the calls egress from your two fixed addresses instead,

so the platform's own IPs stop mattering to the destination. Allowlist both addresses once and the deploy no longer breaks the integration.