How to Install 3X-UI VPN on Rocky Linux 10
3X-UI is a user-friendly management panel for configuring and controlling various types of VPN services. It simplifies the setup and management of VPN servers through an intuitive web interface, supporting multiple protocols.
Update Your System
Update all system packages:
dnf update -y
Install Necessary Dependencies
Install required tools:
dnf install curl wget git -y
Download and Install 3X-UI
Run the following command to download and install 3X-UI:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
During installation, the script may prompt you to customize port settings. You can either:
- Enter
y
to configure custom port, or - Enter
n
to continue with default/random settings
Once installation completes, you’ll receive auto-generated login details for accessing the panel, such as:
###############################################
Username: JhyECF9yvq
Password: 40O46Rt8b1
Port: 47742
WebBasePath: LxL4pp3tSuWptQS
Access URL: http://2.58.14.2:47742/LxL4pp3tSuWptQS
###############################################
Use x-ui settings
to view login info again later.
The panel also provides various command options:
x-ui - Admin Management Script
x-ui start - Start
x-ui stop - Stop
x-ui restart - Restart
x-ui status - Current Status
x-ui settings - Current Settings
x-ui enable - Enable Autostart on OS Startup
x-ui disable - Disable Autostart on OS Startup
x-ui log - Check logs
x-ui banlog - Check Fail2ban ban logs
x-ui update - Update
x-ui custom - Custom version
x-ui install - Install
x-ui uninstall - Uninstall
Enable Firewall Ports
If the firewall is active on your server, allow the port used by the panel (replace 4995
with your actual port):
firewall-cmd --permanent --add-port=47742/tcp
firewall-cmd --reload
Access the 3X-UI Web Interface
Open the following URL in your browser:
http://your_server_ip:47742/LxL4pp3tSuWptQS
Replace your_server_ip
, 47742
, and LxL4pp3tSuWptQS
with the actual values shown during installation.
Login Page
Enter the default username and password displayed during installation to log in.
Once inside the dashboard, you can manage users, configure protocols, and monitor VPN activity.
It is recommended to change the default login credentials immediately for security.
Conclusion
You have successfully installed and configured 3X-UI VPN on Rocky Linux 10. You can now manage your VPN environment through the intuitive 3X-UI web interface.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS