LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   double natting (https://www.linuxquestions.org/questions/linux-networking-3/double-natting-826275/)

TommyMcCole 08-14-2010 06:41 PM

double natting
 
Hi,
I am currently running a windows 2003 server in VMware, and have enabled all packet forwarding from it:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

which means all packets from the windows 2003 server (vmnet8 interface) are going to the physical interface (eth0) correctly.

recently I have wanted to open an FTP client in the virtual server. and for that I need to forward all packets going from my eth0 interface to the vmnet8 interface (if the port is 21).

Does anyone know if it is possible? and if so how?

Thanks.

jlinkels 08-15-2010 02:37 PM

It looks like you mixing up things.

Do you really need to use the firewall function of the host for W2003? That is possible, but it would be easier to bridge the W2003 adapter so it get its own IP address.

If you want to use the firewall function you are doing that correctly.

You say you want to run a FTP client on the W2003 server. That would be possible without any change. Running a FTP server is much more complicated. Have you tried to run the FTP client?

jlinkels

TommyMcCole 08-15-2010 02:41 PM

I have no intention to run the client, just the server, it listens for incoming tcp port 21


All times are GMT -5. The time now is 12:58 PM.