Local port forwarding (prontaro forward)
Any database driver, SFTP client, or CLI binary that lacks proxy support can still reach remote servers from your dedicated static IPv4 through a local TCP port.
On this page12
prontaro forward listens on 127.0.0.1 and relays every connection to a remote host:port from your fixed IP without decrypting TLS, SSH, or database protocols. Your client connects to 127.0.0.1:<port> as if the service were local.
Prerequisites
- A Dedicated or Pro plan with an IP added under IP addresses.
prontaro CLIinstalled and signed in (prontaro login), orPRONTARO_KEYset in your container or CI environment.
Quick start
Forward local port 15432 to an allowlisted PostgreSQL server at db.example.com:5432 (omit --ip if you have only one static IP):
prontaro forward 15432 db.example.com:5432 --ip 203.0.113.10prontaro forward 15432 db.example.com:5432
127.0.0.1:15432 → db.example.com:5432 from your IP 203.0.113.10In another terminal, connect with psql to 127.0.0.1:15432:
psql "postgresql://app@127.0.0.1:15432/prod?sslmode=require"Containers, sidecars, and scripts
- Authenticate with the
PRONTARO_KEYenvironment variable. - Pass
--no-inputto disable prompts and--jsonfor structured logs onstderr. - On a startup refusal,
forwardexits right away with a non-zero code, so run the container under a restart policy (docker run --restart unless-stoppedorrestart: unless-stoppedin Compose). - When
forwardruns as a sidecar container for neighboring services, pass--listen 0.0.0.0(by default it listens only on127.0.0.1):
PRONTARO_KEY="$PRONTARO_KEY" prontaro forward 15432 db.example.com:5432 --listen 0.0.0.0 --no-input --jsonIn non-TTY scripts, forward prints <listen_addr> (for example, 127.0.0.1:15432) to stdout once the local listener is ready.
How it works
Your app / psql / mongosh
──(1. TCP to 127.0.0.1:15432)──▶
prontaro forward (local CLI process)
──(2. TLS 1.2+ with HTTP CONNECT on :443)──▶
Prontaro entry node
──(3. TCP bound to 203.0.113.10)──▶ db.example.com:5432On first launch, prontaro obtains proxy credentials for your IP automatically. Traffic runs through your IP’s HTTPS proxy, and client TLS passes to the remote server without decryption.
Resilience, credential rotation, and background service
- Starts without the API: after the first launch, credentials and IP selection stay cached locally, so
prontaro forwardconnects straight to the Prontaro server even if the dashboard or API is temporarily unreachable. - Automatic reconnect: during a server switch or restart, the local port
127.0.0.1:<port>stays open. Active streams drop, and new local connections wait and connect once the server responds. - Credential rotation: run
prontaro forward <port> <host:port> --new-credentialsto issue fresh credentials (existing From and To access rules are preserved). - Background service (Linux and macOS):
prontaro service install -- forward 15432 db.example.com:5432 --ip 203.0.113.10. On Windows, run it in a terminal or via Task Scheduler (Windows setup).
Limits and notes
- TCP over IPv4 only. By default the listener binds to
127.0.0.1(override with--listen <addr>). UDP and direct IPv6 destination addresses are not supported. - Not part of
prontaro run.prontaro runmanages inbound tunnels only; start eachforwardprocess or service individually. - Same caps as the HTTP proxy. Outbound connection caps, monthly traffic, and built-in destination blocks apply identically (see Usage, limits & quotas).
FAQ
Does prontaro forward count toward the per-IP proxy credential limit?
Yes. forward creates one managed credential set per CLI token and IP — visible in the dashboard (for usage and To rules). Multiple forward commands with the same token and IP reuse it.
Why does forward say “waiting for them to reach the server”?
On first launch (or with --new-credentials), new proxy credentials take a few seconds to reach Prontaro’s servers. prontaro forward holds incoming local connections for up to 15 seconds while waiting so your client connects as soon as the server accepts them.
Why do I see This account has no dedicated IPv4 address?
prontaro forward requires an allocated static IPv4 on Dedicated or Pro. Add an IP under IP addresses first.
What to check if prontaro forward doesn’t connect?
Make sure the prontaro forward process is running. If the connection hangs, check the address, the port, and the firewall. Refusals from the Prontaro server, such as from the To list, show up in Logs.
Next steps
- Connect to MongoDB Atlas — step-by-step cloud database connection from a dedicated IP.
- Background services (Linux & macOS) — run
prontaro forwardas a persistent OS service. - SSH, SFTP, and databases behind NAT — end-to-end outbound and inbound setups for SSH, SFTP, and databases.
- TCP tunnels — accept inbound TCP connections from the internet onto your local server.
- HTTP & SOCKS5 proxy — connect directly without running a local CLI when your client supports proxies.
Something wrong on this page? Contact us