Private Access
Private access puts your panel server on your own private network: Tailscale, or Headscale (the open-source Tailscale control server) with the same client. Admins then reach the panel over that network instead of the open internet. NetBird follows in a later release.
What this release includes. This release covers the server side: a root script installs the network client, joins your network with a one-time key and keeps the server's settings safe. The Settings → Private access page and the private hostname with its own certificate come in the next releases. Nothing public is removed: your panel stays reachable on its public address.
Private access is part of every edition, Free included.
What it costs
- Tailscale: the free Personal plan is for non-commercial use only. An MSP or hoster using it for customer work needs a paid plan. The panel does not give you a Tailscale licence.
- Headscale and self-hosted NetBird: no licence fee. You run the control server yourself.
Step 1: Paste the access policy
In your Tailscale admin console (Access controls) or your Headscale policy file, add:
{
"tagOwners": { "tag:aap-panel": ["group:admins"] },
"acls": [
{ "action": "accept", "src": ["group:admins"], "dst": ["tag:aap-panel:443"] }
]
}
Your admins reach the panel on port 443. The panel server reaches nothing on your network: there is deliberately no rule with tag:aap-panel as the source. A new Tailscale network allows everything until you save a policy, so do this first.
Step 2: Make a one-time key
- Tailscale: Settings → Keys → Generate auth key: not reusable, pre-approved, tag
tag:aap-panel, expires in 1 day. - Headscale:
headscale preauthkeys create -u <user> -e 1h --tags tag:aap-panel. Headscale takes the tag from the key.
Step 3: Join
On the server, over SSH:
sudo /opt/aiadminpanel/aap-private-access.sh apply --network headscale \
--login-server https://headscale.example.com --auth-key-stdin
Paste the key, press Enter, then Ctrl-D. For Tailscale, use --network tailscale and leave out --login-server. The key is used once and never stored or shown. It is never written to a file the panel can read, never put in a log, and never in a backup.
The script installs the client from Tailscale's package repository when it is missing (Rocky, Alma, RHEL, Fedora, Debian, Ubuntu). It joins with your network's DNS and routes not accepted, so Docker keeps working as before. It turns off SSH, exit nodes, routes, Serve, Funnel and the web client, and refuses any option that would turn them on. A timer checks every 5 minutes and turns them off again if someone switched them on by hand.
Step 4: Check
sudo /opt/aiadminpanel/aap-private-access.sh status
It prints connected: aap-panel 100.x.y.z, or the reason it is not connected.
What changes in the firewall
- Customer apps can never reach your private network's devices. This is always on, whether or not you use private access.
- With private access on, a connection that claims to come from your private network (an address in
100.64.0.0/10) reaches the panel only if it really arrived over that network. A forged address on the public side is dropped. - If your provider's load balancer sends traffic from
100.64.0.0/10, it cannot reach the panel while private access is on.
Turn it off
sudo /opt/aiadminpanel/aap-private-access.sh remove
This logs the server out of your network, stops the client and removes the firewall rule for private access. Then delete the device in your Tailscale admin console, or run headscale nodes delete.