Skip to content

What is Farstu? ​

Farstu is Swedish for a house's entrance hall: the space between your home and the outside world.

Farstu makes the apps on your home server reachable from anywhere. You flip a switch next to an app, for example Immich, and it opens at https://<app>.<you>.farstu.app from any network, including from the app's own phone app. You don't buy a domain, set up DNS, open ports on your router or use a terminal after installing.

Farstu is a plugin for what you already run (CasaOS first, any Linux server with Docker works), not a new operating system.

Beta

Sign-up needs an invite code. Join the beta.

How it works ​

Three parts:

  • Farstu Client (open source) runs on your server. It finds apps, holds the certificate and decides which apps are reachable.
  • The relay is stock frp. Your server connects out to it, so it works behind CGNAT and without opening ports.
  • Farstu Server handles accounts, DNS and tells the relay which server may serve which hostnames.

Step by step ​

Every 🔒 is a security check: anything that fails it is refused right there. Green runs on your server, blue is Farstu.

1. Your server opens a tunnel when the client starts. There is one tunnel for all your apps. On the free plan it only carries the apps that are on, so turning an app on or off reconnects it and these checks run again.

2. A visitor opens an app (on every connection)

WebSockets, large uploads and long-lived connections work through all of this.

Connecting a server ​

The client uses a device code (RFC 8628), the same flow as signing in to a TV. You approve the code in your browser; the client gets a subdomain, a device token and the relay's certificate. The server stores only a hash of the token, and the token only travels over verified TLS.

The certificate ​

The client gets one wildcard certificate, *.<you>.farstu.app, from Let's Encrypt using a DNS-01 challenge: Farstu Server only publishes the TXT record the client asks for. The private key is created on your server and never leaves it. A wildcard also keeps your app names out of public certificate logs, which bots scan for targets.

Turning off ​

Off removes the app from the client's routing table and closes its open connections. Nothing depends on DNS or the relay, so it's immediate.

What the relay enforces ​

The client is open source, so limits can't be trusted to it. On every login, tunnel and visitor connection, the relay asks Farstu Server. A server can only claim its own subdomain, the free plan's 2 apps and speed cap are enforced there, and a disconnected server stops serving at once.

Finding apps ​

The client watches Docker through its socket and matches container images against recipes. A recipe says which port the app uses, how to check its setup is finished, and where its sign-in is, so failed logins can be rate limited.

Principles ​

  • No extra login. Apps keep their own, so phone apps keep working.
  • Off is instant. Enforced on your server, not via DNS.
  • Default off. Apps start off, unknown hostnames are refused, and if the client stops nothing is reachable.
  • Your keys stay home. TLS terminates on your server.

Security ​

You own your apps and their passwords. Farstu secures the tunnel and steps in where exposing an app would make it unsafe:

  • Apps whose first visitor becomes admin can't be turned on until set up.
  • Sign-in attempts are rate limited per visitor.
  • Apps that skip login for local addresses aren't supported: through Farstu, every visitor looks local.