Skip to content
Sections

Access control & firewalls

Lock down tunnels with IPv4/CIDR allowlists and add Basic Auth passwords to HTTPS endpoints — unauthorized traffic is stopped on the Prontaro server before reaching your machine.

On this page8

Access rules are available on every plan, including Free, and can be edited in the dashboard or via prontaro CLI. By default, HTTPS tunnels start open and TCP ports start closed; rejected requests and packets never count toward your monthly traffic allowance.

How it works

Access rules are stored in your account, so you can edit them even while the CLI is stopped and they persist across restarts. Changes take effect across Prontaro servers within seconds without restarting the tunnel:

text
Incoming request / TCP SYN
       │
       ▼
Prontaro server
  ├─ TCP allowlist: kernel filter drops unlisted IPs before TCP accept
  ├─ HTTPS allowlist: returns 403 before forwarding to prontaro CLI
  └─ HTTPS Basic Auth: checks credentials and strips the Authorization header
       │  only allowed traffic crosses the tunnel and counts toward your monthly allowance
       ▼
prontaro CLI  ──▶  Local service

Default modes for HTTPS and TCP

Tunnel type Default access Empty allowlist behavior Basic Auth
HTTPS Open to everyone Opens access to everyone Supported (multiple logins)
TCP (shared or dedicated IP) Closed to everyone Closes port to everyone —

On a dedicated IPv4, per-port TCP allowlists act as your IP’s firewall: rules survive restarts, and connections from unlisted addresses are dropped before a TCP handshake completes.

IPv4 allowlists

In the dashboard
  1. Open the tunnel under Tunnels and switch to the Access tab.
  2. Add or remove IPv4/CIDR entries, or click Open to everyone.
  3. Rejected HTTPS attempts appear in Logs and the tunnel’s real-time request feed—you can allow a blocked IP in one click straight from a log entry.
TunnelsAccessOpen in dashboard
In the terminal (CLI)

Inspect current rules and allow a single IPv4 address plus an office subnet:

Check rules and allow IPv4 / CIDRbash
prontaro access pg-prod
prontaro access pg-prod allow 198.51.100.7 203.0.113.0/24
Outputtext
pg-prod · closed
✓ pg-prod now open only to 198.51.100.7/32, 203.0.113.0/24 (was: closed); takes effect within seconds.

If your ISP rotates your dynamic IP, add the new address with allow and remove the old one:

Remove an IP, close a TCP port, or open to everyonebash
# Remove one address
prontaro access pg-prod remove 198.51.100.7

# Close a TCP tunnel to everyone immediately (TCP only)
prontaro access pg-prod close

# Open to everyone (prompts for confirmation; add --yes in scripts)
prontaro access demo public --yes

Basic Auth passwords (HTTPS tunnels)

HTTPS tunnels support one or more Basic Auth logins on their own or layered with an IP allowlist. After verifying the password, the Prontaro server strips the Authorization header so Prontaro credentials never leak into your app logs.

Basic Auth logins are managed in the dashboard (you can see whether password protection is enabled in prontaro ls and prontaro access <tunnel>):

  1. Open the HTTPS tunnel under Tunnels in my.prontaro.com and switch to the Access tab.
  2. Under Basic Auth, click Add login, enter a username (for example, reviewer), and either type your own password or let Prontaro generate one.
  3. You can reveal existing passwords at any time or remove individual logins without affecting the rest. To rotate a password without downtime, add a second login, update your clients to use it, and then remove the old login.
TunnelsAccessOpen in dashboard

Limits and notes

  • Active connections are re-checked immediately. Tightening an IP rule or revoking a login drops open connections that no longer match; allowed connections stay up.
  • Allowlists only, IPv4 only. Deny lists are not supported. Rules accept single IPv4 addresses (stored as /32) and IPv4 CIDR blocks.
  • close is TCP-only. On HTTPS, an empty list opens access to everyone (pass --yes in scripts when removing the last IP). To restrict an HTTPS tunnel, specify allowed addresses with allow or stop it with prontaro stop.
  • Local apps that use Basic Auth. Because the Prontaro server strips Authorization after verifying its tunnel password, use an IP allowlist instead if your local app requires its own Basic Auth.

FAQ

Why don’t blocked TCP connection attempts appear in Logs?

When a TCP tunnel has an allowlist or is closed, unlisted packets are dropped by the edge kernel filter before a TCP connection is established. Because no connection is accepted, it does not clutter Logs or reach your local service.

Next steps

Something wrong on this page? Contact us

Contact us

Enter your email so we can reply.Enter a valid email, e.g. name@company.example.
Tell us what you need or what went wrong.up to 2,000 characters

Sent! We’ll reply to .

Or email us at support@prontaro.com