OpenVZ Forum


Home » General » Support » "Connection refused" when connecting from VE to host's public IP
Re: "Connection refused" when connecting from VE to host's public IP [message #50980 is a reply to message #50975] Mon, 16 December 2013 12:18 Go to previous message
Ventzy is currently offline  Ventzy
Messages: 3
Registered: December 2013
Junior Member
grep wrote on Mon, 16 December 2013 09:52
So your server answers.
Can you ssh into it? is only http refused?

iptables from ve (iptables-save in terminal to show all)?


I get "Connection refused" from VE to host for all ports, that was redirected in the host with
iptables -t nat -A PREROUTING -p TCP -i eth0 --dport 80 -j DNAT --to 10.0.0.3:80


I have no such forwarding rule on port 22, so I have no problem. Here is summary of different scenarios

                     |  Non-redirected port (22)  |  Redirected port (80)  |
----------------------------------------------------------------------------
Outside -> Host      |  OK                        |  OK                    |
5.6.7.8 -> 1.1.1.1   |                            |                        |
----------------------------------------------------------------------------
VE -> Host           |  OK                        |  Connection refused    |
10.0.0.3 -> 1.1.1.1  |                            |                        |
----------------------------------------------------------------------------


There are no iptable rules in the VE.

I am far from expert in this and may be wrong, but I suspect that I have "NAT loopback" issue like described here http ://en.wikipedia.org/wiki/Network_address_translation#NAT_loo pback
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ kernel reliability - production ready?
Next Topic: Drop /var/vzquota/quota.xxx and vps can't start
Goto Forum:
  


Current Time: Mon Oct 28 14:10:13 GMT 2024

Total time taken to generate the page: 0.07155 seconds