arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CyberPanel on NanoKVM's VPS - 2 Methods
#1
Rainbow 
Hello, P4V community!
You maybe thinking about the topic name that it's insane as only 20 ipv4 ports are open and cyberpanel's port is out of that range as well as it's port cannot be changed. We are going to figure this out below.
BTW you may also be thinking about this that from nowhere this thread came out in light. I am making this thread as yesterday I tackled this problem. I wanted to install cyberpanel on nanokvm's vps. I contacted their support but they said port cannot be changed as its integrated and thus if we forcefully change the port then its going to break. 

Solution (Of which I thinked of yesterday and discussed with cyberpanel admins): As we know NanoKVM doesn't allows port out of 7801-7820 to be accessible out of the local vps network. Now you may have got the idea that what I am going to do. I am going to run cyberpanel locally on the VPS.
I am going to install a GUI environment (if it's not installed) on the supported OS and then going to install cyberpanel which can be accessible on the local network with its port. [Method -1]
OR
Why not make the network of VPS and your PC same! [Method - 2] {VPN server}
And yes when I tried this out it worked out well.  Party

**Warning**: As @"Hidden Refuge" says so I am going to say that too here that this thread is not spoon feeding! Also, the commands given below were used on CentOS, so change them according to your server OS

Prerequisites:
  • You should be aware and should be used to CyberPanel
  • Used to VNC and GUI Installation
  • Used to Linux Commands
  • etc
Moving Forward:

Method - 1
First: Installation of a GUI. (We don't need to install any VNC server as we already have a VNC server on NanoKVM)

Install epel-release first,
sudo yum install epel-release


dnf --enablerepo=epel group -y install "Xfce" "base-x"

echo "exec /usr/bin/xfce4-session" >> ~/.xinitrc

Now, Take care that you don't restart the VPS as after you restart you will stop the GUI session and again fallback to Command Line. (So, enter the below command when you are ready for it). And yes the below command should be run through VNC as then you will directly fall from Command to the GUI session.

startx

Now exit the VNC session.


Second: Installation of CyberPanel.
Fire up your ssh and then follow the procedures which is stated on the official site.
After installation, Note all the details of the users, passwords, ports in a txt file.


Third: Accessing the Panel.
Open the VNC session again. Now we have to open firefox. (Its not already installed. To install it simply type sudo apt install firefox or sudo yum install firefox for the respective OS systems)

After opening Firefox, enter this

https://localhost:8090


And your panel will load up!

Note: This pic was taken yesterday when I was experimenting all this! (OS: CentOS 8)
[Image: J9E3ZYF.png]

Now, add a site, etc! All thing will work flawlessly! 

Method - 2{RECOMMENDED}
Note: @Neoon said that VPN for fair use is allowed. Smile
So, you can use that until you make your server open to the world. Which will cause deletion of your server Dodgy
So, If you have any doubt still then ask @Neoon through mail support!
Credits to @chanalku91 ! Wink
I tried openvpn earlier but it didn't worked as I was messing with NAT IP and Public ipv4 address.

Step-1: Installing OpenVPN server link to repository: https://github.com/Nyr/openvpn-install

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Step-2: When Installing choose the listening port between 7801 to 7820 and then you will get a .ovpn configuration file. Now you need that file on your local desktop. First, go the file and type 
cat <your_client_name>.ovpn

This will show you the text. Just copy and paste it on your local desktop with .ovpn extension!

Step-3: Install OpenVPN Connect from OpenVPN site and open openvpn connection with that .ovpn file

Step-4: Now comes the step to access cyberpanel. You just have to go to nanokvm dashboard. At starting you will see a IP 10.0.x.x or something like this. This is your local NAT IP which is used to communicate locally. So, just copy that IP and paste it in your local browser with 8090 port at the end
And
Voila! Cyberpanel will load up!


@"hidden refuge" I tried SSH tunneling and then I tried to access the cyberpanel with NAT IP but still It didn't worked. I tried this with mozilla firefox browser. I forgot the error which was displayed. Sad

Found any error? reply below! We all will help you out Smile
Terminal
Thankyou Post4VPS, @Pacific Spirit (Hostlease) for a Free VPS!
+
Thankyou to @Neoon for a Free NanoKVM VPS


Messages In This Thread
CyberPanel on NanoKVM's VPS - 2 Methods - by Amresh - 07-27-2020, 04:26 AM
RE: CyberPanel on NanoKVM's VPS - by chanalku91 - 07-27-2020, 11:00 AM
RE: CyberPanel on NanoKVM's VPS - by Amresh - 07-27-2020, 11:32 AM
RE: CyberPanel on NanoKVM's VPS - by Mashiro - 07-27-2020, 03:16 PM
RE: CyberPanel on NanoKVM's VPS - by LightDestory - 07-28-2020, 08:03 AM
RE: CyberPanel on NanoKVM's VPS - by Amresh - 07-28-2020, 08:26 AM
RE: CyberPanel on NanoKVM's VPS - by LightDestory - 07-28-2020, 09:02 AM
RE: CyberPanel on NanoKVM's VPS - by Sn1F3rt - 07-28-2020, 09:46 AM
RE: CyberPanel on NanoKVM's VPS - by Amresh - 07-28-2020, 11:03 AM
RE: CyberPanel on NanoKVM's VPS - by chanalku91 - 07-28-2020, 01:36 PM
RE: CyberPanel on NanoKVM's VPS - by Mashiro - 07-28-2020, 03:40 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
1,339
05-09-2021, 04:39 PM
Last Post: deanhills
5,198
12-17-2020, 05:45 PM
Last Post: fitkoh
9,282
08-23-2017, 09:14 PM
Last Post: perry

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting