Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Different ways to access the VestaCP Panel

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
cyclone200
Posts: 27
Joined: Wed Jan 03, 2018 5:57 pm

Os: Debian 8x
Web: apache + nginx
Different ways to access the VestaCP Panel
  • Quote

Post by cyclone200 » Wed Jul 18, 2018 1:34 pm

Hello,

Actually, I can access the VestaCP panel with a lot of ways: MY-IP:8083, MY-SERVER-HOSTNAME:8083, SITE1:8083, SITE2:8083...

Basically every domains.

Is there a way to limit only to one solution? Let's say only login with my server hostname?

Thank you.
Top

elpak
Posts: 10
Joined: Sun Oct 21, 2018 7:42 am
Contact:
Contact elpak
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: Different ways to access the VestaCP Panel
  • Quote

Post by elpak » Sun Oct 21, 2018 9:04 am

I use MY-IP:8083 and is working properly
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Different ways to access the VestaCP Panel
  • Quote

Post by mehargags » Sun Oct 21, 2018 1:41 pm

You can make a rule in Firewall to deny all access to 8083 but allow only, something like this

Code: Select all

iptables -I INPUT -p tcp ! -s yourIPaddress --dport 8083 -j DROP
Be very very cautious, make sure you have console access to your server before playing with firewall, you can lose access to whole server
Top

chrisf
Posts: 49
Joined: Sat Oct 13, 2018 6:25 pm

Os: Ubuntu 16x
Web: apache + nginx
Re: Different ways to access the VestaCP Panel
  • Quote

Post by chrisf » Sun Oct 21, 2018 3:15 pm

The easiest way, is using Vesta's templates.

Main Vesta site has locations for your distro. (Assuming nginx reverse proxy).

In nginx templates for proxy:
Copy default.tpl and default.stpl to vesta_proxy.tpl and vesta_proxy.stpl repectively.

Change the %proxy_port% (not looking at the files, I'm on mobile) to 8083. Save them.

Then create a subdomain of your site. Say 'cp.mydomain.tld' and choose proxy template we created.

Visit in browser. Make sure it works.

Firewall -> add a rule, drop/block 8083 port.

Now, outside can not access it, but cp.mydomain.tld can.

Easy :-)
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: Different ways to access the VestaCP Panel
  • Quote

Post by Spheerys » Sun Oct 21, 2018 5:03 pm

nice tip
thanks !
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password