Skip to content

v1.1.0 - New Dashboard

Latest

Choose a tag to compare

@MahanAmini MahanAmini released this 14 Nov 17:42
· 3 commits to main since this release
33eb368

What's new

Dashboard (redesigned)

  • Server exit IP with a one-click copy button
  • Total users and online users right now
  • Latency from the server to the internet, with a green / yellow / red indicator. It is measured as TCP connect time to public DNS hosts (1.1.1.1, 8.8.8.8, 9.9.9.9)
  • Server info: uptime, operating system, signed-in admin and a link to the GitHub project
  • Usage chart of all users' traffic with 24h, 3d, 7d and 30d ranges. Hover for exact values, and the peak usage point is always marked. Usage is sampled every 30 seconds and stored in usage_hist.json for 30 days
  • Last 50 server logs (OpenVPN services and the panel, read from journalctl) with a "View logs" popup
  • Restart panel button. OpenVPN services are not touched, and the page reloads itself when the panel is back
  • Add new user button that opens a popup with the same fields as the Users page: ID, name, protocol, port (automatic, or manual with a live availability check), expiry, max speed, daily limit and total limit. It uses the existing create logic

DNS editor

  • The default DNS pushed to users is shown on the dashboard with an edit button
  • Accepts 1 to 4 IPv4 addresses, separated by commas or spaces
  • Saving updates server.conf and every user's config. If a write fails, all files are rolled back
  • Running OpenVPN services are restarted briefly so the new DNS is pushed, and devices reconnect on their own. Existing .ovpn files don't need to change

Per-user address inside .ovpn files

  • New field in the Users edit dialog
  • It takes priority over the global address from Advanced. Leave it empty to use the global one
  • Applies to the admin download and to the user portal (download and displayed server address)

Light / dark theme

  • Animated sun / moon toggle in the sidebar, the mobile top bar and the login page
  • Your choice is saved in the browser; the first visit follows your system theme

Changed

  • The old Dashboard page is now Users and lives at /users. Its content and behavior are unchanged
  • The new dashboard is at / and is the page you land on after login. Update bookmarks if you have any
  • Actions like creating, editing and deleting users still return you to the page you started from

Notes

  • The usage chart starts empty after updating and fills in over time
  • The log viewer expects the panel service to be named ovpn-panel. If yours is different, set the PANEL_SERVICE environment variable
  • Latency shows a dash if the server cannot reach the public DNS hosts
  • The per-user .ovpn address is not included in backup / restore yet, so re-enter it after restoring a backup
  • No changes were made to the OpenVPN, port, firewall, speed limit or usage accounting logic

تغییرات جدید

داشبورد (طراحی جدید)

  • آی‌پی خروجی سرور همراه با دکمه‌ی کپی
  • تعداد کل کاربرها و کاربران آنلاین هم‌اکنون
  • Latency اتصال سرور به اینترنت، با نشانگر سبز / زرد / قرمز. این مقدار با زمان اتصال TCP به DNSهای عمومی (1.1.1.1 و 8.8.8.8 و 9.9.9.9) اندازه‌گیری می‌شه
  • اطلاعات سرور: مدت زمان اجرا، سیستم عامل، ادمین واردشده و لینک پروژه در GitHub
  • نمودار مصرف کل کاربرها با بازه‌های ۲۴ ساعت، ۳ روز، ۷ روز و ۳۰ روز. با هاور کردن مقدار دقیق هر نقطه دیده می‌شه و پیک مصرف همیشه مشخصه. مصرف هر ۳۰ ثانیه ثبت می‌شه و تا ۳۰ روز تو فایل usage_hist.json نگه‌داری می‌شه
  • آخرین ۵۰ لاگ سرور (سرویس‌های OpenVPN و پنل، از journalctl) با دکمه‌ی «مشاهده لاگ‌ها» که popup باز می‌کنه
  • دکمه‌ی راه‌اندازی مجدد پنل. سرویس‌های OpenVPN دست نمی‌خورن و صفحه بعد از بالا اومدن پنل خودش رفرش می‌شه
  • دکمه‌ی افزودن یوزر جدید که popup با همون فیلدهای صفحه‌ی Users باز می‌کنه: ID، اسم، پروتکل، پورت (خودکار، یا دستی با چک آزاد بودن)، تاریخ انقضا، حداکثر سرعت، حجم روزانه و حجم کل. از همون منطق ساخت کاربر قبلی استفاده می‌کنه

ویرایش DNS

  • DNS پیش‌فرضی که به کاربرها پوش می‌شه تو داشبورد نمایش داده می‌شه و دکمه‌ی ویرایش داره
  • ۱ تا ۴ آی‌پی IPv4 قبول می‌کنه که با ویرگول یا فاصله جدا شده باشن
  • با ذخیره، server.conf و کانفیگ تک‌تک کاربرها عوض می‌شه. اگه نوشتن یکی از فایل‌ها خطا بده، همه‌ی فایل‌ها به حالت قبل برمی‌گردن
  • سرویس‌های روشن OpenVPN یه لحظه ری‌استارت می‌شن تا DNS جدید پوش بشه و دستگاه‌ها خودشون دوباره وصل می‌شن. فایل‌های .ovpn قبلی نیازی به تغییر ندارن

آدرس اختصاصی هر کاربر در فایل‌های .ovpn

  • فیلد جدید تو دیالوگ ویرایش (Edit) بخش Users
  • اولویتش بالاتر از آدرس کلی بخش Advanced ـه. خالی بذاری آدرس کلی استفاده می‌شه
  • هم تو دانلود ادمین و هم تو پورتال کاربر (دانلود و آدرس سروری که نشون داده می‌شه) اعمال می‌شه

تم لایت / دارک

  • سوئیچ انیمیشنی خورشید / ماه تو سایدبار، نوار بالای موبایل و صفحه‌ی لاگین
  • انتخاب تو مرورگر ذخیره می‌شه و تو اولین ورود، تم سیستم رعایت می‌شه

تغییرات

  • صفحه‌ی قبلی Dashboard حالا اسمش Users ـه و آدرسش /users شده. محتوا و رفتارش عوض نشده
  • داشبورد جدید تو / ـه و بعد از لاگین همین صفحه باز می‌شه. اگه بوکمارک داشتی به‌روزش کن
  • کارهایی مثل ساخت، ویرایش و حذف کاربر بعد از انجام دوباره به همون صفحه‌ای که شروع کردی برمی‌گردن

نکته‌ها

  • نمودار مصرف بعد از آپدیت خالی شروع می‌شه و کم‌کم پر می‌شه
  • نمایش لاگ‌ها فرض می‌کنه اسم سرویس پنل ovpn-panel باشه. اگه اسم سرویس تو فرق داره، متغیر محیطی PANEL_SERVICE رو ست کن
  • اگه سرور به DNSهای عمومی دسترسی نداشته باشه، Latency خط تیره نشون می‌ده
  • آدرس اختصاصی کاربر هنوز تو بکاپ / ریستور ذخیره نمی‌شه و بعد از ریستور بکاپ باید دوباره واردش کنی
  • هیچ تغییری تو منطق OpenVPN، پورت‌ها، فایروال، محدودیت سرعت و محاسبه‌ی مصرف داده نشده