MIT License

项目介绍

HamedAp/ShahanPanel 是一个托管在 GitHub 上的开源项目,主要使用 PHP 编写,采用 MIT License 许可证,目前获得 1.2k 个 Star、167 次 Fork。

仓库全名
HamedAp/ShahanPanel
开源许可证
MIT License
Star 数
1.2k
Fork 数
167
未关闭 Issue
3

README 摘要

ShahanPanel Persian Readme (راهنمای فارسی) This is a comprehensive panel for managing SSH users, monitoring traffic, and configuring server settings. 🚀 ✨ Features 👤 User Management: Add, remove, and edit users. 📊 Traffic Monitoring: Monitor the traffic of each user. ⚙️ Server Settings: Configure server settings, such as the SSH port. 💾 Backup and Restore: Backup and restore the database. 🔌 API: A simple API for…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ShahanPanel 用什么语言开发?

主要使用 PHP 编写,采用 MIT License 许可证,目前有 1.2k 个 Star。

ShahanPanel 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ShahanPanel 的源码?

可以直接克隆仓库:git clone https://github.com/HamedAp/ShahanPanel.git,默认分支为 main;安装与运行步骤见仓库 README。

ShahanPanel 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 3 个未关闭 Issue;Star 数为 1.2k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Shahan Vpn Panel With Add/Delete Users - Online Users - Limit Users

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

CSS
Dockerfile
JavaScript
PHP
Shell

Release

README

GitHub release (latest by date) GitHub all releases

ShahanPanel

Persian Readme (راهنمای فارسی)

This is a comprehensive panel for managing SSH users, monitoring traffic, and configuring server settings. 🚀

✨ Features

  • 👤 User Management: Add, remove, and edit users.
  • 📊 Traffic Monitoring: Monitor the traffic of each user.
  • ⚙️ Server Settings: Configure server settings, such as the SSH port.
  • 💾 Backup and Restore: Backup and restore the database.
  • 🔌 API: A simple API for interacting with the panel.

📈 Dashboard

The dashboard provides a real-time overview of your server and user activity. It includes the following key sections:

  • 👥 User Statistics:
    • Total Users: The total number of user accounts in the system.
    • Online Users: The number of users currently connected to the server.
    • Active Users: The number of enabled user accounts.
    • Deactivated Users: The number of disabled or expired user accounts.
  • 🖥️ Server Health Monitoring:
    • RAM Usage: Displays the percentage of memory currently in use.
    • CPU Usage: Shows the current processor load.
    • HDD Usage: Indicates the amount of disk space used.
    • Server Traffic: Total data transferred (upload and download) by the server.
    • Users Traffic: Total data consumed by all users combined.
  • 📋 Users List: A detailed table of all users with the following information:
    • Username & Password: User credentials.
    • Start & Finish Date: The activation and expiration dates for the user’s account.
    • Contact Info: Mobile number and email address.
    • Referral: Information on who referred the user.
    • Traffic: The user’s assigned data limit and their current usage.
    • Connection Status: Shows how many devices are currently connected for a user out of their allowed limit.
    • Account Status: Indicates whether the account is active, inactive, or expired.
    • Operations: A set of actions you can perform for each user, such as editing, activating/deactivating, resetting traffic, deleting, and viewing connection QR codes.

🛠️ Settings

