LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2010, 06:41 PM   #1
TommyMcCole
LQ Newbie
 
Registered: Aug 2010
Posts: 12

Rep: Reputation: 0
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.

Last edited by TommyMcCole; 08-14-2010 at 06:42 PM.
 
Old 08-15-2010, 02:37 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
1 members found this post helpful.
Old 08-15-2010, 02:41 PM   #3
TommyMcCole
LQ Newbie
 
Registered: Aug 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I have no intention to run the client, just the server, it listens for incoming tcp port 21
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Natting on linux sunlinux Linux - Networking 1 07-04-2007 04:10 AM
natting twice zsoltrenyi Linux - Networking 9 01-26-2005 04:39 AM
Natting suvajit Linux - Software 1 05-15-2003 05:50 AM
Natting suraj Linux - Networking 1 01-23-2003 10:25 AM
loacl natting uma27us Linux - Networking 0 12-18-2002 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration