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

How to restrict vestacp admin login page to localhost only?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
BlueTurtle
Posts: 11
Joined: Sun Dec 03, 2017 6:47 pm

How to restrict vestacp admin login page to localhost only?
  • Quote

Post by BlueTurtle » Mon Jan 29, 2018 11:57 am

I want to make server-ip:8083 to be accessible only from localhost (so i can make a ssh tunnel to it)
That way I restrict log-in to vestacp only to people that have ssh user on the server making it as secure as ssh itself

I'm on Ubuntu 16.04 VPS
I setup UFW to allow all ongoing and deny all incoming by default
then I allowed https and ssh

However I can still access server-ip:8083

am I missing something obvious here?

if not by desabling the 8083 port for all incoming (what i thought i did with those UFW rules)
what would be the next best way to make vestacp admin login page accessible only to localhost?
Top

iamkdenok
Posts: 6
Joined: Sat Mar 04, 2017 10:23 pm

Os: CentOS 6x
Web: apache + nginx
Re: How to restrict vestacp admin login page to localhost only?
  • Quote

Post by iamkdenok » Mon Jan 29, 2018 1:03 pm

I do know how to do this but I can't test it.

Is VestaCP blocking SSH reverse proxy?

Thanks.
Top

ChrisKnez
Posts: 3
Joined: Mon Jan 29, 2018 8:28 pm

Os: CentOS 6x
Web: apache + nginx
Re: How to restrict vestacp admin login page to localhost only?
  • Quote

Post by ChrisKnez » Mon Jan 29, 2018 8:40 pm

To restrict VestaCP access to localhost you only need to follow these steps.

1. Open "/usr/local/vesta/nginx/conf/nginx.conf" in your preferred text editing software.
2. Find the line which says "listen 8083;", replace it with "listen 127.0.0.1:8083;" and save the file.
3. reload VestaCP using "service vesta restart"

After doing this, once you SSH tunnel into your server you should be able to access VestaCP using https://127.0.0.1:8083/

If you have any problems or questions feel free to ask.
Top


Post Reply
  • Print view

3 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