Installation
Connect over SSH asroot: Connection. Even a VPS-0 is enough. Commands are for Ubuntu/Debian, check the latest versions in the Gozargah/Marzban and Marzban-scripts repos.
-
Install – the official script:
The script downloads and starts Marzban. You get the
marzbancommand: status, logs, restart. -
Administrator – the command asks for the username and password for the dashboard:
-
Check – the status should be
Up: -
Firewall – open the dashboard port and the ports of your inbounds, details: Firewall.
Access
Without SSL the dashboard doesn’t open from outside, neither by IP nor by domain: you need a domain with a certificate.-
SSL in Marzban – get a certificate, for example from Let’s Encrypt, and set the paths in the
UVICORN_SSL_CERTFILEandUVICORN_SSL_KEYFILEvariables. The dashboard opens athttps://YOUR_DOMAIN:8000/dashboard/. - Reverse proxy – put the panel behind nginx.
-
SSH tunnel – only to peek into the panel without a domain. Run on your computer:
Then open
http://localhost:8000/dashboard/in the browser.
First user
- Log in – open the dashboard at your domain and log in with the admin credentials.
- User – add a new one and, if needed, set a traffic limit and an expiry date.
- Subscription – copy the user’s subscription link and pass it on. It goes into a client app, v2rayNG, NekoBox, or Hiddify: the configs are pulled in and update on their own.