Page 1 of 1

Different ways to access the VestaCP Panel

Posted: Wed Jul 18, 2018 1:34 pm
by cyclone200
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.

Re: Different ways to access the VestaCP Panel

Posted: Sun Oct 21, 2018 9:04 am
by elpak
I use MY-IP:8083 and is working properly

Re: Different ways to access the VestaCP Panel

Posted: Sun Oct 21, 2018 1:41 pm
by mehargags
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

Re: Different ways to access the VestaCP Panel

Posted: Sun Oct 21, 2018 3:15 pm
by chrisf
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 :-)

Re: Different ways to access the VestaCP Panel

Posted: Sun Oct 21, 2018 5:03 pm
by Spheerys
nice tip
thanks !