# HTTP & SOCKS5 proxy

Source: https://prontaro.com/docs/outbound/proxy/

Send outbound HTTP, HTTPS, and TCP traffic through your dedicated static IPv4 by plugging a standard proxy URL into your HTTP client or environment variables.

A single credential set works across three ports—HTTPS proxy (`443`), HTTP CONNECT (`8080`), and SOCKS5h (`1080`). TLS stays end-to-end encrypted between your app and the destination, and each credential set supports its own **From** and **To** access rules plus zero-downtime password rotation.

## When to use the proxy

- **Standard HTTP/HTTPS API calls** from Node.js, Python, Go, PHP, Java, Ruby, or `curl` to allowlisted payment gateways and partner APIs.
- **End-to-end TLS or mutual TLS (mTLS).** Neither HTTP CONNECT nor SOCKS5 decrypts your TLS stream — the Prontaro server relays ciphertext straight through.
- **Arbitrary TCP over SOCKS5.** Connect to PostgreSQL, MySQL, MongoDB, Redis, SSH, or SFTP from libraries with built-in SOCKS5 support.
- **Separate credentials per service.** Issue dedicated credentials for each app or environment and restrict them by source IP and destination host.

## How it works

```text
Your app
  ──(1. Auth + CONNECT/SOCKS5h target)──▶  Prontaro entry node (:443 / :8080 / :1080)
                                              │ checks password hash and From / To rules
                                              ▼
                                           Outbound TCP bound to 203.0.113.10
                                              │
  ◀════════════(2. End-to-end TLS / TCP byte stream)════════════▶  api.example.com:443
```

1. Your client connects to the Prontaro entry host and authenticates with the proxy login and password.
2. The Prontaro server verifies the password, enforces your From and To rules, and applies built-in destination blocks.
3. The server opens an outbound TCP connection strictly from your dedicated IPv4 and pipes bytes directly between your client and the target.

The host in your proxy URL is a permanent name for your IP, such as `cedar-k3x.prontaro.io`. It stays the same when we move your IP to another server or replace it, so keep this name in your settings rather than the IP address it resolves to.

### Three protocols, one credential set

Each credential set works on three endpoints:

| Protocol & port | URL scheme | When to choose |
| --- | --- | --- |
| **HTTPS `:443`** | `https://...` | Default choice: encrypts proxy login and password in transit to Prontaro |
| **HTTP `:8080`** | `http://...` | Only if your client does not accept `https://` proxy URLs (proxy login and password are sent unencrypted to Prontaro, while target HTTPS stays end-to-end) |
| **SOCKS5h `:1080`** | `socks5h://...` | For HTTP and TCP clients that support SOCKS5 |

> **Always use socks5h:// with the h**
>
> `socks5h://` sends the hostname to the Prontaro server for remote DNS resolution. Without the `h`, clients resolve DNS locally and send a bare IPv4 address — so domain rules in your **To** list will not match.

## Access rules: “From” and “To”

New proxy credentials start open for both sources and destinations. Configure either list on the **Access** tab of the credentials in the [dashboard](https://my.prontaro.com/ips):

- **From** — IPv4 addresses and CIDR blocks allowed to authenticate with these credentials.
- **To** — allowed destinations: an exact domain (`api.example.com`), a wildcard (`*.example.com`, matching apex and subdomains), an IPv4 address, or a CIDR block, with optional `:port`.

Both lists work as allowlists: while a list is empty, all traffic is allowed; once you add entries, only matching addresses or hosts pass. Narrowing a rule immediately drops open connections that no longer match. To revoke access right away, delete the credentials.

> **Destination rules do not replace rotation**
>
> **To** rules are an extra safeguard: on shared CDN IPs they cannot catch everything ([details](https://prontaro.com/docs/outbound/security.md)). If credentials leak, create a new set and delete the old one immediately.

## Setup and verification

Create your credentials and verify your outbound IP (`api.ipify.org`) first, and only then tighten the **To** list — otherwise the `api.ipify.org` test call will get `403`.

1. Open your IP under **IP addresses** in the [dashboard](https://my.prontaro.com/ips) and click **Create proxy credentials**.
2. Copy the `https://...:443` URL and test with `curl -fsS -x "$PRONTARO_PROXY_URL" https://api.ipify.org`.
3. Open the **Access** tab for those credentials:
  - Under **From**, add your server IPv4 address. Leave **From** open for serverless platforms with dynamic IPs.
  - Under **To**, add the partner domains and ports you call (for example, `api.example.com:443` and `*.partner.example.com:443`).
4. Click **Save** — rules take effect on Prontaro servers within seconds.

IP addresses Proxy credentials Access [Open in dashboard](https://my.prontaro.com/ips)

## Zero-downtime credential rotation

> **Changing the password in place drops active connections**
>
> The **Change password** button in the dashboard updates the *existing* credentials — Prontaro closes open connections within a few seconds, and your app receives `407` until you deploy the new password. For zero-downtime rotation in production, issue a second credential set.

1. Under **IP addresses** in the [dashboard](https://my.prontaro.com/ips), create a second set of credentials (for example, `billing-v2`) with the same **From** and **To** rules.
2. Deploy the new URL to your app and confirm requests succeed.
3. Delete the old credentials (`billing-v1`).

IP addresses Proxy credentials [Open in dashboard](https://my.prontaro.com/ips)

## Protocol details and timeouts

- **IPv4 and TCP only:** connections to direct IPv6 addresses are rejected, and SOCKS5 `UDP ASSOCIATE` and `BIND` are not supported.
- **HTTP request form:** `CONNECT` works for allowed `host:port`, and standard HTTP works for `http://`. HTTPS traffic must use `CONNECT` — sending a plain `GET https://...` without `CONNECT` is rejected with HTTP `400`.
- **Timeouts:** the dial timeout to the target host is 10 seconds; idle streams stay open via TCP keepalive; half-closed streams close if the remaining side stays silent for 10 seconds after the other side closes.
- **Shared quotas and blocks:** concurrent connection caps, proxy credentials and Relay URLs per IP, monthly traffic, and built-in blocks (private networks, SMTP `25`, `465`, `587`) are listed on [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md).

## FAQ

### How do I see why “proxy tunnel failed” happened?

1. Open [Logs](https://my.prontaro.com/journal) in the dashboard — refusals from your From/To rules or built-in destination blocks appear immediately in plain language, with one-click buttons to add the IP or host to your allowlist.
2. If nothing appears in Logs (invalid logins and passwords are not logged), run `curl -v` with the `http://` line of your credentials:

```bash
curl -v -x "http://k7m2x9q4p1ab:s3cr3t...@<entry>.prontaro.io:8080" https://api.example.com
```

The proxy’s HTTP status line shows the exact reason: invalid credentials (`407 access_denied`), blocked source IP (`403 source_denied`), destination not in the To list (`403 target_denied`), built-in destination block (`403 destination_denied`), concurrent connection cap (`429 connection_limit`), or exhausted traffic allowance (`403 volume_exhausted`).

If the response comes from a different IP, the program is not using the proxy — check that the credential string is set for that program. If the request hangs with no response, check the host, the port, and your outbound firewall.

### Can Prontaro see my HTTPS traffic?

No. With `CONNECT` (ports `443` and `8080`) and `socks5h://`, TLS is negotiated directly between your app and the destination. Prontaro only sees `host:port`, timing, and byte counts — never request bodies or headers.

### How do I protect credentials on serverless platforms?

Leave **From** open since serverless source IPs change, and restrict **To** to the exact partner domains and ports you call (for example, `api.example.com:443`).

## Next steps

- [HTTP clients](https://prontaro.com/docs/languages/) — copy-paste snippets for Node.js, Python, Go, PHP, and Java.
- [Relay URLs](https://prontaro.com/docs/outbound/relay.md) — route HTTPS calls from your static IP when a platform cannot set `HTTP_PROXY`.
- [Local port forwarding (prontaro forward)](https://prontaro.com/docs/outbound/forward.md) — connect database drivers and TCP tools that lack SOCKS5 support.
- [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md) — concurrent connection limits, proxy credentials and Relay URLs per IP, and monthly traffic.
