Access & Authentication
Reaching the dashboard, the first-launch security flow, and every layer that can sit between an attacker and the host: password + TOTP, JWT sessions, long-lived API tokens, HTTPS, reverse proxies, Secure Gateway, and the optional Fail2Ban jail.
Access is decided on the first visit
Reaching the dashboard
ProxMenux Monitor listens on TCP 8008 on all interfaces (::, IPv4 and IPv6). There are three common ways to reach it:
# 1) Direct on the LAN
http://<proxmox-ip>:8008
# 2) Behind a reverse proxy with a dedicated host name (recommended off-LAN)
https://monitor.example.com
# 3) Through Secure Gateway (Tailscale) — same LAN URL, from anywhere
http://<proxmox-lan-ip>:8008 # works from any device on your tailnetDirect access matches the default systemd unit. Reverse-proxy and Secure Gateway access are described below. Trust for client IPs in X-Forwarded-For requires PROXMENUX_TRUST_PROXY=1 and a proxy you control. The presence of X-Forwarded-Proto or X-Forwarded-Host alone does not enable proxy trust. On ports 80/443 the frontend uses relative /api/* URLs; on any other port it calls port 8008 on the same host name.
First-launch flow
On the first visit the dashboard calls GET /api/auth/status. While no access mode has been chosen, the dialog "Protect Your Dashboard?" appears with the following choices:

| Button | What happens | API call |
|---|---|---|
| Yes, Setup Password | Opens the form that creates the first local account, an Administrator, with optional display name and avatar image, and signs it in. | POST /api/auth/setup |
| Use Proxmox VE accounts | Offered under the same form. The users and realms of Proxmox VE sign in without a local account of the Monitor; see Proxmox VE accounts below. | POST /api/auth/mode |
| No, Continue Without Protection → Use read-only | Anyone who reaches the Monitor sees it but cannot open terminals, run scripts or change anything. Readings that contain secrets, such as process command lines and the cloud-init password of a guest, are hidden. | POST /api/auth/mode |
| No, Continue Without Protection → Open without a password | Anyone who reaches the Monitor gets full control of the server, root terminal included. | POST /api/auth/mode |
The setup code
The installer of a new installation writes a one-time code to /usr/local/share/proxmenux/monitor-setup-code (mode 0600) and prints it at the end of the installation. Every choice of the first-visit dialog asks for it, and the first decision consumes it. menu → Settings → Show Monitor Setup Code shows the code, or creates a new one when there is none. Leaving read-only mode also asks for a setup code. An update of an existing installation keeps the access mode already in use and creates no code.
Access modes
Security → Access & Authentication shows the mode in use:
| Mode | Who gets in and what they can do |
|---|---|
| Local accounts | Each user signs in with username, password and optional 2FA, and gets the profile an administrator assigned. Proxmox VE accounts and OpenID Connect can sign in alongside. |
| Proxmox VE accounts | Users of Proxmox VE sign in with their realm and second factor, and there is no local account. A Proxmox VE user with Sys.Modify on /, such as root@pam, administers the Monitor. |
| Read-only | Anyone who reaches the Monitor sees it, with the permissions of the Observer profile and without secrets. |
| Open | Anyone who reaches the Monitor administers it, root terminal included. |
2FA is configured later, not here
Creating the first user
Clicking Yes, Setup Password opens a single form that creates the account and, optionally, seeds the user's profile in one go so the avatar appears in the header right after saving. The fields are:
| Field | Required | Notes |
|---|---|---|
| Username | Yes | The login identifier. Cannot be changed later from the UI; editing it requires touching auth.json directly. |
| Password | Yes | Minimum 10 characters, with at least 3 of the 4 categories (lowercase, uppercase, digit, symbol). A short list of obvious passwords (password, 12345678, proxmenux…) is rejected outright. The same rules are enforced server-side, so a curl call cannot bypass the front-end check. |
| Display name | No | Friendly label shown in the header dropdown and on the profile page. Falls back to the username when empty. Can be changed later from Avatar → View profile. |
| Avatar image | No | PNG, JPEG, WebP or GIF up to 2 MB. Rendered as a circle in the header and on the profile page. When empty, the header shows the first letter of the display name (or username) on a coloured circle. Can be uploaded, replaced or removed later from the profile page. |

