Nordray Tunnel
Open source. Apache 2.0 licence.

HTTP tunnels in your own bunny.net account

Nordray Tunnel publishes a service on a private network, for example on your laptop or in your office. Visitors get access through Bunny CDN and Shield. All parts operate in your own bunny.net account.

Nordray logo: a white rabbit that jumps below the northern lights

Why

With a hosted tunnel service, all traffic to your service goes through the relay of a third party. You also need an account and a subscription with that third party.

Nordray Tunnel puts the relay in your own bunny.net account. There is no Nordray relay, no Nordray account, no telemetry and no Nordray invoice. You pay bunny.net directly for the resources that you use.

How it works

The relay and the agent are unmodified frp. The relay operates in Magic Containers. The agent operates near your service and connects to the relay.

VisitorA visitor opens the public hostname of your service with HTTPS.
Bunny CDN and ShieldA pull zone with a web application firewall receives the request.
RelayThe relay finds the agent of the hostname and sends the request through the tunnel.
Agent and serviceThe agent gives the request to your service on the private network.
  1. You make the installation

    nordray-tunnel setup shows the resources and the costs. When you accept, it makes the relay and the pull zones in your account.

  2. You add a service

    nordray-tunnel add connects a hostname to a local address. If your domain is in Bunny DNS, it makes the DNS record. If not, it shows the record to make.

  3. You start the agent

    nordray-tunnel run starts the agent. The agent does not need your bunny.net API key.

  4. Visitors get access

    Requests go through Bunny CDN, Shield and the relay to your service. nordray-tunnel status --remote shows the state of the installation.

Security model

Visitor traffic always goes through Bunny CDN and Shield.

Shield in front of each service

The web application firewall operates in blocking mode, with DDoS protection. Visitors cannot send requests to the relay directly.

Unknown hostnames get 404

The relay answers 404 for each hostname that no agent has registered.

Verified TLS to the relay

The agent always verifies the certificate of the relay. The generated configuration always includes the CA certificates.

Secrets in the credential store

The bunny.net API key and the tunnel token are in the credential store of your operating system. The API key does not go to the relay or to the agent.

Services are public

Nordray Tunnel does not add a login. Each person who knows the hostname can get access. Protect private services with their own login or with Nordray Access.

One token, trusted operators

All agents of an installation use the same token. Each holder of the token can register hostnames. This is not tenant isolation.

Two transports

The agent connects to the relay in one of two ways. You select the transport when you make the installation.

TransportHow the agent connectsFixed cost
wss (default)WebSockets on port 443, through a pull zoneNone
anycastfrp TLS on port 7000, to an Anycast IPv4 addressOne IPv4 address, for all agents and services

Run it

The nordray-tunnel command is available for Linux, macOS and Windows. It installs a verified frp agent and manages the relay through the bunny.net API. The instructions and the cost details are in the repository.

Get the source code on GitHub

Also from Nordray: Access

Nordray Access puts a login in front of your web application at the Bunny CDN edge. You do not change your application code.

Read about Nordray Access