How to Install 3X-UI VPN on Rocky Linux 8
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. This guide provides the steps to install 3X-UI VPN on Rocky Linux 8.
Update Your System
Before proceeding with the installation, ensure your system packages are up to date:
dnf update -y
Install Necessary Dependencies
3X-UI requires several dependencies to function. Install them with the following command:
dnf install curl wget git -y
Download and Install 3X-UI
Download the 3X-UI installation script directly from the repository:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
During the installation process, the script will prompt you to decide whether you want to customize the port settings. You can respond with Y
if you wish to configure the panel port or N
to accept the default settings. If you choose to customize the port, you'll have toto enter the desired port number for accessing the 3X-UI panel.
After this step, the script will automatically generate a username and password for accessing the panel, which will be displayed on the screen along with the panel's base URI.
For example:
Install/update finished! For security, it's recommended to modify panel settings
Would you like to customize the Panel Port settings? (If not, random settings will be applied) [y/n]: n
Cancel...
Port set successfully: 41489
Username and password updated successfully
Base URI path set successfully
This is a fresh installation, generating random login info for security concerns:
###############################################
Username: FWrMuXJPew
Password: ZdN4kyfFXY
Port: 41489
WebBasePath: CEBM1QeXMZGZydv
###############################################
If you forgot your login info, you can type 'x-ui settings' to check after installation
Start migrating database...
Migration done!
Created symlink /etc/systemd/system/multi-user.target.wants/x-ui.service → /etc/systemd/system/x-ui.service.
x-ui v2.4.4 installation finished, it is running now...
x-ui control menu usages:
----------------------------------------------
SUBCOMMANDS:
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
----------------------------------------------
Make sure to securely store the Username, Password, Port, and WebBasePath, as you will need these details to access the panel.
Enable Firewall Ports
If your system's firewall is active, allow the necessary ports for 3X-UI to function:
firewall-cmd --permanent --add-port=4995/tcp
firewall-cmd --reload
Note: Replace port with the specific port provided during installing 3X-UI
Access the 3X-UI Web Interface
After installation, access the 3X-UI web interface by navigating to the following URL in your browser:
http://your-server-ip:port/WebBasePath
Note: Replace your_server_ip, 54321 and WebBasePath with actual IP Address and Port and WebBasePath which have been provided during the installation.
Login Page
After navigating to the URL, you will be prompted with the login page. Use the default username and password provided during the installation.
Once logged in, you will be taken to the 3X-UI dashboard, where you can manage your VPN settings and users.
Upon accessing the 3X-UI interface, after logged in with the default credentials. Make sure to change the default username and password immediately for security purposes.
Conclusion You have successfully installed and configured 3X-UI VPN on Rocky Linux 8. You can now manage and configure VPN services through the 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