Skip to content

User Management

Unne Server has a full user management system with per-user limits and access control.

CLI Commands

bash
# Create a user
unns user create john p@ssw0rd

# Create an admin
unns user create admin secret admin

# List users
unns user list

# Delete a user (cascades to tokens)
unns user delete 3

User Properties

FieldDescriptionDefault
usernameUnique login name
passwordHashed with bcrypt
roleadmin or useruser
enabledAccount active/disabledtrue
max_tunnelsMax simultaneous tunnels (0 = unlimited)0
allowed_protocolsComma-separated: http, tcp, or http,tcphttp,tcp
traffic_limitMax bytes per period (0 = unlimited)0
traffic_perioddaily, monthly, or quarterlymonthly
max_devicesMax tokens/devices (0 = unlimited)0
skip_warningAllow skipping browser warningfalse
can_use_proxyAllow proxy usagetrue

Access Control Examples

HTTP-only user, 5 tunnels max

bash
unns user create webdev pass123
# Then via admin panel: set allowed_protocols=http, max_tunnels=5

User with 1GB monthly limit

Set traffic_limit=1073741824 (1GB in bytes) and traffic_period=monthly via the admin panel.

Single-device user

Set max_devices=1 — only one token can be active. Each token represents one device.

Admin Panel

Users can also be managed through the web-based admin panel at http://localhost:4041. See Admin Panel.

Released under the MIT License.