Skip to content

Admin Remote Failfix

github-actions[bot] edited this page Apr 14, 2026 · 1 revision

Admin Remote Fail-Fix Playbook

Common issues with nself admin connect and their fixes.

Tunnel drops every 5 minutes

Cause: SSH keepalive not configured.

Fix: Add to ~/.ssh/config:

Host *
    ServerAliveInterval 30
    ServerAliveCountMax 3

The CLI passes ServerAliveInterval=30 automatically, but the SSH config override ensures it works for manual connections too.

Audit rows missing

Cause: Middleware ordering. The audit middleware must be the last middleware before the handler.

Fix: Check the admin server middleware chain. Audit middleware captures response status and duration, so it must wrap the final handler:

auth -> ACL -> [other middleware] -> audit -> handler

If audit is before ACL, rejected requests may not be logged. If audit is after the handler, it never runs.

Admin port bound to 0.0.0.0

Cause: Configuration defaults to all interfaces instead of localhost.

Fix: Search for the misconfiguration:

grep -r "0.0.0.0:3021" admin/

Replace every instance with 127.0.0.1:3021. The admin UI must never be network-accessible. External access goes through the SSH tunnel only.

The AdminPortExternallyReachable alert fires if the port is reachable from outside, with P1 severity after 5 minutes.

Home


Getting Started


Commands


Features


Configuration


Plugins (87 + 10 monitoring)

Free (25)
Pro (62)
Planned (26)
  • plugin-audit
  • plugin-blog
  • plugin-checkout
  • plugin-commerce
  • plugin-drm
  • plugin-export
  • plugin-flow
  • plugin-import
  • plugin-ldap
  • plugin-mailgun
  • plugin-media
  • plugin-oauth-providers
  • plugin-pages
  • plugin-postmark
  • plugin-rate-limit
  • plugin-reports
  • plugin-saml
  • plugin-scheduler
  • plugin-sendgrid
  • plugin-sso
  • plugin-subscription
  • plugin-thumb
  • plugin-transcoder
  • plugin-twilio
  • plugin-waf
  • plugin-watermark

Guides


Architecture


Reference


Licensing


Security


Brand


Operations


Contributing


Admin


Changelog

Clone this wiki locally