Page 1 of 1

Connecting to Vesta from public IP

Posted: Wed Feb 14, 2018 10:10 pm
by p7f
Hi,
I'm wokring on a virtual server running RHEL7. I can connect to the server with ssh trhough a vpn. From there, i've installed vestacp. Now i can correctly access vestacp if i'm connected to the vpn and i use {privateip}:8083. However, i cannot connect to vestacp using public ip of the server. Is there any way to do this?

Re: Connecting to Vesta from public IP

Posted: Thu Feb 15, 2018 9:19 am
by skurudo
First things to check:
- /usr/local/vesta/nginx/conf/nginx.conf - listen directive
- firewall rules
- and maybe this is some stuff like net.ipv4.ip_forward

Re: Connecting to Vesta from public IP

Posted: Sat Feb 17, 2018 6:42 pm
by p7f
Thanks a lot for your answer!!
skurudo wrote:
Thu Feb 15, 2018 9:19 am
First things to check:
- /usr/local/vesta/nginx/conf/nginx.conf - listen directive
- firewall rules
- and maybe this is some stuff like net.ipv4.ip_forward
1. In nginx.conf i have listen set to 8083.
2. I set firewall rules from vestacp logging from vpn private direction. 8083 is enabled. ¿Is this enough? i also tryed using firewalld with no result.
3. I'll look for some info about net.ipv4.ip_foward. ¿Could you give me some more info about this?

Thanks again!

Re: Connecting to Vesta from public IP

Posted: Sat Feb 17, 2018 6:51 pm
by p7f
p7f wrote:
Sat Feb 17, 2018 6:42 pm
skurudo wrote:
Thu Feb 15, 2018 9:19 am

- and maybe this is some stuff like net.ipv4.ip_forward
3. I'll look for some info about net.ipv4.ip_foward. ¿Could you give me some more info about this?

Thanks again!
i looked for /proc/sys/net/ipv4/ip_forward and its value is 1.

Re: Connecting to Vesta from public IP

Posted: Tue Feb 27, 2018 10:29 pm
by p7f
No one with a solution for this?

Re: Connecting to Vesta from public IP

Posted: Wed Feb 28, 2018 6:53 am
by mehargags
Is your public IP even reachable openly through internet ? Is your server located in a Datacentre or in a private location ? You said you can connect through VPN... this means the provider has restricted access to their network through secure VPN tunnel only.

If you have GUI on your server, goto https://portchecker.co/canyouseeme and check if port 80 and port 8083 are reachable from the internet. This is simple thing to check

Re: Connecting to Vesta from public IP

Posted: Wed Apr 25, 2018 7:17 pm
by p7f
Hi,
Thanks for the answer, and sorry for the delayed reply. If i put in my browser the public ip followed by :80, y get to the screen that says my fqdn and "powered by vesta". So i assume is accesible. I do not have GUI on the server.
Thanks

Re: Connecting to Vesta from public IP

Posted: Sat Apr 28, 2018 10:41 am
by mehargags
Yes you are good... so now what is the problem ?