One save, three API calls under the hood
POST /api/auth/setup first (username + password). On success it uses the freshly-issued JWT to follow up with PUT /api/auth/profile (display name) and POST /api/auth/profile/avatar (avatar bytes) if those fields were filled. Failures on the profile calls are non-fatal — the account is already created and you can finish the profile later from the dedicated page.Avatar menu and profile page
Once authentication is configured, an avatar circle appears at the top-right of every dashboard page next to the theme toggle. Clicking it opens a small dropdown with shortcuts to the profile page and the Security tab, plus a Sign out action — closing the session can be done from here or from the Security tab, whichever is closer to where you are.
The profile page itself is a small card with an avatar preview, the username (read-only), and the display name with an inline edit button. Avatar uploads, replacements and removals are atomic — the header avatar refreshes automatically when any of them succeed, so there is no need to reload the page. The same set of endpoints documented in the next section are used by both the create-user form and the profile page.

| Endpoint | What it does |
|---|---|
| GET /api/auth/profile | Returns the current username, display name and whether an avatar is set (has_avatar, avatar_mtime). |
| PUT /api/auth/profile | Updates the display name. Body: { "display_name": "..." }. |
| GET /api/auth/profile/avatar | Returns the avatar bytes (PNG / JPEG / WebP / GIF) with the matching content type. Requires the Bearer header — the front-end fetches it as a blob and converts to a local object URL for rendering. |
| POST /api/auth/profile/avatar | Uploads a new avatar (max 2 MB). Content type must match the file. Old avatar is replaced atomically. |
| DELETE /api/auth/profile/avatar | Removes the avatar. The header falls back to the initial-on-coloured-circle placeholder. |
Changing the access mode
Password authentication
After setup, protected API calls require a JWT in Authorization: Bearer <token>:
- Session token (login): 24-hour expiration. Issued by
POST /api/auth/login. - API token (integrations): 365-day expiration. Issued by
POST /api/auth/generate-api-token. Documented separately in the next section.

