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 Web Server
  • Search

Unidentified IP in VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
20 posts
  • 1
  • 2
  • Next
webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Mon Dec 28, 2015 9:01 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Unidentified IP in VestaCP
  • Quote

Post by skurudo » Mon Dec 28, 2015 9:20 am

What command say us?

Code: Select all

ip a
or

Code: Select all

ifconfig 
?
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Mon Dec 28, 2015 4:18 pm

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
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Tue Dec 29, 2015 1:15 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Unidentified IP in VestaCP
  • Quote

Post by skurudo » Tue Dec 29, 2015 6:26 am

Unusual, which droplet on DO do you use? Server location / OS / RAM and another. I try to test this case.
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Wed Dec 30, 2015 5:11 pm

This is happening on every VPS, i have even tried with another VPS provider and same thing happened.
Top

annbat
Posts: 1
Joined: Sat Jan 23, 2016 11:32 am

Re: Unidentified IP in VestaCP
  • Quote

Post by annbat » Sat Jan 23, 2016 12:03 pm

Hello,
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
ifconfig

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)
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!
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Thu Mar 03, 2016 12:45 pm

@skurudo any help on this?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by skamasle » Fri Mar 04, 2016 12:30 am

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

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
Part of debug:

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
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 :)
Top

webdotapp
Posts: 33
Joined: Thu Jan 29, 2015 2:04 pm

Re: Unidentified IP in VestaCP
  • Quote

Post by webdotapp » Sat Mar 05, 2016 6:31 pm

The main problem is that, i can't delete this IP.
Top


Post Reply
  • Print view

20 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • 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