OpenVZ Forum


Home » General » Support » Containers Use Host IP and not configured IPs
Containers Use Host IP and not configured IPs [message #52032] Sat, 02 May 2015 15:21 Go to next message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
Hello,

I am having a networking issue i cant seem to figure out.

Here is what I did

1: took backups of all VPSs & did a clean OS install on the server ( CentOS 6.5 )
2: reinstalled SolusVM control panel with openvz virtualization
3: restored VPSs with vzdump --restore ...

The issue is that the VPSs are now using the Host IP address and not the IP configured

# vzctl restart 115
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container...
Container is mounted
Adding IP address(es): 7x.xx.139.109 7x.xx.138.128
Setting CPU limit: 200
Setting CPU units: 1000
Setting CPUs: 2
Container start in progress...

# vzctl enter 115
entered into CT 115
[~]# lynx -dump http //www.cpanel.net/showip.cgi

7x.xx.138.86


I really need some help figuring this out. The cpanel installs running on the VPSs are throwing the invalid license screen due to this IP issue


Scott
Re: Containers Use Host IP and not configured IPs [message #52033 is a reply to message #52032] Sat, 02 May 2015 16:09 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

From: *dip0.t-ipconnect.de
Hi,

from the openvz view - add the correct ipv4 to your container via cli like:

% vzctl set <CTID> --ipadd 7x.xx.138.86 --save

Maybe an SolusVM control panel issue - please check forum at https://forum.solusvm.com/, too!


Bye,
Thorsten
Re: Containers Use Host IP and not configured IPs [message #52034 is a reply to message #52032] Sat, 02 May 2015 16:18 Go to previous messageGo to next message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
Hello Curx

7x.xx.138.86 is the node ip address, the container should be using 7x.xx.139.109 as the main ip address.

I tried your suggestion with no change

[root@ ~]# vzctl set 115 --ipadd 7x.xx.139.109 --save
Deleting IP address(es): 7x.xx.139.109
Adding IP address(es): 7x.xx.139.109
CT configuration saved to /etc/vz/conf/115.conf
[root@ ~]# vzctl enter 115
entered into CT 115
root@ [~]# lynx -dump http //www.cpanel.net/showip.cgi

7x.xx.138.86

root@[~]# exit
logout
exited from CT 115
[root@ ~]#




Scott
Re: Containers Use Host IP and not configured IPs [message #52035 is a reply to message #52034] Sat, 02 May 2015 17:09 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

From: *dip0.t-ipconnect.de
Hi,

* any iptables rules used on hardwarenode & ct?
* are you useing a proxy for your ct?
* can you give ip a l && ip r l from hardwarenode and container (ip/r can be "obfuscated")

Bye,
Thorsten
Re: Containers Use Host IP and not configured IPs [message #52036 is a reply to message #52032] Sat, 02 May 2015 17:26 Go to previous messageGo to next message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
Hello curx,

Here is the requested information

Host Node

IPTables
[root@ ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
SOLUSVM_TRAFFIC_IN  all  --  anywhere             anywhere            
SOLUSVM_TRAFFIC_OUT  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain SOLUSVM_TRAFFIC_IN (1 references)
target     prot opt source               destination         
           all  --  anywhere             7x.xx.139.101       
           all  --  anywhere             7x.xx.139.102       
           all  --  anywhere             7x.xx.139.103       
           all  --  anywhere             7x.xx.139.104       
           all  --  anywhere             7x.xx.139.105       
           all  --  anywhere             7x.xx.139.106       
           all  --  anywhere             7x.xx.139.107       
           all  --  anywhere             7x.xx.139.109       
           all  --  anywhere             xxxxxxmail.com      
           all  --  anywhere             xxxxxaseitnow.net   
           all  --  anywhere             7x.xx.138.6         
           all  --  anywhere             7x.xx.137.254       
           all  --  anywhere             7x.xx.137.253       
           all  --  anywhere             xxxxxxhosting.net 
           all  --  anywhere             xxxxxxeutcart.com 
           all  --  anywhere             xxxxxxasnline.com 
           all  --  anywhere             xxxxxxxutions.com 
           all  --  anywhere             7x.xx.138.128       
           all  --  anywhere             xxxxxxxlobal2.com 

Chain SOLUSVM_TRAFFIC_OUT (1 references)
target     prot opt source               destination         
           all  --  7x.xx.139.101        anywhere            
           all  --  7x.xx.139.102        anywhere            
           all  --  7x.xx.139.103        anywhere            
           all  --  7x.xx.139.104        anywhere            
           all  --  7x.xx.139.105        anywhere            
           all  --  7x.xx.139.106        anywhere            
           all  --  7x.xx.139.107        anywhere            
           all  --  7x.xx.139.109        anywhere            
           all  --  xxxxxxmail.com       anywhere            
           all  --  xxxxxaseitnow.net    anywhere            
           all  --  7x.xx.138.6          anywhere            
           all  --  7x.xx.137.254        anywhere            
           all  --  7x.xx.137.253        anywhere            
           all  --  xxxxxxhosting.net    anywhere            
           all  --  xxxxxxeutcart.com    anywhere            
           all  --  xxxxxxasnline.com    anywhere            
           all  --  xxxxxxxutions.com    anywhere            
           all  --  7x.xx.138.128        anywhere            
           all  --  xxxxxxxlobal2.com    anywhere            
[root@ ~]# 



[root@ ~]# ip a l && ip r l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc cbq state UP qlen 1000
    link/ether 00:1a:4b:d5:a0:e2 brd ff:ff:ff:ff:ff:ff
    inet 7x.xx.138.86/21 brd 7x.xx.143.255 scope global eth0
    inet6 fe80::21a:4bff:fed5:a0e2/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:1a:4b:d5:a0:e3 brd ff:ff:ff:ff:ff:ff
5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc cbq state UNKNOWN 
    link/void 
7x.xx.138.122 dev venet0  scope link 
7x.xx.138.125 dev venet0  scope link 
7x.xx.138.124 dev venet0  scope link 
7x.xx.138.127 dev venet0  scope link 
7x.xx.139.102 dev venet0  scope link 
7x.xx.138.126 dev venet0  scope link 
7x.xx.137.253 dev venet0  scope link 
7x.xx.139.105 dev venet0  scope link 
7x.xx.139.104 dev venet0  scope link 
7x.xx.139.107 dev venet0  scope link 
7x.xx.137.254 dev venet0  scope link 
7x.xx.139.106 dev venet0  scope link 
7x.xx.140.66 dev venet0  scope link 
7x.xx.139.109 dev venet0  scope link 
7x.xx.138.6 dev venet0  scope link 
7x.xx.138.128 dev venet0  scope link 
7x.xx.136.0/21 dev eth0  proto kernel  scope link  src 7x.xx.138.86 
169.254.0.0/16 dev eth0  scope link  metric 1002 
default via 7x.xx.136.1 dev eth0 
[root@ ~]# 



Inside VPS

[root@ ~]# vzctl enter 100
entered into CT 100
root@ [/]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
acctboth   all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
acctboth   all  --  anywhere             anywhere            

Chain acctboth (2 references)
target     prot opt source               destination         
           tcp  --  xxxxxxxutions.com    anywhere            tcp dpt:http 
           tcp  --  anywhere             xxxxxxxutions.com   tcp spt:http 
           tcp  --  xxxxxxxutions.com  anywhere            tcp dpt:smtp 
           tcp  --  anywhere             xxxxxxxutions.com tcp spt:smtp 
           tcp  --  xxxxxxxutions.com  anywhere            tcp dpt:pop3 
           tcp  --  anywhere             xxxxxxxutions.com tcp spt:pop3 
           icmp --  xxxxxxxutions.com  anywhere            
           icmp --  anywhere             xxxxxxxutions.com 
           tcp  --  xxxxxxxutions.com  anywhere            
           tcp  --  anywhere             xxxxxxxutions.com 
           udp  --  xxxxxxxutions.com  anywhere            
           udp  --  anywhere             xxxxxxxutions.com 
           all  --  xxxxxxxutions.com  anywhere            
           all  --  anywhere             xxxxxxxutions.com 
           tcp  --  xxxxxxmail.com       anywhere            tcp dpt:http 
           tcp  --  anywhere             xxxxxxmail.com      tcp spt:http 
           tcp  --  xxxxxxmail.com       anywhere            tcp dpt:smtp 
           tcp  --  anywhere             xxxxxxmail.com      tcp spt:smtp 
           tcp  --  xxxxxxmail.com       anywhere            tcp dpt:pop3 
           tcp  --  anywhere             xxxxxxmail.com      tcp spt:pop3 
           icmp --  xxxxxxmail.com       anywhere            
           icmp --  anywhere             xxxxxxmail.com      
           tcp  --  xxxxxxmail.com       anywhere            
           tcp  --  anywhere             xxxxxxmail.com      
           udp  --  xxxxxxmail.com       anywhere            
           udp  --  anywhere             xxxxxxmail.com      
           all  --  xxxxxxmail.com       anywhere            
           all  --  anywhere             xxxxxxmail.com      
           tcp  --  xxxxxxasnline.com  anywhere            tcp dpt:http 
           tcp  --  anywhere             xxxxxxasnline.com tcp spt:http 
           tcp  --  xxxxxxasnline.com  anywhere            tcp dpt:smtp 
           tcp  --  anywhere             xxxxxxasnline.com tcp spt:smtp 
           tcp  --  xxxxxxasnline.com  anywhere            tcp dpt:pop3 
           tcp  --  anywhere             xxxxxxasnline.com tcp spt:pop3 
           icmp --  xxxxxxasnline.com  anywhere            
           icmp --  anywhere             xxxxxxasnline.com 
           tcp  --  xxxxxxasnline.com  anywhere            
           tcp  --  anywhere             xxxxxxasnline.com 
           udp  --  xxxxxxasnline.com  anywhere            
           udp  --  anywhere             xxxxxxasnline.com 
           all  --  xxxxxxasnline.com  anywhere            
           all  --  anywhere             xxxxxxasnline.com 
           tcp  --  xxxxxaseitnow.net    anywhere            tcp dpt:http 
           tcp  --  anywhere             xxxxxaseitnow.net   tcp spt:http 
           tcp  --  xxxxxaseitnow.net    anywhere            tcp dpt:smtp 
           tcp  --  anywhere             xxxxxaseitnow.net   tcp spt:smtp 
           tcp  --  xxxxxaseitnow.net    anywhere            tcp dpt:pop3 
           tcp  --  anywhere             xxxxxaseitnow.net   tcp spt:pop3 
           icmp --  xxxxxaseitnow.net    anywhere            
           icmp --  anywhere             xxxxxaseitnow.net   
           tcp  --  xxxxxaseitnow.net    anywhere            
           tcp  --  anywhere             xxxxxaseitnow.net   
           udp  --  xxxxxaseitnow.net    anywhere            
           udp  --  anywhere             xxxxxaseitnow.net   
           all  --  xxxxxaseitnow.net    anywhere            
           all  --  anywhere             xxxxxaseitnow.net   
           tcp  --  xxxxxxhosting.net  anywhere            tcp dpt:http 
           tcp  --  anywhere             xxxxxxhosting.net tcp spt:http 
           tcp  --  xxxxxxhosting.net  anywhere            tcp dpt:smtp 
           tcp  --  anywhere             xxxxxxhosting.net tcp spt:smtp 
           tcp  --  xxxxxxhosting.net  anywhere            tcp dpt:pop3 
           tcp  --  anywhere             xxxxxxhosting.net tcp spt:pop3 
           icmp --  xxxxxxhosting.net  anywhere            
           icmp --  anywhere             xxxxxxhosting.net 
           tcp  --  xxxxxxhosting.net  anywhere            
           tcp  --  anywhere             xxxxxxhosting.net 
           udp  --  xxxxxxhosting.net  anywhere            
           udp  --  anywhere             xxxxxxhosting.net 
           all  --  xxxxxxhostin
...

Re: Containers Use Host IP and not configured IPs [message #52038 is a reply to message #52032] Sat, 02 May 2015 19:59 Go to previous messageGo to next message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
SolusVM support has resolved the issue for me.
Re: Containers Use Host IP and not configured IPs [message #52039 is a reply to message #52038] Sun, 03 May 2015 09:27 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

From: *qsc.de
Can you give us more info, about the solution!
Re: Containers Use Host IP and not configured IPs [message #52042 is a reply to message #52032] Sun, 03 May 2015 12:54 Go to previous messageGo to next message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
It was something with iptables on the host, they completely reset iptables and all was good. something about the NAT table was messed up.
Re: Containers Use Host IP and not configured IPs [message #52044 is a reply to message #52032] Mon, 04 May 2015 23:46 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
From: *dynamic.sbb.rs
That's odd. If you have a chance, could you do a 'ip a l && ip r l' again? I expect to see a difference here, but I might be wrong.

Could be helpful if it happens to you again, or to somebody else...
Re: Containers Use Host IP and not configured IPs [message #52046 is a reply to message #52032] Mon, 04 May 2015 23:53 Go to previous message
scottcase is currently offline  scottcase
Messages: 6
Registered: May 2015
Location: Florida
Junior Member
From: *hsd1.fl.comcast.net
This is the command they ran that fixed it

iptables -F -t nat
Previous Topic: Why a custom kernel not a kernel module?
Next Topic: Local-net only one way traffic?
Goto Forum:
  


Current Time: Wed Oct 16 13:09:50 GMT 2019