We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Unidentified IP in VestaCP
Unidentified IP in VestaCP
Hello,
I am seeing a new IP - 10.12.0.5 in fresh installation of VestCP latest version.
I can't even delete this IP, as vesta cp is saying this as MAIN IP.
I am trying to setup custom name servers. I am using DigitalOcean Droplet.
Please suggest.
Thanks
I am seeing a new IP - 10.12.0.5 in fresh installation of VestCP latest version.
I can't even delete this IP, as vesta cp is saying this as MAIN IP.
I am trying to setup custom name servers. I am using DigitalOcean Droplet.
Please suggest.
Thanks
Re: Unidentified IP in VestaCP
ip a response
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 04:01:94:11:a4:01 brd ff:ff:ff:ff:ff:ff
inet 129.201.194.183/20 brd 129.201.207.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.12.0.5/16 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::601:94ff:fe11:a401/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 04:01:94:11:a4:02 brd ff:ff:ff:ff:ff:ff
Re: Unidentified IP in VestaCP
I have tried to install it on another VPS, now its showing this IP: 10.0.3.1
I have used vesta cp before and never faced this problem, i think there is some issue in latest version.
I have used vesta cp before and never faced this problem, i think there is some issue in latest version.
Re: Unidentified IP in VestaCP
Unusual, which droplet on DO do you use? Server location / OS / RAM and another. I try to test this case.
Re: Unidentified IP in VestaCP
This is happening on every VPS, i have even tried with another VPS provider and same thing happened.
Re: Unidentified IP in VestaCP
Hello,
I have the same - in panel I see two IP in edit/ip/.
ip a
ifconfig
As example, if I assign domain to "normal" IP, I open in browser page from home/user/public_html folder.
If assing IP 10.14.0.6, I have see content from /var/www/html
May be I have too little knowledge for understanding of appearing of second IP (10.14.0.6) and relations between IP and domain. Can you give an information (or link to documentation, google does not help me )))) about it?
Thank you!
I have the same - in panel I see two IP in edit/ip/.
ip a
Code: Select all
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 04:01:9d:59:fe:01 brd ff:ff:ff:ff:ff:ff
inet 198.211.123.140/24 brd 198.211.123.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.14.0.6/16 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::601:9dff:fe59:fe01/64 scope link
valid_lft forever preferred_lft forever
Code: Select all
eth0 Link encap:Ethernet HWaddr 04:01:9d:59:fe:01
inet addr:198.211.123.140 Bcast:198.211.123.255 Mask:255.255.255.0
inet6 addr: fe80::601:9dff:fe59:fe01/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35296 errors:0 dropped:0 overruns:0 frame:0
TX packets:24628 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221261734 (221.2 MB) TX bytes:4314917 (4.3 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:11419 errors:0 dropped:0 overruns:0 frame:0
TX packets:11419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3462105 (3.4 MB) TX bytes:3462105 (3.4 MB)
If assing IP 10.14.0.6, I have see content from /var/www/html
May be I have too little knowledge for understanding of appearing of second IP (10.14.0.6) and relations between IP and domain. Can you give an information (or link to documentation, google does not help me )))) about it?
Thank you!
Re: Unidentified IP in VestaCP
@skurudo any help on this?
Re: Unidentified IP in VestaCP
This is a private IP, I think the solution is delete that IP from vesta.
Maybe vesta need a function to exclude local IPs to fix it.
line 39 of v-update-sys-ip when get ips
Part of debug:
So temporary solution is delete IP 10.x.x.x
The fix for script maybe will be an exclude if second IP adress on inet are private ip 10.x.x.x or 192.168.x.x
On install vesta only detect one IP, installer has a head -n1 and dont get second IP 10.x but on v-update-sys-ip get both.
PD: sorry for my bad english I try to improve :)
Maybe vesta need a function to exclude local IPs to fix it.
line 39 of v-update-sys-ip when get ips
Code: Select all
ip_list=$(/sbin/ip addr|grep 'inet '|grep global|awk '{print $2}')
ip_list=$(echo "$ip_list"|cut -f 1 -d /)
ip_num=$(echo "$ip_list" | wc -l)
Code: Select all
/sbin/ip addr|grep 'inet '|grep global|awk '{print $2}'
46.101.124.27/20
10.19.0.5/16
Code: Select all
++ EVENT='2016-03-03 19:21:30 v-update-sys-ip'
++ (( I=1 ))
++ (( I <= 0 ))
+ source /usr/local/vesta/func/ip.sh
+ source /usr/local/vesta/conf/vesta.conf
++ WEB_SYSTEM=httpd
++ WEB_RGROUPS=apache
++ WEB_PORT=8080
++ WEB_SSL_PORT=8443
++ WEB_SSL=mod_ssl
++ PROXY_SYSTEM=nginx
++ PROXY_PORT=80
++ PROXY_SSL_PORT=443
++ STATS_SYSTEM=webalizer,awstats
++ FTP_SYSTEM=vsftpd
++ DNS_SYSTEM=named
++ MAIL_SYSTEM=exim
++ IMAP_SYSTEM=dovecot
++ CRON_SYSTEM=crond
++ FIREWALL_SYSTEM=iptables
++ FIREWALL_EXTENSION=fail2ban
++ BACKUP_SYSTEM=local
++ LANGUAGE=en
++ VERSION=0.9.8
++ DB_SYSTEM=mysql
+ check_args 0 0 '[USER] [IP_STATUS]'
+ '[' 0 -gt 0 ']'
+ validate_format user ip_status
+ for arg_name in '$*'
+ eval 'arg=$user'
++ arg=admin
+ '[' -z admin ']'
+ case $arg_name in
+ validate_format_username admin user
+ '[' 5 -eq 1 ']'
+ [[ admin =~ ^[a-zA-Z0-9][-|\.|_|a-zA-Z0-9]{0,28}[a-zA-Z0-9]$ ]]
+ for arg_name in '$*'
+ eval 'arg=$ip_status'
++ arg=shared
+ '[' -z shared ']'
+ case $arg_name in
+ validate_format_ip_status shared
++ grep -w shared
++ echo shared,dedicated
+ '[' -z shared,dedicated ']'
+ is_object_valid user USER admin admin
+ '[' USER = USER ']'
+ '[' -d /usr/local/vesta/data/users/admin ']'
+ sobject=OK
+ '[' -z OK ']'
++ awk '{print $2}'
++ grep global
++ grep 'inet '
++ /sbin/ip addr
+ ip_list='46.101.124.27/20
10.19.0.5/16'
++ echo '46.101.124.27/20
10.19.0.5/16'
++ cut -f 1 -d /
+ ip_list='46.101.124.27
10.19.0.5'
++ wc -l
++ echo '46.101.124.27
10.19.0.5'
+ ip_num=2
++ ls /usr/local/vesta/data/ips/
+ vst_ip_list='10.19.0.5
46.101.124.27'
++ wc -l
++ echo '10.19.0.5
46.101.124.27'
+ vst_ip_num=2
+ '[' '!' -z '10.19.0.5
46.101.124.27' ']'
+ '[' 2 -eq 1 ']'
+ for ip in '$ip_list'
+ '[' '!' -e /usr/local/vesta/data/ips/46.101.124.27 ']'
+ for ip in '$ip_list'
+ '[' '!' -e /usr/local/vesta/data/ips/10.19.0.5 ']'
+ exit
The fix for script maybe will be an exclude if second IP adress on inet are private ip 10.x.x.x or 192.168.x.x
On install vesta only detect one IP, installer has a head -n1 and dont get second IP 10.x but on v-update-sys-ip get both.
PD: sorry for my bad english I try to improve :)
Re: Unidentified IP in VestaCP
The main problem is that, i can't delete this IP.