VPS routing with venet0 [message #21598] |
Thu, 11 October 2007 20:51 |
galaxy
Messages: 11 Registered: January 2006
|
Junior Member |
|
|
I'm having an issue with routing between 3 machines, 2 with OpenVZ and one with Virtuozzo.
Machine A and B have OpenVZ, machine C has Virtuozzo.
I'll call the VPS's affected A1, B2 and C3 (each a VPS in
the associated hardware node A, B and C.
All hardware nodes have private addresses, VPS's have public IP's.
(fake IP's below:)
A has 10.0.0.86
B has 10.0.0.40
C has 10.0.0.50
All of them have a default route to 10.0.0.1.
A1 has 192.168.1.10
B2 has 192.168.1.20
B3 has 192.168.1.30
All VPS's are running SMTP servers on port 25.
All VPS's can ping all other VPS's.
A1 can connect to port 25 on both B2 and C3.
B2 can connect to port 25 on C3
C3 can connect to port 25 on B2
Neither B2 nor C3 can connect to port 25 on A1 and get the message "No route to host", but give a proper "Connection refused" to port 80 (no webserver, so thats correct) and they can ping. Its only routing via port 25 (or any valid port a service is listening to). There's no iptables or firewall running.
A has kernel 2.6.18-ovz028stab031.1-enterprise (open VZ)
B has kernel 2.6.8-022stab061.1-enterprise (open VZ)
C has kernel 2.6.9-023stab043.1-enterprise (virtuozzo)
So the problem is that B2 and C3 cannot connect to A1 services,
however any non-vz operating system (pure linux, solaris, cisco router, etc.) can connect to A1 services without a problem. It seems to only be affected by vps's connecting to this VPS.
A1 and B2 are both supposed to be inbound mail servers backing each other up, however I can't get to A1 from any other VPS on the network, only normal/regular hosts.
What am I missing?
|
|
|
|
|
|
Re: VPS routing with venet0 [message #21650 is a reply to message #21598] |
Fri, 12 October 2007 15:35 |
galaxy
Messages: 11 Registered: January 2006
|
Junior Member |
|
|
OK, I ran tcpdumps in both the hardware node and VPS on both sides as to where its failing.
On virtuozzo hw node, I see all packets going out, including to both port 25 and 80.
On openVZ hw node, I only see packets to port 80 (with the connection refused returned).
I suspect the 2.6.10 openVZ kernel is dropping the packets.
Its strange that the port 80 packets show up but silence from the port 25 packets. It can't be the router as it forwards only by IP, doesn't take the port into account.
I'm going to try different kernels.
Currently on the openVZ node has the following packages:
vzctl-3.0.16-1
vzctl-lib-3.0.16-1
vzquota-3.0.9-1
kernel-enterprise-2.6.18-ovz028stab031.1
The openVZ node that is working has:
vzctl-2.7.0-25
vzctl-lib-2.7.0-25
vzquota-2.7.0-7
ovzkernel-enterprise-2.6.8-022stab061.1
I think I can immediately try:
kernel-2.6.18-ovz028stab045.1.i686.rpm
which is just a rev up from the current one.
But if I want to bring it back to the exact same one on
the other box, do I also have to revert the vzctl & vzquota
packages?
|
|
|