Login flow
# Without 2FA
curl -X POST http://<host>:8008/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"<user>","password":"<password>"}'
# Response
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIs..."
}With 2FA enabled, the same call returns requires_totp: true first. Re-issue with the 6-digit code:
curl -X POST http://<host>:8008/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"<user>","password":"<password>","totp_token":"123456"}'Public endpoints (no token)
Login, authentication status, initial setup and the lightweight /api/system-info endpoint are public:
/api/auth/loginand/api/auth/statusare public./api/auth/setupcreates the initial account and rejects attempts to overwrite existing credentials./api/system-infoanswers without a token withhealth.statusonly; the host name, uptime and the rest of its fields need a session or a token. /api/auth/status is another public endpoint suitable for a reachability check.
Cryptography and storage
ProxMenux Monitor is open source — none of this is secret. Documenting the stack here explicitly is a deliberate choice: users who store credentials on their host deserve to know how those credentials are protected before they decide to trust them. The algorithms below are the same ones the code in scripts/auth_manager.py uses; this section is a contract, not a marketing promise.
| Asset | Algorithm | Where it lives |
|---|---|---|
| Password | PBKDF2-HMAC-SHA256 with a per-password random salt and a high iteration count (OWASP 2023+ baseline). Stored as pbkdf2_sha256$<iters>$<salt>$<hash>. | auth.json → password_hash |
| Session / API JWT | HS256 signed with a per-install secret minted at first launch (secrets.token_urlsafe, ≥48 bytes). Tokens carry iss=proxmenux-monitor + aud=api claims; the signature is validated against the current secret on every request. | Secret: auth.json → jwt_secret. JWT itself: only on the client. |
| API token metadata | SHA-256 of the JWT stored alongside a signed_with fingerprint of the jwt_secret used to mint it — used to display the token in the UI and to detect tokens whose signing secret has been rotated. | auth.json → api_tokens[] |
| 2FA TOTP secret | Standard TOTP (RFC 6238), with a base32-encoded secret. The eight backup codes are single-use and stored as SHA-256 hashes. | auth.json → totp_secret + backup_codes[] |
| Revocations | When a token or session is revoked, its SHA-256 is added to a deny-list checked on every verification (mem-cached for ~30 s to avoid disk reads on the hot path). | auth.json → revoked_tokens[] |
auth.json — what it contains and how it's protected
/root/.config/proxmenux-monitor/auth.json, mode 0600, owner root. The file holds hashes (PBKDF2) and signing material (jwt_secret, totp_secret) — never a plaintext password. Treat it like any other root-only secret: if you back up or replicate the host, encrypt the destination, and never commit it to version control.Rotating jwt_secret invalidates all existing JWTs
auth.json is regenerated (manual delete, reinstall, restore from a backup with a different secret) the jwt_secret changes and every previously-issued JWT — both interactive sessions and long-lived API tokens — fails verification with "Invalid or expired token". The UI marks affected API tokens in red, with a badge telling you to revoke them and generate new ones; Home Assistant / scripts / any external client needs a fresh token after that.Recovering a lost password
There is no online "forgot password" flow — by design, since the dashboard runs on the user's own host and the recovery path is shell access to that host. ProxMenux ships a guided reset inside the configuration menu so you don't have to hand-edit auth.json:
# 1. Run the ProxMenux menu as root
menu
# 2. Settings → Reset ProxMenux Monitor Password
# The menu will:
# - Back up auth.json to auth.json.bak-<UTC timestamp>
# - Stop the proxmenux-monitor service
# - Remove every local user with their password, TOTP secret and
# backup codes, and turn off Proxmox VE accounts
# - Keep jwt_secret, api_tokens and the revocation list
# - Restart the service and print a new setup code
# 3. Open the dashboard at http://<host>:8008
# The first-visit dialog appears: enter the setup code and choose again.What survives the reset
jwt_secret, the registered api_tokens and the revocation list are kept, and the next account set up takes over the API tokens of the main administrator, so Home Assistant and other integrations that use them keep working. API tokens of the other users stop working with their users. For a fully clean slate (a new JWT secret and every token invalid), delete auth.json, restart the service and create a setup code with menu → Settings → Show Monitor Setup Code.Physical-access prerequisite
menu as root can already do anything on the box, so giving them password reset is not a privilege increase. The corollary: if you let an untrusted user reach the Proxmox shell, the Monitor login won't protect anything that user couldn't already destroy by other means.Users and profiles
With local accounts, the Monitor holds several users. Administrators manage them in Security → Users → Edit: add a user with a password and a profile, change profiles, set a new password, remove the 2FA of a user, and deactivate, activate or remove users. The first account is an Administrator.
| Profile | What it allows |
|---|---|
| Administrator | Everything, including users and profiles, the access mode and sign-in settings, SSL, firewall, Fail2Ban, notifications, host reboot and shutdown, Audit & Report, and readings that contain secrets. |
| Operator with terminal | Every page, and the five actions: run scripts and tools, control VMs and LXC, manage backups, update, and open terminals. |
| Operator without terminal | Every page, and the same actions except terminals. |
| Observer | Every page, without actions. |
| Custom | The areas and actions chosen one by one. |
Custom profile
A custom profile combines at least one area with any of the five actions. Administering is not part of a custom profile.
- Run scripts and tools: ProxMenux scripts, Lynis, SMART tests, audit runs and app deployments.
- Control VMs and LXC: start, stop and edit guests and their apps.
- Manage backups: backup jobs of the host and the guests, PBS servers, restores and archive downloads.
- Update: updates of the host, of ProxMenux, of LXC and of apps.
- Open terminals: terminals of the host, of LXC and of VMs.
The areas are the tabs of the dashboard: Overview, Apps, Menux, VMs & LXCs, Node (storage, network, hardware), Backup and System Logs. A tab outside the profile is hidden, and the server refuses its data. The header, the health status, the own account and the Security, Settings and About pages are available to every profile; Audit & Report is reserved to administrators.
Enforced by the server
Every API route requires a permission (AppImage/scripts/permissions.py). A request without it receives HTTP 403 with the missing permission in the permission field, and the refusal is recorded in the access activity. The dashboard hides the buttons a profile cannot use. Terminals, script runs, updates and downloads start with a short-lived ticket that carries the permissions of whoever requested it. A profile change applies to open sessions at once.
Passwords, 2FA, deactivation and API tokens
- Each user has their own password, 2FA, display name and avatar, and manages them from their own account.
- A new password, set by the user or by an administrator, ends the other sessions of that user. API tokens keep working.
- A deactivated user keeps their settings but cannot sign in, and their sessions and API tokens stop working until an administrator activates them again. A sign-in attempt by a deactivated user is answered as a wrong password.
- The Monitor keeps at least one active administrator: the last one cannot be removed, deactivated or given another profile, and no administrator can deactivate their own account.
- API tokens belong to the user who generated them and never do more than the profile of that user; a token with the read-only scope does no more than an Observer. Removing a user ends their sessions and API tokens, also if a user with the same name is created again.
What profiles cover
auth.json and with it every profile.Two-Factor Authentication (TOTP)
2FA adds a second factor on top of your password: a 6-digit code that rotates every 30 seconds, generated on a phone or password manager you control. Even if someone obtains the password, they still can't log in without the code from your device. ProxMenux Monitor implements the standard TOTP protocol (RFC 6238), so any authenticator app works.
Pick an authenticator app
If you already have a TOTP app, you can use it here. Common choices are listed below. Some are free and others require a subscription; supported platforms and backup methods also differ.
| App | Platforms | Notes |
|---|---|---|
| Google Authenticator | iOS, Android | The default for many users. Optional Google-account cloud backup. |
| Microsoft Authenticator | iOS, Android | Microsoft-account backup. Also handles MS push notifications if you use them at work. |
| Authy | iOS, Android | Encrypted sync across devices. The desktop app reached end of life on 19 March 2024 and is no longer supported. |
| Apple Passwords | iOS, iPadOS, macOS, visionOS, Windows (via iCloud) | Built into Apple OSes; standalone Passwords app since iOS 18 / macOS Sequoia. Stores TOTP next to the password and syncs across devices via iCloud Keychain. |
| Bitwarden | iOS, Android, desktop, browser | Open source. TOTP can be stored alongside passwords in the vault. Keeping both in the same vault is convenient, but does not provide separation onto a second device. |
| 1Password | iOS, Android, desktop, browser | Same idea as Bitwarden — TOTP integrated with the password vault. Subscription. |
| Aegis Authenticator | Android | Open source. Encrypted on-device backup file you control. No cloud, no account required. |
| Raivo OTP | iOS, macOS | Open source. Optional iCloud sync. The Apple-ecosystem counterpart to Aegis. |
| Ente Auth | iOS, Android, desktop, web | Open source. End-to-end encrypted cloud sync across devices. |
| 2FAS | iOS, Android, browser extension | Open source. Optional encrypted cloud backup; browser extension can autofill codes. |
| FreeOTP+ | Android | Open-source fork of FreeOTP for Android, with import/export features. No account required. |
What "backup" really matters for
Step-by-step setup from the dashboard

- Install the authenticator app on your phone (or open your password manager). One of the apps from the table above. You only need to do this once — the same app will hold codes for every service you protect.
- Log into the dashboard with your username and password.
- Open the Security tab in the dashboard sidebar, then click Enable 2FA and Start setup. The dialog shows a QR code and the manual key; the eight backup codes appear after the code is verified.
- Add the entry to the authenticator app:
- Easy path: in the app, tap Add account → Scan QR code, point the camera at the QR on the screen. The app names the entry automatically (something like
ProxMenux Monitor (your-username)) and starts showing a 6-digit code that refreshes every 30 seconds. - Manual fallback (when scanning isn't possible — e.g. setting up on the same phone you opened the dashboard with): tap Add account → Enter setup key. Type any name (e.g. Proxmox Monitor), paste the Base32 string from the dialog, leave Type as Time-based, save.
- Easy path: in the app, tap Add account → Scan QR code, point the camera at the QR on the screen. The app names the entry automatically (something like
- Confirm by typing the current 6-digit code from the app into the "Verification code" field of the setup dialog and submit. Codes refresh every 30 seconds, so if it expires while you're typing, just enter the next one.
- Save the backup codes. After verification, store all eight safely in a password manager, encrypted note or secure printed copy. Each works once if your authenticator is unavailable.
- Done. 2FA is now active. Next time you log in, the dashboard asks for the password first; once it's accepted it asks for the current 6-digit code.
Test before logging out
auth.json from the host shell.Lost authenticator
Three escape hatches, in order of how disruptive they are:
- Use a backup code. Enter one of the eight saved codes in the TOTP field. It works once; unused codes remain valid. After logging in, open Security, choose Disable 2FA and then Enable 2FA to obtain eight new codes.
- Restore the authenticator from cloud / backup. If your app has a cloud sync (Google, Microsoft, Authy, Apple Passwords via iCloud Keychain, Ente, 2FAS) install it on a new device, sign in, and the entries reappear. If your app uses an encrypted export file (Aegis, Raivo, FreeOTP+), install the app on the new device and import the file.
- Disable 2FA from the host shell. When the previous options aren't available, edit
/root/.config/proxmenux-monitor/auth.jsonon the Proxmox host (you need root SSH or console access), settotp_enabledtofalse, save, and restart the service:systemctl restart proxmenux-monitor.service
You can log in with username + password only, then re-enable 2FA from Settings.
Disable 2FA
Open Security and choose Disable 2FA. POST /api/auth/totp/disable requires the current password and a valid TOTP or backup code. It removes the TOTP secret and backup codes. Remove the old entry from your authenticator app too.
The 6-digit code is always rejected
- Phone: Settings → Date & Time → automatic / network sync ON.
- Proxmox host:
timedatectl status— "System clock synchronized: yes" should be visible. If not,timedatectl set-ntp trueand wait a minute.
API tokens (long-lived)
Browser sessions expire after 24 hours. For unattended integrations (Homepage widgets, Home Assistant sensors, Grafana scrapers, Uptime Kuma probes…) you generate a separate API token that lives 365 days. The token is a JWT signed with the same secret as the session token, but its token_name claim makes it easy to track and revoke individually.

Generate a token
From the dashboard:
- Open Admin → Security → API Tokens and click Generate new token.
- Type a descriptive name (e.g. "Home Assistant").
- Re-enter your password. If 2FA is on, also the current 6-digit code.
- Click Generate token. The token appears once: copy it immediately.
From the command line:
curl -X POST http://<host>:8008/api/auth/generate-api-token \
-H "Authorization: Bearer <session-token>" \
-H "Content-Type: application/json" \
-d '{
"password": "<your-password>",
"totp_token": "123456",
"token_name": "Home Assistant"
}'
# Response — the "token" field is the only place the token appears.
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_name": "Home Assistant",
"expires_in": "365 days"
}Use a token
curl -H "Authorization: Bearer <api-token>" \
http://<host>:8008/api/systemRevoke a token
From the panel above: each row has a Revoke action that adds the token hash to revoked_tokens in auth.json. Revoked tokens fail validation immediately on the next request.
# Same operation via API
curl -X DELETE http://<host>:8008/api/auth/api-tokens/<token-id> \
-H "Authorization: Bearer <session-token>"Token security cheat-sheet
- Store tokens in your integration's native secrets store — Homepage
secrets.yaml, Home Assistant!secret, environment variables, etc. Never commit them to git. - One token per integration, named after the consumer. Revoke individually when retiring an integration.
- Rotate every 6–12 months. The expiry is a hard limit, not a recommendation.
Full storage best-practices and integration recipes live in API Reference → Token Management and Integrations.
Proxmox VE accounts
The users and realms of Proxmox VE can sign in to the Monitor, alongside local accounts or instead of them. Security → Proxmox VE accounts → Edit turns them on. The login screen then has a Proxmox VE tab with user, password and realm, followed by the second factor (TOTP code or recovery key) when the account has one. On a Proxmox Backup Server host the accounts are those of the backup server: see Signing in on Proxmox Backup Server.
- The Monitor keeps no session of its own: the browser holds a Proxmox VE ticket, and the Monitor checks it against the local Proxmox VE API (
/access/permissions) at most once a minute. Expiry, realms, 2FA and permissions remain those of Proxmox VE, and a privilege removed there reaches the Monitor within a minute. - Accounts that sign in with a security key (WebAuthn), or through an OpenID Connect realm of Proxmox VE, sign in on the Proxmox VE web interface. With the Monitor opened over HTTPS at the same host name, that session also signs in to the Monitor.
- Signing in requires
Sys.Auditon/.
Profiles of Proxmox VE accounts
Without a rule, the privileges on / decide: Sys.Modify gives Administrator and Sys.Audit alone gives Observer. The same card holds rules that assign a profile to a Proxmox VE user (for example alice@pve) or group. A user rule takes precedence; otherwise the first rule of a group of the user applies, with the groups read from /etc/pve/user.cfg. A rule applies as chosen, whatever the privileges. Saving rules that would take the administration away from the account saving them is refused.
OpenID Connect (OIDC)
An OpenID Connect provider can sign people in to the Monitor alongside the local accounts. Security → OpenID Connect (OIDC) → Edit is available while local accounts are in use and takes the following settings:
| Setting | Notes |
|---|---|
| Provider name | The label of the sign-in button. |
| Issuer URL | HTTPS URL of the provider. The Monitor reads its /.well-known/openid-configuration when the settings are saved. |
| Client ID and secret | Of the client registered at the provider. Client authentication: client_secret_basic, client_secret_post or none. |
| Public URL | HTTPS URL the browser uses to reach the Monitor. The redirect URI to register at the provider is <public_url>/api/auth/oidc/callback. |
| Allowed subjects | The sub claim of each person allowed in, with a name to recognise it and a profile. A subject without a profile chosen is an Administrator. Anyone else signed in at the provider is refused. |
The sign-in uses the authorization code flow with PKCE (S256) and a nonce, and accepts ID tokens signed with RS256 or ES256. The callback hands the browser a one-time code, valid for 30 seconds, that only the browser that started the sign-in can exchange for a session. The session belongs to the identity oidc:<sub> and has the profile of its subject. The certificate of the provider is checked against the CA store of the host (/etc/ssl/certs/ca-certificates.crt); a provider with a certificate from an internal CA needs that CA added with update-ca-certificates.
Saving the settings ends the OIDC sessions
HTTPS
Two paths to TLS:
- Reverse proxy (recommended). Terminate TLS on Nginx / Caddy / Traefik and forward HTTP on port 8008 to the Flask process. Snippets below.
- Direct HTTPS in the AppImage. Configure a certificate with
POST /api/ssl/configure(UI: Admin → Security → SSL / HTTPS). The HTTPS path usesgevent.pywsgiwith its standard handler; flask-sock handles WebSocket upgrades for WSS. Certificate paths are stored in the SSL configuration.
Direct HTTPS limitations
Secure Gateway (Tailscale)
A reverse proxy is one way to provide remote access. Secure Gateway offers access without exposing TCP 8008: it deploys an Alpine LXC running Tailscale as a subnet router. Access to the host’s LAN IP depends on approved subnet routes and tailnet access rules.
Why this is convenient
http://<proxmox-lan-ip>:8008 through the approved subnet route. Tailscale subnet routers use SNAT by default, so the Monitor normally sees the gateway’s LAN address, not the client’s 100.x.y.z address. Logs and Fail2Ban therefore identify the source address the host actually receives.The deploy flow is one screen — pick the host LXC storage, paste a Tailscale auth-key (generated at login.tailscale.com/admin/settings/keys), choose which subnets to advertise, click Deploy. The LXC takes ~30 seconds to bootstrap and registers in the tailnet automatically.
Step-by-step deployment, subnet-routes configuration, Tailscale ACLs and Exit Node mode are documented separately in Dashboard → Security → Secure Gateway — that's where the deploy wizard lives in the dashboard UI. This page only covers the access pattern.
Reverse proxy snippets
Use a dedicated host name such as monitor.example.com forwarding to port 8008 on the Proxmox host. The examples follow this pattern. A sub-path such as example.com/proxmenux-monitor/ needs additional frontend and proxy work; it is not supported by prefix stripping alone.
Nginx
# /etc/nginx/sites-available/proxmenux-monitor.conf
server {
listen 443 ssl http2;
server_name monitor.example.com;
ssl_certificate /etc/letsencrypt/live/monitor.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/monitor.example.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8008;
proxy_http_version 1.1;
# WebSocket upgrade (terminal tab)
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Real client IP — required for the auth log + Fail2Ban hook
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
# Long-running terminal sessions
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}
}Caddy
# Caddyfile
monitor.example.com {
reverse_proxy 127.0.0.1:8008 {
# Caddy auto-handles WebSocket upgrades and forwards X-Forwarded-* by default.
header_up Host {host}
header_up X-Real-IP {remote}
}
}Traefik (labels — Docker / Kubernetes)
# docker-compose snippet, or equivalent IngressRoute on Kubernetes
labels:
- "traefik.enable=true"
- "traefik.http.routers.proxmenux.rule=Host(`monitor.example.com`)"
- "traefik.http.routers.proxmenux.tls=true"
- "traefik.http.routers.proxmenux.tls.certresolver=letsencrypt"
- "traefik.http.services.proxmenux.loadbalancer.server.port=8008"
# WebSocket and forwarded headers are on by default in Traefik.Advanced: sub-path mounts under an existing domain
/api/* URLs. Merely stripping a prefix such as example.com/proxmenux-monitor/ does not handle those API calls or all frontend assets. Use a dedicated host name. A sub-path deployment requires coordinated frontend and proxy changes and separate testing.Access activity
Security → Access activity lists, newest first, who did what with the access to the Monitor, with the account and the client address. Only administrators see it.
- Sign-ins, successful or failed, with the method (local account, Proxmox VE or OpenID Connect) and whether a second factor was used.
- Account creation, access mode changes, password and 2FA changes, and API tokens created or revoked.
- Users added, removed, deactivated or activated, profile changes and passwords set by an administrator.
- Changes to the Proxmox VE accounts, their profile rules and the OpenID Connect settings.
- Every action a profile refused, with the route and the missing permission. A refusal repeated by the same account on the same route is recorded once per minute.
Passwords, codes and tokens are never recorded. The events are kept for 90 days in /root/.config/proxmenux-monitor/access-log.db (SQLite, mode 0600) and served to administrators by GET /api/auth/events.
Audit log
Login failures and rate-limit warnings are written to /var/log/proxmenux-auth.log in a single-line format. Successful logins are not recorded by this logger:
# Failed login from 192.0.2.10 (forwarded IP only with PROXMENUX_TRUST_PROXY=1)
2026-04-24 14:32:11,000 proxmenux-auth: authentication failure; rhost=192.0.2.10 user=admin
# Login rate limit reached
2026-04-24 14:32:18,000 proxmenux-auth: login rate limit exceeded; rhost=192.0.2.10 retry_after=240sTail it the usual way: tail -F /var/log/proxmenux-auth.log. The file is rotated by logrotate if a config drop-in is added; the Monitor itself does not rotate it.
Optional: Fail2Ban jail
Fail2Ban is not bundled with the Monitor
When Fail2Ban is installed, the ProxMenux integration ships a [proxmenux] jail that:
- Reads
/var/log/proxmenux-auth.log. - Matches the
authentication failure; rhost=<ip>pattern with a dedicated filter. - Bans the offending IP at the kernel firewall level by default.
- The Flask
before_requesthook checks requests against the ban list, cached for 30 s. Behind a reverse proxy, client-IP blocking also requires PROXMENUX_TRUST_PROXY=1 and a controlled proxy that sets trustworthy forwarding headers.
Configuration, ban time tuning and unban procedures are in Security → Fail2Ban.
Troubleshooting
The first-launch screen never appears
menu → Settings → Reset ProxMenux Monitor Password brings back the first-visit dialog and prints a new setup code. To start from an empty configuration instead:rm /root/.config/proxmenux-monitor/auth.json systemctl restart proxmenux-monitor.service menu # Settings → Show Monitor Setup CodeThis wipes the auth state — also any TOTP secrets and API tokens. Back up
auth.json first if you have tokens you want to keep.HTTP 401 on every request from a working API token
revoked_tokens list. Generate a new one in Settings and update the integration. To check:curl -H "Authorization: Bearer <token>" \ http://<host>:8008/api/system | jq .Expired or revoked tokens return
{"error":"Invalid or expired token"}.Can't log in after enabling 2FA, no authenticator at hand
/root/.config/proxmenux-monitor/auth.json from a host shell, set totp_enabled to false and restart the service.An action answers HTTP 403
permission field of the answer, and the refusal appears in the access activity. An administrator changes the profile in Security → Users, in the rules of the Proxmox VE accounts or in the allowed subjects of OpenID Connect.Reverse proxy works but the terminal tab disconnects every minute
proxy_read_timeout 86400s; Traefik: idleTimeout in the entry-point or middleware) and confirm proxy_set_header Upgrade $http_upgrade and Connection "upgrade" are present.Where to next
- API Reference → Token Management — full lifecycle of API tokens (generate / list / revoke), security best-practices, secrets storage patterns.
- Integrations — Homepage, Home Assistant, Grafana / Prometheus, Uptime Kuma, generic cURL.
- Dashboard → Security → Secure Gateway — deploy the Tailscale gateway LXC step by step (subnet routes, ACLs, Exit Node mode).
- Security → Fail2Ban — how to install and configure the optional jail.
- Settings → ProxMenux Monitor — start / stop the systemd service from the ProxMenux TUI.