The settings page provides a centralized location for configuring the server and panel. It is organized into the following tabs:

  • 🔑 Change Admin Password: Allows you to update the administrator’s password and set a new subdomain for the server.
  • 🔌 Change Port: Configure the connection ports for various services:
    • SSH Port: The primary port for SSH connections.
    • UDP Port: For UDP-based protocols, such as gaming or streaming.
    • DropBear Port: An alternative lightweight SSH server.
    • Tuic Port: For the TUIC protocol, designed to bypass censorship.
  • 📤 Telegram Message: Send a custom message to all users who have linked their Telegram accounts.
  • 💾 Backup and Restore: Manage your panel’s data:
    • Bot Token & Admin ID: Configure your bot’s credentials to enable notifications and user interactions.
    • User Messages: Customize automated messages for account renewals, traffic limits, and other events.
    • Actions: Test your bot’s connection, fix webhook issues, and submit your configuration.
  • Backup and Restore: Manage your panel’s data:
    • Upload Backup: Restore the panel from a SQL, JSON, or sqlite3 file.
    • New Backup: Create a new backup of the current database.
    • User Management:
      • Delete All Backups: Permanently remove all saved backups.
      • Delete All Users: A quick way to clear all user accounts.
      • Import Server Users: Add existing system users to the panel.
    • Backups List: View, restore, delete, or download existing backup files.
  • API Token: Manage access for external applications:
    • Create New Token: Generate a new API token and specify the allowed IP address and a description.
    • Tokens List: View, renew, or delete existing tokens.
  • Daily Gift: Reward your users:
    • Add Gift Days: Extend the subscription for all users by a specified number of days.
    • Add Gift Traffic: Grant additional traffic to all users.
  • Expired Users: Automatically manage user accounts by setting a time frame (in days) to remove users after their subscription has expired.
  • Connection Message: Set a custom message that is displayed to users upon connecting to the server.
  • Auto Backup: Schedule automatic backups of your panel’s database at regular intervals (e.g., every 6 or 12 hours).
  • OpenVPN: Configure the OpenVPN server settings, including the port and protocol (UDP or TCP).

How to Use

Creating a Single User

  1. From the main dashboard, click the green plus icon to open the Add New User dialog.
  2. Fill in the user’s details, including their username, password, traffic limit, and subscription duration.
  3. Click Submit to create the account.

Creating Bulk Users

  1. From the main dashboard, click the group icon to open the Add Bulk Users dialog.
  2. Specify the number of users to create, a starting username, and password preferences.
  3. Set the traffic limit and subscription duration that will apply to all new accounts.
  4. Click Submit to generate the accounts.

Renewing a User’s Subscription

  1. In the Users List on the dashboard, find the user you want to renew and click the bolt icon in the Operations column.
  2. A dialog will appear with options to extend their subscription by one, two, three, or six months, or for a full year.
  3. Select the desired duration to instantly renew the user’s account.

API

The panel has a simple API that you can use to interact with it. To use the API, you need to create an API token in the settings page.

System Requirements

To run the SSH Panel, your server must meet the following requirements:

  • Operating System: A Linux-based OS (Ubuntu).

Installation

  1. One Click Installation:
bash <(curl -Ls https://raw.githubusercontent.com/HamedAp/Ssh-User-management/master/install.sh --ipv4)

Free vs. Pro Version

This panel offers both a free and a paid (Pro) version. While the free version provides essential user management and monitoring features, the Pro version unlocks advanced capabilities for more demanding environments.

This Table Will Update :)

Protocol Add Delete Online Limit Traffic MultiSe… Backup API Qrcode
SSh ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
DropBear ✅ ✅ ✅ ✅ ❌ ✅ ✅ ✅ ✅
TUIC⭐️ ✅ ✅ ⏳ ❌ ❌ ❌ ✅ ✅ ✅
Cisco⭐️ ✅ ✅ ✅ ✅ ❌ ✅ ✅ ❌
Openvpn⭐️ ✅ ✅ ✅ ✅ ❌ ❌ ✅ ❌
Shadowsocks⭐️ ✅ ✅ ✅ ✅ ❌ ❌ ✅ ✅ ✅
Singbox⭐️ ✅ ✅ ❌ ❌ ❌ ❌ ❌ ✅ ✅
WireGuard⭐️ ✅ ✅ ✅ ⏳ ✅ ⏳ ✅ ✅ ✅
Xray

Free Version Features:

  • User Management: Create, modify, and delete SSH users.
  • Traffic Monitoring: Track data usage for each user.
  • Server Health: Monitor CPU, RAM, and disk usage.
  • Manual Backups: Create and restore database backups.

Pro⭐️ Version Features (Requires License):

  • Advanced Protocols:
    • TUIC: Create and manage users for the TUIC protocol to bypass censorship.
    • WireGuard: Full support for WireGuard users, including QR code configuration.
    • ShadowSocks: Easily create and manage ShadowSocks users.
  • Enhanced Configuration:
    • SingBox & Shahanak Support: Generate QR codes for specialized client apps.
    • OpenVPN: Download user-specific OpenVPN configuration files.
  • Automated Backups:
    • Protocol Backups: Back up configurations for TUIC, ShadowSocks, WireGuard, and OpenVPN.
    • Scheduled Backups: Set up automatic database backups at regular intervals.

ScreenShot :

评论

暂无评论