Still do not get NAT to work, please help!

Hi all

I'm distraught after trying a large number of configuration settings in order to be NAT'ing on VMWare server (2) to operate.

I have a host and a guest (VM) running Ubuntu Linux.

I want to be able to reach my guestVM from the outside world by using the IP address of my physical machine, port X. A service is listening on this virtual machine, on the port Y.

What I currently have is the following:

Iptables on physical host (a few large lines of it):

echo 1 & gt; / proc/sys/net/ipv4/ip_forward

iptables Pei FALLING forward

iptables - A PREROUTING nat t-i eth0 Pei tcp - dport X-j DNAT - destination 192.168.6.3:X

iptables-a FORWARD eth0 o vmnet8 Pei tcp - dport X-j ACCEPT-i

A few large lines of /etc/vmware/vmnet8/nat/nat.conf:

& lt; host & gt;

IP = 192.168.6.2

subnet mask = 255.255.255.0

& lt; incomingtcp & gt;

X = 192.168.6.3:Y

The guest's IP 192.168.6.3

I restarted VMware (/etc/init.d/vmware restart) for the configuration to take effect.

Because I so read in a message, I activated the redirection ipv4 on the guest (but also tried without redirection enabled on the host).

From the reviews, I did not any configuration of iptables so far (so default settings apply).

I can see that packets are not have filtered in my iptables on the host, because at the end of the config script, I make sure that everything I have not configured to let pass will be saved before he fell.

In addition, it is important to note that with this configuration, redirect works correctly when I try to use the service on the guest VM, initiated from the host.

When I try to connect to the service of the VM guest from outside, I can not connect. Packets only to the service.

Can we see one any error in my thinking/configuration?

As I said, I'm quite distraught after all my attempts so far.

Best regards

Tim

Welcome to the forums!

Do not use and the iptables rules for the transmission of packets to the guest. It is matter of VMware.

Temporarily disable all firewall rules (iptbles - F) and test if it works. If it works just use your normal rules to protect the physical network of tzhe port. If necessary, create a rule that allows the port X enter the host.

AWo

VCP 3 & 4

\[:o]===\[o:]

= You want to have this ad as a ringtone on your mobile phone? =

= Send 'Assignment' to 911 for only $999999,99! =

Tags: VMware

Similar Questions

Maybe you are looking for