hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : VMWare - WinXP as Guest on CENTOS - Networking
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

VMWare - WinXP as Guest on CENTOS - Networking

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-08-2007, 01:36 PM
VydorScope VydorScope is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 68

VMWare - WinXP as Guest on CENTOS - Networking


OKay here is the set up:

I have a CENTOS 64bit running, with 1 guest OS (WinXP) in a VMWare Server. I have tried the following: I have 6 public IP's attached to my 1 Ethernet card in the CENTOS host.

Try 1:
The Guest OS is set to use "Bridged" Networking. This allows full use of the internet, in both directions. Not exactly optimal, but it does work. I can reach the Guest via RD, which is a requirement for this client. The guest OS is mainly assigned one of the 6 public IP's (x.x.x.118). The problem with this setup is the Guest OS can not reach the host. For example the host has a mail server on it, and when the Guest tries to reach the host, it times out.


Try 2:
The Guest OS is set up to use "NAT" and gets 192.168.100.128 as its IP via DHCP inside of VMWare. The nat config file for VMWare is set to open port 3389 (RD port). Guest OS can reach the host with out any problem, and can reach the internet with out any problem, however I can not RD in to the Guest OS.

I prefer setup number 2 for all the obvious reasons, but I just can not get my IPTables rules to work. This is what I thought should work, but does not:

Code:
iptables -t nat -I PREROUTING  -d x.x.x.118 -j DNAT --to-destination=192.168.100.128
iptables -t nat -I POSTROUTING -s 192.168.100.128 -j SNAT --to-source=x.x.x.118
I realize that would have done all traffic, and defeated the benefits of NAT,but since forwarding only 3389 was not working I tried forwarding everything.

Any suggestions?

__________________
Vincent
Author of the Lost Tales of Power Scifi/Fantasy series
http://www.losttalesofpower.com


Reply With Quote


Sponsored Links
  #2  
Old 09-08-2007, 10:49 PM
StevenG StevenG is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,573
You'd be beter to just have 2 VM's running what you need and not have to talk to the host for services at all.

__________________
Flash Arcade Games

Reply With Quote
  #3  
Old 09-08-2007, 10:56 PM
VydorScope VydorScope is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 68
Quote:
Originally Posted by Dotable Steve View Post
You'd be beter to just have 2 VM's running what you need and not have to talk to the host for services at all.
I doubt the 2 VM's would be able to talk to each other? What ever the problem is talking to the host would be the same I would think?

__________________
Vincent
Author of the Lost Tales of Power Scifi/Fantasy series
http://www.losttalesofpower.com


Reply With Quote
Sponsored Links
  #4  
Old 09-08-2007, 11:15 PM
StevenG StevenG is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,573
If the VM's are using bridged mode then they are like any 2 hosts on the internet, so if the VM1 needs to access port 25 on VM2 all it needs to do is access the IP of the VM2 on port 25.. no natting etc.

VMware recommends that you use vm's for all services and not use the host also I think.

Also, you could use host only networking maybe and nat the external to the host only network.. still better to just install a linux vps running the mail server for me anyway.

__________________
Flash Arcade Games

Reply With Quote
  #5  
Old 09-09-2007, 04:10 PM
VydorScope VydorScope is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 68
I doubt I have the RAM for 2 VM's. This client is not paying hug bucks for the hardware. If he was, I would have gotten 2 real machines.

There has go to be a way to solve this, I just am failing to find it, and so is google.

__________________
Vincent
Author of the Lost Tales of Power Scifi/Fantasy series
http://www.losttalesofpower.com


Reply With Quote
  #6  
Old 09-09-2007, 04:42 PM
Annex Annex is offline
Web Hosting Evangelist
 
Join Date: Jul 2007
Posts: 522
Quote:
Originally Posted by VydorScope View Post
I doubt I have the RAM for 2 VM's. This client is not paying hug bucks for the hardware. If he was, I would have gotten 2 real machines.

There has go to be a way to solve this, I just am failing to find it, and so is google.
Check to make sure the host machine isn't firewalling the port, and also make sure that the mail server allows connections other than 127.0.0.1, however its not advisable as there are many jumps that can be used to gain access to the root machine.

__________________
Looking for Work level 1-3 Support Tech, Sales/billing tech, Odd management Jobs, and PHP/Mysql small jobs.
PM me or drop me an email at mm(AT)gotannex(dot)com
http://monitor.gotannex.com/

Reply With Quote
  #7  
Old 09-09-2007, 09:19 PM
VydorScope VydorScope is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 68
Quote:
Originally Posted by Annex View Post
Check to make sure the host machine isn't firewalling the port, and also make sure that the mail server allows connections other than 127.0.0.1, however its not advisable as there are many jumps that can be used to gain access to the root machine.

Of course the mail server does allow connections from any where, it is the mail server for the domain. I can connect to it from any machine on the internet with out problem. It is a tiny domain does not need much, but does need standard mail/dns/etc services.

__________________
Vincent
Author of the Lost Tales of Power Scifi/Fantasy series
http://www.losttalesofpower.com


Reply With Quote
  #8  
Old 09-25-2007, 10:31 AM
VydorScope VydorScope is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 68
SOLVED:

Not a perfect solution, but it does work and its to simple for me to come up with. All I had to do with add a second nick to the GUEST and set one to BRIDGE and the other to NAT. Then use hosts file on the GUEST to override the DNS for the HOST to point to the base NAT ip (192.168....). All seems to work that way. Outside world can reach GUEST and GUEST can reach HOST.

__________________
Vincent
Author of the Lost Tales of Power Scifi/Fantasy series
http://www.losttalesofpower.com


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
ViaWest Using Vmware Network Virtualization to Roll Out New Services Web Hosting News 2013-04-23 15:55:38
VMware to Acquire Storage Hypervisor Software Developer Virsto Web Hosting News 2013-02-12 16:37:20
VMware's OpenStack Membership Delayed Briefly by Board Meeting Time Constraints Web Hosting News 2012-08-30 11:04:29
$1.26 Billion Nicira Acquisition Will Allow VMware to Boost Virtual Networking Capabilities Web Hosting News 2012-07-24 10:57:37
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?