07-27-2020, 04:26 AM
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.
**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:
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,
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.
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
And your panel will load up!
Note: This pic was taken yesterday when I was experimenting all this! (OS: CentOS 8)
Now, add a site, etc! All thing will work flawlessly!
Method - 2{RECOMMENDED}
Note: @Neoon said that VPN for fair use is allowed.
So, you can use that until you make your server open to the world. Which will cause deletion of your server
So, If you have any doubt still then ask @Neoon through mail support!
Credits to @chanalku91 !
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
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
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.
Found any error? reply below! We all will help you out
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.
**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
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,
Code: (Select All)
sudo yum install epel-release
Code: (Select All)
dnf --enablerepo=epel group -y install "Xfce" "base-x"
Code: (Select All)
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.
Code: (Select All)
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
Code: (Select All)
https://localhost:8090
And your panel will load up!
Note: This pic was taken yesterday when I was experimenting all this! (OS: CentOS 8)
Now, add a site, etc! All thing will work flawlessly!
Method - 2{RECOMMENDED}
Note: @Neoon said that VPN for fair use is allowed.
So, you can use that until you make your server open to the world. Which will cause deletion of your server
So, If you have any doubt still then ask @Neoon through mail support!
Credits to @chanalku91 !
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
Code: (Select All)
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
Code: (Select All)
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.
Found any error? reply below! We all will help you out
Thankyou Post4VPS, @Pacific Spirit (Hostlease) for a Free VPS!
+
Thankyou to @Neoon for a Free NanoKVM VPS
+
Thankyou to @Neoon for a Free NanoKVM VPS