Skip to main content

Access restricted

The tunnel address opens this page (it is shown in Russian only):

Доступ ограничен
Код ошибки: 403

Разработчик предпочел ограничить доступ к ресурсу для вашего IP-адреса 203.0.113.10, свяжитесь с ним для получения доступа.

In English: "Access restricted. Error code: 403. The developer has restricted access to this resource for your IP address 203.0.113.10. Contact them to get access."

This is not a failure: the tunnel is closed to outsiders by its startup flags or rules. What the response looks like depends on the protection method.

Cause​

Password​

The tunnel was started with the --basic-auth flag. The browser asks for a username and password. If the visitor doesn't enter them or enters wrong ones, a page with the 401 status opens:

Доступ ограничен
Код ошибки: 401

Разработчик предпочел ограничить доступ к ресурсу, свяжитесь с ним для получения доступа.

In English: "Access restricted. Error code: 401. The developer has restricted access to this resource. Contact them to get access."

IP address or User-Agent​

The tunnel was started with the --cidr-allow or --cidr-deny flags, and the visitor's IP address didn't pass the check. The page has the 403 status — as in the example at the top, with the visitor's IP address.

The same page, but without an IP address, appears when the User-Agent doesn't match the --ua-allow or --ua-deny flags.

The tuna client on the machine running the tunnel runs these checks, so the request never reaches the application.

Team IP policy​

A team admin has denied access to the team's tunnels from the visitor's subnet in IP policies. The Tuna server runs this check, and its 403 page looks different:

Доступ запрещен
Код ошибки: 403

Доступ к туннелю с вашего IP-адреса 203.0.113.10 запрещен, попробуйте написать разработчику.

In English: "Access denied. Error code: 403. Access to the tunnel from your IP address 203.0.113.10 is denied. Try contacting the developer."

Sometimes a short IP not allowed response with the same status comes back instead of the page.

Key or webhook signature​

The tunnel was started with the --key-auth or --verify-webhook flag, and the request has no valid key in the X-Token header or no valid webhook signature. The response is plain text with the 401 status:

Unauthorized

Traffic policy​

A rule in the tunnel's traffic policy denied the request: the deny, restrict_ips, basic_auth, or verify_webhook action. The response has an empty body: 403 for deny and restrict_ips, 401 for basic_auth and verify_webhook. You can also set a different status for deny.

What to do​

  1. Check the flags the tunnel was started with and the traffic policy rules.
  2. To let the visitor in, add their subnet to --cidr-allow, or give them the username and password from --basic-auth or the key from --key-auth.
  3. If the team IP policy blocked the request, ask a team admin to adjust it in the dashboard.
  4. For webhooks, check that the secret in --verify-webhook-secret matches the one set at the provider.

If the tunnel isn't yours and someone sent you the link, ask them for access and tell them your IP address if the page shows it.