Containers Use Host IP and not configured IPs
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
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
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
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
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 -- xxxxxxhosting.net anywhere all -- anywhere xxxxxxhosting.net tcp -- 7x.xx.139.102 anywhere tcp dpt:http tcp -- anywhere 7x.xx.139.102 tcp spt:http tcp -- 7x.xx.139.102 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.139.102 tcp spt:smtp tcp -- 7x.xx.139.102 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.139.102 tcp spt:pop3 icmp -- 7x.xx.139.102 anywhere icmp -- anywhere 7x.xx.139.102 tcp -- 7x.xx.139.102 anywhere tcp -- anywhere 7x.xx.139.102 udp -- 7x.xx.139.102 anywhere udp -- anywhere 7x.xx.139.102 all -- 7x.xx.139.102 anywhere all -- anywhere 7x.xx.139.102 tcp -- 7x.xx.139.104 anywhere tcp dpt:http tcp -- anywhere 7x.xx.139.104 tcp spt:http tcp -- 7x.xx.139.104 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.139.104 tcp spt:smtp tcp -- 7x.xx.139.104 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.139.104 tcp spt:pop3 icmp -- 7x.xx.139.104 anywhere icmp -- anywhere 7x.xx.139.104 tcp -- 7x.xx.139.104 anywhere tcp -- anywhere 7x.xx.139.104 udp -- 7x.xx.139.104 anywhere udp -- anywhere 7x.xx.139.104 all -- 7x.xx.139.104 anywhere all -- anywhere 7x.xx.139.104 tcp -- 7x.xx.139.105 anywhere tcp dpt:http tcp -- anywhere 7x.xx.139.105 tcp spt:http tcp -- 7x.xx.139.105 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.139.105 tcp spt:smtp tcp -- 7x.xx.139.105 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.139.105 tcp spt:pop3 icmp -- 7x.xx.139.105 anywhere icmp -- anywhere 7x.xx.139.105 tcp -- 7x.xx.139.105 anywhere tcp -- anywhere 7x.xx.139.105 udp -- 7x.xx.139.105 anywhere udp -- anywhere 7x.xx.139.105 all -- 7x.xx.139.105 anywhere all -- anywhere 7x.xx.139.105 tcp -- 7x.xx.139.106 anywhere tcp dpt:http tcp -- anywhere 7x.xx.139.106 tcp spt:http tcp -- 7x.xx.139.106 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.139.106 tcp spt:smtp tcp -- 7x.xx.139.106 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.139.106 tcp spt:pop3 icmp -- 7x.xx.139.106 anywhere icmp -- anywhere 7x.xx.139.106 tcp -- 7x.xx.139.106 anywhere tcp -- anywhere 7x.xx.139.106 udp -- 7x.xx.139.106 anywhere udp -- anywhere 7x.xx.139.106 all -- 7x.xx.139.106 anywhere all -- anywhere 7x.xx.139.106 tcp -- 7x.xx.139.107 anywhere tcp dpt:http tcp -- anywhere 7x.xx.139.107 tcp spt:http tcp -- 7x.xx.139.107 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.139.107 tcp spt:smtp tcp -- 7x.xx.139.107 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.139.107 tcp spt:pop3 icmp -- 7x.xx.139.107 anywhere icmp -- anywhere 7x.xx.139.107 tcp -- 7x.xx.139.107 anywhere tcp -- anywhere 7x.xx.139.107 udp -- 7x.xx.139.107 anywhere udp -- anywhere 7x.xx.139.107 all -- 7x.xx.139.107 anywhere all -- anywhere 7x.xx.139.107 tcp -- 7x.xx.137.253 anywhere tcp dpt:http tcp -- anywhere 7x.xx.137.253 tcp spt:http tcp -- 7x.xx.137.253 anywhere tcp dpt:smtp tcp -- anywhere 7x.xx.137.253 tcp spt:smtp tcp -- 7x.xx.137.253 anywhere tcp dpt:pop3 tcp -- anywhere 7x.xx.137.253 tcp spt:pop3 icmp -- 7x.xx.137.253 anywhere icmp -- anywhere 7x.xx.137.253 tcp -- 7x.xx.137.253 anywhere tcp -- anywhere 7x.xx.137.253 udp -- 7x.xx.137.253 anywhere udp -- anywhere 7x.xx.137.253 all -- 7x.xx.137.253 anywhere all -- anywhere 7x.xx.137.253 all -- anywhere anywhere root@ [/]# ip a l && ip r l 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue 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: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue link/void inet 127.0.0.1/32 scope host venet0 inet 7x.xx.138.127/32 brd 7x.xx.138.127 scope global venet0:0 inet 7x.xx.140.66/32 brd 7x.xx.140.66 scope global venet0:1 inet 7x.xx.137.253/32 brd 7x.xx.137.253 scope global venet0:10 inet 7x.xx.138.126/32 brd 7x.xx.138.126 scope global venet0:2 inet 7x.xx.138.122/32 brd 7x.xx.138.122 scope global venet0:3 inet 7x.xx.138.124/32 brd 7x.xx.138.124 scope global venet0:4 inet 7x.xx.139.102/32 brd 7x.xx.139.102 scope global venet0:5 inet 7x.xx.139.104/32 brd 7x.xx.139.104 scope global venet0:6 inet 7x.xx.139.105/32 brd 7x.xx.139.105 scope global venet0:7 inet 7x.xx.139.106/32 brd 7x.xx.139.106 scope global venet0:8 inet 7x.xx.139.107/32 brd 7x.xx.139.107 scope global venet0:9 169.254.0.0/16 dev venet0 scope link default dev venet0 scope link root@ [/]#
SolusVM support has resolved the issue for me.
Can you give us more info, about the solution!
It was something with iptables on the host, they completely reset iptables and all was good. something about the NAT table was messed up.
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...
This is the command they ran that fixed it iptables -F -t nat