outbound connectivity lost on all VE nodes [message #9862] |
Fri, 26 January 2007 15:44 |
slonghurst
Messages: 40 Registered: September 2006 Location: UK
|
Member |
|
|
We had a power failure today which meant the virtual server host server was turned off and back on. I have managed to start up all the nodes again, but i have a problem with outbound connections from the nodes within the virtual servers. Inbound connections are fine, and in and outbound connections from the host server are fine.
Any help greatly appreciated
Regards
Shaun
|
|
|
|
|
|
|
|
|
Re: outbound connectivity lost on all VE nodes [message #9869 is a reply to message #9868] |
Fri, 26 January 2007 16:39 |
dim
Messages: 344 Registered: August 2005
|
Senior Member |
|
|
As your node have IP from the same private pool, there should be NAT somewhere on the packets way from host node to the Internet. If this NAT is under your control, the best way to fix VE's outgoing connection issue is to add their addresses to that NAT.
Another way, which is worse in the above case, but the one in the case, when you have no access to the above NAT, is to setup iptables on the host node, as you've read at the http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
Now, when you tried and failed, I need to have the following info:
1) kernel version you use
2) distro version, you use
2) `lsmod` command output
3) `/etc/init.d/iptables restart` output
4) `lsmod` after iptables restart
5) `iptables-save` output
|
|
|
Re: outbound connectivity lost on all VE nodes [message #9871 is a reply to message #9869] |
Fri, 26 January 2007 16:45 |
slonghurst
Messages: 40 Registered: September 2006 Location: UK
|
Member |
|
|
thanks for your help
1) 2.6.0-023stab016.2
2) centos 4
3)
Module Size Used by
simfs 3452 13
vzethdev 6956 0
vzdquota 40080 13 [permanent]
af_packet 17000 0
ipt_length 1376 13
ipt_ttl 1536 13
ipt_tcpmss 1920 13
ipt_TCPMSS 3616 13
iptable_mangle 4192 13
iptable_filter 4032 13
ipt_multiport 1728 13
ipt_limit 1856 13
ipt_tos 1312 13
ipt_REJECT 5792 13
ip_tables 21328 10 ipt_length,ipt_ttl,ipt_tcpmss,ipt_TCPMSS,iptable_mangle,ipta ble_filter,ipt_multiport,ipt_limit,ipt_tos,ipt_REJECT
parport_pc 23744 0
lp 8168 0
parport 19872 2 parport_pc,lp
sunrpc 136996 1
vznetdev 12416 27
vzmon 42976 15 vzethdev,vznetdev
vzdev 1824 4 vzethdev,vzdquota,vznetdev,vzmon
thermal 10344 0
processor 10428 1 thermal
fan 2628 0
button 4560 0
battery 6788 0
ac 3044 0
uhci_hcd 28792 0
ehci_hcd 26788 0
usbcore 103268 4 uhci_hcd,ehci_hcd
tg3 108932 0
floppy 55440 0
ide_cd 38560 0
cdrom 38204 1 ide_cd
4) Flushing firewall rules: [60G[ [0;32mOK[0;39m ]
Setting chains to policy ACCEPT: mangle filter [60G[ [0;32mOK[0;39m ]
Unloading iptables modules: [60G[[0;31mFAILED[0;39m]
5) Module Size Used by
simfs 3452 13
vzethdev 6956 0
vzdquota 40080 13 [permanent]
af_packet 17000 0
ipt_length 1376 13
ipt_ttl 1536 13
ipt_tcpmss 1920 13
ipt_TCPMSS 3616 13
iptable_mangle 4192 13
iptable_filter 4032 13
ipt_multiport 1728 13
ipt_limit 1856 13
ipt_tos 1312 13
ipt_REJECT 5792 13
ip_tables 21328 10 ipt_length,ipt_ttl,ipt_tcpmss,ipt_TCPMSS,iptable_mangle,ipta ble_filter,ipt_multiport,ipt_limit,ipt_tos,ipt_REJECT
parport_pc 23744 0
lp 8168 0
parport 19872 2 parport_pc,lp
sunrpc 136996 1
vznetdev 12416 27
vzmon 42976 15 vzethdev,vznetdev
vzdev 1824 4 vzethdev,vzdquota,vznetdev,vzmon
thermal 10344 0
processor 10428 1 thermal
fan 2628 0
button 4560 0
battery 6788 0
ac 3044 0
uhci_hcd 28792 0
ehci_hcd 26788 0
usbcore 103268 4 uhci_hcd,ehci_hcd
tg3 108932 0
floppy 55440 0
ide_cd 38560 0
cdrom 38204 1 ide_cd
6) # Generated by iptables-save v1.2.11 on Fri Jan 26 17:42:08 2007
*mangle
:PREROUTING ACCEPT [111:10228]
:INPUT ACCEPT [99:7665]
:FORWARD ACCEPT [12:2563]
:OUTPUT ACCEPT [73:12736]
:POSTROUTING ACCEPT [85:15299]
COMMIT
# Completed on Fri Jan 26 17:42:08 2007
# Generated by iptables-save v1.2.11 on Fri Jan 26 17:42:08 2007
*filter
:INPUT ACCEPT [99:7665]
:FORWARD ACCEPT [12:2563]
:OUTPUT ACCEPT [73:12736]
COMMIT
# Completed on Fri Jan 26 17:42:08 2007
|
|
|
|
|
Re: outbound connectivity lost on all VE nodes [message #9904 is a reply to message #9873] |
Mon, 29 January 2007 09:23 |
slonghurst
Messages: 40 Registered: September 2006 Location: UK
|
Member |
|
|
This seems to have resolved itself. I stopped iptables, stopped vz service.
set this line :-
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to ip_address
started vz service
Did not start iptables and this seems to have resolved things.
Thanks for your help.
|
|
|